Innovenergy_trunk/csharp/Lib/Units/Temperature.cs

11 lines
330 B
C#
Raw Normal View History

2023-05-24 10:04:01 +00:00
namespace InnovEnergy.Lib.Units;
2023-02-26 18:19:16 +00:00
2023-06-13 11:03:49 +00:00
public sealed class Temperature : Unit
{
2023-06-13 11:03:49 +00:00
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;
}