コード例 #1
0
ファイル: Factory.cs プロジェクト: xuchuansheng/GenXSource
 public static Quantity u(double value, BaseUnit type)
 {
     return new Quantity(value, type);
 }
コード例 #2
0
ファイル: Quantity.cs プロジェクト: xuchuansheng/GenXSource
 public Quantity(double value, BaseUnit unit)
 {
     _unit = unit;
     _value = value;
 }