OutExtensions Class

DECLARATION
public static class OutExtensions
NAMESPACE
LanguageExt

Methods

TryGetValue<K, V>(IDictionary<K, V>, K)
SUMMARY

Get a value out of a dictionary as Some, otherwise None.

PARAMETERS
self
IDictionary<K, V>
Dictionary
key
K
Key
DECLARATION
[Pure]
public static Option<V> TryGetValue<K, V>(this IDictionary<K, V> self, K key)
RETURNS
Option<V>
OptionT filled Some(value) or None
TryGetValue<K, V>(IReadOnlyDictionary<K, V>, K)
SUMMARY

Get a value out of a dictionary as Some, otherwise None.

PARAMETERS
self
IReadOnlyDictionary<K, V>
Dictionary
key
K
Key
DECLARATION
[Pure]
public static Option<V> TryGetValue<K, V>(this IReadOnlyDictionary<K, V> self, K key)
RETURNS
Option<V>
OptionT filled Some(value) or None