예제 #1
0
 public string ToString(UnitOfMeasurement unit)
 {
     return(ToString("", unit));
 }
예제 #2
0
 private UnitOfMeasurement(UnitOfMeasurement unit) : this(unit._abbreviation, unit)
 {
 }
예제 #3
0
        public double ValueInUnits(UnitOfMeasurement unit)
        {
            CheckDimensions(this, unit);

            return(_multipleOfSi / unit._multipleOfSi);
        }
예제 #4
0
 public UnitOfMeasurement(string abbreviation, UnitOfMeasurement unit)
 {
     _abbreviation = abbreviation;
     _dimension    = unit._dimension;
     _multipleOfSi = unit._multipleOfSi;
 }