Innovenergy_trunk/csharp/Lib/Units/CurrentRms.cs

15 lines
445 B
C#
Raw Normal View History

namespace InnovEnergy.Lib.Units;
public sealed class CurrentRms : Unit
{
public override String Symbol => "A~";
public CurrentRms(Double value) : base(value)
{
if (value < 0)
throw new ArgumentException("RMS value cannot be negative", nameof(value));
}
public static implicit operator CurrentRms(Double d) => new CurrentRms(d);
public static implicit operator Double(CurrentRms d) => d.Value;
}