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 | The type of the array items. |
Constructors
| Name | Description |
|---|---|
| ReadOnlyArray(T[]) | Initializes a new instance of the ReadOnlyArray<T> struct. |
Properties
| Name | Description |
|---|---|
| IsNull | Gets a value indicating 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. |