Method TryGetValue
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
TryGetValue(TKey, out TValue)
Attempts to retrieve the value associated with the specified key.
public bool TryGetValue(TKey key, out TValue value)
Parameters
keyTKeyThe key whose value is to be retrieved.
valueTValueWhen this method returns, contains the value if found; otherwise the default value.
Returns
- bool
trueif the key exists; otherwisefalse.