IDictionary<TKey,TValue>.GetKeys Method

Definition

Returns a read-only collection that contains the keys in the dictionary.

Delphi
function GetKeys: IReadOnlyCollection<TKey>;

Returns

IReadOnlyCollection<TKey>

An IReadOnlyCollection<TKey> view of the dictionary keys.

Remarks

The returned collection is a live view. It reflects subsequent changes to the dictionary.