System::Collections::Generic::IEnumerable::LINQ_Any 方法
IEnumerable::LINQ_Any() method
确定序列是否包含任何元素。
bool System::Collections::Generic::IEnumerable<T>::LINQ_Any()
ReturnValue
如果源序列包含任何元素则为 true;否则为 false。
另见
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
IEnumerable::LINQ_Any(std::function<bool(T)>) method
确定序列中是否存在任何元素或满足条件的元素。
bool System::Collections::Generic::IEnumerable<T>::LINQ_Any(std::function<bool(T)> predicate)
| 参数 | 类型 | 描述 |
|---|---|---|
| 谓词 | std::function<bool(T)> | 用于测试每个元素是否满足条件的函数。 |
ReturnValue
如果源序列包含任何元素则为 true;否则为 false。
另见
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.Font for C++