IDictionary<TKey,TValue>.TryGetValue Method
Definition
Attempts to get the value associated with the specified key.
Delphi
function TryGetValue(const key: TKey; var value: TValue): Boolean
Parameters
- key
- TKey
The key of the element to get.
- value
- TValue
The value associated with the specified key, if the key is found;
otherwise, Default(TValue) .
Returns
Boolean
True if the key is found; otherwise, False .