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
Parameter | Type | Description |
---|---|---|
predicate | std::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
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.Slides