IReadOnlyDictionary<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 whose value to get.
- value
- 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.
Returns
Boolean
True if the specified key was found; otherwise, False .