13 lines
315 B
C#
13 lines
315 B
C#
namespace InnovEnergy.Lib.Units;
|
|
|
|
public sealed class Energy : Unit
|
|
{
|
|
public override String Symbol => "kWh";
|
|
|
|
public Energy(Double value) : base(value)
|
|
{
|
|
}
|
|
|
|
public static implicit operator Energy(Double d) => new Energy(d);
|
|
public static implicit operator Double(Energy d) => d.Value;
|
|
} |