Click or drag to resize

RouletteDictionaryTKey, TValueRemoveRandom Method (FuncTValue, Boolean)

Removes a random entry from the dictionary that satisfies a condition.

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

Parameters

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

Return Value

Type: Boolean
true if an element; otherwise, false. This method returns false if the dictionary is empty or if no element satisfies the condition in predicate.
See Also