| NamedObjectCollectionT 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.CollectionsAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public NamedObjectCollection(
IEqualityComparer<string> comparer,
int dictionaryCreationThreshold
)
Public Sub New (
comparer As IEqualityComparer(Of String),
dictionaryCreationThreshold As Integer
)
public:
NamedObjectCollection(
IEqualityComparer<String^>^ comparer,
int dictionaryCreationThreshold
)
new :
comparer : IEqualityComparer<string> *
dictionaryCreationThreshold : int -> NamedObjectCollection
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