System::Collections::Generic::IEnumerable::LINQ_Count 方法
IEnumerable::LINQ_Count() method
返回序列中元素的数量(通过直接计数计算)。
int System::Collections::Generic::IEnumerable<T>::LINQ_Count()
ReturnValue
序列中的元素数量。
另见
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.Page for C++
IEnumerable::LINQ_Count(const Func<T, bool>&) method
返回序列中满足指定条件的元素数量。
int System::Collections::Generic::IEnumerable<T>::LINQ_Count(const Func<T, bool> &predicate)
| Parameter | Type | 描述 |
|---|---|---|
| 谓词 | const Func<T, bool>& | 用于测试每个元素是否满足条件的函数。 |
ReturnValue
满足指定条件的序列中元素数量。
另见
- Class Func
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.Page for C++