예제 #1
0
 protected override Numeric DoSubtraction <TOther>(Numeric other)
 {
     return(Value - (TOther)other.ObjectValue);
 }
예제 #2
0
 protected override Numeric DoMultiplication <TOther>(Numeric other)
 {
     return(Value * (TOther)other.ObjectValue);
 }
예제 #3
0
 protected override Numeric DoDivision <TOther>(Numeric other)
 {
     return(Value / (TOther)other.ObjectValue);
 }
예제 #4
0
 protected override Numeric DoModulo <TOther>(Numeric other)
 {
     return(Value % (TOther)other.ObjectValue);
 }
예제 #5
0
 protected override Numeric DoAddition <TOther>(Numeric other)
 {
     return(Value + (TOther)other.ObjectValue);
 }