static Units() { NanoSecond = new TimeUnit("second", Scales.Nano); MicroSecond = new TimeUnit("second", Scales.Micro); MilliSecond = new TimeUnit("second", Scales.Milli); Minute = new TimeUnit("minute"); Hour = new TimeUnit("hour"); Day = new TimeUnit("day"); Week = new TimeUnit("week"); Month = new TimeUnit("month"); Byte = new ImmediateUnit("byte"); KiloByte = new ImmediateUnit("byte", Scales.Kilo); MegaByte = new ImmediateUnit("byte", Scales.Mega); GigaByte = new ImmediateUnit("byte", Scales.Giga); TeraByte = new ImmediateUnit("byte", Scales.Tera); PetaByte = new ImmediateUnit("byte", Scales.Peta); Bit = new ImmediateUnit("bit"); Degree = new ImmediateUnit("degree"); Radian = new ImmediateUnit("radian"); Celcius = new ImmediateUnit("celcius"); Fahrenheit = new ImmediateUnit("fahrenheit"); Kelvin = new ImmediateUnit("kelvin"); }
public CompoundUnit AddNumeratorUnit(ImmediateUnit unit) { NumeratorUnits.Add(unit); return this; }
public CompoundUnit AddDenominatorUnit(ImmediateUnit unit) { DenominatorUnits.Add(unit); return this; }