ParallelEnumerable.Any(Of TSource) Method (ParallelQuery(Of TSource))
Determines whether a parallel sequence contains any elements.
Assembly: System.Core (in System.Core.dll)
<ExtensionAttribute> Public Shared Function Any(Of TSource) ( source As ParallelQuery(Of TSource) ) As Boolean
The sequence to check for emptiness.
Return ValueType: System.Boolean
true if the source sequence contains any elements; otherwise, false.
The type of elements of source.
This overload of the Any method causes a fully-buffered merge to be performed before the result is returned. The merge behavior can impact performance or cause an out of memory exception in large enumerables. To avoid the merge behavior, use the overload of Any that takes a Func parameter, or else use an alternative method such as FirstOrDefault.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1