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
valuesReadOnlySpan<TElement>The span of values used to create the instance.
optionsCollectionConstructionOptions<TKey>An optional set of parameters used to create the collection.
Returns
- TDeclaringType
A newly constructed collection using the specified values.
Type Parameters
TKeyThe type to be compared within the
TElement.TElementThe element type of the span parameters.
TDeclaringTypeThe type of the value produced by the constructor.