コード例 #1
0
 protected void push(Func <double, double> newCalc)
 {
     if (next == null)
     {
         next = new NestedCalculation(newCalc);
     }
     else
     {
         next.push(newCalc);
     }
 }
コード例 #2
0
 private NestedCalculation(Func <double, double> newCalc)
 {
     calc = new Calculation(newCalc);
     next = null;
 }
コード例 #3
0
 protected NestedCalculation()
 {
     calc = var => var; //as default the expression will do nothing.
     next = null;
 }