Table of Contents

Delegate EnumerableCollectionConstructor<TKey, TElement, TDeclaringType>

Namespace
PolyType.Abstractions
Assembly
PolyType.dll

Delegate representing a constructor for a collection from an enumeration of elements.

public delegate TDeclaringType EnumerableCollectionConstructor<TKey, TElement, TDeclaringType>(IEnumerable<TElement> elements, in CollectionConstructionOptions<TKey> options = default)

Parameters

elements IEnumerable<TElement>

The enumerable of elements used to create the collection.

options CollectionConstructionOptions<TKey>

An optional set of parameters used to create the collection.

Returns

TDeclaringType

A newly constructed collection instance containing the specified elements.

Type Parameters

TKey

The type of keys or elements in the collection.

TElement

The element type of the enumerable.

TDeclaringType

The type of the collection to be constructed.