Innovenergy_trunk/csharp/Lib/Units/Energy.cs

13 lines
315 B
C#
Raw Normal View History

2023-03-08 13:06:39 +00:00
namespace InnovEnergy.Lib.Units;
2023-06-13 11:03:49 +00:00
public sealed class Energy : Unit
2023-03-08 13:06:39 +00:00
{
2023-06-13 11:03:49 +00:00
public override String Symbol => "kWh";
2023-03-08 13:06:39 +00:00
2023-06-13 11:03:49 +00:00
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;
2023-03-08 13:06:39 +00:00
}