Retrieves all the elements that match the conditions defined by the specified predicate.
- match
- The predicate delegate that specifies the elements to search for.
A List containing all the elements that match the conditions defined by the specified predicate, if found; otherwise, an empty List.
Type Reason ArgumentNullException match is null.
The predicate is a delegate that returns true if the object passed to it matches the conditions defined in the delegate. The elements of the current List are individually passed to the Predicate delegate, and the elements that match the conditions are saved in the returned List.
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0