Click or drag to resize

OrderedDictionaryTKey, TValue(Int32, IEqualityComparerTKey) Constructor

Initializes a new instance of the OrderedDictionaryTKey, TValue class that is empty, has the specified initial capacity, and uses the specified IEqualityComparerT.

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

Parameters

capacity  Int32
The initial number of elements that the OrderedDictionaryTKey, TValue can contain.
comparer  IEqualityComparerTKey
The IEqualityComparerT implementation to use when comparing keys, or null to use the default EqualityComparerT for the type of the key.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptioncapacity is less than 0.
See Also