Table of Contents

Class ImmutableEquatableArray<T>

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

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

T

The type of the array elements.

Inheritance
ImmutableEquatableArray<T>
Implements
Inherited Members
Extension Methods

Properties

Empty

An empty ImmutableEquatableArray<T> instance.

public static ImmutableEquatableArray<T> Empty { get; }

Property Value

ImmutableEquatableArray<T>

this[int]

Gets the element at the specified index.

public ref readonly T this[int index] { get; }

Parameters

index int

Property Value

T

Length

Gets the number of elements in the array.

public int Length { get; }

Property Value

int

Methods

Equals(ImmutableEquatableArray<T>)

public bool Equals(ImmutableEquatableArray<T> other)

Parameters

other ImmutableEquatableArray<T>

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetEnumerator()

public ImmutableEquatableArray<T>.Enumerator GetEnumerator()

Returns

ImmutableEquatableArray<T>.Enumerator

GetHashCode()

public override int GetHashCode()

Returns

int