Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: int RemoveAll<T>(this IList<T>, Func<T, bool>)

Declaration

public static int RemoveAll<T>(
    this IList<T> list,
    Func<T, bool> predicate
)

Summary

Removes all matching values from the list.

Generic type parameters

T Type of the elements in the list.

Parameters

this IList<T>list The list to remove the items from.
Func<T, bool>predicate A function which returns true for every element that is to be removed.

Returns

The number of values removed.