Observable.DefaultIfEmpty Method

Include Protected Members
Include Inherited Members

Returns the elements of the specified sequence.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member DefaultIfEmpty<TSource>(IObservable<TSource>) Returns the elements of the specified sequence or the type parameter's default value in a singleton sequence if the sequence is empty.
Public methodStatic member DefaultIfEmpty<TSource>(IObservable<TSource>, TSource) Returns the elements of the specified sequence or the type parameter's default value in a singleton sequence if the sequence is empty.

Top

See Also

Reference

Observable Class

System.Reactive.Linq Namespace