Click or drag to resize

OrderedDictionary<TKey, TValue> (IEnumerable<KeyValuePair<TKey, TValue> > ) Constructor

Initializes a new instance of the OrderedDictionary<TKey, 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.244-beta+cf93f5f8aea4b941e9b426fe4e180c2bd85d31a2
Syntax
public OrderedDictionary(
	IEnumerable<KeyValuePair<TKey, TValue>> collection
)
View Source

Parameters

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