diff --git a/Build/build-pack-nano-nugets.psm1 b/Build/build-pack-nano-nugets.psm1
index 5ecf60a288..0d87ac5a64 100644
--- a/Build/build-pack-nano-nugets.psm1
+++ b/Build/build-pack-nano-nugets.psm1
@@ -8,7 +8,6 @@ function Invoke-BuildNanoNugets {
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Duration\UnitsNet.NanoFramework.Duration.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricCurrent\UnitsNet.NanoFramework.ElectricCurrent.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricPotential\UnitsNet.NanoFramework.ElectricPotential.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
- & $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricPotentialDc\UnitsNet.NanoFramework.ElectricPotentialDc.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricResistance\UnitsNet.NanoFramework.ElectricResistance.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Frequency\UnitsNet.NanoFramework.Frequency.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Illuminance\UnitsNet.NanoFramework.Illuminance.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
diff --git a/CodeGen/Generators/UnitsNetGenerator.cs b/CodeGen/Generators/UnitsNetGenerator.cs
index ca23308212..907f70e4a6 100644
--- a/CodeGen/Generators/UnitsNetGenerator.cs
+++ b/CodeGen/Generators/UnitsNetGenerator.cs
@@ -153,6 +153,9 @@ private static void GenerateResourceFiles(Quantity[] quantities, string resource
$"{resourcesDirectory}/{quantity.Name}.restext" :
$"{resourcesDirectory}/{quantity.Name}.{culture}.restext";
+ // Ensure parent folder exists
+ Directory.CreateDirectory(resourcesDirectory);
+
using var writer = File.CreateText(fileName);
foreach(Unit unit in quantity.Units)
diff --git a/Common/UnitDefinitions/ApparentEnergy.json b/Common/UnitDefinitions/ApparentEnergy.json
deleted file mode 100644
index 7f588de3eb..0000000000
--- a/Common/UnitDefinitions/ApparentEnergy.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "Name": "ApparentEnergy",
- "BaseUnit": "VoltampereHour",
- "XmlDocSummary": "A unit for expressing the integral of apparent power over time, equal to the product of 1 volt-ampere and 1 hour, or to 3600 joules.",
- "XmlDocRemarks": "ApparentEnergy has been renamed to ElectricApparentEnergy, and will be removed in a later major version.",
- "ObsoleteText": "ApparentEnergy has been renamed to ElectricApparentEnergy, and will be removed in a later major version.",
- "BaseDimensions": {
- "L": 2,
- "M": 1,
- "T": -2
- },
- "Units": [
- {
- "SingularName": "VoltampereHour",
- "PluralName": "VoltampereHours",
- "FromUnitToBaseFunc": "{x}",
- "FromBaseToUnitFunc": "{x}",
- "Prefixes": [ "Kilo", "Mega" ],
- "Localization": [
- {
- "Culture": "en-US",
- "Abbreviations": [ "VAh" ]
- }
- ]
- }
- ]
-}
diff --git a/Common/UnitDefinitions/ApparentPower.json b/Common/UnitDefinitions/ApparentPower.json
deleted file mode 100644
index 4aebda1a1c..0000000000
--- a/Common/UnitDefinitions/ApparentPower.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "Name": "ApparentPower",
- "BaseUnit": "Voltampere",
- "XmlDocSummary": "Power engineers measure apparent power as the magnitude of the vector sum of active and reactive power. Apparent power is the product of the root-mean-square of voltage and current.",
- "XmlDocRemarks": "ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.",
- "ObsoleteText": "ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.",
- "BaseDimensions": {
- "L": 2,
- "M": 1,
- "T": -3
- },
- "Units": [
- {
- "SingularName": "Voltampere",
- "PluralName": "Voltamperes",
- "FromUnitToBaseFunc": "{x}",
- "FromBaseToUnitFunc": "{x}",
- "Prefixes": [ "Micro", "Milli", "Kilo", "Mega", "Giga" ],
- "Localization": [
- {
- "Culture": "en-US",
- "Abbreviations": [ "VA" ]
- }
- ]
- }
- ]
-}
diff --git a/Common/UnitDefinitions/Capacitance.json b/Common/UnitDefinitions/Capacitance.json
deleted file mode 100644
index d2f0a0bd5f..0000000000
--- a/Common/UnitDefinitions/Capacitance.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "Name": "Capacitance",
- "BaseUnit": "Farad",
- "XmlDocSummary": "Capacitance is the ability of a body to store an electric charge.",
- "XmlDocRemarks": "Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.",
- "ObsoleteText": "Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.",
- "BaseDimensions": {
- "L": -2,
- "M": -1,
- "T": 4,
- "I": 2
- },
- "Units": [
- {
- "SingularName": "Farad",
- "PluralName": "Farads",
- "BaseUnits": {
- "L": "Meter",
- "M": "Kilogram",
- "T": "Second",
- "I": "Ampere"
- },
- "FromUnitToBaseFunc": "{x}",
- "FromBaseToUnitFunc": "{x}",
- "Prefixes": [ "Pico", "Nano", "Micro", "Milli", "Kilo", "Mega" ],
- "Localization": [
- {
- "Culture": "en-US",
- "Abbreviations": [ "F" ]
- }
- ]
- }
- ]
-}
diff --git a/Common/UnitDefinitions/ElectricPotentialAc.json b/Common/UnitDefinitions/ElectricPotentialAc.json
deleted file mode 100644
index d1f24e7306..0000000000
--- a/Common/UnitDefinitions/ElectricPotentialAc.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "Name": "ElectricPotentialAc",
- "BaseUnit": "VoltAc",
- "XmlDocSummary": "The Electric Potential of a system known to use Alternating Current.",
- "XmlDocRemarks": "ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.",
- "ObsoleteText": "ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.",
- "Units": [
- {
- "SingularName": "VoltAc",
- "PluralName": "VoltsAc",
- "FromUnitToBaseFunc": "{x}",
- "FromBaseToUnitFunc": "{x}",
- "Prefixes": [ "Micro", "Milli", "Kilo", "Mega" ],
- "Localization": [
- {
- "Culture": "en-US",
- "Abbreviations": [ "Vac" ]
- }
- ]
- }
- ]
-}
diff --git a/Common/UnitDefinitions/ElectricPotentialDc.json b/Common/UnitDefinitions/ElectricPotentialDc.json
deleted file mode 100644
index a79efda133..0000000000
--- a/Common/UnitDefinitions/ElectricPotentialDc.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "Name": "ElectricPotentialDc",
- "BaseUnit": "VoltDc",
- "XmlDocSummary": "The Electric Potential of a system known to use Direct Current.",
- "XmlDocRemarks": "ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.",
- "ObsoleteText": "ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.",
- "Units": [
- {
- "SingularName": "VoltDc",
- "PluralName": "VoltsDc",
- "FromUnitToBaseFunc": "{x}",
- "FromBaseToUnitFunc": "{x}",
- "Prefixes": [ "Micro", "Milli", "Kilo", "Mega" ],
- "Localization": [
- {
- "Culture": "en-US",
- "Abbreviations": [ "Vdc" ]
- }
- ]
- }
- ]
-}
diff --git a/Common/UnitDefinitions/ReactiveEnergy.json b/Common/UnitDefinitions/ReactiveEnergy.json
deleted file mode 100644
index 89a648ccc9..0000000000
--- a/Common/UnitDefinitions/ReactiveEnergy.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "Name": "ReactiveEnergy",
- "BaseUnit": "VoltampereReactiveHour",
- "XmlDocSummary": "The Volt-ampere reactive hour (expressed as varh) is the reactive power of one Volt-ampere reactive produced in one hour.",
- "XmlDocRemarks": "ReactiveEnergy has been renamed to ElectricReactiveEnergy, and will be removed in a later major version.",
- "ObsoleteText": "ReactiveEnergy has been renamed to ElectricReactiveEnergy, and will be removed in a later major version.",
- "BaseDimensions": {
- "L": 2,
- "M": 1,
- "T": -2
- },
- "Units": [
- {
- "SingularName": "VoltampereReactiveHour",
- "PluralName": "VoltampereReactiveHours",
- "FromUnitToBaseFunc": "{x}",
- "FromBaseToUnitFunc": "{x}",
- "Prefixes": [ "Kilo", "Mega" ],
- "Localization": [
- {
- "Culture": "en-US",
- "Abbreviations": [ "varh" ]
- }
- ]
- }
- ]
-}
diff --git a/Common/UnitDefinitions/ReactivePower.json b/Common/UnitDefinitions/ReactivePower.json
deleted file mode 100644
index 48a84dd22d..0000000000
--- a/Common/UnitDefinitions/ReactivePower.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "Name": "ReactivePower",
- "BaseUnit": "VoltampereReactive",
- "XmlDocSummary": "Volt-ampere reactive (var) is a unit by which reactive power is expressed in an AC electric power system. Reactive power exists in an AC circuit when the current and voltage are not in phase.",
- "XmlDocRemarks": "ReactivePower has been renamed to ElectricReactivePower, and will be removed in a later major version.",
- "ObsoleteText": "ReactivePower has been renamed to ElectricReactivePower, and will be removed in a later major version.",
- "BaseDimensions": {
- "L": 2,
- "M": 1,
- "T": -3
- },
- "Units": [
- {
- "SingularName": "VoltampereReactive",
- "PluralName": "VoltamperesReactive",
- "FromUnitToBaseFunc": "{x}",
- "FromBaseToUnitFunc": "{x}",
- "Prefixes": [ "Kilo", "Mega", "Giga" ],
- "Localization": [
- {
- "Culture": "en-US",
- "Abbreviations": [ "var" ]
- }
- ]
- }
- ]
-}
diff --git a/Common/UnitEnumValues.g.json b/Common/UnitEnumValues.g.json
index 31c1999660..aa5b0b6558 100644
--- a/Common/UnitEnumValues.g.json
+++ b/Common/UnitEnumValues.g.json
@@ -67,19 +67,6 @@
"Revolution": 15,
"Tilt": 16
},
- "ApparentEnergy": {
- "KilovoltampereHour": 1,
- "MegavoltampereHour": 2,
- "VoltampereHour": 3
- },
- "ApparentPower": {
- "Gigavoltampere": 1,
- "Kilovoltampere": 2,
- "Megavoltampere": 3,
- "Voltampere": 4,
- "Microvoltampere": 6,
- "Millivoltampere": 7
- },
"Area": {
"Acre": 1,
"Hectare": 2,
@@ -142,15 +129,6 @@
"KilogramPerJoule": 2,
"PoundPerMechanicalHorsepowerHour": 3
},
- "Capacitance": {
- "Farad": 1,
- "Kilofarad": 2,
- "Megafarad": 3,
- "Microfarad": 4,
- "Millifarad": 5,
- "Nanofarad": 6,
- "Picofarad": 7
- },
"CoefficientOfThermalExpansion": {
"InverseDegreeCelsius": 1,
"InverseDegreeFahrenheit": 2,
@@ -358,13 +336,6 @@
"Volt": 5,
"Nanovolt": 11
},
- "ElectricPotentialAc": {
- "KilovoltAc": 1,
- "MegavoltAc": 2,
- "MicrovoltAc": 3,
- "MillivoltAc": 4,
- "VoltAc": 5
- },
"ElectricPotentialChangeRate": {
"KilovoltPerHour": 1,
"KilovoltPerMicrosecond": 2,
@@ -387,13 +358,6 @@
"VoltPerMinute": 19,
"VoltPerSecond": 20
},
- "ElectricPotentialDc": {
- "KilovoltDc": 1,
- "MegavoltDc": 2,
- "MicrovoltDc": 3,
- "MillivoltDc": 4,
- "VoltDc": 5
- },
"ElectricResistance": {
"Gigaohm": 1,
"Kiloohm": 2,
@@ -1226,17 +1190,6 @@
"DecimalFractionPerSecond": 1,
"PercentPerSecond": 2
},
- "ReactiveEnergy": {
- "KilovoltampereReactiveHour": 1,
- "MegavoltampereReactiveHour": 2,
- "VoltampereReactiveHour": 3
- },
- "ReactivePower": {
- "GigavoltampereReactive": 1,
- "KilovoltampereReactive": 2,
- "MegavoltampereReactive": 3,
- "VoltampereReactive": 4
- },
"ReciprocalArea": {
"InverseSquareCentimeter": 1,
"InverseSquareDecimeter": 2,
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/ApparentEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/ApparentEnergy.nfproj
deleted file mode 100644
index 60d18e1638..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/ApparentEnergy.nfproj
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- $(MSBuildExtensionsPath)\nanoFramework\v1.0\
-
-
-
- Debug
- AnyCPU
- {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {6f80e841-e953-bc39-6670-8711f2ad9d18}
- Library
- Properties
- 512
- UnitsNet
- UnitsNet.ApparentEnergy
- v1.0
- bin\$(Configuration)\$(AssemblyName).xml
-
-
-
-
-
-
-
-
-
- ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll
- True
- True
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/UnitsNet.NanoFramework.ApparentEnergy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/UnitsNet.NanoFramework.ApparentEnergy.nuspec
deleted file mode 100644
index 6ed1479482..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/UnitsNet.NanoFramework.ApparentEnergy.nuspec
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- UnitsNet.nanoFramework.ApparentEnergy
- 6.0.0-pre012
- Units.NET ApparentEnergy - nanoFramework
- Andreas Gullberg Larsen,nanoframework
- UnitsNet
- MIT-0
- https://github.com/angularsen/UnitsNet
- false
- Adds ApparentEnergy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.
- https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png
-
-
- Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).
- en-US
- nanoframework apparentenergy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/packages.config
deleted file mode 100644
index 313a8dccdf..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/ApparentPower.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/ApparentPower.nfproj
deleted file mode 100644
index f82107c647..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/ApparentPower.nfproj
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- $(MSBuildExtensionsPath)\nanoFramework\v1.0\
-
-
-
- Debug
- AnyCPU
- {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {88b9a61a-b21b-97cc-ef89-78d1e3ff7767}
- Library
- Properties
- 512
- UnitsNet
- UnitsNet.ApparentPower
- v1.0
- bin\$(Configuration)\$(AssemblyName).xml
-
-
-
-
-
-
-
-
-
- ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll
- True
- True
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/UnitsNet.NanoFramework.ApparentPower.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/UnitsNet.NanoFramework.ApparentPower.nuspec
deleted file mode 100644
index d729b6f4ac..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/UnitsNet.NanoFramework.ApparentPower.nuspec
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- UnitsNet.nanoFramework.ApparentPower
- 6.0.0-pre012
- Units.NET ApparentPower - nanoFramework
- Andreas Gullberg Larsen,nanoframework
- UnitsNet
- MIT-0
- https://github.com/angularsen/UnitsNet
- false
- Adds ApparentPower units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.
- https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png
-
-
- Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).
- en-US
- nanoframework apparentpower unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/packages.config
deleted file mode 100644
index 313a8dccdf..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/Capacitance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Capacitance/Capacitance.nfproj
deleted file mode 100644
index 3b421513e0..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/Capacitance.nfproj
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- $(MSBuildExtensionsPath)\nanoFramework\v1.0\
-
-
-
- Debug
- AnyCPU
- {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {c1351fc7-d3d8-c3ce-0715-ad8e18ab8c94}
- Library
- Properties
- 512
- UnitsNet
- UnitsNet.Capacitance
- v1.0
- bin\$(Configuration)\$(AssemblyName).xml
-
-
-
-
-
-
-
-
-
- ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll
- True
- True
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/UnitsNet.NanoFramework.Capacitance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Capacitance/UnitsNet.NanoFramework.Capacitance.nuspec
deleted file mode 100644
index 883f737d9a..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/UnitsNet.NanoFramework.Capacitance.nuspec
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- UnitsNet.nanoFramework.Capacitance
- 6.0.0-pre012
- Units.NET Capacitance - nanoFramework
- Andreas Gullberg Larsen,nanoframework
- UnitsNet
- MIT-0
- https://github.com/angularsen/UnitsNet
- false
- Adds Capacitance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.
- https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png
-
-
- Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).
- en-US
- nanoframework capacitance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Capacitance/packages.config
deleted file mode 100644
index 313a8dccdf..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/ElectricPotentialAc.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/ElectricPotentialAc.nfproj
deleted file mode 100644
index 130a015fdd..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/ElectricPotentialAc.nfproj
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- $(MSBuildExtensionsPath)\nanoFramework\v1.0\
-
-
-
- Debug
- AnyCPU
- {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {ab1339ec-f1d8-6abf-093e-1525ee231a9d}
- Library
- Properties
- 512
- UnitsNet
- UnitsNet.ElectricPotentialAc
- v1.0
- bin\$(Configuration)\$(AssemblyName).xml
-
-
-
-
-
-
-
-
-
- ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll
- True
- True
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/UnitsNet.NanoFramework.ElectricPotentialAc.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/UnitsNet.NanoFramework.ElectricPotentialAc.nuspec
deleted file mode 100644
index bb0a48a3e9..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/UnitsNet.NanoFramework.ElectricPotentialAc.nuspec
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- UnitsNet.nanoFramework.ElectricPotentialAc
- 6.0.0-pre012
- Units.NET ElectricPotentialAc - nanoFramework
- Andreas Gullberg Larsen,nanoframework
- UnitsNet
- MIT-0
- https://github.com/angularsen/UnitsNet
- false
- Adds ElectricPotentialAc units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.
- https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png
-
-
- Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).
- en-US
- nanoframework electricpotentialac unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/packages.config
deleted file mode 100644
index 313a8dccdf..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/ElectricPotentialDc.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/ElectricPotentialDc.nfproj
deleted file mode 100644
index 197f9efd60..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/ElectricPotentialDc.nfproj
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- $(MSBuildExtensionsPath)\nanoFramework\v1.0\
-
-
-
- Debug
- AnyCPU
- {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {27ebf863-3ee7-ddb0-08ab-8577438a8f1c}
- Library
- Properties
- 512
- UnitsNet
- UnitsNet.ElectricPotentialDc
- v1.0
- bin\$(Configuration)\$(AssemblyName).xml
-
-
-
-
-
-
-
-
-
- ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll
- True
- True
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/UnitsNet.NanoFramework.ElectricPotentialDc.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/UnitsNet.NanoFramework.ElectricPotentialDc.nuspec
deleted file mode 100644
index f36f5c453b..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/UnitsNet.NanoFramework.ElectricPotentialDc.nuspec
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- UnitsNet.nanoFramework.ElectricPotentialDc
- 6.0.0-pre012
- Units.NET ElectricPotentialDc - nanoFramework
- Andreas Gullberg Larsen,nanoframework
- UnitsNet
- MIT-0
- https://github.com/angularsen/UnitsNet
- false
- Adds ElectricPotentialDc units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.
- https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png
-
-
- Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).
- en-US
- nanoframework electricpotentialdc unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/packages.config
deleted file mode 100644
index 313a8dccdf..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ApparentEnergy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ApparentEnergy.g.cs
deleted file mode 100644
index 912262b2b7..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ApparentEnergy.g.cs
+++ /dev/null
@@ -1,185 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-using UnitsNet.Units;
-
-namespace UnitsNet
-{
- ///
- ///
- /// A unit for expressing the integral of apparent power over time, equal to the product of 1 volt-ampere and 1 hour, or to 3600 joules.
- ///
- ///
- /// ApparentEnergy has been renamed to ElectricApparentEnergy, and will be removed in a later major version.
- ///
- [Obsolete("ApparentEnergy has been renamed to ElectricApparentEnergy, and will be removed in a later major version.")]
- public struct ApparentEnergy
- {
- ///
- /// The numeric value this quantity was constructed with.
- ///
- private readonly double _value;
-
- ///
- /// The unit this quantity was constructed with.
- ///
- private readonly ApparentEnergyUnit _unit;
-
- ///
- /// The numeric value this quantity was constructed with.
- ///
- public double Value => _value;
-
- ///
- public ApparentEnergyUnit Unit => _unit;
-
- ///
- /// Creates the quantity with the given numeric value and unit.
- ///
- /// The numeric value to construct this quantity with.
- /// The unit representation to construct this quantity with.
- public ApparentEnergy(double value, ApparentEnergyUnit unit)
- {
- _value = value;
- _unit = unit;
- }
-
- ///
- /// The base unit of ApparentEnergy, which is Second. All conversions go via this value.
- ///
- public static ApparentEnergyUnit BaseUnit { get; } = ApparentEnergyUnit.VoltampereHour;
-
- ///
- /// Represents the largest possible value of ApparentEnergy.
- ///
- public static ApparentEnergy MaxValue { get; } = new ApparentEnergy(double.MaxValue, BaseUnit);
-
- ///
- /// Represents the smallest possible value of ApparentEnergy.
- ///
- public static ApparentEnergy MinValue { get; } = new ApparentEnergy(double.MinValue, BaseUnit);
-
- ///
- /// Gets an instance of this quantity with a value of 0 in the base unit Second.
- ///
- public static ApparentEnergy Zero { get; } = new ApparentEnergy(0, BaseUnit);
- #region Conversion Properties
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double KilovoltampereHours => As(ApparentEnergyUnit.KilovoltampereHour);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double MegavoltampereHours => As(ApparentEnergyUnit.MegavoltampereHour);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double VoltampereHours => As(ApparentEnergyUnit.VoltampereHour);
-
- #endregion
-
- #region Static Factory Methods
-
- ///
- /// Creates a from .
- ///
- public static ApparentEnergy FromKilovoltampereHours(double kilovoltamperehours) => new ApparentEnergy(kilovoltamperehours, ApparentEnergyUnit.KilovoltampereHour);
-
- ///
- /// Creates a from .
- ///
- public static ApparentEnergy FromMegavoltampereHours(double megavoltamperehours) => new ApparentEnergy(megavoltamperehours, ApparentEnergyUnit.MegavoltampereHour);
-
- ///
- /// Creates a from .
- ///
- public static ApparentEnergy FromVoltampereHours(double voltamperehours) => new ApparentEnergy(voltamperehours, ApparentEnergyUnit.VoltampereHour);
-
- ///
- /// Dynamically convert from value and unit enum to .
- ///
- /// Value to convert from.
- /// Unit to convert from.
- /// ApparentEnergy unit value.
- public static ApparentEnergy From(double value, ApparentEnergyUnit fromUnit)
- {
- return new ApparentEnergy(value, fromUnit);
- }
-
- #endregion
-
- #region Conversion Methods
-
- ///
- /// Convert to the unit representation .
- ///
- /// Value converted to the specified unit.
- public double As(ApparentEnergyUnit unit) => GetValueAs(unit);
-
- ///
- /// Converts this ApparentEnergy to another ApparentEnergy with the unit representation .
- ///
- /// A ApparentEnergy with the specified unit.
- public ApparentEnergy ToUnit(ApparentEnergyUnit unit)
- {
- var convertedValue = GetValueAs(unit);
- return new ApparentEnergy(convertedValue, unit);
- }
-
- ///
- /// Converts the current value + unit to the base unit.
- /// This is typically the first step in converting from one unit to another.
- ///
- /// The value in the base unit representation.
- private double GetValueInBaseUnit()
- {
- return Unit switch
- {
- ApparentEnergyUnit.KilovoltampereHour => (_value) * 1e3d,
- ApparentEnergyUnit.MegavoltampereHour => (_value) * 1e6d,
- ApparentEnergyUnit.VoltampereHour => _value,
- _ => throw new NotImplementedException($"Can not convert {Unit} to base units.")
- };
- }
-
- private double GetValueAs(ApparentEnergyUnit unit)
- {
- if (Unit == unit)
- return _value;
-
- var baseUnitValue = GetValueInBaseUnit();
-
- return unit switch
- {
- ApparentEnergyUnit.KilovoltampereHour => (baseUnitValue) / 1e3d,
- ApparentEnergyUnit.MegavoltampereHour => (baseUnitValue) / 1e6d,
- ApparentEnergyUnit.VoltampereHour => baseUnitValue,
- _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.")
- };
- }
-
- #endregion
- }
-}
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ApparentPower.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ApparentPower.g.cs
deleted file mode 100644
index 8b15504592..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ApparentPower.g.cs
+++ /dev/null
@@ -1,221 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-using UnitsNet.Units;
-
-namespace UnitsNet
-{
- ///
- ///
- /// Power engineers measure apparent power as the magnitude of the vector sum of active and reactive power. Apparent power is the product of the root-mean-square of voltage and current.
- ///
- ///
- /// ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.
- ///
- [Obsolete("ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.")]
- public struct ApparentPower
- {
- ///
- /// The numeric value this quantity was constructed with.
- ///
- private readonly double _value;
-
- ///
- /// The unit this quantity was constructed with.
- ///
- private readonly ApparentPowerUnit _unit;
-
- ///
- /// The numeric value this quantity was constructed with.
- ///
- public double Value => _value;
-
- ///
- public ApparentPowerUnit Unit => _unit;
-
- ///
- /// Creates the quantity with the given numeric value and unit.
- ///
- /// The numeric value to construct this quantity with.
- /// The unit representation to construct this quantity with.
- public ApparentPower(double value, ApparentPowerUnit unit)
- {
- _value = value;
- _unit = unit;
- }
-
- ///
- /// The base unit of ApparentPower, which is Second. All conversions go via this value.
- ///
- public static ApparentPowerUnit BaseUnit { get; } = ApparentPowerUnit.Voltampere;
-
- ///
- /// Represents the largest possible value of ApparentPower.
- ///
- public static ApparentPower MaxValue { get; } = new ApparentPower(double.MaxValue, BaseUnit);
-
- ///
- /// Represents the smallest possible value of ApparentPower.
- ///
- public static ApparentPower MinValue { get; } = new ApparentPower(double.MinValue, BaseUnit);
-
- ///
- /// Gets an instance of this quantity with a value of 0 in the base unit Second.
- ///
- public static ApparentPower Zero { get; } = new ApparentPower(0, BaseUnit);
- #region Conversion Properties
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Gigavoltamperes => As(ApparentPowerUnit.Gigavoltampere);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Kilovoltamperes => As(ApparentPowerUnit.Kilovoltampere);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Megavoltamperes => As(ApparentPowerUnit.Megavoltampere);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Microvoltamperes => As(ApparentPowerUnit.Microvoltampere);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Millivoltamperes => As(ApparentPowerUnit.Millivoltampere);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Voltamperes => As(ApparentPowerUnit.Voltampere);
-
- #endregion
-
- #region Static Factory Methods
-
- ///
- /// Creates a from .
- ///
- public static ApparentPower FromGigavoltamperes(double gigavoltamperes) => new ApparentPower(gigavoltamperes, ApparentPowerUnit.Gigavoltampere);
-
- ///
- /// Creates a from .
- ///
- public static ApparentPower FromKilovoltamperes(double kilovoltamperes) => new ApparentPower(kilovoltamperes, ApparentPowerUnit.Kilovoltampere);
-
- ///
- /// Creates a from .
- ///
- public static ApparentPower FromMegavoltamperes(double megavoltamperes) => new ApparentPower(megavoltamperes, ApparentPowerUnit.Megavoltampere);
-
- ///
- /// Creates a from .
- ///
- public static ApparentPower FromMicrovoltamperes(double microvoltamperes) => new ApparentPower(microvoltamperes, ApparentPowerUnit.Microvoltampere);
-
- ///
- /// Creates a from .
- ///
- public static ApparentPower FromMillivoltamperes(double millivoltamperes) => new ApparentPower(millivoltamperes, ApparentPowerUnit.Millivoltampere);
-
- ///
- /// Creates a from .
- ///
- public static ApparentPower FromVoltamperes(double voltamperes) => new ApparentPower(voltamperes, ApparentPowerUnit.Voltampere);
-
- ///
- /// Dynamically convert from value and unit enum to .
- ///
- /// Value to convert from.
- /// Unit to convert from.
- /// ApparentPower unit value.
- public static ApparentPower From(double value, ApparentPowerUnit fromUnit)
- {
- return new ApparentPower(value, fromUnit);
- }
-
- #endregion
-
- #region Conversion Methods
-
- ///
- /// Convert to the unit representation .
- ///
- /// Value converted to the specified unit.
- public double As(ApparentPowerUnit unit) => GetValueAs(unit);
-
- ///
- /// Converts this ApparentPower to another ApparentPower with the unit representation .
- ///
- /// A ApparentPower with the specified unit.
- public ApparentPower ToUnit(ApparentPowerUnit unit)
- {
- var convertedValue = GetValueAs(unit);
- return new ApparentPower(convertedValue, unit);
- }
-
- ///
- /// Converts the current value + unit to the base unit.
- /// This is typically the first step in converting from one unit to another.
- ///
- /// The value in the base unit representation.
- private double GetValueInBaseUnit()
- {
- return Unit switch
- {
- ApparentPowerUnit.Gigavoltampere => (_value) * 1e9d,
- ApparentPowerUnit.Kilovoltampere => (_value) * 1e3d,
- ApparentPowerUnit.Megavoltampere => (_value) * 1e6d,
- ApparentPowerUnit.Microvoltampere => (_value) * 1e-6d,
- ApparentPowerUnit.Millivoltampere => (_value) * 1e-3d,
- ApparentPowerUnit.Voltampere => _value,
- _ => throw new NotImplementedException($"Can not convert {Unit} to base units.")
- };
- }
-
- private double GetValueAs(ApparentPowerUnit unit)
- {
- if (Unit == unit)
- return _value;
-
- var baseUnitValue = GetValueInBaseUnit();
-
- return unit switch
- {
- ApparentPowerUnit.Gigavoltampere => (baseUnitValue) / 1e9d,
- ApparentPowerUnit.Kilovoltampere => (baseUnitValue) / 1e3d,
- ApparentPowerUnit.Megavoltampere => (baseUnitValue) / 1e6d,
- ApparentPowerUnit.Microvoltampere => (baseUnitValue) / 1e-6d,
- ApparentPowerUnit.Millivoltampere => (baseUnitValue) / 1e-3d,
- ApparentPowerUnit.Voltampere => baseUnitValue,
- _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.")
- };
- }
-
- #endregion
- }
-}
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Capacitance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Capacitance.g.cs
deleted file mode 100644
index 68886a6e22..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Capacitance.g.cs
+++ /dev/null
@@ -1,233 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-using UnitsNet.Units;
-
-namespace UnitsNet
-{
- ///
- ///
- /// Capacitance is the ability of a body to store an electric charge.
- ///
- ///
- /// Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.
- ///
- [Obsolete("Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.")]
- public struct Capacitance
- {
- ///
- /// The numeric value this quantity was constructed with.
- ///
- private readonly double _value;
-
- ///
- /// The unit this quantity was constructed with.
- ///
- private readonly CapacitanceUnit _unit;
-
- ///
- /// The numeric value this quantity was constructed with.
- ///
- public double Value => _value;
-
- ///
- public CapacitanceUnit Unit => _unit;
-
- ///
- /// Creates the quantity with the given numeric value and unit.
- ///
- /// The numeric value to construct this quantity with.
- /// The unit representation to construct this quantity with.
- public Capacitance(double value, CapacitanceUnit unit)
- {
- _value = value;
- _unit = unit;
- }
-
- ///
- /// The base unit of Capacitance, which is Second. All conversions go via this value.
- ///
- public static CapacitanceUnit BaseUnit { get; } = CapacitanceUnit.Farad;
-
- ///
- /// Represents the largest possible value of Capacitance.
- ///
- public static Capacitance MaxValue { get; } = new Capacitance(double.MaxValue, BaseUnit);
-
- ///
- /// Represents the smallest possible value of Capacitance.
- ///
- public static Capacitance MinValue { get; } = new Capacitance(double.MinValue, BaseUnit);
-
- ///
- /// Gets an instance of this quantity with a value of 0 in the base unit Second.
- ///
- public static Capacitance Zero { get; } = new Capacitance(0, BaseUnit);
- #region Conversion Properties
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Farads => As(CapacitanceUnit.Farad);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Kilofarads => As(CapacitanceUnit.Kilofarad);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Megafarads => As(CapacitanceUnit.Megafarad);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Microfarads => As(CapacitanceUnit.Microfarad);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Millifarads => As(CapacitanceUnit.Millifarad);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Nanofarads => As(CapacitanceUnit.Nanofarad);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double Picofarads => As(CapacitanceUnit.Picofarad);
-
- #endregion
-
- #region Static Factory Methods
-
- ///
- /// Creates a from .
- ///
- public static Capacitance FromFarads(double farads) => new Capacitance(farads, CapacitanceUnit.Farad);
-
- ///
- /// Creates a from .
- ///
- public static Capacitance FromKilofarads(double kilofarads) => new Capacitance(kilofarads, CapacitanceUnit.Kilofarad);
-
- ///
- /// Creates a from .
- ///
- public static Capacitance FromMegafarads(double megafarads) => new Capacitance(megafarads, CapacitanceUnit.Megafarad);
-
- ///
- /// Creates a from .
- ///
- public static Capacitance FromMicrofarads(double microfarads) => new Capacitance(microfarads, CapacitanceUnit.Microfarad);
-
- ///
- /// Creates a from .
- ///
- public static Capacitance FromMillifarads(double millifarads) => new Capacitance(millifarads, CapacitanceUnit.Millifarad);
-
- ///
- /// Creates a from .
- ///
- public static Capacitance FromNanofarads(double nanofarads) => new Capacitance(nanofarads, CapacitanceUnit.Nanofarad);
-
- ///
- /// Creates a from .
- ///
- public static Capacitance FromPicofarads(double picofarads) => new Capacitance(picofarads, CapacitanceUnit.Picofarad);
-
- ///
- /// Dynamically convert from value and unit enum to .
- ///
- /// Value to convert from.
- /// Unit to convert from.
- /// Capacitance unit value.
- public static Capacitance From(double value, CapacitanceUnit fromUnit)
- {
- return new Capacitance(value, fromUnit);
- }
-
- #endregion
-
- #region Conversion Methods
-
- ///
- /// Convert to the unit representation .
- ///
- /// Value converted to the specified unit.
- public double As(CapacitanceUnit unit) => GetValueAs(unit);
-
- ///
- /// Converts this Capacitance to another Capacitance with the unit representation .
- ///
- /// A Capacitance with the specified unit.
- public Capacitance ToUnit(CapacitanceUnit unit)
- {
- var convertedValue = GetValueAs(unit);
- return new Capacitance(convertedValue, unit);
- }
-
- ///
- /// Converts the current value + unit to the base unit.
- /// This is typically the first step in converting from one unit to another.
- ///
- /// The value in the base unit representation.
- private double GetValueInBaseUnit()
- {
- return Unit switch
- {
- CapacitanceUnit.Farad => _value,
- CapacitanceUnit.Kilofarad => (_value) * 1e3d,
- CapacitanceUnit.Megafarad => (_value) * 1e6d,
- CapacitanceUnit.Microfarad => (_value) * 1e-6d,
- CapacitanceUnit.Millifarad => (_value) * 1e-3d,
- CapacitanceUnit.Nanofarad => (_value) * 1e-9d,
- CapacitanceUnit.Picofarad => (_value) * 1e-12d,
- _ => throw new NotImplementedException($"Can not convert {Unit} to base units.")
- };
- }
-
- private double GetValueAs(CapacitanceUnit unit)
- {
- if (Unit == unit)
- return _value;
-
- var baseUnitValue = GetValueInBaseUnit();
-
- return unit switch
- {
- CapacitanceUnit.Farad => baseUnitValue,
- CapacitanceUnit.Kilofarad => (baseUnitValue) / 1e3d,
- CapacitanceUnit.Megafarad => (baseUnitValue) / 1e6d,
- CapacitanceUnit.Microfarad => (baseUnitValue) / 1e-6d,
- CapacitanceUnit.Millifarad => (baseUnitValue) / 1e-3d,
- CapacitanceUnit.Nanofarad => (baseUnitValue) / 1e-9d,
- CapacitanceUnit.Picofarad => (baseUnitValue) / 1e-12d,
- _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.")
- };
- }
-
- #endregion
- }
-}
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialAc.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
deleted file mode 100644
index 8dbac64546..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
+++ /dev/null
@@ -1,209 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-using UnitsNet.Units;
-
-namespace UnitsNet
-{
- ///
- ///
- /// The Electric Potential of a system known to use Alternating Current.
- ///
- ///
- /// ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.
- ///
- [Obsolete("ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public struct ElectricPotentialAc
- {
- ///
- /// The numeric value this quantity was constructed with.
- ///
- private readonly double _value;
-
- ///
- /// The unit this quantity was constructed with.
- ///
- private readonly ElectricPotentialAcUnit _unit;
-
- ///
- /// The numeric value this quantity was constructed with.
- ///
- public double Value => _value;
-
- ///
- public ElectricPotentialAcUnit Unit => _unit;
-
- ///
- /// Creates the quantity with the given numeric value and unit.
- ///
- /// The numeric value to construct this quantity with.
- /// The unit representation to construct this quantity with.
- public ElectricPotentialAc(double value, ElectricPotentialAcUnit unit)
- {
- _value = value;
- _unit = unit;
- }
-
- ///
- /// The base unit of ElectricPotentialAc, which is Second. All conversions go via this value.
- ///
- public static ElectricPotentialAcUnit BaseUnit { get; } = ElectricPotentialAcUnit.VoltAc;
-
- ///
- /// Represents the largest possible value of ElectricPotentialAc.
- ///
- public static ElectricPotentialAc MaxValue { get; } = new ElectricPotentialAc(double.MaxValue, BaseUnit);
-
- ///
- /// Represents the smallest possible value of ElectricPotentialAc.
- ///
- public static ElectricPotentialAc MinValue { get; } = new ElectricPotentialAc(double.MinValue, BaseUnit);
-
- ///
- /// Gets an instance of this quantity with a value of 0 in the base unit Second.
- ///
- public static ElectricPotentialAc Zero { get; } = new ElectricPotentialAc(0, BaseUnit);
- #region Conversion Properties
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double KilovoltsAc => As(ElectricPotentialAcUnit.KilovoltAc);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double MegavoltsAc => As(ElectricPotentialAcUnit.MegavoltAc);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double MicrovoltsAc => As(ElectricPotentialAcUnit.MicrovoltAc);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double MillivoltsAc => As(ElectricPotentialAcUnit.MillivoltAc);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double VoltsAc => As(ElectricPotentialAcUnit.VoltAc);
-
- #endregion
-
- #region Static Factory Methods
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialAc FromKilovoltsAc(double kilovoltsac) => new ElectricPotentialAc(kilovoltsac, ElectricPotentialAcUnit.KilovoltAc);
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialAc FromMegavoltsAc(double megavoltsac) => new ElectricPotentialAc(megavoltsac, ElectricPotentialAcUnit.MegavoltAc);
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialAc FromMicrovoltsAc(double microvoltsac) => new ElectricPotentialAc(microvoltsac, ElectricPotentialAcUnit.MicrovoltAc);
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialAc FromMillivoltsAc(double millivoltsac) => new ElectricPotentialAc(millivoltsac, ElectricPotentialAcUnit.MillivoltAc);
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialAc FromVoltsAc(double voltsac) => new ElectricPotentialAc(voltsac, ElectricPotentialAcUnit.VoltAc);
-
- ///
- /// Dynamically convert from value and unit enum to .
- ///
- /// Value to convert from.
- /// Unit to convert from.
- /// ElectricPotentialAc unit value.
- public static ElectricPotentialAc From(double value, ElectricPotentialAcUnit fromUnit)
- {
- return new ElectricPotentialAc(value, fromUnit);
- }
-
- #endregion
-
- #region Conversion Methods
-
- ///
- /// Convert to the unit representation .
- ///
- /// Value converted to the specified unit.
- public double As(ElectricPotentialAcUnit unit) => GetValueAs(unit);
-
- ///
- /// Converts this ElectricPotentialAc to another ElectricPotentialAc with the unit representation .
- ///
- /// A ElectricPotentialAc with the specified unit.
- public ElectricPotentialAc ToUnit(ElectricPotentialAcUnit unit)
- {
- var convertedValue = GetValueAs(unit);
- return new ElectricPotentialAc(convertedValue, unit);
- }
-
- ///
- /// Converts the current value + unit to the base unit.
- /// This is typically the first step in converting from one unit to another.
- ///
- /// The value in the base unit representation.
- private double GetValueInBaseUnit()
- {
- return Unit switch
- {
- ElectricPotentialAcUnit.KilovoltAc => (_value) * 1e3d,
- ElectricPotentialAcUnit.MegavoltAc => (_value) * 1e6d,
- ElectricPotentialAcUnit.MicrovoltAc => (_value) * 1e-6d,
- ElectricPotentialAcUnit.MillivoltAc => (_value) * 1e-3d,
- ElectricPotentialAcUnit.VoltAc => _value,
- _ => throw new NotImplementedException($"Can not convert {Unit} to base units.")
- };
- }
-
- private double GetValueAs(ElectricPotentialAcUnit unit)
- {
- if (Unit == unit)
- return _value;
-
- var baseUnitValue = GetValueInBaseUnit();
-
- return unit switch
- {
- ElectricPotentialAcUnit.KilovoltAc => (baseUnitValue) / 1e3d,
- ElectricPotentialAcUnit.MegavoltAc => (baseUnitValue) / 1e6d,
- ElectricPotentialAcUnit.MicrovoltAc => (baseUnitValue) / 1e-6d,
- ElectricPotentialAcUnit.MillivoltAc => (baseUnitValue) / 1e-3d,
- ElectricPotentialAcUnit.VoltAc => baseUnitValue,
- _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.")
- };
- }
-
- #endregion
- }
-}
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialDc.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
deleted file mode 100644
index 327652c72f..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
+++ /dev/null
@@ -1,209 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-using UnitsNet.Units;
-
-namespace UnitsNet
-{
- ///
- ///
- /// The Electric Potential of a system known to use Direct Current.
- ///
- ///
- /// ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.
- ///
- [Obsolete("ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public struct ElectricPotentialDc
- {
- ///
- /// The numeric value this quantity was constructed with.
- ///
- private readonly double _value;
-
- ///
- /// The unit this quantity was constructed with.
- ///
- private readonly ElectricPotentialDcUnit _unit;
-
- ///
- /// The numeric value this quantity was constructed with.
- ///
- public double Value => _value;
-
- ///
- public ElectricPotentialDcUnit Unit => _unit;
-
- ///
- /// Creates the quantity with the given numeric value and unit.
- ///
- /// The numeric value to construct this quantity with.
- /// The unit representation to construct this quantity with.
- public ElectricPotentialDc(double value, ElectricPotentialDcUnit unit)
- {
- _value = value;
- _unit = unit;
- }
-
- ///
- /// The base unit of ElectricPotentialDc, which is Second. All conversions go via this value.
- ///
- public static ElectricPotentialDcUnit BaseUnit { get; } = ElectricPotentialDcUnit.VoltDc;
-
- ///
- /// Represents the largest possible value of ElectricPotentialDc.
- ///
- public static ElectricPotentialDc MaxValue { get; } = new ElectricPotentialDc(double.MaxValue, BaseUnit);
-
- ///
- /// Represents the smallest possible value of ElectricPotentialDc.
- ///
- public static ElectricPotentialDc MinValue { get; } = new ElectricPotentialDc(double.MinValue, BaseUnit);
-
- ///
- /// Gets an instance of this quantity with a value of 0 in the base unit Second.
- ///
- public static ElectricPotentialDc Zero { get; } = new ElectricPotentialDc(0, BaseUnit);
- #region Conversion Properties
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double KilovoltsDc => As(ElectricPotentialDcUnit.KilovoltDc);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double MegavoltsDc => As(ElectricPotentialDcUnit.MegavoltDc);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double MicrovoltsDc => As(ElectricPotentialDcUnit.MicrovoltDc);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double MillivoltsDc => As(ElectricPotentialDcUnit.MillivoltDc);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double VoltsDc => As(ElectricPotentialDcUnit.VoltDc);
-
- #endregion
-
- #region Static Factory Methods
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialDc FromKilovoltsDc(double kilovoltsdc) => new ElectricPotentialDc(kilovoltsdc, ElectricPotentialDcUnit.KilovoltDc);
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialDc FromMegavoltsDc(double megavoltsdc) => new ElectricPotentialDc(megavoltsdc, ElectricPotentialDcUnit.MegavoltDc);
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialDc FromMicrovoltsDc(double microvoltsdc) => new ElectricPotentialDc(microvoltsdc, ElectricPotentialDcUnit.MicrovoltDc);
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialDc FromMillivoltsDc(double millivoltsdc) => new ElectricPotentialDc(millivoltsdc, ElectricPotentialDcUnit.MillivoltDc);
-
- ///
- /// Creates a from .
- ///
- public static ElectricPotentialDc FromVoltsDc(double voltsdc) => new ElectricPotentialDc(voltsdc, ElectricPotentialDcUnit.VoltDc);
-
- ///
- /// Dynamically convert from value and unit enum to .
- ///
- /// Value to convert from.
- /// Unit to convert from.
- /// ElectricPotentialDc unit value.
- public static ElectricPotentialDc From(double value, ElectricPotentialDcUnit fromUnit)
- {
- return new ElectricPotentialDc(value, fromUnit);
- }
-
- #endregion
-
- #region Conversion Methods
-
- ///
- /// Convert to the unit representation .
- ///
- /// Value converted to the specified unit.
- public double As(ElectricPotentialDcUnit unit) => GetValueAs(unit);
-
- ///
- /// Converts this ElectricPotentialDc to another ElectricPotentialDc with the unit representation .
- ///
- /// A ElectricPotentialDc with the specified unit.
- public ElectricPotentialDc ToUnit(ElectricPotentialDcUnit unit)
- {
- var convertedValue = GetValueAs(unit);
- return new ElectricPotentialDc(convertedValue, unit);
- }
-
- ///
- /// Converts the current value + unit to the base unit.
- /// This is typically the first step in converting from one unit to another.
- ///
- /// The value in the base unit representation.
- private double GetValueInBaseUnit()
- {
- return Unit switch
- {
- ElectricPotentialDcUnit.KilovoltDc => (_value) * 1e3d,
- ElectricPotentialDcUnit.MegavoltDc => (_value) * 1e6d,
- ElectricPotentialDcUnit.MicrovoltDc => (_value) * 1e-6d,
- ElectricPotentialDcUnit.MillivoltDc => (_value) * 1e-3d,
- ElectricPotentialDcUnit.VoltDc => _value,
- _ => throw new NotImplementedException($"Can not convert {Unit} to base units.")
- };
- }
-
- private double GetValueAs(ElectricPotentialDcUnit unit)
- {
- if (Unit == unit)
- return _value;
-
- var baseUnitValue = GetValueInBaseUnit();
-
- return unit switch
- {
- ElectricPotentialDcUnit.KilovoltDc => (baseUnitValue) / 1e3d,
- ElectricPotentialDcUnit.MegavoltDc => (baseUnitValue) / 1e6d,
- ElectricPotentialDcUnit.MicrovoltDc => (baseUnitValue) / 1e-6d,
- ElectricPotentialDcUnit.MillivoltDc => (baseUnitValue) / 1e-3d,
- ElectricPotentialDcUnit.VoltDc => baseUnitValue,
- _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.")
- };
- }
-
- #endregion
- }
-}
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReactiveEnergy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReactiveEnergy.g.cs
deleted file mode 100644
index a1a2800d3d..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReactiveEnergy.g.cs
+++ /dev/null
@@ -1,185 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-using UnitsNet.Units;
-
-namespace UnitsNet
-{
- ///
- ///
- /// The Volt-ampere reactive hour (expressed as varh) is the reactive power of one Volt-ampere reactive produced in one hour.
- ///
- ///
- /// ReactiveEnergy has been renamed to ElectricReactiveEnergy, and will be removed in a later major version.
- ///
- [Obsolete("ReactiveEnergy has been renamed to ElectricReactiveEnergy, and will be removed in a later major version.")]
- public struct ReactiveEnergy
- {
- ///
- /// The numeric value this quantity was constructed with.
- ///
- private readonly double _value;
-
- ///
- /// The unit this quantity was constructed with.
- ///
- private readonly ReactiveEnergyUnit _unit;
-
- ///
- /// The numeric value this quantity was constructed with.
- ///
- public double Value => _value;
-
- ///
- public ReactiveEnergyUnit Unit => _unit;
-
- ///
- /// Creates the quantity with the given numeric value and unit.
- ///
- /// The numeric value to construct this quantity with.
- /// The unit representation to construct this quantity with.
- public ReactiveEnergy(double value, ReactiveEnergyUnit unit)
- {
- _value = value;
- _unit = unit;
- }
-
- ///
- /// The base unit of ReactiveEnergy, which is Second. All conversions go via this value.
- ///
- public static ReactiveEnergyUnit BaseUnit { get; } = ReactiveEnergyUnit.VoltampereReactiveHour;
-
- ///
- /// Represents the largest possible value of ReactiveEnergy.
- ///
- public static ReactiveEnergy MaxValue { get; } = new ReactiveEnergy(double.MaxValue, BaseUnit);
-
- ///
- /// Represents the smallest possible value of ReactiveEnergy.
- ///
- public static ReactiveEnergy MinValue { get; } = new ReactiveEnergy(double.MinValue, BaseUnit);
-
- ///
- /// Gets an instance of this quantity with a value of 0 in the base unit Second.
- ///
- public static ReactiveEnergy Zero { get; } = new ReactiveEnergy(0, BaseUnit);
- #region Conversion Properties
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double KilovoltampereReactiveHours => As(ReactiveEnergyUnit.KilovoltampereReactiveHour);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double MegavoltampereReactiveHours => As(ReactiveEnergyUnit.MegavoltampereReactiveHour);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double VoltampereReactiveHours => As(ReactiveEnergyUnit.VoltampereReactiveHour);
-
- #endregion
-
- #region Static Factory Methods
-
- ///
- /// Creates a from .
- ///
- public static ReactiveEnergy FromKilovoltampereReactiveHours(double kilovoltamperereactivehours) => new ReactiveEnergy(kilovoltamperereactivehours, ReactiveEnergyUnit.KilovoltampereReactiveHour);
-
- ///
- /// Creates a from .
- ///
- public static ReactiveEnergy FromMegavoltampereReactiveHours(double megavoltamperereactivehours) => new ReactiveEnergy(megavoltamperereactivehours, ReactiveEnergyUnit.MegavoltampereReactiveHour);
-
- ///
- /// Creates a from .
- ///
- public static ReactiveEnergy FromVoltampereReactiveHours(double voltamperereactivehours) => new ReactiveEnergy(voltamperereactivehours, ReactiveEnergyUnit.VoltampereReactiveHour);
-
- ///
- /// Dynamically convert from value and unit enum to .
- ///
- /// Value to convert from.
- /// Unit to convert from.
- /// ReactiveEnergy unit value.
- public static ReactiveEnergy From(double value, ReactiveEnergyUnit fromUnit)
- {
- return new ReactiveEnergy(value, fromUnit);
- }
-
- #endregion
-
- #region Conversion Methods
-
- ///
- /// Convert to the unit representation .
- ///
- /// Value converted to the specified unit.
- public double As(ReactiveEnergyUnit unit) => GetValueAs(unit);
-
- ///
- /// Converts this ReactiveEnergy to another ReactiveEnergy with the unit representation .
- ///
- /// A ReactiveEnergy with the specified unit.
- public ReactiveEnergy ToUnit(ReactiveEnergyUnit unit)
- {
- var convertedValue = GetValueAs(unit);
- return new ReactiveEnergy(convertedValue, unit);
- }
-
- ///
- /// Converts the current value + unit to the base unit.
- /// This is typically the first step in converting from one unit to another.
- ///
- /// The value in the base unit representation.
- private double GetValueInBaseUnit()
- {
- return Unit switch
- {
- ReactiveEnergyUnit.KilovoltampereReactiveHour => (_value) * 1e3d,
- ReactiveEnergyUnit.MegavoltampereReactiveHour => (_value) * 1e6d,
- ReactiveEnergyUnit.VoltampereReactiveHour => _value,
- _ => throw new NotImplementedException($"Can not convert {Unit} to base units.")
- };
- }
-
- private double GetValueAs(ReactiveEnergyUnit unit)
- {
- if (Unit == unit)
- return _value;
-
- var baseUnitValue = GetValueInBaseUnit();
-
- return unit switch
- {
- ReactiveEnergyUnit.KilovoltampereReactiveHour => (baseUnitValue) / 1e3d,
- ReactiveEnergyUnit.MegavoltampereReactiveHour => (baseUnitValue) / 1e6d,
- ReactiveEnergyUnit.VoltampereReactiveHour => baseUnitValue,
- _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.")
- };
- }
-
- #endregion
- }
-}
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReactivePower.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReactivePower.g.cs
deleted file mode 100644
index 267d79a688..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReactivePower.g.cs
+++ /dev/null
@@ -1,197 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-using UnitsNet.Units;
-
-namespace UnitsNet
-{
- ///
- ///
- /// Volt-ampere reactive (var) is a unit by which reactive power is expressed in an AC electric power system. Reactive power exists in an AC circuit when the current and voltage are not in phase.
- ///
- ///
- /// ReactivePower has been renamed to ElectricReactivePower, and will be removed in a later major version.
- ///
- [Obsolete("ReactivePower has been renamed to ElectricReactivePower, and will be removed in a later major version.")]
- public struct ReactivePower
- {
- ///
- /// The numeric value this quantity was constructed with.
- ///
- private readonly double _value;
-
- ///
- /// The unit this quantity was constructed with.
- ///
- private readonly ReactivePowerUnit _unit;
-
- ///
- /// The numeric value this quantity was constructed with.
- ///
- public double Value => _value;
-
- ///
- public ReactivePowerUnit Unit => _unit;
-
- ///
- /// Creates the quantity with the given numeric value and unit.
- ///
- /// The numeric value to construct this quantity with.
- /// The unit representation to construct this quantity with.
- public ReactivePower(double value, ReactivePowerUnit unit)
- {
- _value = value;
- _unit = unit;
- }
-
- ///
- /// The base unit of ReactivePower, which is Second. All conversions go via this value.
- ///
- public static ReactivePowerUnit BaseUnit { get; } = ReactivePowerUnit.VoltampereReactive;
-
- ///
- /// Represents the largest possible value of ReactivePower.
- ///
- public static ReactivePower MaxValue { get; } = new ReactivePower(double.MaxValue, BaseUnit);
-
- ///
- /// Represents the smallest possible value of ReactivePower.
- ///
- public static ReactivePower MinValue { get; } = new ReactivePower(double.MinValue, BaseUnit);
-
- ///
- /// Gets an instance of this quantity with a value of 0 in the base unit Second.
- ///
- public static ReactivePower Zero { get; } = new ReactivePower(0, BaseUnit);
- #region Conversion Properties
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double GigavoltamperesReactive => As(ReactivePowerUnit.GigavoltampereReactive);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double KilovoltamperesReactive => As(ReactivePowerUnit.KilovoltampereReactive);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double MegavoltamperesReactive => As(ReactivePowerUnit.MegavoltampereReactive);
-
- ///
- /// Gets a value of this quantity converted into
- ///
- public double VoltamperesReactive => As(ReactivePowerUnit.VoltampereReactive);
-
- #endregion
-
- #region Static Factory Methods
-
- ///
- /// Creates a from .
- ///
- public static ReactivePower FromGigavoltamperesReactive(double gigavoltamperesreactive) => new ReactivePower(gigavoltamperesreactive, ReactivePowerUnit.GigavoltampereReactive);
-
- ///
- /// Creates a from .
- ///
- public static ReactivePower FromKilovoltamperesReactive(double kilovoltamperesreactive) => new ReactivePower(kilovoltamperesreactive, ReactivePowerUnit.KilovoltampereReactive);
-
- ///
- /// Creates a from .
- ///
- public static ReactivePower FromMegavoltamperesReactive(double megavoltamperesreactive) => new ReactivePower(megavoltamperesreactive, ReactivePowerUnit.MegavoltampereReactive);
-
- ///
- /// Creates a from .
- ///
- public static ReactivePower FromVoltamperesReactive(double voltamperesreactive) => new ReactivePower(voltamperesreactive, ReactivePowerUnit.VoltampereReactive);
-
- ///
- /// Dynamically convert from value and unit enum to .
- ///
- /// Value to convert from.
- /// Unit to convert from.
- /// ReactivePower unit value.
- public static ReactivePower From(double value, ReactivePowerUnit fromUnit)
- {
- return new ReactivePower(value, fromUnit);
- }
-
- #endregion
-
- #region Conversion Methods
-
- ///
- /// Convert to the unit representation .
- ///
- /// Value converted to the specified unit.
- public double As(ReactivePowerUnit unit) => GetValueAs(unit);
-
- ///
- /// Converts this ReactivePower to another ReactivePower with the unit representation .
- ///
- /// A ReactivePower with the specified unit.
- public ReactivePower ToUnit(ReactivePowerUnit unit)
- {
- var convertedValue = GetValueAs(unit);
- return new ReactivePower(convertedValue, unit);
- }
-
- ///
- /// Converts the current value + unit to the base unit.
- /// This is typically the first step in converting from one unit to another.
- ///
- /// The value in the base unit representation.
- private double GetValueInBaseUnit()
- {
- return Unit switch
- {
- ReactivePowerUnit.GigavoltampereReactive => (_value) * 1e9d,
- ReactivePowerUnit.KilovoltampereReactive => (_value) * 1e3d,
- ReactivePowerUnit.MegavoltampereReactive => (_value) * 1e6d,
- ReactivePowerUnit.VoltampereReactive => _value,
- _ => throw new NotImplementedException($"Can not convert {Unit} to base units.")
- };
- }
-
- private double GetValueAs(ReactivePowerUnit unit)
- {
- if (Unit == unit)
- return _value;
-
- var baseUnitValue = GetValueInBaseUnit();
-
- return unit switch
- {
- ReactivePowerUnit.GigavoltampereReactive => (baseUnitValue) / 1e9d,
- ReactivePowerUnit.KilovoltampereReactive => (baseUnitValue) / 1e3d,
- ReactivePowerUnit.MegavoltampereReactive => (baseUnitValue) / 1e6d,
- ReactivePowerUnit.VoltampereReactive => baseUnitValue,
- _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.")
- };
- }
-
- #endregion
- }
-}
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/ReactiveEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/ReactiveEnergy.nfproj
deleted file mode 100644
index 14698a4a67..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/ReactiveEnergy.nfproj
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- $(MSBuildExtensionsPath)\nanoFramework\v1.0\
-
-
-
- Debug
- AnyCPU
- {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {64c918a4-27a8-3e9c-e81f-6917f0edde90}
- Library
- Properties
- 512
- UnitsNet
- UnitsNet.ReactiveEnergy
- v1.0
- bin\$(Configuration)\$(AssemblyName).xml
-
-
-
-
-
-
-
-
-
- ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll
- True
- True
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/UnitsNet.NanoFramework.ReactiveEnergy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/UnitsNet.NanoFramework.ReactiveEnergy.nuspec
deleted file mode 100644
index fa2331ec83..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/UnitsNet.NanoFramework.ReactiveEnergy.nuspec
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- UnitsNet.nanoFramework.ReactiveEnergy
- 6.0.0-pre012
- Units.NET ReactiveEnergy - nanoFramework
- Andreas Gullberg Larsen,nanoframework
- UnitsNet
- MIT-0
- https://github.com/angularsen/UnitsNet
- false
- Adds ReactiveEnergy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.
- https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png
-
-
- Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).
- en-US
- nanoframework reactiveenergy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/packages.config
deleted file mode 100644
index 313a8dccdf..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/ReactivePower.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/ReactivePower.nfproj
deleted file mode 100644
index 10a7ed64be..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/ReactivePower.nfproj
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- $(MSBuildExtensionsPath)\nanoFramework\v1.0\
-
-
-
- Debug
- AnyCPU
- {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {6821b87e-65eb-bfdb-8fdc-8b183edf739e}
- Library
- Properties
- 512
- UnitsNet
- UnitsNet.ReactivePower
- v1.0
- bin\$(Configuration)\$(AssemblyName).xml
-
-
-
-
-
-
-
-
-
- ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll
- True
- True
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/UnitsNet.NanoFramework.ReactivePower.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/UnitsNet.NanoFramework.ReactivePower.nuspec
deleted file mode 100644
index a84c733438..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/UnitsNet.NanoFramework.ReactivePower.nuspec
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- UnitsNet.nanoFramework.ReactivePower
- 6.0.0-pre012
- Units.NET ReactivePower - nanoFramework
- Andreas Gullberg Larsen,nanoframework
- UnitsNet
- MIT-0
- https://github.com/angularsen/UnitsNet
- false
- Adds ReactivePower units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.
- https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png
-
-
- Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).
- en-US
- nanoframework reactivepower unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable
-
-
-
-
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/packages.config
deleted file mode 100644
index 313a8dccdf..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ApparentEnergyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ApparentEnergyUnit.g.cs
deleted file mode 100644
index 2a8c1aba5b..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/ApparentEnergyUnit.g.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-// ReSharper disable once CheckNamespace
-namespace UnitsNet.Units
-{
- // Disable missing XML comment warnings for the generated unit enums.
- #pragma warning disable 1591
-
- public enum ApparentEnergyUnit
- {
- KilovoltampereHour = 1,
- MegavoltampereHour = 2,
- VoltampereHour = 3,
- }
-
- #pragma warning restore 1591
-}
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ApparentPowerUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ApparentPowerUnit.g.cs
deleted file mode 100644
index 856789bbdd..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/ApparentPowerUnit.g.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-// ReSharper disable once CheckNamespace
-namespace UnitsNet.Units
-{
- // Disable missing XML comment warnings for the generated unit enums.
- #pragma warning disable 1591
-
- public enum ApparentPowerUnit
- {
- Gigavoltampere = 1,
- Kilovoltampere = 2,
- Megavoltampere = 3,
- Microvoltampere = 6,
- Millivoltampere = 7,
- Voltampere = 4,
- }
-
- #pragma warning restore 1591
-}
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/CapacitanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/CapacitanceUnit.g.cs
deleted file mode 100644
index a76cc8f2d8..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/CapacitanceUnit.g.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-// ReSharper disable once CheckNamespace
-namespace UnitsNet.Units
-{
- // Disable missing XML comment warnings for the generated unit enums.
- #pragma warning disable 1591
-
- public enum CapacitanceUnit
- {
- Farad = 1,
- Kilofarad = 2,
- Megafarad = 3,
- Microfarad = 4,
- Millifarad = 5,
- Nanofarad = 6,
- Picofarad = 7,
- }
-
- #pragma warning restore 1591
-}
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialAcUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialAcUnit.g.cs
deleted file mode 100644
index ada8068172..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialAcUnit.g.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-// ReSharper disable once CheckNamespace
-namespace UnitsNet.Units
-{
- // Disable missing XML comment warnings for the generated unit enums.
- #pragma warning disable 1591
-
- public enum ElectricPotentialAcUnit
- {
- KilovoltAc = 1,
- MegavoltAc = 2,
- MicrovoltAc = 3,
- MillivoltAc = 4,
- VoltAc = 5,
- }
-
- #pragma warning restore 1591
-}
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialDcUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialDcUnit.g.cs
deleted file mode 100644
index 224c9c4c30..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialDcUnit.g.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-// ReSharper disable once CheckNamespace
-namespace UnitsNet.Units
-{
- // Disable missing XML comment warnings for the generated unit enums.
- #pragma warning disable 1591
-
- public enum ElectricPotentialDcUnit
- {
- KilovoltDc = 1,
- MegavoltDc = 2,
- MicrovoltDc = 3,
- MillivoltDc = 4,
- VoltDc = 5,
- }
-
- #pragma warning restore 1591
-}
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ReactiveEnergyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ReactiveEnergyUnit.g.cs
deleted file mode 100644
index d48f6482a1..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/ReactiveEnergyUnit.g.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-// ReSharper disable once CheckNamespace
-namespace UnitsNet.Units
-{
- // Disable missing XML comment warnings for the generated unit enums.
- #pragma warning disable 1591
-
- public enum ReactiveEnergyUnit
- {
- KilovoltampereReactiveHour = 1,
- MegavoltampereReactiveHour = 2,
- VoltampereReactiveHour = 3,
- }
-
- #pragma warning restore 1591
-}
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ReactivePowerUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ReactivePowerUnit.g.cs
deleted file mode 100644
index 32e7a9ede9..0000000000
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/ReactivePowerUnit.g.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-// ReSharper disable once CheckNamespace
-namespace UnitsNet.Units
-{
- // Disable missing XML comment warnings for the generated unit enums.
- #pragma warning disable 1591
-
- public enum ReactivePowerUnit
- {
- GigavoltampereReactive = 1,
- KilovoltampereReactive = 2,
- MegavoltampereReactive = 3,
- VoltampereReactive = 4,
- }
-
- #pragma warning restore 1591
-}
diff --git a/UnitsNet.NanoFramework/GeneratedCode/UnitsNet.nanoFramework.sln b/UnitsNet.NanoFramework/GeneratedCode/UnitsNet.nanoFramework.sln
index 85f5660d09..8b3d31124e 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/UnitsNet.nanoFramework.sln
+++ b/UnitsNet.NanoFramework/GeneratedCode/UnitsNet.nanoFramework.sln
@@ -12,10 +12,6 @@ Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "AmplitudeRatio", "Amplitude
EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Angle", "Angle\Angle.nfproj", "{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}"
EndProject
-Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ApparentEnergy", "ApparentEnergy\ApparentEnergy.nfproj", "{6f80e841-e953-bc39-6670-8711f2ad9d18}"
-EndProject
-Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ApparentPower", "ApparentPower\ApparentPower.nfproj", "{88b9a61a-b21b-97cc-ef89-78d1e3ff7767}"
-EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Area", "Area\Area.nfproj", "{04c24d02-bad7-a877-ff9b-a36a886c9633}"
EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "AreaDensity", "AreaDensity\AreaDensity.nfproj", "{92ff1332-bf34-943e-a58d-8a76746d879e}"
@@ -26,8 +22,6 @@ Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "BitRate", "BitRate\BitRate.
EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "BrakeSpecificFuelConsumption", "BrakeSpecificFuelConsumption\BrakeSpecificFuelConsumption.nfproj", "{085145f2-2b8f-4d09-5290-c14cdcd452bf}"
EndProject
-Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Capacitance", "Capacitance\Capacitance.nfproj", "{c1351fc7-d3d8-c3ce-0715-ad8e18ab8c94}"
-EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "CoefficientOfThermalExpansion", "CoefficientOfThermalExpansion\CoefficientOfThermalExpansion.nfproj", "{a9514ce6-d4e7-88ca-051e-e9e53610c519}"
EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Compressibility", "Compressibility\Compressibility.nfproj", "{daf647be-be87-88b9-ee92-dece21fe0dff}"
@@ -70,12 +64,8 @@ Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricInductance", "Elect
EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricPotential", "ElectricPotential\ElectricPotential.nfproj", "{66c94dc2-e546-9737-a45b-4bc60fe0e536}"
EndProject
-Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricPotentialAc", "ElectricPotentialAc\ElectricPotentialAc.nfproj", "{ab1339ec-f1d8-6abf-093e-1525ee231a9d}"
-EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricPotentialChangeRate", "ElectricPotentialChangeRate\ElectricPotentialChangeRate.nfproj", "{679517ca-9d0b-0ec2-35ae-95230281cfba}"
EndProject
-Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricPotentialDc", "ElectricPotentialDc\ElectricPotentialDc.nfproj", "{27ebf863-3ee7-ddb0-08ab-8577438a8f1c}"
-EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricReactance", "ElectricReactance\ElectricReactance.nfproj", "{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}"
EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricReactiveEnergy", "ElectricReactiveEnergy\ElectricReactiveEnergy.nfproj", "{9f892c4e-26c2-1420-a73c-08138c8f6ca2}"
@@ -200,10 +190,6 @@ Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Ratio", "Ratio\Ratio.nfproj
EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RatioChangeRate", "RatioChangeRate\RatioChangeRate.nfproj", "{c028861d-f9e8-8231-2b6a-bc3b3fba349c}"
EndProject
-Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ReactiveEnergy", "ReactiveEnergy\ReactiveEnergy.nfproj", "{64c918a4-27a8-3e9c-e81f-6917f0edde90}"
-EndProject
-Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ReactivePower", "ReactivePower\ReactivePower.nfproj", "{6821b87e-65eb-bfdb-8fdc-8b183edf739e}"
-EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ReciprocalArea", "ReciprocalArea\ReciprocalArea.nfproj", "{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}"
EndProject
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ReciprocalLength", "ReciprocalLength\ReciprocalLength.nfproj", "{83d6c79a-c71a-d467-284c-28edbbd059d2}"
@@ -304,18 +290,6 @@ Global
{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}.Release|Any CPU.Build.0 = Release|Any CPU
{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}.Release|Any CPU.Deploy.0 = Release|Any CPU
-{6f80e841-e953-bc39-6670-8711f2ad9d18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-{6f80e841-e953-bc39-6670-8711f2ad9d18}.Debug|Any CPU.Build.0 = Debug|Any CPU
-{6f80e841-e953-bc39-6670-8711f2ad9d18}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
-{6f80e841-e953-bc39-6670-8711f2ad9d18}.Release|Any CPU.ActiveCfg = Release|Any CPU
-{6f80e841-e953-bc39-6670-8711f2ad9d18}.Release|Any CPU.Build.0 = Release|Any CPU
-{6f80e841-e953-bc39-6670-8711f2ad9d18}.Release|Any CPU.Deploy.0 = Release|Any CPU
-{88b9a61a-b21b-97cc-ef89-78d1e3ff7767}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-{88b9a61a-b21b-97cc-ef89-78d1e3ff7767}.Debug|Any CPU.Build.0 = Debug|Any CPU
-{88b9a61a-b21b-97cc-ef89-78d1e3ff7767}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
-{88b9a61a-b21b-97cc-ef89-78d1e3ff7767}.Release|Any CPU.ActiveCfg = Release|Any CPU
-{88b9a61a-b21b-97cc-ef89-78d1e3ff7767}.Release|Any CPU.Build.0 = Release|Any CPU
-{88b9a61a-b21b-97cc-ef89-78d1e3ff7767}.Release|Any CPU.Deploy.0 = Release|Any CPU
{04c24d02-bad7-a877-ff9b-a36a886c9633}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{04c24d02-bad7-a877-ff9b-a36a886c9633}.Debug|Any CPU.Build.0 = Debug|Any CPU
{04c24d02-bad7-a877-ff9b-a36a886c9633}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
@@ -346,12 +320,6 @@ Global
{085145f2-2b8f-4d09-5290-c14cdcd452bf}.Release|Any CPU.ActiveCfg = Release|Any CPU
{085145f2-2b8f-4d09-5290-c14cdcd452bf}.Release|Any CPU.Build.0 = Release|Any CPU
{085145f2-2b8f-4d09-5290-c14cdcd452bf}.Release|Any CPU.Deploy.0 = Release|Any CPU
-{c1351fc7-d3d8-c3ce-0715-ad8e18ab8c94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-{c1351fc7-d3d8-c3ce-0715-ad8e18ab8c94}.Debug|Any CPU.Build.0 = Debug|Any CPU
-{c1351fc7-d3d8-c3ce-0715-ad8e18ab8c94}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
-{c1351fc7-d3d8-c3ce-0715-ad8e18ab8c94}.Release|Any CPU.ActiveCfg = Release|Any CPU
-{c1351fc7-d3d8-c3ce-0715-ad8e18ab8c94}.Release|Any CPU.Build.0 = Release|Any CPU
-{c1351fc7-d3d8-c3ce-0715-ad8e18ab8c94}.Release|Any CPU.Deploy.0 = Release|Any CPU
{a9514ce6-d4e7-88ca-051e-e9e53610c519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{a9514ce6-d4e7-88ca-051e-e9e53610c519}.Debug|Any CPU.Build.0 = Debug|Any CPU
{a9514ce6-d4e7-88ca-051e-e9e53610c519}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
@@ -478,24 +446,12 @@ Global
{66c94dc2-e546-9737-a45b-4bc60fe0e536}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66c94dc2-e546-9737-a45b-4bc60fe0e536}.Release|Any CPU.Build.0 = Release|Any CPU
{66c94dc2-e546-9737-a45b-4bc60fe0e536}.Release|Any CPU.Deploy.0 = Release|Any CPU
-{ab1339ec-f1d8-6abf-093e-1525ee231a9d}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-{ab1339ec-f1d8-6abf-093e-1525ee231a9d}.Debug|Any CPU.Build.0 = Debug|Any CPU
-{ab1339ec-f1d8-6abf-093e-1525ee231a9d}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
-{ab1339ec-f1d8-6abf-093e-1525ee231a9d}.Release|Any CPU.ActiveCfg = Release|Any CPU
-{ab1339ec-f1d8-6abf-093e-1525ee231a9d}.Release|Any CPU.Build.0 = Release|Any CPU
-{ab1339ec-f1d8-6abf-093e-1525ee231a9d}.Release|Any CPU.Deploy.0 = Release|Any CPU
{679517ca-9d0b-0ec2-35ae-95230281cfba}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{679517ca-9d0b-0ec2-35ae-95230281cfba}.Debug|Any CPU.Build.0 = Debug|Any CPU
{679517ca-9d0b-0ec2-35ae-95230281cfba}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{679517ca-9d0b-0ec2-35ae-95230281cfba}.Release|Any CPU.ActiveCfg = Release|Any CPU
{679517ca-9d0b-0ec2-35ae-95230281cfba}.Release|Any CPU.Build.0 = Release|Any CPU
{679517ca-9d0b-0ec2-35ae-95230281cfba}.Release|Any CPU.Deploy.0 = Release|Any CPU
-{27ebf863-3ee7-ddb0-08ab-8577438a8f1c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-{27ebf863-3ee7-ddb0-08ab-8577438a8f1c}.Debug|Any CPU.Build.0 = Debug|Any CPU
-{27ebf863-3ee7-ddb0-08ab-8577438a8f1c}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
-{27ebf863-3ee7-ddb0-08ab-8577438a8f1c}.Release|Any CPU.ActiveCfg = Release|Any CPU
-{27ebf863-3ee7-ddb0-08ab-8577438a8f1c}.Release|Any CPU.Build.0 = Release|Any CPU
-{27ebf863-3ee7-ddb0-08ab-8577438a8f1c}.Release|Any CPU.Deploy.0 = Release|Any CPU
{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}.Debug|Any CPU.Build.0 = Debug|Any CPU
{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
@@ -868,18 +824,6 @@ Global
{c028861d-f9e8-8231-2b6a-bc3b3fba349c}.Release|Any CPU.ActiveCfg = Release|Any CPU
{c028861d-f9e8-8231-2b6a-bc3b3fba349c}.Release|Any CPU.Build.0 = Release|Any CPU
{c028861d-f9e8-8231-2b6a-bc3b3fba349c}.Release|Any CPU.Deploy.0 = Release|Any CPU
-{64c918a4-27a8-3e9c-e81f-6917f0edde90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-{64c918a4-27a8-3e9c-e81f-6917f0edde90}.Debug|Any CPU.Build.0 = Debug|Any CPU
-{64c918a4-27a8-3e9c-e81f-6917f0edde90}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
-{64c918a4-27a8-3e9c-e81f-6917f0edde90}.Release|Any CPU.ActiveCfg = Release|Any CPU
-{64c918a4-27a8-3e9c-e81f-6917f0edde90}.Release|Any CPU.Build.0 = Release|Any CPU
-{64c918a4-27a8-3e9c-e81f-6917f0edde90}.Release|Any CPU.Deploy.0 = Release|Any CPU
-{6821b87e-65eb-bfdb-8fdc-8b183edf739e}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-{6821b87e-65eb-bfdb-8fdc-8b183edf739e}.Debug|Any CPU.Build.0 = Debug|Any CPU
-{6821b87e-65eb-bfdb-8fdc-8b183edf739e}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
-{6821b87e-65eb-bfdb-8fdc-8b183edf739e}.Release|Any CPU.ActiveCfg = Release|Any CPU
-{6821b87e-65eb-bfdb-8fdc-8b183edf739e}.Release|Any CPU.Build.0 = Release|Any CPU
-{6821b87e-65eb-bfdb-8fdc-8b183edf739e}.Release|Any CPU.Deploy.0 = Release|Any CPU
{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToApparentEnergyExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToApparentEnergyExtensionsTest.g.cs
deleted file mode 100644
index 8e43023662..0000000000
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToApparentEnergyExtensionsTest.g.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using UnitsNet.NumberExtensions.NumberToApparentEnergy;
-using Xunit;
-
-namespace UnitsNet.Tests
-{
- public class NumberToApparentEnergyExtensionsTests
- {
- [Fact]
- public void NumberToKilovoltampereHoursTest() =>
- Assert.Equal(ApparentEnergy.FromKilovoltampereHours(2), 2.KilovoltampereHours());
-
- [Fact]
- public void NumberToMegavoltampereHoursTest() =>
- Assert.Equal(ApparentEnergy.FromMegavoltampereHours(2), 2.MegavoltampereHours());
-
- [Fact]
- public void NumberToVoltampereHoursTest() =>
- Assert.Equal(ApparentEnergy.FromVoltampereHours(2), 2.VoltampereHours());
-
- }
-}
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToApparentPowerExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToApparentPowerExtensionsTest.g.cs
deleted file mode 100644
index a4ba14f43e..0000000000
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToApparentPowerExtensionsTest.g.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using UnitsNet.NumberExtensions.NumberToApparentPower;
-using Xunit;
-
-namespace UnitsNet.Tests
-{
- public class NumberToApparentPowerExtensionsTests
- {
- [Fact]
- public void NumberToGigavoltamperesTest() =>
- Assert.Equal(ApparentPower.FromGigavoltamperes(2), 2.Gigavoltamperes());
-
- [Fact]
- public void NumberToKilovoltamperesTest() =>
- Assert.Equal(ApparentPower.FromKilovoltamperes(2), 2.Kilovoltamperes());
-
- [Fact]
- public void NumberToMegavoltamperesTest() =>
- Assert.Equal(ApparentPower.FromMegavoltamperes(2), 2.Megavoltamperes());
-
- [Fact]
- public void NumberToMicrovoltamperesTest() =>
- Assert.Equal(ApparentPower.FromMicrovoltamperes(2), 2.Microvoltamperes());
-
- [Fact]
- public void NumberToMillivoltamperesTest() =>
- Assert.Equal(ApparentPower.FromMillivoltamperes(2), 2.Millivoltamperes());
-
- [Fact]
- public void NumberToVoltamperesTest() =>
- Assert.Equal(ApparentPower.FromVoltamperes(2), 2.Voltamperes());
-
- }
-}
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToCapacitanceExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToCapacitanceExtensionsTest.g.cs
deleted file mode 100644
index 7e969d6f38..0000000000
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToCapacitanceExtensionsTest.g.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using UnitsNet.NumberExtensions.NumberToCapacitance;
-using Xunit;
-
-namespace UnitsNet.Tests
-{
- public class NumberToCapacitanceExtensionsTests
- {
- [Fact]
- public void NumberToFaradsTest() =>
- Assert.Equal(Capacitance.FromFarads(2), 2.Farads());
-
- [Fact]
- public void NumberToKilofaradsTest() =>
- Assert.Equal(Capacitance.FromKilofarads(2), 2.Kilofarads());
-
- [Fact]
- public void NumberToMegafaradsTest() =>
- Assert.Equal(Capacitance.FromMegafarads(2), 2.Megafarads());
-
- [Fact]
- public void NumberToMicrofaradsTest() =>
- Assert.Equal(Capacitance.FromMicrofarads(2), 2.Microfarads());
-
- [Fact]
- public void NumberToMillifaradsTest() =>
- Assert.Equal(Capacitance.FromMillifarads(2), 2.Millifarads());
-
- [Fact]
- public void NumberToNanofaradsTest() =>
- Assert.Equal(Capacitance.FromNanofarads(2), 2.Nanofarads());
-
- [Fact]
- public void NumberToPicofaradsTest() =>
- Assert.Equal(Capacitance.FromPicofarads(2), 2.Picofarads());
-
- }
-}
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToElectricPotentialAcExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToElectricPotentialAcExtensionsTest.g.cs
deleted file mode 100644
index 3943cee481..0000000000
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToElectricPotentialAcExtensionsTest.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using UnitsNet.NumberExtensions.NumberToElectricPotentialAc;
-using Xunit;
-
-namespace UnitsNet.Tests
-{
- public class NumberToElectricPotentialAcExtensionsTests
- {
- [Fact]
- public void NumberToKilovoltsAcTest() =>
- Assert.Equal(ElectricPotentialAc.FromKilovoltsAc(2), 2.KilovoltsAc());
-
- [Fact]
- public void NumberToMegavoltsAcTest() =>
- Assert.Equal(ElectricPotentialAc.FromMegavoltsAc(2), 2.MegavoltsAc());
-
- [Fact]
- public void NumberToMicrovoltsAcTest() =>
- Assert.Equal(ElectricPotentialAc.FromMicrovoltsAc(2), 2.MicrovoltsAc());
-
- [Fact]
- public void NumberToMillivoltsAcTest() =>
- Assert.Equal(ElectricPotentialAc.FromMillivoltsAc(2), 2.MillivoltsAc());
-
- [Fact]
- public void NumberToVoltsAcTest() =>
- Assert.Equal(ElectricPotentialAc.FromVoltsAc(2), 2.VoltsAc());
-
- }
-}
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToElectricPotentialDcExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToElectricPotentialDcExtensionsTest.g.cs
deleted file mode 100644
index 479460c6a9..0000000000
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToElectricPotentialDcExtensionsTest.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using UnitsNet.NumberExtensions.NumberToElectricPotentialDc;
-using Xunit;
-
-namespace UnitsNet.Tests
-{
- public class NumberToElectricPotentialDcExtensionsTests
- {
- [Fact]
- public void NumberToKilovoltsDcTest() =>
- Assert.Equal(ElectricPotentialDc.FromKilovoltsDc(2), 2.KilovoltsDc());
-
- [Fact]
- public void NumberToMegavoltsDcTest() =>
- Assert.Equal(ElectricPotentialDc.FromMegavoltsDc(2), 2.MegavoltsDc());
-
- [Fact]
- public void NumberToMicrovoltsDcTest() =>
- Assert.Equal(ElectricPotentialDc.FromMicrovoltsDc(2), 2.MicrovoltsDc());
-
- [Fact]
- public void NumberToMillivoltsDcTest() =>
- Assert.Equal(ElectricPotentialDc.FromMillivoltsDc(2), 2.MillivoltsDc());
-
- [Fact]
- public void NumberToVoltsDcTest() =>
- Assert.Equal(ElectricPotentialDc.FromVoltsDc(2), 2.VoltsDc());
-
- }
-}
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToReactiveEnergyExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToReactiveEnergyExtensionsTest.g.cs
deleted file mode 100644
index e55046a8a2..0000000000
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToReactiveEnergyExtensionsTest.g.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using UnitsNet.NumberExtensions.NumberToReactiveEnergy;
-using Xunit;
-
-namespace UnitsNet.Tests
-{
- public class NumberToReactiveEnergyExtensionsTests
- {
- [Fact]
- public void NumberToKilovoltampereReactiveHoursTest() =>
- Assert.Equal(ReactiveEnergy.FromKilovoltampereReactiveHours(2), 2.KilovoltampereReactiveHours());
-
- [Fact]
- public void NumberToMegavoltampereReactiveHoursTest() =>
- Assert.Equal(ReactiveEnergy.FromMegavoltampereReactiveHours(2), 2.MegavoltampereReactiveHours());
-
- [Fact]
- public void NumberToVoltampereReactiveHoursTest() =>
- Assert.Equal(ReactiveEnergy.FromVoltampereReactiveHours(2), 2.VoltampereReactiveHours());
-
- }
-}
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToReactivePowerExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToReactivePowerExtensionsTest.g.cs
deleted file mode 100644
index 4c4d9a8b4b..0000000000
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToReactivePowerExtensionsTest.g.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using UnitsNet.NumberExtensions.NumberToReactivePower;
-using Xunit;
-
-namespace UnitsNet.Tests
-{
- public class NumberToReactivePowerExtensionsTests
- {
- [Fact]
- public void NumberToGigavoltamperesReactiveTest() =>
- Assert.Equal(ReactivePower.FromGigavoltamperesReactive(2), 2.GigavoltamperesReactive());
-
- [Fact]
- public void NumberToKilovoltamperesReactiveTest() =>
- Assert.Equal(ReactivePower.FromKilovoltamperesReactive(2), 2.KilovoltamperesReactive());
-
- [Fact]
- public void NumberToMegavoltamperesReactiveTest() =>
- Assert.Equal(ReactivePower.FromMegavoltamperesReactive(2), 2.MegavoltamperesReactive());
-
- [Fact]
- public void NumberToVoltamperesReactiveTest() =>
- Assert.Equal(ReactivePower.FromVoltamperesReactive(2), 2.VoltamperesReactive());
-
- }
-}
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToApparentEnergyExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToApparentEnergyExtensions.g.cs
deleted file mode 100644
index 93ee2fffd2..0000000000
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToApparentEnergyExtensions.g.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-
-#if NET7_0_OR_GREATER
-using System.Numerics;
-#endif
-
-#nullable enable
-
-namespace UnitsNet.NumberExtensions.NumberToApparentEnergy
-{
- ///
- /// A number to ApparentEnergy Extensions
- ///
- [Obsolete("ApparentEnergy has been renamed to ElectricApparentEnergy, and will be removed in a later major version.")]
- public static class NumberToApparentEnergyExtensions
- {
- ///
- [Obsolete("ApparentEnergy has been renamed to ElectricApparentEnergy, and will be removed in a later major version.")]
- public static ApparentEnergy KilovoltampereHours(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ApparentEnergy.FromKilovoltampereHours(Convert.ToDouble(value));
-
- ///
- [Obsolete("ApparentEnergy has been renamed to ElectricApparentEnergy, and will be removed in a later major version.")]
- public static ApparentEnergy MegavoltampereHours(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ApparentEnergy.FromMegavoltampereHours(Convert.ToDouble(value));
-
- ///
- [Obsolete("ApparentEnergy has been renamed to ElectricApparentEnergy, and will be removed in a later major version.")]
- public static ApparentEnergy VoltampereHours(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ApparentEnergy.FromVoltampereHours(Convert.ToDouble(value));
-
- }
-}
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToApparentPowerExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToApparentPowerExtensions.g.cs
deleted file mode 100644
index a2ac4a9363..0000000000
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToApparentPowerExtensions.g.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-
-#if NET7_0_OR_GREATER
-using System.Numerics;
-#endif
-
-#nullable enable
-
-namespace UnitsNet.NumberExtensions.NumberToApparentPower
-{
- ///
- /// A number to ApparentPower Extensions
- ///
- [Obsolete("ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.")]
- public static class NumberToApparentPowerExtensions
- {
- ///
- [Obsolete("ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.")]
- public static ApparentPower Gigavoltamperes(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ApparentPower.FromGigavoltamperes(Convert.ToDouble(value));
-
- ///
- [Obsolete("ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.")]
- public static ApparentPower Kilovoltamperes(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ApparentPower.FromKilovoltamperes(Convert.ToDouble(value));
-
- ///
- [Obsolete("ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.")]
- public static ApparentPower Megavoltamperes(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ApparentPower.FromMegavoltamperes(Convert.ToDouble(value));
-
- ///
- [Obsolete("ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.")]
- public static ApparentPower Microvoltamperes(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ApparentPower.FromMicrovoltamperes(Convert.ToDouble(value));
-
- ///
- [Obsolete("ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.")]
- public static ApparentPower Millivoltamperes(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ApparentPower.FromMillivoltamperes(Convert.ToDouble(value));
-
- ///
- [Obsolete("ApparentPower has been renamed to ElectricApparentPower, and will be removed in a later major version.")]
- public static ApparentPower Voltamperes(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ApparentPower.FromVoltamperes(Convert.ToDouble(value));
-
- }
-}
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToCapacitanceExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToCapacitanceExtensions.g.cs
deleted file mode 100644
index 1cd6355eed..0000000000
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToCapacitanceExtensions.g.cs
+++ /dev/null
@@ -1,100 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-
-#if NET7_0_OR_GREATER
-using System.Numerics;
-#endif
-
-#nullable enable
-
-namespace UnitsNet.NumberExtensions.NumberToCapacitance
-{
- ///
- /// A number to Capacitance Extensions
- ///
- [Obsolete("Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.")]
- public static class NumberToCapacitanceExtensions
- {
- ///
- [Obsolete("Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.")]
- public static Capacitance Farads(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => Capacitance.FromFarads(Convert.ToDouble(value));
-
- ///
- [Obsolete("Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.")]
- public static Capacitance Kilofarads(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => Capacitance.FromKilofarads(Convert.ToDouble(value));
-
- ///
- [Obsolete("Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.")]
- public static Capacitance Megafarads(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => Capacitance.FromMegafarads(Convert.ToDouble(value));
-
- ///
- [Obsolete("Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.")]
- public static Capacitance Microfarads(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => Capacitance.FromMicrofarads(Convert.ToDouble(value));
-
- ///
- [Obsolete("Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.")]
- public static Capacitance Millifarads(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => Capacitance.FromMillifarads(Convert.ToDouble(value));
-
- ///
- [Obsolete("Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.")]
- public static Capacitance Nanofarads(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => Capacitance.FromNanofarads(Convert.ToDouble(value));
-
- ///
- [Obsolete("Capacitance has been renamed to ElectricCapacitance, and will be removed in a later major version.")]
- public static Capacitance Picofarads(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => Capacitance.FromPicofarads(Convert.ToDouble(value));
-
- }
-}
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToElectricPotentialAcExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToElectricPotentialAcExtensions.g.cs
deleted file mode 100644
index c6b0db2fe5..0000000000
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToElectricPotentialAcExtensions.g.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-
-#if NET7_0_OR_GREATER
-using System.Numerics;
-#endif
-
-#nullable enable
-
-namespace UnitsNet.NumberExtensions.NumberToElectricPotentialAc
-{
- ///
- /// A number to ElectricPotentialAc Extensions
- ///
- [Obsolete("ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static class NumberToElectricPotentialAcExtensions
- {
- ///
- [Obsolete("ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialAc KilovoltsAc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialAc.FromKilovoltsAc(Convert.ToDouble(value));
-
- ///
- [Obsolete("ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialAc MegavoltsAc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialAc.FromMegavoltsAc(Convert.ToDouble(value));
-
- ///
- [Obsolete("ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialAc MicrovoltsAc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialAc.FromMicrovoltsAc(Convert.ToDouble(value));
-
- ///
- [Obsolete("ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialAc MillivoltsAc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialAc.FromMillivoltsAc(Convert.ToDouble(value));
-
- ///
- [Obsolete("ElectricPotentialAc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialAc VoltsAc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialAc.FromVoltsAc(Convert.ToDouble(value));
-
- }
-}
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToElectricPotentialDcExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToElectricPotentialDcExtensions.g.cs
deleted file mode 100644
index 1a40a8af6e..0000000000
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToElectricPotentialDcExtensions.g.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-
-#if NET7_0_OR_GREATER
-using System.Numerics;
-#endif
-
-#nullable enable
-
-namespace UnitsNet.NumberExtensions.NumberToElectricPotentialDc
-{
- ///
- /// A number to ElectricPotentialDc Extensions
- ///
- [Obsolete("ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static class NumberToElectricPotentialDcExtensions
- {
- ///
- [Obsolete("ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialDc KilovoltsDc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialDc.FromKilovoltsDc(Convert.ToDouble(value));
-
- ///
- [Obsolete("ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialDc MegavoltsDc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialDc.FromMegavoltsDc(Convert.ToDouble(value));
-
- ///
- [Obsolete("ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialDc MicrovoltsDc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialDc.FromMicrovoltsDc(Convert.ToDouble(value));
-
- ///
- [Obsolete("ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialDc MillivoltsDc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialDc.FromMillivoltsDc(Convert.ToDouble(value));
-
- ///
- [Obsolete("ElectricPotentialDc has been merged into ElectricPotential, and will be removed in a later major version. If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple.")]
- public static ElectricPotentialDc VoltsDc(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ElectricPotentialDc.FromVoltsDc(Convert.ToDouble(value));
-
- }
-}
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToReactiveEnergyExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToReactiveEnergyExtensions.g.cs
deleted file mode 100644
index dfc87c2774..0000000000
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToReactiveEnergyExtensions.g.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-
-#if NET7_0_OR_GREATER
-using System.Numerics;
-#endif
-
-#nullable enable
-
-namespace UnitsNet.NumberExtensions.NumberToReactiveEnergy
-{
- ///
- /// A number to ReactiveEnergy Extensions
- ///
- [Obsolete("ReactiveEnergy has been renamed to ElectricReactiveEnergy, and will be removed in a later major version.")]
- public static class NumberToReactiveEnergyExtensions
- {
- ///
- [Obsolete("ReactiveEnergy has been renamed to ElectricReactiveEnergy, and will be removed in a later major version.")]
- public static ReactiveEnergy KilovoltampereReactiveHours(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ReactiveEnergy.FromKilovoltampereReactiveHours(Convert.ToDouble(value));
-
- ///
- [Obsolete("ReactiveEnergy has been renamed to ElectricReactiveEnergy, and will be removed in a later major version.")]
- public static ReactiveEnergy MegavoltampereReactiveHours(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ReactiveEnergy.FromMegavoltampereReactiveHours(Convert.ToDouble(value));
-
- ///
- [Obsolete("ReactiveEnergy has been renamed to ElectricReactiveEnergy, and will be removed in a later major version.")]
- public static ReactiveEnergy VoltampereReactiveHours(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ReactiveEnergy.FromVoltampereReactiveHours(Convert.ToDouble(value));
-
- }
-}
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToReactivePowerExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToReactivePowerExtensions.g.cs
deleted file mode 100644
index 149e729d5e..0000000000
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToReactivePowerExtensions.g.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-
-#if NET7_0_OR_GREATER
-using System.Numerics;
-#endif
-
-#nullable enable
-
-namespace UnitsNet.NumberExtensions.NumberToReactivePower
-{
- ///
- /// A number to ReactivePower Extensions
- ///
- [Obsolete("ReactivePower has been renamed to ElectricReactivePower, and will be removed in a later major version.")]
- public static class NumberToReactivePowerExtensions
- {
- ///
- [Obsolete("ReactivePower has been renamed to ElectricReactivePower, and will be removed in a later major version.")]
- public static ReactivePower GigavoltamperesReactive(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ReactivePower.FromGigavoltamperesReactive(Convert.ToDouble(value));
-
- ///
- [Obsolete("ReactivePower has been renamed to ElectricReactivePower, and will be removed in a later major version.")]
- public static ReactivePower KilovoltamperesReactive(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ReactivePower.FromKilovoltamperesReactive(Convert.ToDouble(value));
-
- ///
- [Obsolete("ReactivePower has been renamed to ElectricReactivePower, and will be removed in a later major version.")]
- public static ReactivePower MegavoltamperesReactive(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ReactivePower.FromMegavoltamperesReactive(Convert.ToDouble(value));
-
- ///
- [Obsolete("ReactivePower has been renamed to ElectricReactivePower, and will be removed in a later major version.")]
- public static ReactivePower VoltamperesReactive(this T value)
- where T : notnull
-#if NET7_0_OR_GREATER
- , INumber
-#endif
- => ReactivePower.FromVoltamperesReactive(Convert.ToDouble(value));
-
- }
-}
diff --git a/UnitsNet.Tests/CustomCode/ApparentEnergyTests.cs b/UnitsNet.Tests/CustomCode/ApparentEnergyTests.cs
deleted file mode 100644
index 216ef60102..0000000000
--- a/UnitsNet.Tests/CustomCode/ApparentEnergyTests.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated (once) by \generate-code.bat, but will not be
-// regenerated when it already exists. The purpose of creating this file is to make
-// it easier to remember to implement all the unit conversion test cases.
-//
-// Whenever a new unit is added to this quantity and \generate-code.bat is run,
-// the base test class will get a new abstract property and cause a compile error
-// in this derived class, reminding the developer to implement the test case
-// for the new unit.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run GeneratUnits.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-
-using System;
-
-namespace UnitsNet.Tests.CustomCode
-{
- public class ApparentEnergyTests : ApparentEnergyTestsBase
- {
- protected override bool SupportsSIUnitSystem => false;
-
- protected override double VoltampereHoursInOneVoltampereHour => 1;
-
- protected override double KilovoltampereHoursInOneVoltampereHour => 1E-3;
-
- protected override double MegavoltampereHoursInOneVoltampereHour => 1E-6;
- }
-}
diff --git a/UnitsNet.Tests/CustomCode/ApparentPowerTests.cs b/UnitsNet.Tests/CustomCode/ApparentPowerTests.cs
deleted file mode 100644
index 7b0b635297..0000000000
--- a/UnitsNet.Tests/CustomCode/ApparentPowerTests.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated (once) by \generate-code.bat, but will not be
-// regenerated when it already exists. The purpose of creating this file is to make
-// it easier to remember to implement all the unit conversion test cases.
-//
-// Whenever a new unit is added to this unit class and \generate-code.bat is run,
-// the base test class will get a new abstract property and cause a compile error
-// in this derived class, reminding the developer to implement the test case
-// for the new unit.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\UnitClasses\MyQuantity.extra.cs files to add code to generated unit classes.
-// Add UnitDefinitions\MyQuantity.json and run GeneratUnits.bat to generate new units or unit classes.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-
-using System;
-
-namespace UnitsNet.Tests.CustomCode
-{
- public class ApparentPowerTests : ApparentPowerTestsBase
- {
- protected override bool SupportsSIUnitSystem => false;
-
- protected override double VoltamperesInOneVoltampere => 1;
-
- protected override double KilovoltamperesInOneVoltampere => 1E-3;
-
- protected override double MegavoltamperesInOneVoltampere => 1E-6;
-
- protected override double GigavoltamperesInOneVoltampere => 1E-9;
-
- protected override double MicrovoltamperesInOneVoltampere => 1E6;
-
- protected override double MillivoltamperesInOneVoltampere => 1E3;
- }
-}
diff --git a/UnitsNet.Tests/CustomCode/CapacitanceTests.cs b/UnitsNet.Tests/CustomCode/CapacitanceTests.cs
deleted file mode 100644
index 1dee2ea97e..0000000000
--- a/UnitsNet.Tests/CustomCode/CapacitanceTests.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated (once) by \generate-code.bat, but will not be
-// regenerated when it already exists. The purpose of creating this file is to make
-// it easier to remember to implement all the unit conversion test cases.
-//
-// Whenever a new unit is added to this quantity and \generate-code.bat is run,
-// the base test class will get a new abstract property and cause a compile error
-// in this derived class, reminding the developer to implement the test case
-// for the new unit.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run GeneratUnits.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-
-using System;
-
-namespace UnitsNet.Tests.CustomCode
-{
- public class CapacitanceTests : CapacitanceTestsBase
- {
- protected override bool SupportsSIUnitSystem => true;
-
- protected override double FaradsInOneFarad => 1;
-
- protected override double MillifaradsInOneFarad => 1e3;
-
- protected override double MicrofaradsInOneFarad => 1e6;
-
- protected override double NanofaradsInOneFarad => 1e9;
-
- protected override double PicofaradsInOneFarad => 1e12;
-
- protected override double KilofaradsInOneFarad => 1e-3;
-
- protected override double MegafaradsInOneFarad => 1e-6;
- }
-}
diff --git a/UnitsNet.Tests/CustomCode/ElectricPotentialAcTests.cs b/UnitsNet.Tests/CustomCode/ElectricPotentialAcTests.cs
deleted file mode 100644
index b001ca7f65..0000000000
--- a/UnitsNet.Tests/CustomCode/ElectricPotentialAcTests.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated (once) by \generate-code.bat, but will not be
-// regenerated when it already exists. The purpose of creating this file is to make
-// it easier to remember to implement all the unit conversion test cases.
-//
-// Whenever a new unit is added to this unit class and \generate-code.bat is run,
-// the base test class will get a new abstract property and cause a compile error
-// in this derived class, reminding the developer to implement the test case
-// for the new unit.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\UnitClasses\MyQuantity.extra.cs files to add code to generated unit classes.
-// Add UnitDefinitions\MyQuantity.json and run GeneratUnits.bat to generate new units or unit classes.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-
-using System;
-
-namespace UnitsNet.Tests.CustomCode
-{
- public class ElectricPotentialAcTests : ElectricPotentialAcTestsBase
- {
- protected override bool SupportsSIUnitSystem => false;
- protected override double KilovoltsAcInOneVoltAc => 1e-3;
-
- protected override double MegavoltsAcInOneVoltAc => 1e-6;
-
- protected override double MicrovoltsAcInOneVoltAc => 1e+6;
-
- protected override double MillivoltsAcInOneVoltAc => 1000;
-
- protected override double VoltsAcInOneVoltAc => 1;
- }
-}
diff --git a/UnitsNet.Tests/CustomCode/ElectricPotentialDcTests.cs b/UnitsNet.Tests/CustomCode/ElectricPotentialDcTests.cs
deleted file mode 100644
index 9fa9db32c6..0000000000
--- a/UnitsNet.Tests/CustomCode/ElectricPotentialDcTests.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated (once) by \generate-code.bat, but will not be
-// regenerated when it already exists. The purpose of creating this file is to make
-// it easier to remember to implement all the unit conversion test cases.
-//
-// Whenever a new unit is added to this unit class and \generate-code.bat is run,
-// the base test class will get a new abstract property and cause a compile error
-// in this derived class, reminding the developer to implement the test case
-// for the new unit.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\UnitClasses\MyQuantity.extra.cs files to add code to generated unit classes.
-// Add UnitDefinitions\MyQuantity.json and run GeneratUnits.bat to generate new units or unit classes.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-
-using System;
-
-namespace UnitsNet.Tests.CustomCode
-{
- public class ElectricPotentialDcTests : ElectricPotentialDcTestsBase
- {
- protected override bool SupportsSIUnitSystem => false;
- protected override double KilovoltsDcInOneVoltDc => 1e-3;
-
- protected override double MegavoltsDcInOneVoltDc => 1e-6;
-
- protected override double MicrovoltsDcInOneVoltDc => 1e+6;
-
- protected override double MillivoltsDcInOneVoltDc => 1000;
-
- protected override double VoltsDcInOneVoltDc => 1;
- }
-}
diff --git a/UnitsNet.Tests/CustomCode/ReactiveEnergyTests.cs b/UnitsNet.Tests/CustomCode/ReactiveEnergyTests.cs
deleted file mode 100644
index 2cd682b8ae..0000000000
--- a/UnitsNet.Tests/CustomCode/ReactiveEnergyTests.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated (once) by \generate-code.bat, but will not be
-// regenerated when it already exists. The purpose of creating this file is to make
-// it easier to remember to implement all the unit conversion test cases.
-//
-// Whenever a new unit is added to this quantity and \generate-code.bat is run,
-// the base test class will get a new abstract property and cause a compile error
-// in this derived class, reminding the developer to implement the test case
-// for the new unit.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run GeneratUnits.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-
-using System;
-
-namespace UnitsNet.Tests.CustomCode
-{
- public class ReactiveEnergyTests : ReactiveEnergyTestsBase
- {
- protected override bool SupportsSIUnitSystem => false;
- protected override double VoltampereReactiveHoursInOneVoltampereReactiveHour => 1;
-
- protected override double KilovoltampereReactiveHoursInOneVoltampereReactiveHour => 1E-3;
-
- protected override double MegavoltampereReactiveHoursInOneVoltampereReactiveHour => 1E-6;
- }
-}
diff --git a/UnitsNet.Tests/CustomCode/ReactivePowerTests.cs b/UnitsNet.Tests/CustomCode/ReactivePowerTests.cs
deleted file mode 100644
index 184a40d2f4..0000000000
--- a/UnitsNet.Tests/CustomCode/ReactivePowerTests.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated (once) by \generate-code.bat, but will not be
-// regenerated when it already exists. The purpose of creating this file is to make
-// it easier to remember to implement all the unit conversion test cases.
-//
-// Whenever a new unit is added to this unit class and \generate-code.bat is run,
-// the base test class will get a new abstract property and cause a compile error
-// in this derived class, reminding the developer to implement the test case
-// for the new unit.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\UnitClasses\MyQuantity.extra.cs files to add code to generated unit classes.
-// Add UnitDefinitions\MyQuantity.json and run GeneratUnits.bat to generate new units or unit classes.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-
-using System;
-
-namespace UnitsNet.Tests.CustomCode
-{
- public class ReactivePowerTests : ReactivePowerTestsBase
- {
- protected override bool SupportsSIUnitSystem => false;
- protected override double VoltamperesReactiveInOneVoltampereReactive => 1;
-
- protected override double KilovoltamperesReactiveInOneVoltampereReactive => 1E-3;
-
- protected override double MegavoltamperesReactiveInOneVoltampereReactive => 1E-6;
-
- protected override double GigavoltamperesReactiveInOneVoltampereReactive => 1E-9;
- }
-}
diff --git a/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs b/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs
index 9e50897b3c..afb8d58278 100644
--- a/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs
@@ -39,14 +39,11 @@ void Assertion(int expectedValue, Enum expectedUnit, IQuantity quantity)
Assertion(3, AmountOfSubstanceUnit.PoundMole, Quantity.From(3, AmountOfSubstanceUnit.PoundMole));
Assertion(3, AmplitudeRatioUnit.DecibelVolt, Quantity.From(3, AmplitudeRatioUnit.DecibelVolt));
Assertion(3, AngleUnit.Revolution, Quantity.From(3, AngleUnit.Revolution));
- Assertion(3, ApparentEnergyUnit.VoltampereHour, Quantity.From(3, ApparentEnergyUnit.VoltampereHour));
- Assertion(3, ApparentPowerUnit.Voltampere, Quantity.From(3, ApparentPowerUnit.Voltampere));
Assertion(3, AreaUnit.UsSurveySquareFoot, Quantity.From(3, AreaUnit.UsSurveySquareFoot));
Assertion(3, AreaDensityUnit.MilligramPerSquareMeter, Quantity.From(3, AreaDensityUnit.MilligramPerSquareMeter));
Assertion(3, AreaMomentOfInertiaUnit.MillimeterToTheFourth, Quantity.From(3, AreaMomentOfInertiaUnit.MillimeterToTheFourth));
Assertion(3, BitRateUnit.TerabytePerSecond, Quantity.From(3, BitRateUnit.TerabytePerSecond));
Assertion(3, BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour, Quantity.From(3, BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour));
- Assertion(3, CapacitanceUnit.Picofarad, Quantity.From(3, CapacitanceUnit.Picofarad));
Assertion(3, CoefficientOfThermalExpansionUnit.PpmPerKelvin, Quantity.From(3, CoefficientOfThermalExpansionUnit.PpmPerKelvin));
Assertion(3, CompressibilityUnit.InversePoundForcePerSquareInch, Quantity.From(3, CompressibilityUnit.InversePoundForcePerSquareInch));
Assertion(3, DensityUnit.TonnePerCubicMillimeter, Quantity.From(3, DensityUnit.TonnePerCubicMillimeter));
@@ -68,9 +65,7 @@ void Assertion(int expectedValue, Enum expectedUnit, IQuantity quantity)
Assertion(3, ElectricImpedanceUnit.Teraohm, Quantity.From(3, ElectricImpedanceUnit.Teraohm));
Assertion(3, ElectricInductanceUnit.Picohenry, Quantity.From(3, ElectricInductanceUnit.Picohenry));
Assertion(3, ElectricPotentialUnit.Volt, Quantity.From(3, ElectricPotentialUnit.Volt));
- Assertion(3, ElectricPotentialAcUnit.VoltAc, Quantity.From(3, ElectricPotentialAcUnit.VoltAc));
Assertion(3, ElectricPotentialChangeRateUnit.VoltPerSecond, Quantity.From(3, ElectricPotentialChangeRateUnit.VoltPerSecond));
- Assertion(3, ElectricPotentialDcUnit.VoltDc, Quantity.From(3, ElectricPotentialDcUnit.VoltDc));
Assertion(3, ElectricReactanceUnit.Teraohm, Quantity.From(3, ElectricReactanceUnit.Teraohm));
Assertion(3, ElectricReactiveEnergyUnit.VoltampereReactiveHour, Quantity.From(3, ElectricReactiveEnergyUnit.VoltampereReactiveHour));
Assertion(3, ElectricReactivePowerUnit.VoltampereReactive, Quantity.From(3, ElectricReactivePowerUnit.VoltampereReactive));
@@ -133,8 +128,6 @@ void Assertion(int expectedValue, Enum expectedUnit, IQuantity quantity)
Assertion(3, RadioactivityUnit.Terarutherford, Quantity.From(3, RadioactivityUnit.Terarutherford));
Assertion(3, RatioUnit.Percent, Quantity.From(3, RatioUnit.Percent));
Assertion(3, RatioChangeRateUnit.PercentPerSecond, Quantity.From(3, RatioChangeRateUnit.PercentPerSecond));
- Assertion(3, ReactiveEnergyUnit.VoltampereReactiveHour, Quantity.From(3, ReactiveEnergyUnit.VoltampereReactiveHour));
- Assertion(3, ReactivePowerUnit.VoltampereReactive, Quantity.From(3, ReactivePowerUnit.VoltampereReactive));
Assertion(3, ReciprocalAreaUnit.InverseUsSurveySquareFoot, Quantity.From(3, ReciprocalAreaUnit.InverseUsSurveySquareFoot));
Assertion(3, ReciprocalLengthUnit.InverseYard, Quantity.From(3, ReciprocalLengthUnit.InverseYard));
Assertion(3, RelativeHumidityUnit.Percent, Quantity.From(3, RelativeHumidityUnit.Percent));
@@ -179,14 +172,11 @@ public void QuantityInfo_IsSameAsStaticInfoProperty()
Assertion(AmountOfSubstance.Info, AmountOfSubstance.Zero);
Assertion(AmplitudeRatio.Info, AmplitudeRatio.Zero);
Assertion(Angle.Info, Angle.Zero);
- Assertion(ApparentEnergy.Info, ApparentEnergy.Zero);
- Assertion(ApparentPower.Info, ApparentPower.Zero);
Assertion(Area.Info, Area.Zero);
Assertion(AreaDensity.Info, AreaDensity.Zero);
Assertion(AreaMomentOfInertia.Info, AreaMomentOfInertia.Zero);
Assertion(BitRate.Info, BitRate.Zero);
Assertion(BrakeSpecificFuelConsumption.Info, BrakeSpecificFuelConsumption.Zero);
- Assertion(Capacitance.Info, Capacitance.Zero);
Assertion(CoefficientOfThermalExpansion.Info, CoefficientOfThermalExpansion.Zero);
Assertion(Compressibility.Info, Compressibility.Zero);
Assertion(Density.Info, Density.Zero);
@@ -208,9 +198,7 @@ public void QuantityInfo_IsSameAsStaticInfoProperty()
Assertion(ElectricImpedance.Info, ElectricImpedance.Zero);
Assertion(ElectricInductance.Info, ElectricInductance.Zero);
Assertion(ElectricPotential.Info, ElectricPotential.Zero);
- Assertion(ElectricPotentialAc.Info, ElectricPotentialAc.Zero);
Assertion(ElectricPotentialChangeRate.Info, ElectricPotentialChangeRate.Zero);
- Assertion(ElectricPotentialDc.Info, ElectricPotentialDc.Zero);
Assertion(ElectricReactance.Info, ElectricReactance.Zero);
Assertion(ElectricReactiveEnergy.Info, ElectricReactiveEnergy.Zero);
Assertion(ElectricReactivePower.Info, ElectricReactivePower.Zero);
@@ -273,8 +261,6 @@ public void QuantityInfo_IsSameAsStaticInfoProperty()
Assertion(Radioactivity.Info, Radioactivity.Zero);
Assertion(Ratio.Info, Ratio.Zero);
Assertion(RatioChangeRate.Info, RatioChangeRate.Zero);
- Assertion(ReactiveEnergy.Info, ReactiveEnergy.Zero);
- Assertion(ReactivePower.Info, ReactivePower.Zero);
Assertion(ReciprocalArea.Info, ReciprocalArea.Zero);
Assertion(ReciprocalLength.Info, ReciprocalLength.Zero);
Assertion(RelativeHumidity.Info, RelativeHumidity.Zero);
@@ -319,14 +305,11 @@ public void Dimensions_IsSameAsStaticBaseDimensions()
Assertion(AmountOfSubstance.BaseDimensions, AmountOfSubstance.Zero);
Assertion(AmplitudeRatio.BaseDimensions, AmplitudeRatio.Zero);
Assertion(Angle.BaseDimensions, Angle.Zero);
- Assertion(ApparentEnergy.BaseDimensions, ApparentEnergy.Zero);
- Assertion(ApparentPower.BaseDimensions, ApparentPower.Zero);
Assertion(Area.BaseDimensions, Area.Zero);
Assertion(AreaDensity.BaseDimensions, AreaDensity.Zero);
Assertion(AreaMomentOfInertia.BaseDimensions, AreaMomentOfInertia.Zero);
Assertion(BitRate.BaseDimensions, BitRate.Zero);
Assertion(BrakeSpecificFuelConsumption.BaseDimensions, BrakeSpecificFuelConsumption.Zero);
- Assertion(Capacitance.BaseDimensions, Capacitance.Zero);
Assertion(CoefficientOfThermalExpansion.BaseDimensions, CoefficientOfThermalExpansion.Zero);
Assertion(Compressibility.BaseDimensions, Compressibility.Zero);
Assertion(Density.BaseDimensions, Density.Zero);
@@ -348,9 +331,7 @@ public void Dimensions_IsSameAsStaticBaseDimensions()
Assertion(ElectricImpedance.BaseDimensions, ElectricImpedance.Zero);
Assertion(ElectricInductance.BaseDimensions, ElectricInductance.Zero);
Assertion(ElectricPotential.BaseDimensions, ElectricPotential.Zero);
- Assertion(ElectricPotentialAc.BaseDimensions, ElectricPotentialAc.Zero);
Assertion(ElectricPotentialChangeRate.BaseDimensions, ElectricPotentialChangeRate.Zero);
- Assertion(ElectricPotentialDc.BaseDimensions, ElectricPotentialDc.Zero);
Assertion(ElectricReactance.BaseDimensions, ElectricReactance.Zero);
Assertion(ElectricReactiveEnergy.BaseDimensions, ElectricReactiveEnergy.Zero);
Assertion(ElectricReactivePower.BaseDimensions, ElectricReactivePower.Zero);
@@ -413,8 +394,6 @@ public void Dimensions_IsSameAsStaticBaseDimensions()
Assertion(Radioactivity.BaseDimensions, Radioactivity.Zero);
Assertion(Ratio.BaseDimensions, Ratio.Zero);
Assertion(RatioChangeRate.BaseDimensions, RatioChangeRate.Zero);
- Assertion(ReactiveEnergy.BaseDimensions, ReactiveEnergy.Zero);
- Assertion(ReactivePower.BaseDimensions, ReactivePower.Zero);
Assertion(ReciprocalArea.BaseDimensions, ReciprocalArea.Zero);
Assertion(ReciprocalLength.BaseDimensions, ReciprocalLength.Zero);
Assertion(RelativeHumidity.BaseDimensions, RelativeHumidity.Zero);
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs
deleted file mode 100644
index 31074377bf..0000000000
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs
+++ /dev/null
@@ -1,750 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by \generate-code.bat.
-//
-// Changes to this file will be lost when the code is regenerated.
-// The build server regenerates the code before each build and a pre-build
-// step will regenerate the code on each local build.
-//
-// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
-//
-// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
-// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
-//
-//
-//------------------------------------------------------------------------------
-
-// Licensed under MIT No Attribution, see LICENSE file at the root.
-// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
-
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Linq;
-using System.Threading;
-using UnitsNet.Tests.Helpers;
-using UnitsNet.Tests.TestsBase;
-using UnitsNet.Units;
-using Xunit;
-
-// Disable build warning CS1718: Comparison made to same variable; did you mean to compare something else?
-#pragma warning disable 1718
-
-// ReSharper disable once CheckNamespace
-namespace UnitsNet.Tests
-{
- ///
- /// Test of ApparentEnergy.
- ///
-// ReSharper disable once PartialTypeWithSinglePart
- public abstract partial class ApparentEnergyTestsBase : QuantityTestsBase
- {
- protected abstract double KilovoltampereHoursInOneVoltampereHour { get; }
- protected abstract double MegavoltampereHoursInOneVoltampereHour { get; }
- protected abstract double VoltampereHoursInOneVoltampereHour { get; }
-
-// ReSharper disable VirtualMemberNeverOverriden.Global
- protected virtual double KilovoltampereHoursTolerance { get { return 1e-5; } }
- protected virtual double MegavoltampereHoursTolerance { get { return 1e-5; } }
- protected virtual double VoltampereHoursTolerance { get { return 1e-5; } }
-// ReSharper restore VirtualMemberNeverOverriden.Global
-
- protected (double UnitsInBaseUnit, double Tolerence) GetConversionFactor(ApparentEnergyUnit unit)
- {
- return unit switch
- {
- ApparentEnergyUnit.KilovoltampereHour => (KilovoltampereHoursInOneVoltampereHour, KilovoltampereHoursTolerance),
- ApparentEnergyUnit.MegavoltampereHour => (MegavoltampereHoursInOneVoltampereHour, MegavoltampereHoursTolerance),
- ApparentEnergyUnit.VoltampereHour => (VoltampereHoursInOneVoltampereHour, VoltampereHoursTolerance),
- _ => throw new NotSupportedException()
- };
- }
-
- public static IEnumerable