LINQ_Any()

IEnumerable::LINQ_Any() method

Determines whether a sequence contains any elements.

bool System::Collections::Generic::IEnumerable<T>::LINQ_Any()

Return Value

true if the source sequence contains any elements; otherwise, false.

IEnumerable::LINQ_Any(std::function<bool(T)>) method

Determines whether any element of a sequence exists or satisfies a condition.

bool System::Collections::Generic::IEnumerable<T>::LINQ_Any(std::function<bool(T)> predicate)

Arguments

ParameterTypeDescription
predicatestd::function<bool(T)>A function to test each element for a condition.

Return Value

true if the source sequence contains any elements; otherwise, false.

See Also