Table of Contents

Class EquatableArray

Namespace
ModernLrc.Model
Assembly
ModernLrc.dll

Static factory invoked by CollectionBuilderAttribute for collection-expression construction.

public static class EquatableArray
Inheritance
EquatableArray
Inherited Members

Methods

Create<T>(IEnumerable<T>)

Create an EquatableArray<T> from any sequence. Lets builders avoid the List → CollectionsMarshal.AsSpan → Create(span) dance with the CS9080 lifetime tradeoff that pattern requires.

public static EquatableArray<T> Create<T>(IEnumerable<T> items)

Parameters

items IEnumerable<T>

Returns

EquatableArray<T>

Type Parameters

T

Create<T>(ReadOnlySpan<T>)

Create an EquatableArray<T> from a span (used by [a, b, c] literals).

public static EquatableArray<T> Create<T>(ReadOnlySpan<T> items)

Parameters

items ReadOnlySpan<T>

Returns

EquatableArray<T>

Type Parameters

T