Click or drag to resize
ListTFindAll Method
Retrieves all the elements that match the conditions defined by the specified predicate.

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public List<T> FindAll(
	Predicate<T> match
)

Parameters

match
Type: SystemPredicateT
The PredicateT delegate that defines the conditions of the elements to search for.

Return Value

Type: ListT
A ListT containing all the elements that match the conditions defined by the specified predicate, if found; otherwise, an empty ListT.
Exceptions
ExceptionCondition
ArgumentNullExceptionmatch is null.
See Also