Click or drag to resize

RecentDictionaryTKey, TValue Constructor (Int32, RecentDictionaryEvictionMode, IEqualityComparerTKey)

Initializes a new instance of the dictionary with the specified initial capacity, the specified eviction, and uses the provide 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)
Syntax
C#
public RecentDictionary(
	int capacity,
	RecentDictionaryEvictionMode evictionMode,
	IEqualityComparer<TKey> comparer
)

Parameters

capacity
Type: SystemInt32
The initial number of elements that the dictionary can contain before resizing internally.
evictionMode
Type: Scaleout.CollectionsRecentDictionaryEvictionMode
Specifies whether the most recent or least recent entry is evicted when SetAndMaintainCount(TKey, TValue) is called.
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