Click or drag to resize

RankedDictionaryTKey, TValueRemoveWhere Method

Removes all elements from the dictionary that match the condition defined by the supplied key-parameterized predicate.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public int RemoveWhere(
	Predicate<TKey> match
)

Parameters

match
Type: SystemPredicateTKey
The condition of the elements to remove.

Return Value

Type: Int32
The number of elements removed from the dictionary.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen match is null.
Remarks
This is a O(n log m) operation where m is the number of elements removed and n is Count.
See Also