LINQ_Count()

IEnumerable::LINQ_Count() method

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

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

Return Value

Number of elements in the sequence.

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)

Arguments

ParameterTypeDescription
predicateconst Func<T, bool>&A function to test each element for a condition.

Return Value

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

See Also