Table of Contents

Method TryGetValue

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

TryGetValue(Ability, out sbyte)

Gets the value that is associated with the specified key.

public bool TryGetValue(Ability key, out sbyte value)

Parameters

key Ability

The key to locate.

value sbyte

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.

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

key is null.