Innovenergy_trunk/csharp/Lib/Units/Temperature.cs

11 lines
330 B
C#

namespace InnovEnergy.Lib.Units;
public sealed class Temperature : Unit
{
public override String Symbol => "°C";
public Temperature(Double value) : base(value){}
public static implicit operator Temperature(Double d) => new Temperature(d);
public static implicit operator Double(Temperature d) => d.Value;
}