add GeneratedCode attribute

This commit is contained in:
ig 2023-03-20 13:27:15 +01:00
parent 17c2a959e6
commit 249254e2e5
11 changed files with 22 additions and 0 deletions

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = Angle; using T = Angle;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(AngleConverter))] [JsonConverter(typeof(AngleConverter))]
public readonly partial struct Angle public readonly partial struct Angle
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = ApparentPower; using T = ApparentPower;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(ApparentPowerConverter))] [JsonConverter(typeof(ApparentPowerConverter))]
public readonly partial struct ApparentPower public readonly partial struct ApparentPower
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = Current; using T = Current;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(CurrentConverter))] [JsonConverter(typeof(CurrentConverter))]
public readonly partial struct Current public readonly partial struct Current
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = Energy; using T = Energy;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(EnergyConverter))] [JsonConverter(typeof(EnergyConverter))]
public readonly partial struct Energy public readonly partial struct Energy
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = Frequency; using T = Frequency;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(FrequencyConverter))] [JsonConverter(typeof(FrequencyConverter))]
public readonly partial struct Frequency public readonly partial struct Frequency
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = Template; using T = Template;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(TemplateConverter))] [JsonConverter(typeof(TemplateConverter))]
public readonly partial struct Template public readonly partial struct Template
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = Power; using T = Power;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(PowerConverter))] [JsonConverter(typeof(PowerConverter))]
public readonly partial struct Power public readonly partial struct Power
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = ReactivePower; using T = ReactivePower;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(ReactivePowerConverter))] [JsonConverter(typeof(ReactivePowerConverter))]
public readonly partial struct ReactivePower public readonly partial struct ReactivePower
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = Resistance; using T = Resistance;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(ResistanceConverter))] [JsonConverter(typeof(ResistanceConverter))]
public readonly partial struct Resistance public readonly partial struct Resistance
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = Temperature; using T = Temperature;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(TemperatureConverter))] [JsonConverter(typeof(TemperatureConverter))]
public readonly partial struct Temperature public readonly partial struct Temperature
{ {

View File

@ -5,11 +5,13 @@ using static System.Math;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
using System.CodeDom.Compiler;
namespace InnovEnergy.Lib.Units; namespace InnovEnergy.Lib.Units;
using T = Voltage; using T = Voltage;
[GeneratedCode("generate.sh", "1")]
[JsonConverter(typeof(VoltageConverter))] [JsonConverter(typeof(VoltageConverter))]
public readonly partial struct Voltage public readonly partial struct Voltage
{ {