ParallelEnumerable.Count<TSource> Method (ParallelQuery<TSource>, Func<TSource, Boolean>)
Returns a number that represents how many elements in the specified parallel sequence satisfy a condition.
Assembly: System.Core (in System.Core.dll)
public static int Count<TSource>( this ParallelQuery<TSource> source, Func<TSource, bool> predicate )
A sequence that contains elements to be counted.
Return ValueType: System.Int32
A number that represents how many elements in the sequence satisfy the condition in the predicate function.
The type of the elements of source.
The query was canceled with the token passed in through WithCancellation.
source or predicate is a null reference (Nothing in Visual Basic).
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1