Beispiel #1
0
 public static Conversion DivideBy(this Conversion conversion, decimal value)
 {
     return(conversion.MultiplyBy(1 / value));
 }
Beispiel #2
0
 public static Conversion Subtract(this Conversion conversion, decimal value)
 {
     return(conversion.Add(-value));
 }
Beispiel #3
0
 public static Conversion MultiplyBy(this Conversion conversion, decimal value)
 {
     conversion.AddStep(new ScalingConversion(value));
     return(conversion);
 }
Beispiel #4
0
 public static Conversion Add(this Conversion conversion, decimal value)
 {
     conversion.AddStep(new OffsetConversion(value));
     return(conversion);
 }