Innovenergy_trunk/csharp/Lib/Units/Power/DcPower.cs

17 lines
381 B
C#

namespace InnovEnergy.Lib.Units.Power;
public sealed class DcPower : AcPower
{
public override String Symbol => "W";
public DcPower(Double value) : base(value)
{
}
public static implicit operator DcPower(Double d) => new DcPower(d);
public static implicit operator Double(DcPower d) => d.Value;
public static DcPower Null => new DcPower(0);
}