Open sandboxFocus

Method TryGetValue

TryGetValue(TKey, out TItem)

Tries to get the element with the specified key.

Declaration
public bool TryGetValue(TKey key, out TItem item)
Parameters
Type Name Description
TKey key

The key of the element.

TItem item

The element whose key is key or default if such element is not present.

Returns
Type Description
bool

true when the element whose key is key is present, otherwise false.