IDictionary<TKey,TValue>.Extract Method

Overloads

Extract(TKey)

Removes the value associated with the specified key without triggering lifetime management for objects.

Extract(TKey)

Removes the value associated with the specified key without triggering lifetime management for objects.

Delphi
function Extract(const key: TKey): TValue

Parameters

key
TKey

The key of the element to remove.

Returns

TValue

The removed value for the specified key if it existed; otherwise, Default(TValue) .