CircularListTRemoveAll Method

Removes all the elements from the CircularListT that match the conditions defined by the specified predicate.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public int RemoveAll(
	Predicate<T> match
)

Parameters

match  PredicateT
The PredicateT delegate that defines the conditions of the elements to remove.

Return Value

Int32
The number of elements removed from the list.

Remarks

The PredicateT is a delegate to a method that returns if the object passed to it matches the conditions defined in the delegate. The elements of the current CircularListT are individually passed to the PredicateT delegate, and the elements that match the conditions are removed from the list.

This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.

Exceptions

See Also