System::Collections::Generic::IEnumerable::LINQ_Count メソッド

IEnumerable::LINQ_Count() method

シーケンス内の要素数を返します(直接カウントにより計算)。

int System::Collections::Generic::IEnumerable<T>::LINQ_Count()

ReturnValue

シーケンス内の要素数。

参照

IEnumerable::LINQ_Count(const Func<T, bool>&) method

シーケンス内で指定された条件を満たす要素数を返します。

int System::Collections::Generic::IEnumerable<T>::LINQ_Count(const Func<T, bool> &predicate)
パラメーター説明
述語const Func<T, bool>&条件をテストするための各要素に対する関数。

ReturnValue

指定された条件を満たすシーケンス内の要素数。

参照