Click or drag to resize

RankedMapTKey, TValueRemoveWhereElement Method

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

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

Parameters

match
Type: SystemPredicateKeyValuePairTKey, TValue
The condition of the elements to remove.

Return Value

Type: Int32
The number of elements removed from the map.
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