コード例 #1
0
ファイル: Counter.cs プロジェクト: Piirtaa/Decoratid
 public static Polyface IsCounter(this Polyface root)
 {
     Condition.Requires(root).IsNotNull();
     var counter = new Counter();
     root.Is(counter);
     return root;
 }
コード例 #2
0
 public CountingLogicDecoration(ILogic decorated)
     : base(decorated)
 {
     Counter = new Counter();
 }
コード例 #3
0
 public CountingLogicDecoration(ILogic decorated)
     : base(decorated)
 {
     Counter = new Counter();
 }
コード例 #4
0
 public CountingConditionDecoration(ICondition decorated)
     : base(decorated)
 {
     Counter = new Counter();
 }