Filter
Returns a new collection containing only the elements of the collection for which the given predicate
returns true
.
Parameters
Returns
Func<T, bool> predicate
IEnumerable<T> source
IEnumerable<T>
Usage
Filtering to get even values in a collection by using a named function
Filtering to get even values in a collection by using an anonymous function
Last updated
Was this helpful?