diff --git a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
index 416ca27273..2b2d6b9657 100644
--- a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
+++ b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
@@ -47,6 +47,7 @@ public override string Generate()
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -70,6 +71,7 @@ namespace UnitsNet
/// ");
Writer.W(@$"
+ [DataContract]
public partial struct {_quantity.Name} : IQuantity<{_unitEnumName}>, ");
if (_quantity.BaseType == "decimal")
{
@@ -82,11 +84,13 @@ public partial struct {_quantity.Name} : IQuantity<{_unitEnumName}>, ");
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = ""Value"", Order = 1)]
private readonly {_quantity.BaseType} _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = ""Unit"", Order = 2)]
private readonly {_unitEnumName}? _unit;
");
GenerateStaticConstructor();
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/Acceleration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Acceleration/Acceleration.nfproj
index 36524b6088..7a0c7f5444 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/Acceleration.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Acceleration/Acceleration.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Acceleration/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Acceleration/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/AmountOfSubstance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/AmountOfSubstance.nfproj
index 0dbc345d23..e34c83ea81 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/AmountOfSubstance.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/AmountOfSubstance.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/AmplitudeRatio.nfproj b/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/AmplitudeRatio.nfproj
index a873c66c8b..2fb3587ab4 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/AmplitudeRatio.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/AmplitudeRatio.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/packages.config b/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Angle/Angle.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Angle/Angle.nfproj
index d5e7f75615..cf530fa330 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Angle/Angle.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Angle/Angle.nfproj
@@ -24,13 +24,13 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
-
- ..\packages\nanoFramework.System.Math.1.4.0-preview.1\lib\System.Math.dll
+
+ ..\packages\nanoFramework.System.Math.1.4.1-preview.1\lib\System.Math.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Angle/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Angle/packages.config
index c2227668a6..8e975cfe0d 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Angle/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Angle/packages.config
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/ApparentEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/ApparentEnergy.nfproj
index 8e79fbc6cb..0ce983257c 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/ApparentEnergy.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/ApparentEnergy.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ApparentEnergy/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/ApparentPower.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/ApparentPower.nfproj
index ca9c9d62a6..be3440a81a 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/ApparentPower.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/ApparentPower.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ApparentPower/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Area/Area.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Area/Area.nfproj
index 5b8dc1cad4..c3bfef015d 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Area/Area.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Area/Area.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Area/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Area/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Area/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Area/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/AreaDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/AreaDensity.nfproj
index 1e48b82e1d..142833abd0 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/AreaDensity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/AreaDensity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/AreaMomentOfInertia.nfproj b/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/AreaMomentOfInertia.nfproj
index 79ee2e72cf..0de3a3e16a 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/AreaMomentOfInertia.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/AreaMomentOfInertia.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/packages.config b/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/BrakeSpecificFuelConsumption.nfproj b/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/BrakeSpecificFuelConsumption.nfproj
index b5a8771af8..c57a542d91 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/BrakeSpecificFuelConsumption.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/BrakeSpecificFuelConsumption.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/packages.config b/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/Capacitance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Capacitance/Capacitance.nfproj
index 93596b6b2d..3f5232138e 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/Capacitance.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Capacitance/Capacitance.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Capacitance/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Capacitance/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Capacitance/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/CoefficientOfThermalExpansion.nfproj b/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/CoefficientOfThermalExpansion.nfproj
index 93677e7759..934330e947 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/CoefficientOfThermalExpansion.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/CoefficientOfThermalExpansion.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/packages.config b/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Density/Density.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Density/Density.nfproj
index 0663545870..f29a2d5925 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Density/Density.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Density/Density.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Density/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Density/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Density/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Density/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Duration/Duration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Duration/Duration.nfproj
index 9f930c1809..24d39dd973 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Duration/Duration.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Duration/Duration.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Duration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Duration/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Duration/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Duration/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/DynamicViscosity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/DynamicViscosity.nfproj
index f2541e5dc2..5390015fbf 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/DynamicViscosity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/DynamicViscosity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/ElectricAdmittance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/ElectricAdmittance.nfproj
index a1485f6285..d76af3084b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/ElectricAdmittance.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/ElectricAdmittance.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/ElectricCharge.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/ElectricCharge.nfproj
index 3a165e24ae..44629544c0 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/ElectricCharge.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/ElectricCharge.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/ElectricChargeDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/ElectricChargeDensity.nfproj
index 54291380a4..58ba160870 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/ElectricChargeDensity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/ElectricChargeDensity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/ElectricConductance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/ElectricConductance.nfproj
index 647d2489c1..15beb99ef5 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/ElectricConductance.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/ElectricConductance.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/ElectricConductivity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/ElectricConductivity.nfproj
index 295e07b2b2..90fe92a089 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/ElectricConductivity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/ElectricConductivity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/ElectricCurrent.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/ElectricCurrent.nfproj
index 4e3fd32a61..230995f7d2 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/ElectricCurrent.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/ElectricCurrent.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/ElectricCurrentDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/ElectricCurrentDensity.nfproj
index 3748e85d0d..69ca8a3d52 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/ElectricCurrentDensity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/ElectricCurrentDensity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/ElectricCurrentGradient.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/ElectricCurrentGradient.nfproj
index 659f2b945b..7a9a42f493 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/ElectricCurrentGradient.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/ElectricCurrentGradient.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/ElectricField.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricField/ElectricField.nfproj
index 5a8dea36e0..d14d553f4c 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/ElectricField.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricField/ElectricField.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricField/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricField/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/ElectricInductance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/ElectricInductance.nfproj
index fffd96b830..970824d4c8 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/ElectricInductance.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/ElectricInductance.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/ElectricPotential.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/ElectricPotential.nfproj
index bf1c32b16d..646fb4f26b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/ElectricPotential.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/ElectricPotential.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/ElectricPotentialAc.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/ElectricPotentialAc.nfproj
index 6896d5f378..fa2107a8bd 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/ElectricPotentialAc.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/ElectricPotentialAc.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialAc/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/ElectricPotentialChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/ElectricPotentialChangeRate.nfproj
index 6d78841ea1..a9e34a9be4 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/ElectricPotentialChangeRate.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/ElectricPotentialChangeRate.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/ElectricPotentialDc.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/ElectricPotentialDc.nfproj
index 071f00c63d..e844bae28a 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/ElectricPotentialDc.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/ElectricPotentialDc.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialDc/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/ElectricResistance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/ElectricResistance.nfproj
index edb5b1ac83..82a9c10c96 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/ElectricResistance.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/ElectricResistance.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/ElectricResistivity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/ElectricResistivity.nfproj
index 836abb9caa..90b841a6c5 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/ElectricResistivity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/ElectricResistivity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/ElectricSurfaceChargeDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/ElectricSurfaceChargeDensity.nfproj
index 243fd983b1..ac2462fd81 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/ElectricSurfaceChargeDensity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/ElectricSurfaceChargeDensity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Energy/Energy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Energy/Energy.nfproj
index ce0fa13386..e3c3060b66 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Energy/Energy.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Energy/Energy.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Energy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Energy/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Energy/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Energy/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Entropy/Entropy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Entropy/Entropy.nfproj
index a363d457dd..173de75914 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Entropy/Entropy.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Entropy/Entropy.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Entropy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Entropy/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Entropy/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Entropy/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Force/Force.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Force/Force.nfproj
index 21873d32b0..242f081a02 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Force/Force.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Force/Force.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Force/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Force/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Force/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Force/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/ForceChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/ForceChangeRate.nfproj
index cab73670f9..b44d8d712a 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/ForceChangeRate.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/ForceChangeRate.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/ForcePerLength.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/ForcePerLength.nfproj
index 051daa6818..68edd16f8e 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/ForcePerLength.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/ForcePerLength.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Frequency/Frequency.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Frequency/Frequency.nfproj
index 3c8114dfbd..4c7030eee0 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Frequency/Frequency.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Frequency/Frequency.nfproj
@@ -24,13 +24,13 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
-
- ..\packages\nanoFramework.System.Math.1.4.0-preview.1\lib\System.Math.dll
+
+ ..\packages\nanoFramework.System.Math.1.4.1-preview.1\lib\System.Math.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Frequency/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Frequency/packages.config
index c2227668a6..8e975cfe0d 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Frequency/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Frequency/packages.config
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/FuelEfficiency.nfproj b/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/FuelEfficiency.nfproj
index 31d996d32c..0f7c12301f 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/FuelEfficiency.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/FuelEfficiency.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/packages.config b/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/HeatFlux.nfproj b/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/HeatFlux.nfproj
index e27e66d4d0..2095ffed41 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/HeatFlux.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/HeatFlux.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/packages.config b/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/HeatTransferCoefficient.nfproj b/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/HeatTransferCoefficient.nfproj
index eafdd7fee9..282460ec20 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/HeatTransferCoefficient.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/HeatTransferCoefficient.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/packages.config b/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/Illuminance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Illuminance/Illuminance.nfproj
index b4b24b8b59..72708a9f31 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/Illuminance.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Illuminance/Illuminance.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Illuminance/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Illuminance/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/Irradiance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Irradiance/Irradiance.nfproj
index 1f6a0ebfc5..ced879b161 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/Irradiance.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Irradiance/Irradiance.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Irradiance/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Irradiance/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/Irradiation.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Irradiation/Irradiation.nfproj
index d53e682b65..e6c7ae382d 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/Irradiation.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Irradiation/Irradiation.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Irradiation/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Irradiation/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/KinematicViscosity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/KinematicViscosity.nfproj
index 9cae36ed94..cd27771c4a 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/KinematicViscosity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/KinematicViscosity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LapseRate/LapseRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LapseRate/LapseRate.nfproj
index abd50c2b10..7e2130612f 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LapseRate/LapseRate.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/LapseRate/LapseRate.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LapseRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LapseRate/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LapseRate/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/LapseRate/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Length/Length.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Length/Length.nfproj
index 7a71916487..45552a8dba 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Length/Length.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Length/Length.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Length/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Length/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Length/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Length/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Level/Level.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Level/Level.nfproj
index 4df9f86ad3..c485e0e878 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Level/Level.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Level/Level.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Level/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Level/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Level/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Level/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/LinearDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/LinearDensity.nfproj
index 81a37ebcc1..f9f819b005 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/LinearDensity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/LinearDensity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/LinearPowerDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/LinearPowerDensity.nfproj
index ccd29c2d04..a2532996ae 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/LinearPowerDensity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/LinearPowerDensity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/Luminosity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Luminosity/Luminosity.nfproj
index 3fabd6210d..f0b49f0989 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/Luminosity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Luminosity/Luminosity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Luminosity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Luminosity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/LuminousFlux.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/LuminousFlux.nfproj
index 1e983feef1..7169f545d0 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/LuminousFlux.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/LuminousFlux.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/LuminousIntensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/LuminousIntensity.nfproj
index 5625a7f2e0..bbb62a1d32 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/LuminousIntensity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/LuminousIntensity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/MagneticField.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MagneticField/MagneticField.nfproj
index 778931360b..31bdbe8bb1 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/MagneticField.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MagneticField/MagneticField.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MagneticField/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MagneticField/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/MagneticFlux.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/MagneticFlux.nfproj
index 1dae751dc6..88c159c8f3 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/MagneticFlux.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/MagneticFlux.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/Magnetization.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Magnetization/Magnetization.nfproj
index a349634814..1724b9db85 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/Magnetization.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Magnetization/Magnetization.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Magnetization/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Magnetization/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Mass/Mass.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Mass/Mass.nfproj
index 228424c7b5..3c0ecbd3be 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Mass/Mass.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Mass/Mass.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Mass/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Mass/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Mass/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Mass/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/MassConcentration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/MassConcentration.nfproj
index 31301d71f1..a31f15e316 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/MassConcentration.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/MassConcentration.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/MassFlow.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassFlow/MassFlow.nfproj
index b09b976d55..4f158cf2db 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/MassFlow.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassFlow/MassFlow.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassFlow/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassFlow/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/MassFlux.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassFlux/MassFlux.nfproj
index 6aa91c4068..00e3c6fcf4 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/MassFlux.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassFlux/MassFlux.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassFlux/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassFlux/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/MassFraction.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassFraction/MassFraction.nfproj
index e1eee344fe..3f75ee1abc 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/MassFraction.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassFraction/MassFraction.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassFraction/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassFraction/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/MassMomentOfInertia.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/MassMomentOfInertia.nfproj
index 652ac92cb6..fa72fb2682 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/MassMomentOfInertia.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/MassMomentOfInertia.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/MolarEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/MolarEnergy.nfproj
index 62bc16d9fb..32f03b7a8f 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/MolarEnergy.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/MolarEnergy.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/MolarEntropy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/MolarEntropy.nfproj
index bb97fbc144..3cb07087f7 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/MolarEntropy.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/MolarEntropy.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/MolarMass.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MolarMass/MolarMass.nfproj
index 7665d281ae..079aa99eee 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/MolarMass.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/MolarMass/MolarMass.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MolarMass/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/MolarMass/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Molarity/Molarity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Molarity/Molarity.nfproj
index 692f3db4c3..01104f82e4 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Molarity/Molarity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Molarity/Molarity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Molarity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Molarity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Molarity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Molarity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permeability/Permeability.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Permeability/Permeability.nfproj
index 5fd5bfa3d4..bdfdcac7d0 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Permeability/Permeability.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Permeability/Permeability.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permeability/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Permeability/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Permeability/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Permeability/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/Permittivity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Permittivity/Permittivity.nfproj
index 9755918497..c737754973 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/Permittivity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Permittivity/Permittivity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Permittivity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Permittivity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/PowerDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/PowerDensity.nfproj
index 386605d875..646b42ff19 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/PowerDensity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/PowerDensity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/PowerRatio.nfproj b/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/PowerRatio.nfproj
index 5a67646f29..7a11bd4d0e 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/PowerRatio.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/PowerRatio.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/packages.config b/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Pressure/Pressure.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Pressure/Pressure.nfproj
index b7e6be5736..624ba39d07 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Pressure/Pressure.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Pressure/Pressure.nfproj
@@ -24,13 +24,13 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
-
- ..\packages\nanoFramework.System.Math.1.4.0-preview.1\lib\System.Math.dll
+
+ ..\packages\nanoFramework.System.Math.1.4.1-preview.1\lib\System.Math.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Pressure/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Pressure/packages.config
index c2227668a6..8e975cfe0d 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Pressure/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Pressure/packages.config
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/PressureChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/PressureChangeRate.nfproj
index aaa6405812..6a9492adf2 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/PressureChangeRate.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/PressureChangeRate.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Ratio/Ratio.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Ratio/Ratio.nfproj
index d551b73350..f81a242973 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Ratio/Ratio.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Ratio/Ratio.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Ratio/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Ratio/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Ratio/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Ratio/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/RatioChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/RatioChangeRate.nfproj
index 127e504865..5dd437e9e9 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/RatioChangeRate.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/RatioChangeRate.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/ReactiveEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/ReactiveEnergy.nfproj
index 39216fcc8a..9d19bf51e3 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/ReactiveEnergy.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/ReactiveEnergy.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ReactiveEnergy/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/ReactivePower.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/ReactivePower.nfproj
index 5ddf26f031..4e3ce61696 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/ReactivePower.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/ReactivePower.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ReactivePower/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/RelativeHumidity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/RelativeHumidity.nfproj
index 41ddfce3fb..55763c9b9f 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/RelativeHumidity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/RelativeHumidity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/RotationalAcceleration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/RotationalAcceleration.nfproj
index e7eb5177af..b793f89605 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/RotationalAcceleration.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/RotationalAcceleration.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/RotationalSpeed.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/RotationalSpeed.nfproj
index efe287229c..921ad3eac5 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/RotationalSpeed.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/RotationalSpeed.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/RotationalStiffness.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/RotationalStiffness.nfproj
index 19906220a0..6a5f2247a0 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/RotationalStiffness.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/RotationalStiffness.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/RotationalStiffnessPerLength.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/RotationalStiffnessPerLength.nfproj
index e028ac73f7..9b115b616e 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/RotationalStiffnessPerLength.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/RotationalStiffnessPerLength.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Scalar/Scalar.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Scalar/Scalar.nfproj
index 910ccd3ff6..416459d07e 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Scalar/Scalar.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Scalar/Scalar.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Scalar/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Scalar/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Scalar/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Scalar/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/SolidAngle.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/SolidAngle.nfproj
index 79cfef9719..f0ccfcc92b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/SolidAngle.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/SolidAngle.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/SpecificEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/SpecificEnergy.nfproj
index 1dd645d358..b9876c14e1 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/SpecificEnergy.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/SpecificEnergy.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/SpecificEntropy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/SpecificEntropy.nfproj
index 396cbf3cde..c932e1bda3 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/SpecificEntropy.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/SpecificEntropy.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/SpecificVolume.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/SpecificVolume.nfproj
index 991b9e5892..204b395c3b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/SpecificVolume.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/SpecificVolume.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/SpecificWeight.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/SpecificWeight.nfproj
index ed5519aa8a..51f6f91062 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/SpecificWeight.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/SpecificWeight.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Speed/Speed.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Speed/Speed.nfproj
index cdb124550f..b4c6aa0ea2 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Speed/Speed.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Speed/Speed.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Speed/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Speed/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Speed/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Speed/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/StandardVolumeFlow.nfproj b/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/StandardVolumeFlow.nfproj
index c25bef7683..0a1ae05962 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/StandardVolumeFlow.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/StandardVolumeFlow.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/packages.config b/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Temperature/Temperature.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Temperature/Temperature.nfproj
index 0461b7c64e..3e3d07290a 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Temperature/Temperature.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Temperature/Temperature.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Temperature/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Temperature/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Temperature/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Temperature/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/TemperatureChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/TemperatureChangeRate.nfproj
index c92d58839b..27723c1b46 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/TemperatureChangeRate.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/TemperatureChangeRate.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/TemperatureDelta.nfproj b/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/TemperatureDelta.nfproj
index 268e9484b0..0a0c330f18 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/TemperatureDelta.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/TemperatureDelta.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/packages.config b/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/ThermalConductivity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/ThermalConductivity.nfproj
index 9d51e6ec44..31aa52bb48 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/ThermalConductivity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/ThermalConductivity.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/ThermalResistance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/ThermalResistance.nfproj
index e621d05414..ff1e3b32ce 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/ThermalResistance.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/ThermalResistance.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Torque/Torque.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Torque/Torque.nfproj
index 08ba1dc2dd..03b644c51a 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Torque/Torque.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Torque/Torque.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Torque/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Torque/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Torque/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Torque/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/TorquePerLength/TorquePerLength.nfproj b/UnitsNet.NanoFramework/GeneratedCode/TorquePerLength/TorquePerLength.nfproj
index d6c8b9cba2..1e694714e2 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/TorquePerLength/TorquePerLength.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/TorquePerLength/TorquePerLength.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/TorquePerLength/packages.config b/UnitsNet.NanoFramework/GeneratedCode/TorquePerLength/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/TorquePerLength/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/TorquePerLength/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/Turbidity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Turbidity/Turbidity.nfproj
index 13530a3d94..1d80b9aa7f 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/Turbidity.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Turbidity/Turbidity.nfproj
@@ -24,13 +24,13 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
-
- ..\packages\nanoFramework.System.Math.1.4.0-preview.1\lib\System.Math.dll
+
+ ..\packages\nanoFramework.System.Math.1.4.1-preview.1\lib\System.Math.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Turbidity/packages.config
index c2227668a6..8e975cfe0d 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Turbidity/packages.config
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/VitaminA.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VitaminA/VitaminA.nfproj
index 9eb0763ddd..50136a54f1 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/VitaminA.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/VitaminA/VitaminA.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VitaminA/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/VitaminA/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Volume/Volume.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Volume/Volume.nfproj
index 64bccf01b1..dfd006de91 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Volume/Volume.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/Volume/Volume.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Volume/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Volume/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Volume/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/Volume/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/VolumeConcentration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/VolumeConcentration.nfproj
index f64919cfd7..d5cd272bfa 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/VolumeConcentration.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/VolumeConcentration.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/VolumeFlow.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/VolumeFlow.nfproj
index d19bd1fbcb..e42c8beac9 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/VolumeFlow.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/VolumeFlow.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/VolumePerLength.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/VolumePerLength.nfproj
index 668358c83e..42931c5156 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/VolumePerLength.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/VolumePerLength.nfproj
@@ -24,8 +24,8 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/packages.config
index 6bb5fb997f..36d07b0d0b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/WarpingMomentOfInertia.nfproj b/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/WarpingMomentOfInertia.nfproj
index f348d1ef69..0f13f9fc28 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/WarpingMomentOfInertia.nfproj
+++ b/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/WarpingMomentOfInertia.nfproj
@@ -24,13 +24,13 @@
-
- ..\packages\nanoFramework.CoreLibrary.1.10.4-preview.11\lib\mscorlib.dll
+
+ ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll
True
True
-
- ..\packages\nanoFramework.System.Math.1.4.0-preview.1\lib\System.Math.dll
+
+ ..\packages\nanoFramework.System.Math.1.4.1-preview.1\lib\System.Math.dll
True
True
diff --git a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/packages.config b/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/packages.config
index c2227668a6..8e975cfe0d 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/packages.config
+++ b/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/packages.config
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests.csproj b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests.csproj
new file mode 100644
index 0000000000..7330aaeb3f
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests.csproj
@@ -0,0 +1,24 @@
+
+
+
+ net48
+
+ false
+
+ latest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetIQuantityJsonConverter/DataContractToJsonNetSerializationTests.cs b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetIQuantityJsonConverter/DataContractToJsonNetSerializationTests.cs
new file mode 100644
index 0000000000..a9fc227000
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetIQuantityJsonConverter/DataContractToJsonNetSerializationTests.cs
@@ -0,0 +1,60 @@
+// 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.IO;
+using System.Runtime.Serialization.Json;
+using Newtonsoft.Json;
+using UnitsNet.Serialization.DataContract.Tests;
+using UnitsNet.Serialization.Surrogates;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests.UnitsNetIQuantityJsonConverter
+{
+ public class DataContractToJsonNetSerializationTests : SerializationTestsBase
+ {
+ private readonly DataContractJsonSerializerSettings _dataContractJsonSerializerSettings;
+
+ private readonly JsonSerializerSettings _jsonNetSerializerSettings;
+
+ public DataContractToJsonNetSerializationTests()
+ {
+ _jsonNetSerializerSettings = new JsonSerializerSettings {TypeNameHandling = TypeNameHandling.None};
+ _jsonNetSerializerSettings.Converters.Add(new JsonNet.UnitsNetIQuantityJsonConverter());
+ _dataContractJsonSerializerSettings = new DataContractJsonSerializerSettings {DataContractSurrogate = new ExtendedQuantityDataContractSurrogate()};
+ }
+
+ protected override string SerializeObject(object obj)
+ {
+ var serializer = new DataContractJsonSerializer(obj.GetType(), _dataContractJsonSerializerSettings);
+ using var stream = new MemoryStream();
+ serializer.WriteObject(stream, obj);
+ stream.Position = 0;
+ using var streamReader = new StreamReader(stream);
+ return streamReader.ReadToEnd();
+ }
+
+ protected override T DeserializeObject(string payload)
+ {
+ return JsonConvert.DeserializeObject(payload, _jsonNetSerializerSettings);
+ }
+
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetIQuantityJsonConverter")]
+ public override void TupleOfMixedValueQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfMixedValueQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetIQuantityJsonConverter")]
+ public override void TupleOfDoubleAndNullQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfDoubleAndNullQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetIQuantityJsonConverter")]
+ public override void TupleOfDecimalAndNullQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfDecimalAndNullQuantities_SerializationRoundTrips();
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetIQuantityJsonConverter/JsonNetToDataContractSerializationTests.cs b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetIQuantityJsonConverter/JsonNetToDataContractSerializationTests.cs
new file mode 100644
index 0000000000..bf7dca12a2
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetIQuantityJsonConverter/JsonNetToDataContractSerializationTests.cs
@@ -0,0 +1,60 @@
+// 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.IO;
+using System.Runtime.Serialization.Json;
+using Newtonsoft.Json;
+using UnitsNet.Serialization.DataContract.Tests;
+using UnitsNet.Serialization.Surrogates;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests.UnitsNetIQuantityJsonConverter
+{
+ public class JsonNetToDataContractSerializationTests : SerializationTestsBase
+ {
+ private readonly DataContractJsonSerializerSettings _dataContractJsonSerializerSettings;
+
+ private readonly JsonSerializerSettings _jsonNetSerializerSettings;
+
+ public JsonNetToDataContractSerializationTests()
+ {
+ _jsonNetSerializerSettings = new JsonSerializerSettings {TypeNameHandling = TypeNameHandling.None};
+ _jsonNetSerializerSettings.Converters.Add(new JsonNet.UnitsNetIQuantityJsonConverter());
+ _dataContractJsonSerializerSettings = new DataContractJsonSerializerSettings {DataContractSurrogate = new ExtendedQuantityDataContractSurrogate()};
+ }
+
+ protected override string SerializeObject(object obj)
+ {
+ return JsonConvert.SerializeObject(obj, _jsonNetSerializerSettings);
+ }
+
+ protected override T DeserializeObject(string payload)
+ {
+ var serializer = new DataContractJsonSerializer(typeof(T), _dataContractJsonSerializerSettings);
+ using var stream = new MemoryStream();
+ using var writer = new StreamWriter(stream);
+ writer.Write(payload);
+ writer.Flush();
+ stream.Position = 0;
+ return (T) serializer.ReadObject(stream);
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetIQuantityJsonConverter")]
+ public override void TupleOfMixedValueQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfMixedValueQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetIQuantityJsonConverter")]
+ public override void TupleOfDoubleAndNullQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfDoubleAndNullQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetIQuantityJsonConverter")]
+ public override void TupleOfDecimalAndNullQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfDecimalAndNullQuantities_SerializationRoundTrips();
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetJsonConverter/DataContractToJsonNetSerializationTests.cs b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetJsonConverter/DataContractToJsonNetSerializationTests.cs
new file mode 100644
index 0000000000..4df4d7e4b3
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetJsonConverter/DataContractToJsonNetSerializationTests.cs
@@ -0,0 +1,77 @@
+// 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.IO;
+using System.Runtime.Serialization.Json;
+using Newtonsoft.Json;
+using UnitsNet.Serialization.DataContract.Tests;
+using UnitsNet.Serialization.Surrogates;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests.UnitsNetJsonConverter
+{
+ public class DataContractToJsonNetSerializationTests : SerializationTestsBase
+ {
+ private readonly DataContractJsonSerializerSettings _dataContractJsonSerializerSettings;
+
+ private readonly JsonSerializerSettings _jsonNetSerializerSettings;
+
+ public DataContractToJsonNetSerializationTests()
+ {
+ _jsonNetSerializerSettings = new JsonSerializerSettings();
+ _jsonNetSerializerSettings.Converters.Add(new JsonNet.UnitsNetJsonConverter());
+ _dataContractJsonSerializerSettings = new DataContractJsonSerializerSettings {DataContractSurrogate = new BasicQuantityContractSurrogate()};
+ }
+
+ protected override string SerializeObject(object obj)
+ {
+ var serializer = new DataContractJsonSerializer(obj.GetType(), _dataContractJsonSerializerSettings);
+ using var stream = new MemoryStream();
+ serializer.WriteObject(stream, obj);
+ stream.Position = 0;
+ using var streamReader = new StreamReader(stream);
+ return streamReader.ReadToEnd();
+ }
+
+ protected override T DeserializeObject(string payload)
+ {
+ return JsonConvert.DeserializeObject(payload, _jsonNetSerializerSettings);
+ }
+
+ [Fact(Skip = "Arrays are currently not supported by the UnitsNetJsonConverter")]
+ public override void ArrayOfDoubleValueQuantities_SerializationRoundTrips()
+ {
+ base.ArrayOfDoubleValueQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Arrays are currently not supported by the UnitsNetJsonConverter")]
+ public override void ArrayOfDecimalValueQuantities_SerializationRoundTrips()
+ {
+ base.ArrayOfDecimalValueQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Arrays are currently not supported by the UnitsNetJsonConverter")]
+ public override void EmptyArray_RoundTripsEmpty()
+ {
+ base.EmptyArray_RoundTripsEmpty();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetJsonConverter")]
+ public override void TupleOfMixedValueQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfMixedValueQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetJsonConverter")]
+ public override void TupleOfDoubleAndNullQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfDoubleAndNullQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetJsonConverter")]
+ public override void TupleOfDecimalAndNullQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfDecimalAndNullQuantities_SerializationRoundTrips();
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetJsonConverter/JsonNetToDataContractSerializationTests.cs b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetJsonConverter/JsonNetToDataContractSerializationTests.cs
new file mode 100644
index 0000000000..9f285afcad
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests/UnitsNetJsonConverter/JsonNetToDataContractSerializationTests.cs
@@ -0,0 +1,78 @@
+// 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.IO;
+using System.Runtime.Serialization.Json;
+using Newtonsoft.Json;
+using UnitsNet.Serialization.DataContract.Tests;
+using UnitsNet.Serialization.Surrogates;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests.UnitsNetJsonConverter
+{
+ public class JsonNetToDataContractSerializationTests : SerializationTestsBase
+ {
+ private readonly DataContractJsonSerializerSettings _dataContractJsonSerializerSettings;
+
+ private readonly JsonSerializerSettings _jsonNetSerializerSettings;
+
+ public JsonNetToDataContractSerializationTests()
+ {
+ _jsonNetSerializerSettings = new JsonSerializerSettings();
+ _jsonNetSerializerSettings.Converters.Add(new JsonNet.UnitsNetJsonConverter());
+ _dataContractJsonSerializerSettings = new DataContractJsonSerializerSettings {DataContractSurrogate = new BasicQuantityContractSurrogate()};
+ }
+
+ protected override string SerializeObject(object obj)
+ {
+ return JsonConvert.SerializeObject(obj, _jsonNetSerializerSettings);
+ }
+
+ protected override T DeserializeObject(string payload)
+ {
+ var serializer = new DataContractJsonSerializer(typeof(T), _dataContractJsonSerializerSettings);
+ using var stream = new MemoryStream();
+ using var writer = new StreamWriter(stream);
+ writer.Write(payload);
+ writer.Flush();
+ stream.Position = 0;
+ return (T) serializer.ReadObject(stream);
+ }
+
+ [Fact(Skip = "Arrays are currently not supported by the UnitsNetJsonConverter")]
+ public override void ArrayOfDoubleValueQuantities_SerializationRoundTrips()
+ {
+ base.ArrayOfDoubleValueQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Arrays are currently not supported by the UnitsNetJsonConverter")]
+ public override void ArrayOfDecimalValueQuantities_SerializationRoundTrips()
+ {
+ base.ArrayOfDecimalValueQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Arrays are currently not supported by the UnitsNetJsonConverter")]
+ public override void EmptyArray_RoundTripsEmpty()
+ {
+ base.EmptyArray_RoundTripsEmpty();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetJsonConverter")]
+ public override void TupleOfMixedValueQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfMixedValueQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetJsonConverter")]
+ public override void TupleOfDoubleAndNullQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfDoubleAndNullQuantities_SerializationRoundTrips();
+ }
+
+ [Fact(Skip = "Tuples are currently not supported by the UnitsNetJsonConverter")]
+ public override void TupleOfDecimalAndNullQuantities_SerializationRoundTrips()
+ {
+ base.TupleOfDecimalAndNullQuantities_SerializationRoundTrips();
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/DataContractJsonSerializerTestsBase.cs b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/DataContractJsonSerializerTestsBase.cs
new file mode 100644
index 0000000000..ab2fd63d5e
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/DataContractJsonSerializerTestsBase.cs
@@ -0,0 +1,43 @@
+// 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.IO;
+using System.Runtime.Serialization.Json;
+
+namespace UnitsNet.Serialization.DataContract.Tests.DataContractJsonSerializerTests
+{
+ public abstract class DataContractJsonSerializerTestsBase : SerializationTestsBase
+ {
+ private readonly DataContractJsonSerializerSettings _settings;
+
+ protected DataContractJsonSerializerTestsBase()
+ {
+ }
+
+ protected DataContractJsonSerializerTestsBase(DataContractJsonSerializerSettings settings)
+ {
+ _settings = settings;
+ }
+
+ protected override string SerializeObject(object obj)
+ {
+ var serializer = new DataContractJsonSerializer(obj.GetType(), _settings);
+ using var stream = new MemoryStream();
+ serializer.WriteObject(stream, obj);
+ stream.Position = 0;
+ using var streamReader = new StreamReader(stream);
+ return streamReader.ReadToEnd();
+ }
+
+ protected override T DeserializeObject(string xml)
+ {
+ var serializer = new DataContractJsonSerializer(typeof(T), _settings);
+ using var stream = new MemoryStream();
+ using var writer = new StreamWriter(stream);
+ writer.Write(xml);
+ writer.Flush();
+ stream.Position = 0;
+ return (T)serializer.ReadObject(stream);
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/DefaultDataContractJsonSerializerTests.cs b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/DefaultDataContractJsonSerializerTests.cs
new file mode 100644
index 0000000000..79aa7f3cb7
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/DefaultDataContractJsonSerializerTests.cs
@@ -0,0 +1,98 @@
+using UnitsNet.Serialization.Contracts;
+using UnitsNet.Units;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Tests.DataContractJsonSerializerTests
+{
+ ///
+ /// These tests demonstrate the default behavior of the DataContractJsonSerializer when dealing with quantities
+ ///
+ /// Note that the produced schema is different from the one generated using the UnitsNet.Json package
+ ///
+ ///
+ public class DefaultDataContractJsonSerializerTests : DataContractJsonSerializerTestsBase
+ {
+ [Fact]
+ public void DoubleQuantity_SerializedWithDoubleValueAndIntegerUnit()
+ {
+ var quantity = new Mass(1.20, MassUnit.Milligram);
+ var expectedJson = "{\"Value\":1.2,\"Unit\":16}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+
+ [Fact]
+ public void DecimalQuantity_SerializedWithDecimalValueValueAndIntegerUnit()
+ {
+ var quantity = new Information(1.20m, InformationUnit.Exabyte);
+ var expectedJson = "{\"Value\":1.20,\"Unit\":4}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+
+ [Fact]
+ public void DoubleQuantity_InScientificNotation_SerializedWithExpandedValueAndIntegerUnit()
+ {
+ var quantity = new Mass(1E+9, MassUnit.Milligram);
+ var expectedJson = "{\"Value\":1000000000,\"Unit\":16}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+
+ [Fact]
+ public void DecimalQuantity_InScientificNotation_SerializedWithExpandedValueAndIntegerUnit()
+ {
+ var quantity = new Information(1E+9m, InformationUnit.Exabyte);
+ var expectedJson = "{\"Value\":1000000000,\"Unit\":4}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+
+ [Fact]
+ public void QuantityValueContract_SerializationRoundTrips()
+ {
+ var quantityValue = new QuantityValueContract(123.456m, Information.BaseUnit);
+
+ var payload = SerializeObject(quantityValue);
+ var result = DeserializeObject>(payload);
+
+ Assert.Equal(quantityValue.Unit, result.Unit);
+ Assert.Equal(quantityValue.Value, result.Value);
+ }
+
+ [Fact]
+ public void ExtendedQuantityValueContract_SerializationRoundTrips()
+ {
+ var quantityValue = new ExtendedQuantityValueContract(123.456, "units", "123.456", 123.456m);
+
+ var payload = SerializeObject(quantityValue);
+ var result = DeserializeObject>(payload);
+
+ Assert.Equal(quantityValue.Unit, result.Unit);
+ Assert.Equal(quantityValue.Value, result.Value);
+ Assert.Equal(quantityValue.ValueString, result.ValueString);
+ Assert.Equal(quantityValue.ValueType, result.ValueType);
+ }
+
+ [Fact]
+ public void QuantityWithAbbreviationContract_SerializationRoundTrips()
+ {
+ var quantityValue = new QuantityWithAbbreviationContract(123.456, "Mass", "kg");
+
+ var payload = SerializeObject(quantityValue);
+ var result = DeserializeObject>(payload);
+
+ Assert.Equal(quantityValue.Unit, result.Unit);
+ Assert.Equal(quantityValue.Value, result.Value);
+ Assert.Equal(quantityValue.QuantityType, result.QuantityType);
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/BasicQuantityContractSurrogateTests.cs b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/BasicQuantityContractSurrogateTests.cs
new file mode 100644
index 0000000000..23d240ec07
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/BasicQuantityContractSurrogateTests.cs
@@ -0,0 +1,21 @@
+using System.Runtime.Serialization.Json;
+using UnitsNet.Serialization.Surrogates;
+
+namespace UnitsNet.Serialization.DataContract.Tests.DataContractJsonSerializerTests.Surrogates
+{
+ ///
+ /// There are no special tests here: uses the standard format of encoding the Unit and Value (with no support for
+ /// decimals):
+ /// https://github.com/angularsen/UnitsNet#serialization
+ ///
+ /// Compatible with the legacy JsonConverter
+ ///
+ ///
+ public class BasicQuantityContractSurrogateTests : StringUnitJsonDataContractSerializerTestsBase
+ {
+ public BasicQuantityContractSurrogateTests()
+ : base(new DataContractJsonSerializerSettings {DataContractSurrogate = new BasicQuantityContractSurrogate()})
+ {
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/ExtendedDataContractJsonSerializerTests.cs b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/ExtendedDataContractJsonSerializerTests.cs
new file mode 100644
index 0000000000..7275f54aa4
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/ExtendedDataContractJsonSerializerTests.cs
@@ -0,0 +1,43 @@
+// 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.Runtime.Serialization.Json;
+using UnitsNet.Serialization.Surrogates;
+using UnitsNet.Units;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Tests.DataContractJsonSerializerTests.Surrogates
+{
+ ///
+ /// Tests the extended decimal support contracts (compatible with the new UnitsNet.Json converter)
+ ///
+ public class ExtendedDataContractJsonSerializerTests : StringUnitJsonDataContractSerializerTestsBase
+ {
+ public ExtendedDataContractJsonSerializerTests()
+ : base(new DataContractJsonSerializerSettings {DataContractSurrogate = new ExtendedQuantityDataContractSurrogate()})
+ {
+ }
+
+ [Fact]
+ public void DecimalQuantity_SerializedWithDecimalValueValueAndUnitTypeName()
+ {
+ var quantity = new Information(1.20m, InformationUnit.Exabyte);
+ var expectedJson = "{\"Value\":1.2,\"Unit\":\"InformationUnit.Exabyte\",\"ValueString\":\"1.20\",\"ValueType\":\"decimal\"}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+
+ [Fact]
+ public void DecimalQuantity_InScientificNotation_SerializedWithExpandedValueAndUnitTypeName()
+ {
+ var quantity = new Information(1E+9m, InformationUnit.Exabyte);
+ var expectedJson = "{\"Value\":1000000000,\"Unit\":\"InformationUnit.Exabyte\",\"ValueString\":\"1000000000\",\"ValueType\":\"decimal\"}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/GenericDataContractJsonSerializerTests.cs b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/GenericDataContractJsonSerializerTests.cs
new file mode 100644
index 0000000000..bce96a00a7
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/GenericDataContractJsonSerializerTests.cs
@@ -0,0 +1,41 @@
+// 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.Runtime.Serialization.Json;
+using UnitsNet.Serialization.Surrogates;
+using UnitsNet.Units;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Tests.DataContractJsonSerializerTests.Surrogates
+{
+ public class GenericDataContractJsonSerializerTests : StringUnitJsonDataContractSerializerTestsBase
+ {
+ public GenericDataContractJsonSerializerTests()
+ : base(new DataContractJsonSerializerSettings {DataContractSurrogate = new GenericQuantityDataContractSurrogate()})
+ {
+ }
+
+ [Fact]
+ public void DecimalQuantity_SerializedWithDecimalValueValueAndUnitTypeName()
+ {
+ var quantity = new Information(1.20m, InformationUnit.Exabyte);
+ var expectedJson = "{\"Value\":1.20,\"Unit\":\"InformationUnit.Exabyte\"}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+
+
+ [Fact]
+ public void DecimalQuantity_InScientificNotation_SerializedWithExpandedValueAndMemberName()
+ {
+ var quantity = new Information(1E+9m, InformationUnit.Exabyte);
+ var expectedJson = "{\"Value\":1000000000,\"Unit\":\"InformationUnit.Exabyte\"}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/QuantityWithAbbreviationJsonDataContractSerializerTests.cs b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/QuantityWithAbbreviationJsonDataContractSerializerTests.cs
new file mode 100644
index 0000000000..dadc2a86da
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/QuantityWithAbbreviationJsonDataContractSerializerTests.cs
@@ -0,0 +1,63 @@
+// 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.Runtime.Serialization.Json;
+using UnitsNet.Serialization.Surrogates;
+using UnitsNet.Units;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Tests.DataContractJsonSerializerTests.Surrogates
+{
+ public class QuantityWithAbbreviationJsonDataContractSerializerTests : DataContractJsonSerializerTestsBase
+ {
+ public QuantityWithAbbreviationJsonDataContractSerializerTests()
+ : base(new DataContractJsonSerializerSettings { DataContractSurrogate = new QuantityWithAbbreviationContractSurrogate() })
+ {
+ }
+
+ [Fact]
+ public void DoubleQuantity_SerializedWithDoubleValueAndQuantityName()
+ {
+ var quantity = new Mass(1.20, MassUnit.Milligram);
+ var expectedJson = "{\"Value\":1.2,\"Unit\":\"mg\",\"QuantityType\":\"Mass\"}";
+
+ var result = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, result);
+ }
+
+ [Fact]
+ public void DoubleQuantity_InScientificNotation_SerializedWithExpandedValueAndQuantityName()
+ {
+ var quantity = new Mass(1E+9, MassUnit.Milligram);
+ var expectedJson = "{\"Value\":1000000000,\"Unit\":\"mg\",\"QuantityType\":\"Mass\"}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+
+ [Fact]
+ public void DecimalQuantity_SerializedWithDecimalValueValueAndQuantityName()
+ {
+ var quantity = new Information(1.20m, InformationUnit.Exabyte);
+ var expectedJson = "{\"Value\":1.20,\"Unit\":\"EB\",\"QuantityType\":\"Information\"}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+
+
+ [Fact]
+ public void DecimalQuantity_InScientificNotation_SerializedWithExpandedValueAndQuantityName()
+ {
+ var quantity = new Information(1E+9m, InformationUnit.Exabyte);
+ var expectedJson = "{\"Value\":1000000000,\"Unit\":\"EB\",\"QuantityType\":\"Information\"}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/StringUnitJsonDataContractSerializerTestsBase.cs b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/StringUnitJsonDataContractSerializerTestsBase.cs
new file mode 100644
index 0000000000..3ab05fba2e
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/DataContractJsonSerializerTests/Surrogates/StringUnitJsonDataContractSerializerTestsBase.cs
@@ -0,0 +1,42 @@
+// 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.Runtime.Serialization.Json;
+using UnitsNet.Units;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Tests.DataContractJsonSerializerTests.Surrogates
+{
+ ///
+ /// This is a test-bed for any serializers that use the standard format of encoding the Unit and Value:
+ /// https://github.com/angularsen/UnitsNet#serialization
+ ///
+ public abstract class StringUnitJsonDataContractSerializerTestsBase : DataContractJsonSerializerTestsBase
+ {
+ protected StringUnitJsonDataContractSerializerTestsBase(DataContractJsonSerializerSettings settings) : base(settings)
+ {
+ }
+
+ [Fact]
+ public void DoubleQuantity_SerializedWithDoubleValueAndUnitTypeName()
+ {
+ var quantity = new Mass(1.20, MassUnit.Milligram);
+ var expectedJson = "{\"Value\":1.2,\"Unit\":\"MassUnit.Milligram\"}";
+
+ var result = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, result);
+ }
+
+ [Fact]
+ public void DoubleQuantity_InScientificNotation_SerializedWithExpandedValueAndUnitTypeName()
+ {
+ var quantity = new Mass(1E+9, MassUnit.Milligram);
+ var expectedJson = "{\"Value\":1000000000,\"Unit\":\"MassUnit.Milligram\"}";
+
+ var json = SerializeObject(quantity);
+
+ Assert.Equal(expectedJson, json);
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/DataContractSerializerTests/DataContractSerializerTests.cs b/UnitsNet.Serialization.DataContract.Tests/DataContractSerializerTests/DataContractSerializerTests.cs
new file mode 100644
index 0000000000..853252bea7
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/DataContractSerializerTests/DataContractSerializerTests.cs
@@ -0,0 +1,118 @@
+using System.IO;
+using System.Runtime.Serialization;
+using UnitsNet.Serialization.Contracts;
+using UnitsNet.Units;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Tests.DataContractSerializerTests
+{
+ public class DataContractSerializerTests : SerializationTestsBase
+ {
+ private const string XmlSchema = "xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"";
+ private const string Namespace = "xmlns=\"http://schemas.datacontract.org/2004/07/UnitsNet\"";
+
+ protected override string SerializeObject(object obj)
+ {
+ var serializer = new DataContractSerializer(obj.GetType());
+ using var stream = new MemoryStream();
+ serializer.WriteObject(stream, obj);
+ stream.Position = 0;
+ using var streamReader = new StreamReader(stream);
+ return streamReader.ReadToEnd();
+ }
+
+ protected override T DeserializeObject(string xml)
+ {
+ var serializer = new DataContractSerializer(typeof(T));
+ using var stream = new MemoryStream();
+ using var writer = new StreamWriter(stream);
+ writer.Write(xml);
+ writer.Flush();
+ stream.Position = 0;
+ return (T)serializer.ReadObject(stream);
+ }
+
+ [Fact]
+ public void DoubleQuantity_SerializedWithValueAndMemberName()
+ {
+ var quantity = new Mass(1.20, MassUnit.Milligram);
+ var expectedXml = $"1.2Milligram";
+
+ var xml = SerializeObject(quantity);
+
+ Assert.Equal(expectedXml, xml);
+ }
+
+ [Fact]
+ public void DecimalQuantity_SerializedWithValueAndMemberName()
+ {
+ var quantity = new Information(1.20m, InformationUnit.Exabyte);
+ var expectedXml = $"1.20Exabyte";
+
+ var xml = SerializeObject(quantity);
+
+ Assert.Equal(expectedXml, xml);
+ }
+
+ [Fact]
+ public void DoubleQuantity_InScientificNotation_SerializedWithExpandedValueAndMemberName()
+ {
+ var quantity = new Mass(1E+9, MassUnit.Milligram);
+ var expectedXml = $"1000000000Milligram";
+
+ var xml = SerializeObject(quantity);
+
+ Assert.Equal(expectedXml, xml);
+ }
+
+ [Fact]
+ public void DecimalQuantity_InScientificNotation_SerializedWithExpandedValueAndMemberName()
+ {
+ var quantity = new Information(1E+9m, InformationUnit.Exabyte);
+ var expectedXml = $"1000000000Exabyte";
+
+ var xml = SerializeObject(quantity);
+
+ Assert.Equal(expectedXml, xml);
+ }
+
+ [Fact]
+ public void QuantityValueContract_SerializationRoundTrips()
+ {
+ var quantityValue = new QuantityValueContract(123.456m, Information.BaseUnit);
+
+ var payload = SerializeObject(quantityValue);
+ var result = DeserializeObject>(payload);
+
+ Assert.Equal(quantityValue.Unit, result.Unit);
+ Assert.Equal(quantityValue.Value, result.Value);
+ }
+
+ [Fact]
+ public void ExtendedQuantityValueContract_SerializationRoundTrips()
+ {
+ var quantityValue = new ExtendedQuantityValueContract(123.456, "units", "123.456", 123.456m);
+
+ var payload = SerializeObject(quantityValue);
+ var result = DeserializeObject>(payload);
+
+ Assert.Equal(quantityValue.Unit, result.Unit);
+ Assert.Equal(quantityValue.Value, result.Value);
+ Assert.Equal(quantityValue.ValueString, result.ValueString);
+ Assert.Equal(quantityValue.ValueType, result.ValueType);
+ }
+
+ [Fact]
+ public void QuantityWithAbbreviationContract_SerializationRoundTrips()
+ {
+ var quantityValue = new QuantityWithAbbreviationContract(123.456, "Mass", "kg");
+
+ var payload = SerializeObject(quantityValue);
+ var result = DeserializeObject>(payload);
+
+ Assert.Equal(quantityValue.Unit, result.Unit);
+ Assert.Equal(quantityValue.Value, result.Value);
+ Assert.Equal(quantityValue.QuantityType, result.QuantityType);
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/QuantityValueDataContractTests.cs b/UnitsNet.Serialization.DataContract.Tests/QuantityValueDataContractTests.cs
new file mode 100644
index 0000000000..212cddc4fe
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/QuantityValueDataContractTests.cs
@@ -0,0 +1,53 @@
+// 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.Serialization.Contracts;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Tests
+{
+ public class QuantityValueDataContractTests
+ {
+ [Fact]
+ public void QuantityValueContract_Constructor_AssignsAllProperties()
+ {
+ var unit = "unit";
+ var value = 42.0;
+
+ var quantityValue = new QuantityValueContract(value, unit);
+
+ Assert.Equal(unit, quantityValue.Unit);
+ Assert.Equal(value, quantityValue.Value);
+ }
+
+ [Fact]
+ public void ExtendedQuantityValueContract_Constructor_AssignsAllProperties()
+ {
+ var unit = "unit";
+ var value = 123.456;
+ var actualValue = 123.456m;
+ var valueString = "1234.456";
+
+ var quantityValue = new ExtendedQuantityValueContract(value, unit, valueString, actualValue);
+
+ Assert.Equal(unit, quantityValue.Unit);
+ Assert.Equal(value, quantityValue.Value);
+ Assert.Equal(valueString, quantityValue.ValueString);
+ Assert.Equal(actualValue, quantityValue.ValueType);
+ }
+
+ [Fact]
+ public void QuantityWithAbbreviationContract_Constructor_AssignsAllProperties()
+ {
+ var value = 123.456m;
+ var unit = "kg";
+ var quantityType = "Mass";
+
+ var quantityValue = new QuantityWithAbbreviationContract(value, quantityType, unit);
+
+ Assert.Equal(unit, quantityValue.Unit);
+ Assert.Equal(value, quantityValue.Value);
+ Assert.Equal(quantityType, quantityValue.QuantityType);
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/SerializationTestsBase.cs b/UnitsNet.Serialization.DataContract.Tests/SerializationTestsBase.cs
new file mode 100644
index 0000000000..3fd933a89c
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/SerializationTestsBase.cs
@@ -0,0 +1,297 @@
+// 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.Diagnostics.CodeAnalysis;
+using System.Runtime.Serialization;
+using UnitsNet.Units;
+using Xunit;
+
+namespace UnitsNet.Serialization.DataContract.Tests
+{
+ public abstract class SerializationTestsBase
+ {
+ protected abstract TPayload SerializeObject(object obj);
+ protected abstract T DeserializeObject(TPayload payload);
+
+ [Fact]
+ public void DoubleValueQuantity_SerializationRoundTrips()
+ {
+ var quantity = new Mass(1.2, MassUnit.Milligram);
+
+ var payload = SerializeObject(quantity);
+ var result = DeserializeObject(payload);
+
+ Assert.Equal(quantity.Unit, result.Unit);
+ Assert.Equal(quantity.Value, result.Value);
+ Assert.Equal(quantity, result);
+ }
+
+ [Fact]
+ public void LargeDoubleValueQuantity_SerializationRoundTrips()
+ {
+ var quantity = new Mass(1E+9, MassUnit.Milligram);
+
+ var payload = SerializeObject(quantity);
+ var result = DeserializeObject(payload);
+
+ Assert.Equal(quantity.Unit, result.Unit);
+ Assert.Equal(quantity.Value, result.Value);
+ Assert.Equal(quantity, result);
+ }
+
+ [Fact]
+ public void DecimalValueQuantity_SerializationRoundTrips()
+ {
+ var quantity = Information.FromExabytes(1.20m);
+
+ var payload = SerializeObject(quantity);
+ var result = DeserializeObject(payload);
+
+ Assert.Equal(quantity.Unit, result.Unit);
+ Assert.Equal(quantity.Value, result.Value);
+ Assert.Equal(quantity, result);
+ }
+
+ [Fact]
+ public void LargeDecimalValueQuantity_SerializationRoundTrips()
+ {
+ var quantity = Information.FromExabytes(1E+9);
+
+ var payload = SerializeObject(quantity);
+ var result = DeserializeObject(payload);
+
+ Assert.Equal(quantity.Unit, result.Unit);
+ Assert.Equal(quantity.Value, result.Value);
+ Assert.Equal(quantity, result);
+ }
+
+ [Fact]
+ public virtual void ArrayOfDoubleValueQuantities_SerializationRoundTrips()
+ {
+ var quantities = new[] { new Mass(1.2, MassUnit.Milligram), new Mass(2, MassUnit.Gram) };
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject(payload);
+
+ Assert.Collection(results, result =>
+ {
+ Assert.Equal(quantities[0].Unit, result.Unit);
+ Assert.Equal(quantities[0].Value, result.Value);
+ Assert.Equal(quantities[0], result);
+ }, result =>
+ {
+ Assert.Equal(quantities[1].Unit, result.Unit);
+ Assert.Equal(quantities[1].Value, result.Value);
+ Assert.Equal(quantities[1], result);
+ });
+ }
+
+ [Fact]
+ public virtual void ArrayOfDecimalValueQuantities_SerializationRoundTrips()
+ {
+ var quantities = new[] { new Information(1.2m, InformationUnit.Exabit), new Information(2, InformationUnit.Exabyte) };
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject(payload);
+
+ Assert.Collection(results, result =>
+ {
+ Assert.Equal(quantities[0].Unit, result.Unit);
+ Assert.Equal(quantities[0].Value, result.Value);
+ Assert.Equal(quantities[0], result);
+ }, result =>
+ {
+ Assert.Equal(quantities[1].Unit, result.Unit);
+ Assert.Equal(quantities[1].Value, result.Value);
+ Assert.Equal(quantities[1], result);
+ });
+ }
+
+ [Fact]
+ public virtual void EnumerableOfDoubleValueQuantities_SerializationRoundTrips()
+ {
+ var firstQuantity = new Mass(1.2, MassUnit.Milligram);
+ var secondQuantity = new Mass(2, MassUnit.Gram);
+ IEnumerable quantities = new List { firstQuantity, secondQuantity };
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject>(payload);
+
+ Assert.Collection(results, result =>
+ {
+ Assert.Equal(firstQuantity.Unit, result.Unit);
+ Assert.Equal(firstQuantity.Value, result.Value);
+ Assert.Equal(firstQuantity, result);
+ }, result =>
+ {
+ Assert.Equal(secondQuantity.Unit, result.Unit);
+ Assert.Equal(secondQuantity.Value, result.Value);
+ Assert.Equal(secondQuantity, result);
+ });
+ }
+
+ [Fact]
+ public virtual void EnumerableOfDecimalValueQuantities_SerializationRoundTrips()
+ {
+ var firstQuantity = new Information(1.2m, InformationUnit.Exabit);
+ var secondQuantity = new Information(2, InformationUnit.Exabyte);
+ IEnumerable quantities = new List { firstQuantity, secondQuantity };
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject>(payload);
+
+ Assert.Collection(results, result =>
+ {
+ Assert.Equal(firstQuantity.Unit, result.Unit);
+ Assert.Equal(firstQuantity.Value, result.Value);
+ Assert.Equal(firstQuantity, result);
+ }, result =>
+ {
+ Assert.Equal(secondQuantity.Unit, result.Unit);
+ Assert.Equal(secondQuantity.Value, result.Value);
+ Assert.Equal(secondQuantity, result);
+ });
+ }
+
+ [Fact]
+ public virtual void TupleOfMixedValueQuantities_SerializationRoundTrips()
+ {
+ var quantities = new Tuple(new Mass(1.2, MassUnit.Milligram), new Information(2, InformationUnit.Exabyte));
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject>(payload);
+
+ Assert.Equal(quantities.Item1.Unit, results.Item1.Unit);
+ Assert.Equal(quantities.Item1.Value, results.Item1.Value);
+ Assert.Equal(quantities.Item1, results.Item1);
+ Assert.Equal(quantities.Item2.Unit, results.Item2.Unit);
+ Assert.Equal(quantities.Item2.Value, results.Item2.Value);
+ Assert.Equal(quantities.Item2, results.Item2);
+ }
+
+ [Fact]
+ [SuppressMessage("ReSharper", "PossibleInvalidOperationException")]
+ public virtual void TupleOfDoubleAndNullQuantities_SerializationRoundTrips()
+ {
+ var quantity = new Mass(1.2, MassUnit.Milligram);
+ var quantities = new Tuple(quantity, null);
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject>(payload);
+
+ Assert.Equal(quantity.Unit, results.Item1.Value.Unit);
+ Assert.Equal(quantity.Value, results.Item1.Value.Value);
+ Assert.Equal(quantity, results.Item1);
+ Assert.Null(results.Item2);
+ }
+
+ [Fact]
+ [SuppressMessage("ReSharper", "PossibleInvalidOperationException")]
+ public virtual void TupleOfDecimalAndNullQuantities_SerializationRoundTrips()
+ {
+ var quantity = new Information(2, InformationUnit.Exabyte);
+ var quantities = new Tuple(null, quantity);
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject>(payload);
+
+ Assert.Null(results.Item1);
+ Assert.Equal(quantity.Unit, results.Item2.Value.Unit);
+ Assert.Equal(quantity.Value, results.Item2.Value.Value);
+ Assert.Equal(quantity, results.Item2);
+ }
+
+ [Fact]
+ [SuppressMessage("ReSharper", "PossibleInvalidOperationException")]
+ protected void ClassOfDoubleAndNullUnits_SerializationRoundTrips()
+ {
+ var quantity = new Mass(1.2, MassUnit.Milligram);
+ var quantities = new TestObject { Quantity = quantity, NullableQuantity = null };
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject>(payload);
+
+ Assert.Equal(quantity.Unit, results.Quantity.Unit);
+ Assert.Equal(quantity.Value, results.Quantity.Value);
+ Assert.Equal(quantity, results.Quantity);
+ Assert.Null(results.NullableQuantity);
+ }
+
+ [Fact]
+ [SuppressMessage("ReSharper", "PossibleInvalidOperationException")]
+ protected void ClassOfDecimalAndNullUnits_SerializationRoundTrips()
+ {
+ var quantity = new Information(2, InformationUnit.Exabyte);
+ var quantities = new TestObject { Quantity = quantity, NullableQuantity = null };
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject>(payload);
+
+ Assert.Equal(quantity.Unit, results.Quantity.Unit);
+ Assert.Equal(quantity.Value, results.Quantity.Value);
+ Assert.Equal(quantity, results.Quantity);
+ Assert.Null(results.NullableQuantity);
+ }
+
+ [Fact]
+ [SuppressMessage("ReSharper", "PossibleInvalidOperationException")]
+ public void ClassOfMixedValueQuantities_SerializationRoundTrips()
+ {
+ var doubleQuantity = new Mass(1.2, MassUnit.Milligram);
+ var decimalQuantity = new Information(2, InformationUnit.Exabyte);
+ var quantities = new TestObject
+ {
+ Quantity = doubleQuantity, NullableQuantity = doubleQuantity, DecimalQuantity = decimalQuantity
+ };
+
+ var payload = SerializeObject(quantities);
+ var results = DeserializeObject>(payload);
+
+ Assert.Equal(doubleQuantity.Unit, results.Quantity.Unit);
+ Assert.Equal(doubleQuantity.Value, results.Quantity.Value);
+ Assert.Equal(doubleQuantity, results.Quantity);
+ Assert.Equal(doubleQuantity.Unit, results.NullableQuantity.Value.Unit);
+ Assert.Equal(doubleQuantity.Value, results.NullableQuantity.Value.Value);
+ Assert.Equal(doubleQuantity, results.NullableQuantity);
+ Assert.Equal(decimalQuantity.Unit, results.DecimalQuantity.Unit);
+ Assert.Equal(decimalQuantity.Value, results.DecimalQuantity.Value);
+ Assert.Equal(decimalQuantity, results.DecimalQuantity);
+ Assert.Null(results.NullableDecimalQuantity);
+ }
+
+ [Fact]
+ public virtual void EmptyArray_RoundTripsEmpty()
+ {
+ var payload = SerializeObject(Array.Empty());
+
+ var result = DeserializeObject(payload);
+
+ Assert.Empty(result);
+ }
+
+ [DataContract]
+ protected class TestObject
+ where TQuantity : struct, IQuantity
+ {
+ [DataMember]
+ public TQuantity Quantity { get; set; }
+
+ [DataMember]
+ public TQuantity? NullableQuantity { get; set; }
+ }
+
+ [DataContract]
+ protected class TestObject : TestObject
+ where TDoubleQuantity : struct, IQuantity
+ where TDecimalQuantity : struct, IQuantity, IDecimalQuantity
+ {
+ [DataMember]
+ public TDecimalQuantity DecimalQuantity { get; set; }
+
+ [DataMember]
+ public TDecimalQuantity? NullableDecimalQuantity { get; set; }
+ }
+ }
+}
diff --git a/UnitsNet.Serialization.DataContract.Tests/UnitsNet.Serialization.DataContract.Tests.csproj b/UnitsNet.Serialization.DataContract.Tests/UnitsNet.Serialization.DataContract.Tests.csproj
new file mode 100644
index 0000000000..a53276962b
--- /dev/null
+++ b/UnitsNet.Serialization.DataContract.Tests/UnitsNet.Serialization.DataContract.Tests.csproj
@@ -0,0 +1,27 @@
+
+
+
+ net48
+ latest
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/UnitsNet.Serialization.JsonNet.CompatibilityTests/UnitsNet.Serialization.JsonNet.CompatibilityTests.csproj b/UnitsNet.Serialization.JsonNet.CompatibilityTests/UnitsNet.Serialization.JsonNet.CompatibilityTests.csproj
index 5e72e7abfb..71a8ea6a1a 100644
--- a/UnitsNet.Serialization.JsonNet.CompatibilityTests/UnitsNet.Serialization.JsonNet.CompatibilityTests.csproj
+++ b/UnitsNet.Serialization.JsonNet.CompatibilityTests/UnitsNet.Serialization.JsonNet.CompatibilityTests.csproj
@@ -24,6 +24,7 @@
+
diff --git a/UnitsNet.Serialization.JsonNet.Tests/UnitsNet.Serialization.JsonNet.Tests.csproj b/UnitsNet.Serialization.JsonNet.Tests/UnitsNet.Serialization.JsonNet.Tests.csproj
index 4bc8ba93c1..2b2ca5a881 100644
--- a/UnitsNet.Serialization.JsonNet.Tests/UnitsNet.Serialization.JsonNet.Tests.csproj
+++ b/UnitsNet.Serialization.JsonNet.Tests/UnitsNet.Serialization.JsonNet.Tests.csproj
@@ -23,6 +23,7 @@
+
diff --git a/UnitsNet.sln b/UnitsNet.sln
index 4e089aca8d..044ed7df9a 100644
--- a/UnitsNet.sln
+++ b/UnitsNet.sln
@@ -21,6 +21,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitsNet.NumberExtensions",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitsNet.NumberExtensions.Tests", "UnitsNet.NumberExtensions.Tests\UnitsNet.NumberExtensions.Tests.csproj", "{B4996AF5-9A8B-481A-9018-EC7F5B1605FF}"
EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitsNet.Serialization.DataContract.Tests", "UnitsNet.Serialization.DataContract.Tests\UnitsNet.Serialization.DataContract.Tests.csproj", "{76EC50D7-3697-4BD9-A76C-E463E6369F19}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests", "UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests\UnitsNet.Serialization.DataContract.Compatibility.JsonNetTests.csproj", "{3821A28F-8661-4507-A83B-725B111CA63E}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Files", "_Files", "{B92B01BE-243E-4CCB-B5E5-AF469ADB1F54}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
@@ -86,6 +90,14 @@ Global
{B4996AF5-9A8B-481A-9018-EC7F5B1605FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B4996AF5-9A8B-481A-9018-EC7F5B1605FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B4996AF5-9A8B-481A-9018-EC7F5B1605FF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {76EC50D7-3697-4BD9-A76C-E463E6369F19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {76EC50D7-3697-4BD9-A76C-E463E6369F19}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {76EC50D7-3697-4BD9-A76C-E463E6369F19}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {76EC50D7-3697-4BD9-A76C-E463E6369F19}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3821A28F-8661-4507-A83B-725B111CA63E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3821A28F-8661-4507-A83B-725B111CA63E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3821A28F-8661-4507-A83B-725B111CA63E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3821A28F-8661-4507-A83B-725B111CA63E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs
index 794b01453c..a3349d4e20 100644
--- a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Acceleration, in physics, is the rate at which the velocity of an object changes over time. An object's acceleration is the net result of any and all forces acting on the object, as described by Newton's Second Law. The SI unit for acceleration is the Meter per second squared (m/s²). Accelerations are vector quantities (they have magnitude and direction) and add according to the parallelogram law. As a vector, the calculated net force is equal to the product of the object's mass (a scalar quantity) and the acceleration.
///
+ [DataContract]
public partial struct Acceleration : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly AccelerationUnit? _unit;
static Acceleration()
diff --git a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs
index 56ac16cebd..2610f5e9ec 100644
--- a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Mole is the amount of substance containing Avagadro's Number (6.02 x 10 ^ 23) of real particles such as molecules,atoms, ions or radicals.
///
+ [DataContract]
public partial struct AmountOfSubstance : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly AmountOfSubstanceUnit? _unit;
static AmountOfSubstance()
diff --git a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs
index ace10056ef..e1a2b5b1a5 100644
--- a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The strength of a signal expressed in decibels (dB) relative to one volt RMS.
///
+ [DataContract]
public partial struct AmplitudeRatio : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly AmplitudeRatioUnit? _unit;
static AmplitudeRatio()
diff --git a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs
index f18b4195cd..7b931f632f 100644
--- a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// In geometry, an angle is the figure formed by two rays, called the sides of the angle, sharing a common endpoint, called the vertex of the angle.
///
+ [DataContract]
public partial struct Angle : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly AngleUnit? _unit;
static Angle()
diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs
index eb4cf6b251..37ea9d9780 100644
--- a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ 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.
///
+ [DataContract]
public partial struct ApparentEnergy : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ApparentEnergyUnit? _unit;
static ApparentEnergy()
diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs
index 5d6d6bee4c..9f90fee608 100644
--- a/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ 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.
///
+ [DataContract]
public partial struct ApparentPower : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ApparentPowerUnit? _unit;
static ApparentPower()
diff --git a/UnitsNet/GeneratedCode/Quantities/Area.g.cs b/UnitsNet/GeneratedCode/Quantities/Area.g.cs
index 8113942d5a..13759b7de4 100644
--- a/UnitsNet/GeneratedCode/Quantities/Area.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Area.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Area is a quantity that expresses the extent of a two-dimensional surface or shape, or planar lamina, in the plane. Area can be understood as the amount of material with a given thickness that would be necessary to fashion a model of the shape, or the amount of paint necessary to cover the surface with a single coat.[1] It is the two-dimensional analog of the length of a curve (a one-dimensional concept) or the volume of a solid (a three-dimensional concept).
///
+ [DataContract]
public partial struct Area : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly AreaUnit? _unit;
static Area()
diff --git a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs
index 002ece88a8..73c865e8d6 100644
--- a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The area density of a two-dimensional object is calculated as the mass per unit area.
///
+ [DataContract]
public partial struct AreaDensity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly AreaDensityUnit? _unit;
static AreaDensity()
diff --git a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
index 316bcd577e..72d71a4032 100644
--- a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// A geometric property of an area that reflects how its points are distributed with regard to an axis.
///
+ [DataContract]
public partial struct AreaMomentOfInertia : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly AreaMomentOfInertiaUnit? _unit;
static AreaMomentOfInertia()
diff --git a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs
index f91bd2193a..962b11c10f 100644
--- a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Bit_rate
///
+ [DataContract]
public partial struct BitRate : IQuantity, IDecimalQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly decimal _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly BitRateUnit? _unit;
static BitRate()
diff --git a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
index 5d6d27e859..2dfb07afb7 100644
--- a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Brake specific fuel consumption (BSFC) is a measure of the fuel efficiency of any prime mover that burns fuel and produces rotational, or shaft, power. It is typically used for comparing the efficiency of internal combustion engines with a shaft output.
///
+ [DataContract]
public partial struct BrakeSpecificFuelConsumption : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly BrakeSpecificFuelConsumptionUnit? _unit;
static BrakeSpecificFuelConsumption()
diff --git a/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs b/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs
index 94e0d6a4e2..d2974437f3 100644
--- a/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Capacitance
///
+ [DataContract]
public partial struct Capacitance : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly CapacitanceUnit? _unit;
static Capacitance()
diff --git a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs
index e088a1f193..e105249637 100644
--- a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// A unit that represents a fractional change in size in response to a change in temperature.
///
+ [DataContract]
public partial struct CoefficientOfThermalExpansion : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly CoefficientOfThermalExpansionUnit? _unit;
static CoefficientOfThermalExpansion()
diff --git a/UnitsNet/GeneratedCode/Quantities/Density.g.cs b/UnitsNet/GeneratedCode/Quantities/Density.g.cs
index 22d9dc88ee..fd1e0980aa 100644
--- a/UnitsNet/GeneratedCode/Quantities/Density.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Density.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// http://en.wikipedia.org/wiki/Density
///
+ [DataContract]
public partial struct Density : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly DensityUnit? _unit;
static Density()
diff --git a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs
index e0e19aea22..484a7fddfe 100644
--- a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Time is a dimension in which events can be ordered from the past through the present into the future, and also the measure of durations of events and the intervals between them.
///
+ [DataContract]
public partial struct Duration : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly DurationUnit? _unit;
static Duration()
diff --git a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs
index 0da85f1f91..f320376fc0 100644
--- a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Viscosity#Dynamic_.28shear.29_viscosity
///
+ [DataContract]
public partial struct DynamicViscosity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly DynamicViscosityUnit? _unit;
static DynamicViscosity()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs
index 310c2c63bb..8c902ca233 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Electric admittance is a measure of how easily a circuit or device will allow a current to flow. It is defined as the inverse of impedance. The SI unit of admittance is the siemens (symbol S).
///
+ [DataContract]
public partial struct ElectricAdmittance : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricAdmittanceUnit? _unit;
static ElectricAdmittance()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs
index 6386e9dce8..e813191e5e 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Electric_charge
///
+ [DataContract]
public partial struct ElectricCharge : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricChargeUnit? _unit;
static ElectricCharge()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs
index 1dfa7fe9b7..cb4419b88c 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Charge_density
///
+ [DataContract]
public partial struct ElectricChargeDensity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricChargeDensityUnit? _unit;
static ElectricChargeDensity()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs
index 82ed69c516..18d899124a 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Electrical_resistance_and_conductance
///
+ [DataContract]
public partial struct ElectricConductance : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricConductanceUnit? _unit;
static ElectricConductance()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs
index f3e5b7fc38..35fbd63064 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Electrical_resistivity_and_conductivity
///
+ [DataContract]
public partial struct ElectricConductivity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricConductivityUnit? _unit;
static ElectricConductivity()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs
index a77b76ff99..86eca8e8a0 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// An electric current is a flow of electric charge. In electric circuits this charge is often carried by moving electrons in a wire. It can also be carried by ions in an electrolyte, or by both ions and electrons such as in a plasma.
///
+ [DataContract]
public partial struct ElectricCurrent : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricCurrentUnit? _unit;
static ElectricCurrent()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs
index 9d8065a5c2..c004d0c106 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Current_density
///
+ [DataContract]
public partial struct ElectricCurrentDensity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricCurrentDensityUnit? _unit;
static ElectricCurrentDensity()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs
index 58e7b53795..e95bf1676b 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// In electromagnetism, the current gradient describes how the current changes in time.
///
+ [DataContract]
public partial struct ElectricCurrentGradient : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricCurrentGradientUnit? _unit;
static ElectricCurrentGradient()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs
index 3992791661..cba036e774 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Electric_field
///
+ [DataContract]
public partial struct ElectricField : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricFieldUnit? _unit;
static ElectricField()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs
index 4b44039b88..2245700467 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Inductance
///
+ [DataContract]
public partial struct ElectricInductance : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricInductanceUnit? _unit;
static ElectricInductance()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs
index d5dfa8dccb..030a007691 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// In classical electromagnetism, the electric potential (a scalar quantity denoted by Φ, ΦE or V and also called the electric field potential or the electrostatic potential) at a point is the amount of electric potential energy that a unitary point charge would have when located at that point.
///
+ [DataContract]
public partial struct ElectricPotential : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricPotentialUnit? _unit;
static ElectricPotential()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
index 739a51dc4d..41637b10db 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The Electric Potential of a system known to use Alternating Current.
///
+ [DataContract]
public partial struct ElectricPotentialAc : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricPotentialAcUnit? _unit;
static ElectricPotentialAc()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs
index c8109f7112..5ad157b741 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// ElectricPotential change rate is the ratio of the electric potential change to the time during which the change occurred (value of electric potential changes per unit time).
///
+ [DataContract]
public partial struct ElectricPotentialChangeRate : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricPotentialChangeRateUnit? _unit;
static ElectricPotentialChangeRate()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
index 031b3374d3..cd295cd383 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The Electric Potential of a system known to use Direct Current.
///
+ [DataContract]
public partial struct ElectricPotentialDc : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricPotentialDcUnit? _unit;
static ElectricPotentialDc()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs
index 7776ff92f5..1302725ab0 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The electrical resistance of an electrical conductor is the opposition to the passage of an electric current through that conductor.
///
+ [DataContract]
public partial struct ElectricResistance : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricResistanceUnit? _unit;
static ElectricResistance()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs
index 9eb0c8f731..5cad6fbea4 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Electrical_resistivity_and_conductivity
///
+ [DataContract]
public partial struct ElectricResistivity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricResistivityUnit? _unit;
static ElectricResistivity()
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs
index 71e7bfe44b..d27d48367b 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Charge_density
///
+ [DataContract]
public partial struct ElectricSurfaceChargeDensity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ElectricSurfaceChargeDensityUnit? _unit;
static ElectricSurfaceChargeDensity()
diff --git a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs
index d8b671bff0..601d9dc227 100644
--- a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The joule, symbol J, is a derived unit of energy, work, or amount of heat in the International System of Units. It is equal to the energy transferred (or work done) when applying a force of one newton through a distance of one metre (1 newton metre or N·m), or in passing an electric current of one ampere through a resistance of one ohm for one second. Many other units of energy are included. Please do not confuse this definition of the calorie with the one colloquially used by the food industry, the large calorie, which is equivalent to 1 kcal. Thermochemical definition of the calorie is used. For BTU, the IT definition is used.
///
+ [DataContract]
public partial struct Energy : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly EnergyUnit? _unit;
static Energy()
diff --git a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs
index cdbdbb3b00..58c465212c 100644
--- a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Entropy is an important concept in the branch of science known as thermodynamics. The idea of "irreversibility" is central to the understanding of entropy. It is often said that entropy is an expression of the disorder, or randomness of a system, or of our lack of information about it. Entropy is an extensive property. It has the dimension of energy divided by temperature, which has a unit of joules per kelvin (J/K) in the International System of Units
///
+ [DataContract]
public partial struct Entropy : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly EntropyUnit? _unit;
static Entropy()
diff --git a/UnitsNet/GeneratedCode/Quantities/Force.g.cs b/UnitsNet/GeneratedCode/Quantities/Force.g.cs
index 616d290129..d563e8c9e3 100644
--- a/UnitsNet/GeneratedCode/Quantities/Force.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Force.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// In physics, a force is any influence that causes an object to undergo a certain change, either concerning its movement, direction, or geometrical construction. In other words, a force can cause an object with mass to change its velocity (which includes to begin moving from a state of rest), i.e., to accelerate, or a flexible object to deform, or both. Force can also be described by intuitive concepts such as a push or a pull. A force has both magnitude and direction, making it a vector quantity. It is measured in the SI unit of newtons and represented by the symbol F.
///
+ [DataContract]
public partial struct Force : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ForceUnit? _unit;
static Force()
diff --git a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs
index d27c9c4a9d..d724e8cc0d 100644
--- a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Force change rate is the ratio of the force change to the time during which the change occurred (value of force changes per unit time).
///
+ [DataContract]
public partial struct ForceChangeRate : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ForceChangeRateUnit? _unit;
static ForceChangeRate()
diff --git a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs
index eb88079dd5..ec8a43e832 100644
--- a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The magnitude of force per unit length.
///
+ [DataContract]
public partial struct ForcePerLength : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ForcePerLengthUnit? _unit;
static ForcePerLength()
diff --git a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs
index a1c41e907c..300edbf9a0 100644
--- a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The number of occurrences of a repeating event per unit time.
///
+ [DataContract]
public partial struct Frequency : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly FrequencyUnit? _unit;
static Frequency()
diff --git a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs
index de2c76245c..55a4064ccc 100644
--- a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Fuel_efficiency
///
+ [DataContract]
public partial struct FuelEfficiency : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly FuelEfficiencyUnit? _unit;
static FuelEfficiency()
diff --git a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs
index 8fe5213ce9..e32e331158 100644
--- a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Heat flux is the flow of energy per unit of area per unit of time
///
+ [DataContract]
public partial struct HeatFlux : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly HeatFluxUnit? _unit;
static HeatFlux()
diff --git a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
index 9f97273d26..365f877eff 100644
--- a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The heat transfer coefficient or film coefficient, or film effectiveness, in thermodynamics and in mechanics is the proportionality constant between the heat flux and the thermodynamic driving force for the flow of heat (i.e., the temperature difference, ΔT)
///
+ [DataContract]
public partial struct HeatTransferCoefficient : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly HeatTransferCoefficientUnit? _unit;
static HeatTransferCoefficient()
diff --git a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs
index fa6d9d1dc3..d2ba86a131 100644
--- a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Illuminance
///
+ [DataContract]
public partial struct Illuminance : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly IlluminanceUnit? _unit;
static Illuminance()
diff --git a/UnitsNet/GeneratedCode/Quantities/Information.g.cs b/UnitsNet/GeneratedCode/Quantities/Information.g.cs
index cdec9ab8bd..56ee75693c 100644
--- a/UnitsNet/GeneratedCode/Quantities/Information.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Information.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// In computing and telecommunications, a unit of information is the capacity of some standard data storage system or communication channel, used to measure the capacities of other systems and channels. In information theory, units of information are also used to measure the information contents or entropy of random variables.
///
+ [DataContract]
public partial struct Information : IQuantity, IDecimalQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly decimal _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly InformationUnit? _unit;
static Information()
diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs
index 13292d79d4..b26f563ae0 100644
--- a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Irradiance is the intensity of ultraviolet (UV) or visible light incident on a surface.
///
+ [DataContract]
public partial struct Irradiance : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly IrradianceUnit? _unit;
static Irradiance()
diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs
index 476494d01c..c6176516c3 100644
--- a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Irradiation
///
+ [DataContract]
public partial struct Irradiation : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly IrradiationUnit? _unit;
static Irradiation()
diff --git a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs
index 201f1c1d39..56e882b4d6 100644
--- a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// http://en.wikipedia.org/wiki/Viscosity
///
+ [DataContract]
public partial struct KinematicViscosity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly KinematicViscosityUnit? _unit;
static KinematicViscosity()
diff --git a/UnitsNet/GeneratedCode/Quantities/LapseRate.g.cs b/UnitsNet/GeneratedCode/Quantities/LapseRate.g.cs
index 394b6e0ced..39a6034c04 100644
--- a/UnitsNet/GeneratedCode/Quantities/LapseRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LapseRate.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Lapse rate is the rate at which Earth's atmospheric temperature decreases with an increase in altitude, or increases with the decrease in altitude.
///
+ [DataContract]
public partial struct LapseRate : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly LapseRateUnit? _unit;
static LapseRate()
diff --git a/UnitsNet/GeneratedCode/Quantities/Length.g.cs b/UnitsNet/GeneratedCode/Quantities/Length.g.cs
index c1d8e77356..dd1fb1e6a1 100644
--- a/UnitsNet/GeneratedCode/Quantities/Length.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Length.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Many different units of length have been used around the world. The main units in modern use are U.S. customary units in the United States and the Metric system elsewhere. British Imperial units are still used for some purposes in the United Kingdom and some other countries. The metric system is sub-divided into SI and non-SI units.
///
+ [DataContract]
public partial struct Length : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly LengthUnit? _unit;
static Length()
diff --git a/UnitsNet/GeneratedCode/Quantities/Level.g.cs b/UnitsNet/GeneratedCode/Quantities/Level.g.cs
index 5d9a7aba44..f5aef5b472 100644
--- a/UnitsNet/GeneratedCode/Quantities/Level.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Level.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Level is the logarithm of the ratio of a quantity Q to a reference value of that quantity, Q₀, expressed in dimensionless units.
///
+ [DataContract]
public partial struct Level : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly LevelUnit? _unit;
static Level()
diff --git a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs
index e8b4d1d569..4f1749b1c2 100644
--- a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// http://en.wikipedia.org/wiki/Linear_density
///
+ [DataContract]
public partial struct LinearDensity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly LinearDensityUnit? _unit;
static LinearDensity()
diff --git a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs
index f87796b9c5..bbbb4aecea 100644
--- a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// http://en.wikipedia.org/wiki/Linear_density
///
+ [DataContract]
public partial struct LinearPowerDensity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly LinearPowerDensityUnit? _unit;
static LinearPowerDensity()
diff --git a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs
index 8f05e044bf..1837b355be 100644
--- a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Luminosity
///
+ [DataContract]
public partial struct Luminosity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly LuminosityUnit? _unit;
static Luminosity()
diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs
index f69952bdb1..960a12d8c1 100644
--- a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Luminous_flux
///
+ [DataContract]
public partial struct LuminousFlux : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly LuminousFluxUnit? _unit;
static LuminousFlux()
diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs
index d7bd04cfec..81fd3d9c84 100644
--- a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Luminous_intensity
///
+ [DataContract]
public partial struct LuminousIntensity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly LuminousIntensityUnit? _unit;
static LuminousIntensity()
diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs
index 34b35f55d6..310ea87b58 100644
--- a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Magnetic_field
///
+ [DataContract]
public partial struct MagneticField : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MagneticFieldUnit? _unit;
static MagneticField()
diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs
index 4dce7404e7..2b4008cde9 100644
--- a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Magnetic_flux
///
+ [DataContract]
public partial struct MagneticFlux : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MagneticFluxUnit? _unit;
static MagneticFlux()
diff --git a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs
index d209fb3593..14c7783949 100644
--- a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Magnetization
///
+ [DataContract]
public partial struct Magnetization : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MagnetizationUnit? _unit;
static Magnetization()
diff --git a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs
index e00071d40d..e2e478937c 100644
--- a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// In physics, mass (from Greek μᾶζα "barley cake, lump [of dough]") is a property of a physical system or body, giving rise to the phenomena of the body's resistance to being accelerated by a force and the strength of its mutual gravitational attraction with other bodies. Instruments such as mass balances or scales use those phenomena to measure mass. The SI unit of mass is the kilogram (kg).
///
+ [DataContract]
public partial struct Mass : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MassUnit? _unit;
static Mass()
diff --git a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs
index 229d963c06..dce6a8aa74 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Mass_concentration_(chemistry)
///
+ [DataContract]
public partial struct MassConcentration : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MassConcentrationUnit? _unit;
static MassConcentration()
diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs
index 12b400f6f6..cfd37ed932 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Mass flow is the ratio of the mass change to the time during which the change occurred (value of mass changes per unit time).
///
+ [DataContract]
public partial struct MassFlow : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MassFlowUnit? _unit;
static MassFlow()
diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs
index 768a8d9928..afb7c1f6d5 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Mass flux is the mass flow rate per unit area.
///
+ [DataContract]
public partial struct MassFlux : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MassFluxUnit? _unit;
static MassFlux()
diff --git a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs
index 621076e95c..74b19584f4 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Mass_fraction_(chemistry)
///
+ [DataContract]
public partial struct MassFraction : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MassFractionUnit? _unit;
static MassFraction()
diff --git a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs
index 78638e6177..f697153e54 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// A property of body reflects how its mass is distributed with regard to an axis.
///
+ [DataContract]
public partial struct MassMomentOfInertia : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MassMomentOfInertiaUnit? _unit;
static MassMomentOfInertia()
diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs
index 9af01f0b80..5a0136f210 100644
--- a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Molar energy is the amount of energy stored in 1 mole of a substance.
///
+ [DataContract]
public partial struct MolarEnergy : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MolarEnergyUnit? _unit;
static MolarEnergy()
diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs
index 03b2ff23c3..53e88a31ba 100644
--- a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Molar entropy is amount of energy required to increase temperature of 1 mole substance by 1 Kelvin.
///
+ [DataContract]
public partial struct MolarEntropy : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MolarEntropyUnit? _unit;
static MolarEntropy()
diff --git a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs
index fd737b916c..364e1ed9f6 100644
--- a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// In chemistry, the molar mass M is a physical property defined as the mass of a given substance (chemical element or chemical compound) divided by the amount of substance.
///
+ [DataContract]
public partial struct MolarMass : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MolarMassUnit? _unit;
static MolarMass()
diff --git a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs
index 957a2015aa..2e6440c9ab 100644
--- a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Molar_concentration
///
+ [DataContract]
public partial struct Molarity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly MolarityUnit? _unit;
static Molarity()
diff --git a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs
index 98d1757152..2edf3f36d8 100644
--- a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Permeability_(electromagnetism)
///
+ [DataContract]
public partial struct Permeability : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly PermeabilityUnit? _unit;
static Permeability()
diff --git a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs
index e7495b14be..834c0925b1 100644
--- a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Permittivity
///
+ [DataContract]
public partial struct Permittivity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly PermittivityUnit? _unit;
static Permittivity()
diff --git a/UnitsNet/GeneratedCode/Quantities/Power.g.cs b/UnitsNet/GeneratedCode/Quantities/Power.g.cs
index 079fbd8245..dd3c3f587c 100644
--- a/UnitsNet/GeneratedCode/Quantities/Power.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Power.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// In physics, power is the rate of doing work. It is equivalent to an amount of energy consumed per unit time.
///
+ [DataContract]
public partial struct Power : IQuantity, IDecimalQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly decimal _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly PowerUnit? _unit;
static Power()
diff --git a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs
index 98d22665ce..90f158d898 100644
--- a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The amount of power in a volume.
///
+ [DataContract]
public partial struct PowerDensity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly PowerDensityUnit? _unit;
static PowerDensity()
diff --git a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs
index 64bc8cd44d..c1252df19d 100644
--- a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The strength of a signal expressed in decibels (dB) relative to one watt.
///
+ [DataContract]
public partial struct PowerRatio : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly PowerRatioUnit? _unit;
static PowerRatio()
diff --git a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs
index 028f6ff8d2..9a2ecab394 100644
--- a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Pressure (symbol: P or p) is the ratio of force to the area over which that force is distributed. Pressure is force per unit area applied in a direction perpendicular to the surface of an object. Gauge pressure (also spelled gage pressure)[a] is the pressure relative to the local atmospheric or ambient pressure. Pressure is measured in any unit of force divided by any unit of area. The SI unit of pressure is the newton per square metre, which is called the pascal (Pa) after the seventeenth-century philosopher and scientist Blaise Pascal. A pressure of 1 Pa is small; it approximately equals the pressure exerted by a dollar bill resting flat on a table. Everyday pressures are often stated in kilopascals (1 kPa = 1000 Pa).
///
+ [DataContract]
public partial struct Pressure : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly PressureUnit? _unit;
static Pressure()
diff --git a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs
index 7153505191..7acf842e97 100644
--- a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Pressure change rate is the ratio of the pressure change to the time during which the change occurred (value of pressure changes per unit time).
///
+ [DataContract]
public partial struct PressureChangeRate : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly PressureChangeRateUnit? _unit;
static PressureChangeRate()
diff --git a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs
index 5c72a590a9..ed318672a9 100644
--- a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// In mathematics, a ratio is a relationship between two numbers of the same kind (e.g., objects, persons, students, spoonfuls, units of whatever identical dimension), usually expressed as "a to b" or a:b, sometimes expressed arithmetically as a dimensionless quotient of the two that explicitly indicates how many times the first number contains the second (not necessarily an integer).
///
+ [DataContract]
public partial struct Ratio : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly RatioUnit? _unit;
static Ratio()
diff --git a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs
index bf7cdb8333..27d9fa179f 100644
--- a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The change in ratio per unit of time.
///
+ [DataContract]
public partial struct RatioChangeRate : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly RatioChangeRateUnit? _unit;
static RatioChangeRate()
diff --git a/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs
index f3614cfd3c..2d3566f3ea 100644
--- a/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// The Volt-ampere reactive hour (expressed as varh) is the reactive power of one Volt-ampere reactive produced in one hour.
///
+ [DataContract]
public partial struct ReactiveEnergy : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ReactiveEnergyUnit? _unit;
static ReactiveEnergy()
diff --git a/UnitsNet/GeneratedCode/Quantities/ReactivePower.g.cs b/UnitsNet/GeneratedCode/Quantities/ReactivePower.g.cs
index b541e2795b..3bcd3180ee 100644
--- a/UnitsNet/GeneratedCode/Quantities/ReactivePower.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ReactivePower.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ 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.
///
+ [DataContract]
public partial struct ReactivePower : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ReactivePowerUnit? _unit;
static ReactivePower()
diff --git a/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs b/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs
index 1b158598d1..e5654f9c22 100644
--- a/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Relative humidity is a ratio of the actual water vapor present in the air to the maximum water vapor in the air at the given temperature.
///
+ [DataContract]
public partial struct RelativeHumidity : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly RelativeHumidityUnit? _unit;
static RelativeHumidity()
diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs
index b36c731d29..0a0005793f 100644
--- a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Angular acceleration is the rate of change of rotational speed.
///
+ [DataContract]
public partial struct RotationalAcceleration : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly RotationalAccelerationUnit? _unit;
static RotationalAcceleration()
diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs
index 3080b8d6e4..1896618c42 100644
--- a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// Rotational speed (sometimes called speed of revolution) is the number of complete rotations, revolutions, cycles, or turns per time unit. Rotational speed is a cyclic frequency, measured in radians per second or in hertz in the SI System by scientists, or in revolutions per minute (rpm or min-1) or revolutions per second in everyday life. The symbol for rotational speed is ω (the Greek lowercase letter "omega").
///
+ [DataContract]
public partial struct RotationalSpeed : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly RotationalSpeedUnit? _unit;
static RotationalSpeed()
diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs
index 7850818355..226881e252 100644
--- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Stiffness#Rotational_stiffness
///
+ [DataContract]
public partial struct RotationalStiffness : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly RotationalStiffnessUnit? _unit;
static RotationalStiffness()
diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs
index 32c878cd22..11e1a35d5f 100644
--- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Stiffness#Rotational_stiffness
///
+ [DataContract]
public partial struct RotationalStiffnessPerLength : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly RotationalStiffnessPerLengthUnit? _unit;
static RotationalStiffnessPerLength()
diff --git a/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs b/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs
index 0da21bee50..08d19cae21 100644
--- a/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -34,16 +35,19 @@ namespace UnitsNet
///
/// A way of representing a number of items.
///
+ [DataContract]
public partial struct Scalar : IQuantity, IEquatable, IComparable, IComparable, IConvertible, IFormattable
{
///
/// The numeric value this quantity was constructed with.
///
+ [DataMember(Name = "Value", Order = 1)]
private readonly double _value;
///
/// The unit this quantity was constructed with.
///
+ [DataMember(Name = "Unit", Order = 2)]
private readonly ScalarUnit? _unit;
static Scalar()
diff --git a/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs b/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs
index 085b552023..8cbd85d3af 100644
--- a/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs
@@ -20,6 +20,7 @@
using System;
using System.Globalization;
using System.Linq;
+using System.Runtime.Serialization;
using JetBrains.Annotations;
using UnitsNet.InternalHelpers;
using UnitsNet.Units;
@@ -37,16 +38,19 @@ namespace UnitsNet
///
/// https://en.wikipedia.org/wiki/Solid_angle
///
+ [DataContract]
public partial struct SolidAngle : IQuantity, IEquatable