Find()

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

Searches for the first element in the specified array that satisfies the conditions of the specified predicate.

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

Arguments

ParameterTypeDescription
arrSystem::ArrayPtr<T>Array to search an element in
matchSystem::Predicate<T>A predicate that defines the conditions to match array elements against

Return Value

Copy of the first element in the array that satisfies the conditions defined by predicate, otherwise default value of type T

See Also