示例#1
0
 public Quantity GetQuantity(float value, string unit, string system, Coding code)
 {
     Quantity quantity = new Quantity();
     quantity.value = value;
     quantity.unit = unit;
     quantity.system = system;
     quantity.code = code;
     return quantity;
 }
示例#2
0
 public Range GetRange(Quantity low, Quantity high)
 {
     Range range = new Range();
     range.low = low;
     range.high = high;
     return range;
 }
示例#3
0
 public Ratio GetRatio(Quantity numerator, Quantity denominator)
 {
     Ratio ratio = new Ratio();
     ratio.numerator = numerator;
     ratio.denominator = denominator;
     return ratio;
 }