The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

OptionExtensions.

Lookup<TValue, TKey>(IDictionary<TKey, TValue>, TKey) Method

Summary

Overloads a TryGetValue of the dictionary wrapping the result as an Optional. &gt;TValue
Namespace
DynamicData.Kernel
Containing Type
OptionExtensions

Syntax

public static Optional<TValue> Lookup<TValue, TKey>(this IDictionary<TKey, TValue> source, TKey key)

Type Parameters

Name Description
TValue The type of the value.
TKey The type of the key.

Parameters

Name Type Description
source IDictionary<TKey, TValue> The source.
key TKey The key.

Return Value

Type Description
Optional<TValue> The option of the looked up value.