Click or drag to resize

OrderedDictionary<TKey, TValue> (Int32, IEqualityComparer<TKey> ) Constructor

Initializes a new instance of the OrderedDictionary<TKey, TValue> class that is empty, has the specified initial capacity, and uses the specified IEqualityComparer<T>.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
Syntax
public OrderedDictionary(
	int capacity,
	IEqualityComparer<TKey> comparer
)
View Source

Parameters

capacity  Int32
The initial number of elements that the OrderedDictionary<TKey, TValue> can contain.
comparer  IEqualityComparer<TKey>
The IEqualityComparer<T> implementation to use when comparing keys, or null to use the default EqualityComparer<T> for the type of the key.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptioncapacity is less than 0.
See Also