TrueForAll()

Array::TrueForAll(System::ArrayPtr<T>, System::Predicate<T>) method

Determines whether all elements in the specified array satisfy the conditions defined by specified predicate.

static bool System::Array<T>::TrueForAll(System::ArrayPtr<T> arr, System::Predicate<T> match)

Arguments

ParameterTypeDescription
arrSystem::ArrayPtr<T>Array elements of which to match against the conditions
matchSystem::Predicate<T>A predicate that defines the conditions to match array elements against

Return Value

true if all elements of the array arr satisfy the conditions defined by predicate match, otherwise false

See Also