FindAll()

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

Retrieves all the elements that match the conditions defined by the specified predicate.

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

Arguments

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

Return Value

An Array containing all the elements that match the conditions defined by the specified predicate, if found; otherwise, an empty Array.

See Also