System::Collections::Generic::IEnumerable::LINQ_Any method

IEnumerable::LINQ_Any() method

Determines whether a sequence contains any elements.

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

ReturnValue

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

See Also

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)
ParameterTypeDescription
predicatestd::function<bool(T)>A function to test each element for a condition.

ReturnValue

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

See Also