コード例 #1
0
 /// <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)));
 }
コード例 #2
0
 /// <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);
 }