Click or drag to resize

OrderedDictionaryTKey, TValue(IEnumerableKeyValuePairTKey, TValue) Constructor

Initializes a new instance of the OrderedDictionaryTKey, TValue class that contains elements copied from the specified [!:IEnumerable<KeyValuePair<TKey, TValue>>] and uses the default equality comparer for the key type.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.255-beta+d64b121002b51165b41b0dbf6ccf4c8d3895faa3
Syntax
public OrderedDictionary(
	IEnumerable<KeyValuePair<TKey, TValue>> collection
)
View Source

Parameters

collection  IEnumerableKeyValuePairTKey, TValue
The [!:IEnumerable<KeyValuePair<TKey, TValue>>] whose elements are copied to the new OrderedDictionaryTKey, TValue.
Exceptions
ExceptionCondition
ArgumentNullExceptioncollection is null.
ArgumentExceptioncollection contains one or more duplicate keys.
See Also