ListExtensions.Where<T>
Extension Method in ListExtensions
Declaration
public static List<T> Where<T>(this List<T> list, Predicate<T> predicate)Description
Filters the list to only contain items that satisfy a predicate.
Type Parameters
| T | The type of the list. |
Parameters
| list | The list to filter. |
| predicate | The predicate to use. |
Returns
| ListT | A new list with the filtered items removed. |