Exemplo n.º 1
0
 /// <summary>
 ///     Return a reference to this <see cref="StreamSink{T}" /> as a <see cref="Stream{T}" />.
 /// </summary>
 /// <typeparam name="T">The type of the stream sink.</typeparam>
 /// <param name="s">The stream sink.</param>
 /// <returns>A reference to this <see cref="StreamSink{T}" /> as a <see cref="Stream{T}" />.</returns>
 public static Stream <T> AsStream <T>(this StreamSink <T> s) => s;
Exemplo n.º 2
0
 private BehaviorSink(StreamSink <T> streamSink, T initialValue)
     : base(streamSink, initialValue) => this.streamSink = streamSink;
Exemplo n.º 3
0
 public static void Send <T>(this StreamSink <T> s, T a) => s.SendImpl(a);