Method TryGetValue
TryGetValue(Ability, out sbyte)
Gets the value that is associated with the specified key.
public bool TryGetValue(Ability key, out sbyte value)
Parameters
keyAbilityThe key to locate.
valuesbyteWhen this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the
valueparameter. This parameter is passed uninitialized.
Returns
- bool
true if the object that implements the IReadOnlyDictionary<TKey, TValue> interface contains an element that has the specified key; otherwise, false.
Exceptions
- ArgumentNullException
keyis null.