KeyedCollection(TKey, TItem) Constructor

KeyedCollection<TKey, TItem> Constructor

 

Initializes a new instance of the KeyedCollection<TKey, TItem> class.

Namespace:   System.Collections.ObjectModel
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_protmethodKeyedCollection<TKey, TItem>()

Initializes a new instance of the KeyedCollection<TKey, TItem> class that uses the default equality comparer.

System_CAPS_protmethodKeyedCollection<TKey, TItem>(IEqualityComparer<TKey>)

Initializes a new instance of the KeyedCollection<TKey, TItem> class that uses the specified equality comparer.

System_CAPS_protmethodKeyedCollection<TKey, TItem>(IEqualityComparer<TKey>, Int32)

Initializes a new instance of the KeyedCollection<TKey, TItem> class that uses the specified equality comparer and creates a lookup dictionary when the specified threshold is exceeded.

Return to top
Show:
© 2016 Microsoft