Table of Contents

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

key TKey

The key whose value is to be retrieved.

value TValue

When this method returns, contains the value if found; otherwise the default value.

Returns

bool

true if the key exists; otherwise false.