Table of Contents

Class ImmutableEquatableArray

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

Provides extension methods for the ImmutableEquatableArray<T> type.

public static class ImmutableEquatableArray
Inheritance
ImmutableEquatableArray
Inherited Members

Methods

Create<T>(ReadOnlySpan<T>)

Creates an ImmutableEquatableArray<T> instance from the specified values.

public static ImmutableEquatableArray<T> Create<T>(ReadOnlySpan<T> values)

Parameters

values ReadOnlySpan<T>

The source span from which to populate the array.

Returns

ImmutableEquatableArray<T>

A new ImmutableEquatableArray<T> instance.

Type Parameters

T

The element type for the array.

ToImmutableEquatableArray<T>(IEnumerable<T>)

Creates an ImmutableEquatableArray<T> instance from the specified values.

public static ImmutableEquatableArray<T> ToImmutableEquatableArray<T>(this IEnumerable<T> values)

Parameters

values IEnumerable<T>

The source enumerable from which to populate the array.

Returns

ImmutableEquatableArray<T>

A new ImmutableEquatableArray<T> instance.

Type Parameters

T

The element type for the array.