Click or drag to resize
DigitalRuneNamedObjectCollectionT Constructor (IEqualityComparerString, Int32)
Initializes a new instance of the NamedObjectCollectionT class that uses the specified equality comparer and creates a lookup dictionary when the specified threshold is exceeded.

Namespace: DigitalRune.Collections
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public NamedObjectCollection(
	IEqualityComparer<string> comparer,
	int dictionaryCreationThreshold
)

Parameters

comparer
Type: System.Collections.GenericIEqualityComparerString
The comparer that compares whether two names are equal.
dictionaryCreationThreshold
Type: SystemInt32
The number of elements the collection can hold without creating a lookup dictionary (0 creates the lookup dictionary when the first item is added), or –1 to specify that a lookup dictionary is never created.
See Also