예제 #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)
 {
 }