Table of Contents

Delegate ParameterizedCollectionConstructor<TKey, TElement, TDeclaringType>

Namespace
PolyType.Abstractions
Assembly
PolyType.dll

Delegate that constructs a collection from a span of values.

public delegate TDeclaringType ParameterizedCollectionConstructor<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 collection 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.