ParallelEnumerable.SingleOrDefault<TSource> Method (ParallelQuery<TSource>)
Returns the only element of a parallel sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
Assembly: System.Core (in System.Core.dll)
The sequence to return the single element of.
The single element of the input sequence, or default() if the sequence contains no elements.
The type of the elements of source.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1