THashDictionary<TKey,TValue> Class

Definition

Provides a hash-based implementation of IDictionary<TKey,TValue>.

Delphi
THashDictionary<TKey,TValue> = class(TInterfacedObject, IDictionary<TKey,TValue>)

Type Parameters

TKey

The type of keys in the dictionary.

TValue

The type of values in the dictionary.

Inheritance
TInterfacedObject
THashDictionary<TKey,TValue>
Implements

Remarks

This class is the default implementation returned by TCollections.CreateDictionary<TKey,TValue>.

Constructors

Create

Initializes a new instance of the THashDictionary<TKey,TValue> class.

Create(IEqualityComparer<TKey>)

Initializes a new instance of the THashDictionary<TKey,TValue> class with a key comparer.

Destroy

Releases the resources used by the dictionary.

Properties

Methods