Determines whether the
ListT contains elements that match the conditions defined by the specified predicate.
Namespace: System.Collections.GenericAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public bool Exists(
Predicate<T> match
)
Parameters
- match
- Type: SystemPredicateT
The PredicateT delegate that defines the conditions of the elements to search for.
Return Value
Type:
Booleantrue if the
ListT contains one or more elements that match the conditions defined by the specified predicate; otherwise, false.
Exceptions See Also