MoreEnumerable.FallbackIfEmpty Method

Overload List

FallbackIfEmpty<T>(IEnumerable<T>, T) Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.
FallbackIfEmpty<T>(IEnumerable<T>, T[]) Returns the elements of a sequence, but if it is empty then returns an alternate sequence from an array of values.
FallbackIfEmpty<T>(IEnumerable<T>, IEnumerable<T>) Returns the elements of a sequence, but if it is empty then returns an alternate sequence of values.
FallbackIfEmpty<T>(IEnumerable<T>, T, T) Returns the elements of a sequence, but if it is empty then returns an alternate sequence of values.
FallbackIfEmpty<T>(IEnumerable<T>, T, T, T) Returns the elements of a sequence, but if it is empty then returns an alternate sequence of values.
FallbackIfEmpty<T>(IEnumerable<T>, T, T, T, T) Returns the elements of a sequence, but if it is empty then returns an alternate sequence of values.

See Also