Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft