Table of Contents

Delegate SpanCollectionConstructor<TKey, TElement, TDeclaringType>

Namespace
PolyType.Abstractions
Assembly
PolyType.dll

Delegate representing a constructor that accepts a span of values.

public delegate TDeclaringType SpanCollectionConstructor<TKey, TElement, TDeclaringType>(ReadOnlySpan<TElement> values, in CollectionConstructionOptions<TKey> options = default)

Parameters

values ReadOnlySpan<TElement>

The span of values used to create the instance.

options CollectionConstructionOptions<TKey>

An optional set of parameters used to create the collection.

Returns

TDeclaringType

A newly constructed instance using the specified values.

Type Parameters

TKey

The type to be compared within the TElement.

TElement

The element type of the span parameters.

TDeclaringType

The type of the value produced by the constructor.