DefaultIfEmpty Method

ParallelEnumerable.DefaultIfEmpty Method

.NET Framework (current version)
 

Returns the elements of the specified parallel sequence or the specified value in a singleton collection if the sequence is empty.

Namespace:   System.Linq
Assembly:  System.Core (in System.Core.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticDefaultIfEmpty<TSource>(ParallelQuery<TSource>)

Returns the elements of the specified parallel sequence or the type parameter's default value in a singleton collection if the sequence is empty.

System_CAPS_pubmethodSystem_CAPS_staticDefaultIfEmpty<TSource>(ParallelQuery<TSource>, TSource)

Returns the elements of the specified parallel sequence or the specified value in a singleton collection if the sequence is empty.

Return to top
Show:
© 2016 Microsoft