System.Collections.ObjectModel.KeyedCollection<TKey,TItem>.Dictionary Property

Gets the lookup dictionary of the System.Collections.ObjectModel.KeyedCollection`2.

Syntax

protected IDictionary<TKey, TItem> Dictionary { get; }

Value

Documentation for this section has not yet been entered.

Remarks

By default, the System.Collections.ObjectModel.KeyedCollection`2 includes a lookup dictionary that is created when the first item is added. When an item is added to the System.Collections.ObjectModel.KeyedCollection`2, the item's key is extracted once and saved in the lookup dictionary for faster searches. This behavior can be overridden by using the KeyedCollection`2.#ctor(IEqualityComparer<`0>,System.Int32) constructor and specifying a dictionary creation threshold.

Retrieving the value of this property is an O(1) operation.

Requirements

Namespace: System.Collections.ObjectModel
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0