Пример #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);
 }