From 3a61b1e80b84d6dfc631c5ea675e68fd53ede030 Mon Sep 17 00:00:00 2001 From: ig Date: Mon, 11 Sep 2023 11:31:41 +0200 Subject: [PATCH] Add Zero --- csharp/Lib/Units/Composite/AcPower.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csharp/Lib/Units/Composite/AcPower.cs b/csharp/Lib/Units/Composite/AcPower.cs index 38a83c742..bc345445c 100644 --- a/csharp/Lib/Units/Composite/AcPower.cs +++ b/csharp/Lib/Units/Composite/AcPower.cs @@ -3,7 +3,6 @@ using static System.Math; namespace InnovEnergy.Lib.Units.Composite; - public record AcPower { public required ActivePower Active { get; init; } @@ -31,4 +30,6 @@ public record AcPower public static implicit operator AcPower(Double p) => new AcPower { Active = p, Reactive = 0 }; public static implicit operator AcPower(Int32 p) => new AcPower { Active = p, Reactive = 0 }; + + public static AcPower Zero => new AcPower { Active = 0, Reactive = 0, }; } \ No newline at end of file