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

Gets the value associated with the specified key.

Namespace: Spring.Collections
public
 function TryGetValue(const key: TKey; out value: TValue): Boolean;

Parameters

key
Type: TKey

The key whose value to get.

value
Type: TValue

When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

Type: Boolean

True if the object that implements IDictionary<TKey, TValue> contains an element with the specified key; otherwise, False.