 | 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)
Syntaxpublic bool RemoveRandom(
Func<TValue, bool> predicate
)
Parameters
- predicate
- Type: SystemFuncTValue, Boolean
A function to test elements for a condition.
Return Value
Type:
Booleantrue 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