Returns the elements of the specified parallel sequence or the type parameter's
default value in a singleton collection if the sequence is empty.
Namespace:
System.Linq
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function DefaultIfEmpty(Of TSource) ( _
source As ParallelQuery(Of TSource) _
) As ParallelQuery(Of TSource) |
Type Parameters
- TSource
- The type of the elements of source.
Return Value
A sequence that contains default(TSource) if
source is empty; otherwise,
source.
Exceptions
Exception | Condition |
---|
System..::.ArgumentNullException |
source is a null reference (Nothing in Visual Basic).
|
See Also