コード例 #1
0
 /// <summary>
 ///     Return a reference to this <see cref="LoopedBehavior{T}" /> as a <see cref="Behavior{T}" />.
 /// </summary>
 /// <typeparam name="T">The type of the looped behavior.</typeparam>
 /// <param name="b">The looped behavior.</param>
 /// <returns>A reference to this <see cref="LoopedBehavior{T}" /> as a <see cref="Behavior{T}" />.</returns>
 public static Behavior <T> AsBehavior <T>(this LoopedBehavior <T> b) => b;
コード例 #2
0
 private LoopedCell(LoopedBehavior <T> behaviorLoop)
     : base(behaviorLoop) =>
     this.behaviorLoop = behaviorLoop;