Click or drag to resize
ListTRemoveAll Method
Removes all the elements that match the conditions defined by the specified predicate.

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public int RemoveAll(
	Predicate<T> match
)

Parameters

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

Return Value

Type: Int32
The number of elements removed from the ListT .
Exceptions
ExceptionCondition
ArgumentNullExceptionmatch is null.
See Also