16 lines
389 B
C#
16 lines
389 B
C#
using InnovEnergy.Lib.Units.Generator;
|
|
|
|
namespace InnovEnergy.Lib.Units;
|
|
|
|
[Sum]
|
|
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;
|
|
}
|
|
} |