Пример #1
0
 public Energy ToUnit(EnergyUnit selectedUnit) => new Energy(ToTheOutSide(selectedUnit.Unit), selectedUnit);
Пример #2
0
 public double As(EnergyUnit ReturnInThisUnit) => (double)ToTheOutSide(ReturnInThisUnit.Unit);
Пример #3
0
 public static Energy From(double value, EnergyUnit unit) => new Energy(value, unit);
Пример #4
0
 public Energy(int value, EnergyUnit selectedUnit) : base(value, selectedUnit.Unit)
 {
 }
Пример #5
0
 public Energy(double value, EnergyUnit selectedUnit) : base(value, selectedUnit.Unit)
 {
 }
Пример #6
0
 public Energy(decimal value, EnergyUnit selectedUnit) : base(value, selectedUnit.Unit)
 {
 }