System::Collections::Generic::IEnumerable::LINQ_Count method

IEnumerable::LINQ_Count() method

Returns the number of elements in the sequence (calculated via direct counting).

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

ReturnValue

Number of elements in the sequence.

See Also

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

Returns the number of elements in the sequence that satisfy the specified condition.

int System::Collections::Generic::IEnumerable<T>::LINQ_Count(const Func<T, bool> &predicate)
ParameterTypeDescription
predicateconst Func<T, bool>&A function to test each element for a condition.

ReturnValue

Number of elements in the sequence that satisfy the specified condition.

See Also