Class IgnoreElements
Represents an operator that ignores all elements in an observable sequence leaving only the termination messages.
Tip
This operator can sometimes be useful when only the type of the sequence is important, and not its elements. The compiler will still check the correct type of the sequence even if no elements are emitted.
public class IgnoreElements : Combinator
- Inheritance
-
IgnoreElements
- Inherited Members
Methods
Process<TSource>(IObservable<TSource>)
Ignores all elements in an observable sequence leaving only the termination messages.
public override IObservable<TSource> Process<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The source sequence.
Returns
- IObservable<TSource>
An empty observable sequence that signals termination, successful or exceptional, of the source sequence.
Type Parameters
TSource
The type of the elements in the
source
sequence.