示例#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);
 }