Click or drag to resize

RankedBagTRemoveWhere Method

Removes all elements that match the condition defined by the supplied predicate from the bag.

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

Parameters

match
Type: SystemPredicateT
The condition of the items to remove.

Return Value

Type: Int32
The number of elements removed from the bag.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen match is null.
InvalidOperationExceptionWhen the collection is updated from the supplied predicate.
Remarks
This is a O(n log m) operation where m is the count of items removed and n is Count.
See Also