public double GetConvertedValArea(double value, string from, string to) { UnitsReflectionHelper <UnitArea> helper = new UnitsReflectionHelper <UnitArea>(); UnitArea unitFrom = helper.GetUnit(from); UnitArea unitTo = helper.GetUnit(to); return(new Area(value, unitFrom).GetConvertedVal(unitTo)); }
public new FrontalArea Convert(UnitArea to) { base.Convert(to); return(this); }
public FrontalArea(double val, UnitArea unit) : base(val, unit) { }
public Area Convert(UnitArea to) { base.Convert(to); return(this); }
public Area(double val, UnitArea unit) : base(val, unit) { CheckValueWithException(CheckValueCompareWithZero.LargerThanZero, "An area must be larger than zero"); }