ICollection<T>.RemoveAll Method
Definition
Removes all the elements that match the conditions defined by the specified predicate.
Delphi
function RemoveAll(const predicate: Predicate<T>): Integer
Parameters
- predicate
- Predicate<T>
The predicate that defines the conditions of the elements to remove.
Returns
Integer
The number of elements removed from the collection.
Exceptions
predicate is nil .