IDictionary<TKey,TValue>.ExtractPair(TKey) Method

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

Namespace: Spring.Collections
public
 function ExtractPair(const key: TKey): TPair<TKey, TValue>; overload;

Parameters

key
Type: TKey

The key whose value to remove.

Return Value

Type: TPair<TKey, TValue>

The removed pair for the specified key if it existed; default otherwise.