Example #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="T:Gu.Units.Resistance"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"><see cref="T:Gu.Units.Ohm"/>.</param>
 public Resistance(double value, ResistanceUnit unit)
 {
     this.ohm = unit.ToSiUnit(value);
 }
Example #2
0
 /// <summary>
 /// Creates a new instance of <see cref="T:Gu.Units.Resistance"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"></param>
 public static Resistance From(double value, ResistanceUnit unit)
 {
     return(new Resistance(unit.ToSiUnit(value)));
 }