Enumerable::LongCount<TSource> Method (IEnumerable<TSource>^, Func<TSource, Boolean>^)
Returns an Int64 that represents how many elements in a sequence satisfy a condition.
Assembly: System.Core (in System.Core.dll)
public: generic<typename TSource> [ExtensionAttribute] static long long LongCount( IEnumerable<TSource>^ source, Func<TSource, bool>^ predicate )
An IEnumerable<T> that contains the elements to be counted.
Return ValueType: System::Int64
A number that represents how many elements in the sequence satisfy the condition in the predicate function.
The type of the elements of source.
Available since 4.5
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1