/// <summary> /// Creates a new instance of <see cref="T:Gu.Units.ElectricCharge"/>. /// </summary> /// <param name="value"></param> /// <param name="unit"></param> public static ElectricCharge From(double value, ElectricChargeUnit unit) { return(new ElectricCharge(unit.ToSiUnit(value))); }
/// <summary> /// Initializes a new instance of <see cref="T:Gu.Units.ElectricCharge"/>. /// </summary> /// <param name="value"></param> /// <param name="unit"><see cref="T:Gu.Units.Coulombs"/>.</param> public ElectricCharge(double value, ElectricChargeUnit unit) { this.coulombs = unit.ToSiUnit(value); }