Exemplo n.º 1
0
 /// <summary>
 ///     Return a reference to this <see cref="BehaviorSink{T}" /> as a <see cref="Behavior{T}" />.
 /// </summary>
 /// <typeparam name="T">The type of the behavior sink.</typeparam>
 /// <param name="b">The behavior sink.</param>
 /// <returns>A reference to this <see cref="BehaviorSink{T}" /> as a <see cref="Behavior{T}" />.</returns>
 public static Behavior <T> AsBehavior <T>(this BehaviorSink <T> b) => b;
Exemplo n.º 2
0
 public static void Send <T>(this BehaviorSink <T> b, T a) => b.SendImpl(a);