Click or drag to resize

RouletteDictionaryTKey, TValueRemoveRandomAndGet Method (FuncTValue, Boolean)

Removes a random entry from the dictionary that satisfies a condition, returning the removed entry as a KeyValuePair.

Namespace:  Scaleout.Collections
Assembly:  Scaleout.Collections (in Scaleout.Collections.dll) Version: 1.0.3.0 (1.0.3.0)
Syntax
C#
public KeyValuePair<TKey, TValue> RemoveRandomAndGet(
	Func<TValue, bool> predicate
)

Parameters

predicate
Type: SystemFuncTValue, Boolean
A function to test elements for a condition.

Return Value

Type: KeyValuePairTKey, TValue
A KeyValuePair containing the removed entry.
See Also