Determines whether every element in the
ListT matches the conditions defined by the specified predicate.
Namespace: System.Collections.GenericAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public bool TrueForAll(
Predicate<T> match
)
Parameters
- match
- Type: SystemPredicateT
The PredicateT delegate that defines the conditions to check against the elements.
Return Value
Type:
Booleantrue if every element in the
ListT matches the conditions defined by the specified predicate; otherwise, false. If the list has no elements, the return value is true.
Exceptions See Also