16 lines
394 B
C#
16 lines
394 B
C#
using InnovEnergy.Lib.Units.Generator;
|
|
|
|
namespace InnovEnergy.Lib.Units;
|
|
|
|
[Generate]
|
|
public readonly partial struct ApparentPower
|
|
{
|
|
public static String Unit => "VA";
|
|
public static String Symbol => "S";
|
|
|
|
public ApparentPower(Decimal value)
|
|
{
|
|
if (value < 0) throw new ArgumentException("Apparent power cannot be negative", nameof(value));
|
|
Value = value;
|
|
}
|
|
} |