Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Read­Only­Array(T) Structure

ReadOnlyArray<T> Structure

Read-only array wrapper.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.0.18.0 (6.0.18.0)
Syntax
C#
public struct ReadOnlyArray<T> : IEquatable<ReadOnlyArray<T>>

Type Parameters

T
Type of array items.

The ReadOnlyArray<T> type exposes the following members.

Constructors
  NameDescription
Public methodReadOnlyArray<T>
Initializes a new ReadOnlyArray<T>.
Properties
  NameDescription
Public propertyIsNull
Determines whether the array is null.
Public propertyItem
Gets a specified element of the array.
Public propertyLength
Gets the array length.
Methods
  NameDescription
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object).)
Public methodEquals(ReadOnlyArray<T>)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode().)
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two instances of the ReadOnlyArray<T> type are equal.
Public operatorStatic memberInequality
Determines whether two instances of the ReadOnlyArray<T> type are different.
See Also