 | RecentDictionaryTKey, TValue Constructor (Int32, IEqualityComparerTKey) |
Initializes a new instance of the dictionary with the specified
initial capacity, performs LRU eviction,
and uses the provided equality comparer for the key type.
Namespace:
Scaleout.Collections
Assembly:
Scaleout.Collections (in Scaleout.Collections.dll) Version: 1.0.3.0 (1.0.3.0)
Syntaxpublic RecentDictionary(
int capacity,
IEqualityComparer<TKey> comparer
)
Parameters
- capacity
- Type: SystemInt32
The initial number of elements that the dictionary can contain before resizing internally.
- comparer
- Type: System.Collections.GenericIEqualityComparerTKey
The IEqualityComparerT implementation to use when comparing keys,
or null to use the default comparer for the type of the key.
See Also