Class ReadOnlyArray<T>
Read-only array wrapper.
Implements
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common.dll
Syntax
public sealed class ReadOnlyArray<T> : ValueType
Type Parameters
Name | Description |
---|---|
T | Type of array items. |
Constructors
Name | Description |
---|---|
ReadOnlyArray(T[]) | Initializes a new ReadOnlyArray<T>. |
Properties
Name | Description |
---|---|
IsNull | Determines whether the array is null. |
Item[Int32] | Gets a specified element of the array. |
Length | Gets the array length. |
Methods
Name | Description |
---|---|
Equals(ReadOnlyArray<T>) | Indicates whether the current object is equal to another object of the same type. |
Equals(Object) | Indicates whether this instance and a specified object are equal. |
GetHashCode() | Returns the hash code for this instance. |
Operators
Name | Description |
---|---|
Equality(ReadOnlyArray<T>, ReadOnlyArray<T>) | Determines whether two instances of the ReadOnlyArray<T> type are equal. |
Inequality(ReadOnlyArray<T>, ReadOnlyArray<T>) | Determines whether two instances of the ReadOnlyArray<T> type are different. |