예제 #1
0
 public static double Convert(NumberWithUnit number, Unit to)
 {
     return(number.To(to));
 }
예제 #2
0
 public NumberWithUnit(NumberWithUnit other, Unit targetUnit)
 {
     _unit = targetUnit;
     _number = other.To(targetUnit);
 }