Class ImmutableEquatableArray<T>
Defines an immutable array that defines structural equality semantics.
public sealed class ImmutableEquatableArray<T> : IEquatable<ImmutableEquatableArray<T>>, IReadOnlyList<T>, IReadOnlyCollection<T>, IList<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable
Type Parameters
TThe type of the array elements.
- Inheritance
-
ImmutableEquatableArray<T>
- Implements
-
IList<T>ICollection<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Properties
Empty
An empty ImmutableEquatableArray<T> instance.
public static ImmutableEquatableArray<T> Empty { get; }
Property Value
this[int]
Gets the element at the specified index.
public ref readonly T this[int index] { get; }
Parameters
indexint
Property Value
- T
Length
Gets the number of elements in the array.
public int Length { get; }
Property Value
Methods
Equals(ImmutableEquatableArray<T>)
public bool Equals(ImmutableEquatableArray<T> other)
Parameters
otherImmutableEquatableArray<T>
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetEnumerator()
public ImmutableEquatableArray<T>.Enumerator GetEnumerator()
Returns
GetHashCode()
public override int GetHashCode()