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: Gemstone.CollectionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public OrderedDictionary(
int capacity,
IEqualityComparer<TKey>? comparer
)
Public Sub New (
capacity As Integer,
comparer As IEqualityComparer(Of TKey)
)
public:
OrderedDictionary(
int capacity,
IEqualityComparer<TKey>^ comparer
)
Gemstone.Collections.OrderedDictionary = function(capacity, 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.
ArgumentOutOfRangeException | capacity is less than 0. |