Read-only array wrapper.
Implements
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common.dll
Syntax
public readonly struct ReadOnlyArray<T> : IEquatable<ReadOnlyArray<T>>
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. |
this[int] | Gets a specified element of the array. |
Length | Gets the array length. |
Methods
Name | Description |
---|---|
Equals(ReadOnlyArray<T>) | |
Equals(object) | |
GetHashCode() |
Operators
Name | Description |
---|---|
operator ==(ReadOnlyArray<T>, ReadOnlyArray<T>) | Determines whether two instances of the ReadOnlyArray<T> type are equal. |
operator !=(ReadOnlyArray<T>, ReadOnlyArray<T>) | Determines whether two instances of the ReadOnlyArray<T> type are different. |