EyeshotKeyedCollection<T>(IEqualityComparer<String>, Int32) Constructor

Initializes a new instance of the EyeshotKeyedCollection<T> class that uses the specified equality comparer and creates a lookup dictionary when the specified threshold is exceeded.
Protected Sub New( _ 
ByVal comparer As IEqualityComparer(Of String), _ 
ByVal dictionaryCreationThreshold As Integer
)
This language is not supported or no code example is available.
protected EyeshotKeyedCollection( 
IEqualityComparer<string> comparer
int dictionaryCreationThreshold 
)
This language is not supported or no code example is available.

Parameters

comparer
IEqualityComparer<string>

The implementation of the IEqualityComparer generic interface to use when comparing keys, or null to use the default equality comparer.

dictionaryCreationThreshold
int

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.

.NET Framework

Supported in: 4.8

In this article

Definition