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.

Definition

Namespace: Gemstone.Collections
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public OrderedDictionary(
	int capacity,
	IEqualityComparer<TKey>? comparer
)

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

ArgumentOutOfRangeExceptioncapacity is less than 0.

See Also