Class WriteLine
Represents an operator that writes the text representation of each element of the sequence to the output stream, followed by the current line terminator.
public class WriteLine : Sink
- Inheritance
-
WriteLine
- Inherited Members
Methods
Process<TSource>(IObservable<TSource>)
Writes the text representation of each element of an observable sequence to the standard output stream, followed by a line terminator.
public override IObservable<TSource> Process<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the elements to write to the standard output stream.
Returns
- IObservable<TSource>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of writing the elements to the standard output stream.
Type Parameters
TSource
The type of the elements in the
source
sequence.
Process<TSource>(IObservable<TSource>, IObservable<TextWriter>)
Writes the text representation of each element of an observable sequence to all the specified output streams, followed by a line terminator.
public IObservable<TSource> Process<TSource>(IObservable<TSource> source, IObservable<TextWriter> writer)
Parameters
source
IObservable<TSource>The sequence containing the elements to write to the active output streams.
writer
IObservable<TextWriter>A sequence of TextWriter objects on which to write the text representation of the elements of the
source
sequence.
Returns
- IObservable<TSource>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of writing the elements to all active output streams.
Type Parameters
TSource
The type of the elements in the
source
sequence.