API Browser

Method

TryGetValue

func TryGetValue<TKey, TValue>(key: TKey) -> Optional<TValue>

Declaring type: DictionaryExtensions<TKey, TValue>
Namespace: System.Collections.Generic
Assembly: Raven.Core.dll
Source file: TryGet.rvn

Extension from DictionaryExtensions<TKey, TValue>.TryGetValue

Looks up a key without exposing an out parameter.

Parameters

Name Type Description
self Dictionary<TKey, TValue>
key TKey The key to locate.

Return value

Optional<TValue>

Some containing the value when found; otherwise None.