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

OptionExtensions.

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

Summary

Removes item if contained in the cache.
Namespace
DynamicData.Kernel
Containing Type
OptionExtensions

Syntax

public static bool RemoveIfContained<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
bool If the item was removed.