PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsRead­Only­Array<T>
Open sandboxFocus

ReadOnlyArray<T> Class

Read-only array wrapper.

Inheritance
ReadOnlyArray<T>
Implements
IEquatable<ReadOnlyArray<T>>
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>)
Equals(Object)
GetHashCode()

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.