diff --git a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
index 78a6c9fa59..28ab0808e1 100644
--- a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
+++ b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
@@ -1120,7 +1120,7 @@ private void GenerateToString()
/// String representation.
public override string ToString()
{{
- return ToString(""g"");
+ return ToString(null, null);
}}
///
@@ -1130,7 +1130,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{{
- return ToString(""g"", provider);
+ return ToString(null, provider);
}}
///
@@ -1141,7 +1141,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}}
///
@@ -1227,7 +1227,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{{
- return ToString(""g"", provider);
+ return ToString(null, provider);
}}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs b/CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs
index 02313ea6dd..c5971b2f22 100644
--- a/CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs
+++ b/CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs
@@ -663,7 +663,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString(""g"", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString(""G"", formatProvider), quantity.ToString(null, formatProvider));
}}
[Theory]
diff --git a/README.md b/README.md
index 3899257d92..081fa46f16 100644
--- a/README.md
+++ b/README.md
@@ -84,7 +84,7 @@ RotationalSpeed r = Angle.FromDegrees(90) / TimeSpan.FromSeconds(2);
### Culture and Localization
-The culture for abbreviations defaults to Thread.CurrentCulture and falls back to US English if not defined. Thread.CurrentCulture affects number formatting unless a custom culture is specified. The relevant methods are:
+The culture for abbreviations defaults to Thread.CurrentCulture and falls back to US English (en-US) if not defined. Thread.CurrentCulture affects number formatting unless a custom culture is specified. The relevant methods are:
* ToString()
* GetAbbreviation()
@@ -95,7 +95,7 @@ var usEnglish = new CultureInfo("en-US");
var russian = new CultureInfo("ru-RU");
var oneKg = Mass.FromKilograms(1);
-// ToString() uses CurrentCulture for abbreviation language number formatting. This is consistent with the behavior of the .NET Framework,
+// ToString() uses CurrentCulture for abbreviation language number formatting. This is consistent with the behavior of .NET,
// where DateTime.ToString() uses CurrentCulture for the whole string, likely because mixing an english date format with a russian month name might be confusing.
Thread.CurrentThread.CurrentCulture = russian;
string kgRu = oneKg.ToString(); // "1 кг"
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AccelerationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AccelerationTestsBase.g.cs
index 8016edae40..974ce07c97 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/AccelerationTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AccelerationTestsBase.g.cs
@@ -1277,7 +1277,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AmountOfSubstanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AmountOfSubstanceTestsBase.g.cs
index 6184b15194..509cf3c726 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/AmountOfSubstanceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AmountOfSubstanceTestsBase.g.cs
@@ -956,7 +956,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AmplitudeRatioTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AmplitudeRatioTestsBase.g.cs
index 8c8d952df2..3d2c43f884 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/AmplitudeRatioTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AmplitudeRatioTestsBase.g.cs
@@ -575,7 +575,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AngleTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AngleTestsBase.g.cs
index 41ad0ce776..3e22e2f643 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/AngleTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AngleTestsBase.g.cs
@@ -1543,7 +1543,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs
index 517fd696e6..ddf66c58ed 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs
@@ -534,7 +534,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentPowerTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentPowerTestsBase.g.cs
index c837d97039..4fbbf0c079 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentPowerTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentPowerTestsBase.g.cs
@@ -623,7 +623,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaDensityTestsBase.g.cs
index 7a52efb886..44a0e72c41 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaDensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaDensityTestsBase.g.cs
@@ -558,7 +558,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaMomentOfInertiaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaMomentOfInertiaTestsBase.g.cs
index baad089fb2..93f2650dae 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaMomentOfInertiaTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaMomentOfInertiaTestsBase.g.cs
@@ -789,7 +789,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaTestsBase.g.cs
index a03b6f082f..b62be66608 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaTestsBase.g.cs
@@ -1567,7 +1567,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/BitRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/BitRateTestsBase.g.cs
index be62ba4cc7..8abdfa06dd 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/BitRateTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/BitRateTestsBase.g.cs
@@ -1672,7 +1672,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/BrakeSpecificFuelConsumptionTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/BrakeSpecificFuelConsumptionTestsBase.g.cs
index 48160ebe70..5d101829bc 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/BrakeSpecificFuelConsumptionTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/BrakeSpecificFuelConsumptionTestsBase.g.cs
@@ -534,7 +534,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/CapacitanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/CapacitanceTestsBase.g.cs
index f4c69001a6..2c0f9940b8 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/CapacitanceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/CapacitanceTestsBase.g.cs
@@ -660,7 +660,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/CoefficientOfThermalExpansionTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/CoefficientOfThermalExpansionTestsBase.g.cs
index 348482a755..a0b42417d8 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/CoefficientOfThermalExpansionTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/CoefficientOfThermalExpansionTestsBase.g.cs
@@ -606,7 +606,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/CompressibilityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/CompressibilityTestsBase.g.cs
index cd16c66174..3fb6b5505d 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/CompressibilityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/CompressibilityTestsBase.g.cs
@@ -850,7 +850,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs
index 3027b5c612..f34751088b 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs
@@ -2406,7 +2406,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/DurationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/DurationTestsBase.g.cs
index f894a93107..7869ada4ca 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/DurationTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/DurationTestsBase.g.cs
@@ -2006,7 +2006,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/DynamicViscosityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/DynamicViscosityTestsBase.g.cs
index dd8bc8d531..ce06392e6e 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/DynamicViscosityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/DynamicViscosityTestsBase.g.cs
@@ -865,7 +865,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricAdmittanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricAdmittanceTestsBase.g.cs
index b38c2598ff..6a5ff6d10d 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricAdmittanceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricAdmittanceTestsBase.g.cs
@@ -571,7 +571,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeDensityTestsBase.g.cs
index 0633765b22..ccb21d41bc 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeDensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeDensityTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeTestsBase.g.cs
index 0307409152..fbbcd10fba 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeTestsBase.g.cs
@@ -860,7 +860,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductanceTestsBase.g.cs
index 5c9c9a2388..1ebcf7bbe7 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductanceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductanceTestsBase.g.cs
@@ -608,7 +608,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductivityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductivityTestsBase.g.cs
index 5495b54c60..9466e0327a 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductivityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductivityTestsBase.g.cs
@@ -645,7 +645,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentDensityTestsBase.g.cs
index 1e8f4d08e3..947afbc0ba 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentDensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentDensityTestsBase.g.cs
@@ -534,7 +534,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentGradientTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentGradientTestsBase.g.cs
index 309d178337..a69205675e 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentGradientTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentGradientTestsBase.g.cs
@@ -571,7 +571,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentTestsBase.g.cs
index a562934178..c20c8a7cb1 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentTestsBase.g.cs
@@ -734,7 +734,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricFieldTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricFieldTestsBase.g.cs
index e45dad4e08..5012866d74 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricFieldTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricFieldTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricInductanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricInductanceTestsBase.g.cs
index b96c40371f..735d469542 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricInductanceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricInductanceTestsBase.g.cs
@@ -608,7 +608,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialAcTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialAcTestsBase.g.cs
index d1219793c5..a389a4e830 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialAcTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialAcTestsBase.g.cs
@@ -586,7 +586,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialChangeRateTestsBase.g.cs
index e30643eb12..6e0f9340a3 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialChangeRateTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialChangeRateTestsBase.g.cs
@@ -1075,7 +1075,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialDcTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialDcTestsBase.g.cs
index 15669faa28..a1536b3b6c 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialDcTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialDcTestsBase.g.cs
@@ -586,7 +586,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialTestsBase.g.cs
index b375ce83d4..fe39abdbc7 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialTestsBase.g.cs
@@ -745,7 +745,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistanceTestsBase.g.cs
index c69fe1611c..53bc7814e3 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistanceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistanceTestsBase.g.cs
@@ -660,7 +660,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistivityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistivityTestsBase.g.cs
index 2ce41ad10e..6d0f55c24a 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistivityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistivityTestsBase.g.cs
@@ -897,7 +897,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricSurfaceChargeDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricSurfaceChargeDensityTestsBase.g.cs
index 04af0291fe..bd3b14ef6c 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricSurfaceChargeDensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricSurfaceChargeDensityTestsBase.g.cs
@@ -534,7 +534,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyDensityTestsBase.g.cs
index 57502ee676..4ee5b8c7d2 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyDensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyDensityTestsBase.g.cs
@@ -867,7 +867,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyTestsBase.g.cs
index 3b76340904..99a7b3f833 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyTestsBase.g.cs
@@ -2311,7 +2311,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/EntropyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/EntropyTestsBase.g.cs
index 65737394af..6d91a6c841 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/EntropyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/EntropyTestsBase.g.cs
@@ -682,7 +682,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ForceChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ForceChangeRateTestsBase.g.cs
index 82f5a8ee3c..0f7381f804 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ForceChangeRateTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ForceChangeRateTestsBase.g.cs
@@ -1074,7 +1074,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ForcePerLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ForcePerLengthTestsBase.g.cs
index 5a75e375d3..e8b243e2f7 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ForcePerLengthTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ForcePerLengthTestsBase.g.cs
@@ -2003,7 +2003,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ForceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ForceTestsBase.g.cs
index feac3204ae..9088f55bb5 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ForceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ForceTestsBase.g.cs
@@ -1392,7 +1392,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/FrequencyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/FrequencyTestsBase.g.cs
index a68228ce0d..ead64f793c 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/FrequencyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/FrequencyTestsBase.g.cs
@@ -1076,7 +1076,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs
index a558e69faf..88e71fcf74 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs
@@ -571,7 +571,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatFluxTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatFluxTestsBase.g.cs
index 0f653e5ceb..17a58ce499 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatFluxTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatFluxTestsBase.g.cs
@@ -1113,7 +1113,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs
index 6ff8538e11..c42bc209d5 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs
@@ -837,7 +837,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/IlluminanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/IlluminanceTestsBase.g.cs
index 5bb67f139b..b1f81df8b3 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/IlluminanceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/IlluminanceTestsBase.g.cs
@@ -549,7 +549,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ImpulseTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ImpulseTestsBase.g.cs
index 5f556412e4..df059088d3 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ImpulseTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ImpulseTestsBase.g.cs
@@ -882,7 +882,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/InformationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/InformationTestsBase.g.cs
index f061b4eca8..e2dde8f7ed 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/InformationTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/InformationTestsBase.g.cs
@@ -1074,7 +1074,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/IrradianceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/IrradianceTestsBase.g.cs
index fea1eaca85..5226d58500 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/IrradianceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/IrradianceTestsBase.g.cs
@@ -897,7 +897,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/IrradiationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/IrradiationTestsBase.g.cs
index 908b49b1f8..2da1161b0e 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/IrradiationTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/IrradiationTestsBase.g.cs
@@ -682,7 +682,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/JerkTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/JerkTestsBase.g.cs
index 21e44641e9..94d7445a74 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/JerkTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/JerkTestsBase.g.cs
@@ -1094,7 +1094,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/KinematicViscosityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/KinematicViscosityTestsBase.g.cs
index 129806d5c9..a42007a6c0 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/KinematicViscosityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/KinematicViscosityTestsBase.g.cs
@@ -948,7 +948,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LeakRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LeakRateTestsBase.g.cs
index 16e0a8cfed..98d37f3b15 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/LeakRateTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LeakRateTestsBase.g.cs
@@ -534,7 +534,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs
index 590d3b7932..9204d61cea 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs
@@ -2600,7 +2600,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LevelTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LevelTestsBase.g.cs
index 0118d7d382..c073006ad6 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/LevelTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LevelTestsBase.g.cs
@@ -501,7 +501,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LinearDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LinearDensityTestsBase.g.cs
index 7611aa928b..b0910a7815 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/LinearDensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LinearDensityTestsBase.g.cs
@@ -941,7 +941,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LinearPowerDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LinearPowerDensityTestsBase.g.cs
index e052b5c169..f166ac1e63 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/LinearPowerDensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LinearPowerDensityTestsBase.g.cs
@@ -1238,7 +1238,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminanceTestsBase.g.cs
index 56d125c861..8d5dc78165 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminanceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminanceTestsBase.g.cs
@@ -793,7 +793,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminosityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminosityTestsBase.g.cs
index f89aaf41e9..c8666fd1fd 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminosityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminosityTestsBase.g.cs
@@ -897,7 +897,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousFluxTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousFluxTestsBase.g.cs
index 94f4eda89e..310da91b81 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousFluxTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousFluxTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousIntensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousIntensityTestsBase.g.cs
index 401981527c..6b34011cb0 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousIntensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousIntensityTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFieldTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFieldTestsBase.g.cs
index 6838b70523..43a012b01c 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFieldTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFieldTestsBase.g.cs
@@ -645,7 +645,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFluxTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFluxTestsBase.g.cs
index 9e109a9d60..0fd154e4a3 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFluxTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFluxTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MagnetizationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MagnetizationTestsBase.g.cs
index 43935193f2..86fe2e1183 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MagnetizationTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MagnetizationTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs
index ad27b46c09..2c4d557db1 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs
@@ -2332,7 +2332,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFlowTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFlowTestsBase.g.cs
index 6351cb648d..cd0813a2fa 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFlowTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFlowTestsBase.g.cs
@@ -1886,7 +1886,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFluxTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFluxTestsBase.g.cs
index eab6d4618d..10eed4601f 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFluxTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFluxTestsBase.g.cs
@@ -867,7 +867,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFractionTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFractionTestsBase.g.cs
index 814eead319..3ece16e0e8 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFractionTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFractionTestsBase.g.cs
@@ -1335,7 +1335,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs
index 6ed4f77b07..8c08b7a785 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs
@@ -1459,7 +1459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassTestsBase.g.cs
index d38d5a703b..ca09a71c99 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassTestsBase.g.cs
@@ -2360,7 +2360,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEnergyTestsBase.g.cs
index 8cabd707e9..502ff2a8bd 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEnergyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEnergyTestsBase.g.cs
@@ -534,7 +534,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEntropyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEntropyTestsBase.g.cs
index c915d64342..c562714320 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEntropyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEntropyTestsBase.g.cs
@@ -534,7 +534,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarFlowTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarFlowTestsBase.g.cs
index 89f673b4d3..dce6a628b6 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarFlowTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarFlowTestsBase.g.cs
@@ -756,7 +756,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarMassTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarMassTestsBase.g.cs
index 28e3c0f6c3..23199bf40b 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarMassTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarMassTestsBase.g.cs
@@ -1192,7 +1192,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs
index 64f4b2db4b..e5d8eab915 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs
@@ -1022,7 +1022,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PermeabilityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PermeabilityTestsBase.g.cs
index 5959b2d99d..bfc0f6472e 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/PermeabilityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PermeabilityTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PermittivityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PermittivityTestsBase.g.cs
index 6ba7c5194d..2d86822575 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/PermittivityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PermittivityTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PorousMediumPermeabilityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PorousMediumPermeabilityTestsBase.g.cs
index d7321f40b1..13700411d6 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/PorousMediumPermeabilityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PorousMediumPermeabilityTestsBase.g.cs
@@ -608,7 +608,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerDensityTestsBase.g.cs
index 3d3e6d9312..5873f5a2e2 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerDensityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerDensityTestsBase.g.cs
@@ -1963,7 +1963,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerRatioTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerRatioTestsBase.g.cs
index 1b05a986a4..0dfa57dcf7 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerRatioTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerRatioTestsBase.g.cs
@@ -525,7 +525,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerTestsBase.g.cs
index fc2e98998d..9d1759caee 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerTestsBase.g.cs
@@ -1366,7 +1366,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PressureChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PressureChangeRateTestsBase.g.cs
index b7e373e91e..d4a775fd28 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/PressureChangeRateTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PressureChangeRateTestsBase.g.cs
@@ -1565,7 +1565,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PressureTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PressureTestsBase.g.cs
index 88592eb00a..5b1a1a7b90 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/PressureTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PressureTestsBase.g.cs
@@ -3278,7 +3278,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RatioChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RatioChangeRateTestsBase.g.cs
index eb98e2014b..63ed0ef15d 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/RatioChangeRateTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RatioChangeRateTestsBase.g.cs
@@ -497,7 +497,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RatioTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RatioTestsBase.g.cs
index dff098a836..6fd2daa1b1 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/RatioTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RatioTestsBase.g.cs
@@ -645,7 +645,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ReactiveEnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ReactiveEnergyTestsBase.g.cs
index ac965968bb..8a7614d5fb 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ReactiveEnergyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ReactiveEnergyTestsBase.g.cs
@@ -534,7 +534,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ReactivePowerTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ReactivePowerTestsBase.g.cs
index 718b047479..729b012d34 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ReactivePowerTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ReactivePowerTestsBase.g.cs
@@ -571,7 +571,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalAreaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalAreaTestsBase.g.cs
index e9dd3b8dc1..fbc64fa7d6 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalAreaTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalAreaTestsBase.g.cs
@@ -830,7 +830,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalLengthTestsBase.g.cs
index e856fc3bb5..45d9f34d48 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalLengthTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalLengthTestsBase.g.cs
@@ -1033,7 +1033,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RelativeHumidityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RelativeHumidityTestsBase.g.cs
index 36c3ebfc5a..6dade0bd03 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/RelativeHumidityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RelativeHumidityTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalAccelerationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalAccelerationTestsBase.g.cs
index 96aef71bb8..e6ed15d226 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalAccelerationTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalAccelerationTestsBase.g.cs
@@ -595,7 +595,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalSpeedTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalSpeedTestsBase.g.cs
index a8ec0147c7..69cd4cf25d 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalSpeedTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalSpeedTestsBase.g.cs
@@ -1336,7 +1336,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessPerLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessPerLengthTestsBase.g.cs
index 49ed69b1cc..41c6515dd7 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessPerLengthTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessPerLengthTestsBase.g.cs
@@ -800,7 +800,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessTestsBase.g.cs
index 9570dbe397..cfa2ee25c6 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessTestsBase.g.cs
@@ -3128,7 +3128,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ScalarTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ScalarTestsBase.g.cs
index 742d059f30..6c259c47a2 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ScalarTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ScalarTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SolidAngleTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SolidAngleTestsBase.g.cs
index aa6510723b..3a859ec4bc 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/SolidAngleTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SolidAngleTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEnergyTestsBase.g.cs
index e2c1dafb97..7a2f82aabb 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEnergyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEnergyTestsBase.g.cs
@@ -1533,7 +1533,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEntropyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEntropyTestsBase.g.cs
index 2aa80ab7b4..2c90d7ebae 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEntropyTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEntropyTestsBase.g.cs
@@ -780,7 +780,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificFuelConsumptionTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificFuelConsumptionTestsBase.g.cs
index 468bd12dbd..3b7e5f7da3 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificFuelConsumptionTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificFuelConsumptionTestsBase.g.cs
@@ -571,7 +571,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificVolumeTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificVolumeTestsBase.g.cs
index 52668dba57..8992a17c53 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificVolumeTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificVolumeTestsBase.g.cs
@@ -534,7 +534,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificWeightTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificWeightTestsBase.g.cs
index 49815d777c..f1846b921f 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificWeightTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificWeightTestsBase.g.cs
@@ -1052,7 +1052,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpeedTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpeedTestsBase.g.cs
index ceafc36b5c..861de21f83 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpeedTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpeedTestsBase.g.cs
@@ -2364,7 +2364,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/StandardVolumeFlowTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/StandardVolumeFlowTestsBase.g.cs
index d4567dd0c2..62b79a5eb9 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/StandardVolumeFlowTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/StandardVolumeFlowTestsBase.g.cs
@@ -756,7 +756,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureChangeRateTestsBase.g.cs
index 6ddf89e0b8..dbbd203a7b 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureChangeRateTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureChangeRateTestsBase.g.cs
@@ -793,7 +793,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureDeltaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureDeltaTestsBase.g.cs
index bcad90eb83..996c09e137 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureDeltaTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureDeltaTestsBase.g.cs
@@ -756,7 +756,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureGradientTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureGradientTestsBase.g.cs
index 316f9dff2a..f3e2373f1b 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureGradientTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureGradientTestsBase.g.cs
@@ -571,7 +571,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureTestsBase.g.cs
index 7bdd29dc4c..1b3e48c5f2 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureTestsBase.g.cs
@@ -781,7 +781,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalConductivityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalConductivityTestsBase.g.cs
index 9227245c2b..a5a661e0c4 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalConductivityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalConductivityTestsBase.g.cs
@@ -497,7 +497,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalResistanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalResistanceTestsBase.g.cs
index ddfa254927..f6e465e0d2 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalResistanceTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalResistanceTestsBase.g.cs
@@ -645,7 +645,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TorquePerLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TorquePerLengthTestsBase.g.cs
index 9a2f2bf6d8..6c3a0a70ff 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/TorquePerLengthTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TorquePerLengthTestsBase.g.cs
@@ -1272,7 +1272,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TorqueTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TorqueTestsBase.g.cs
index 7875a5097f..167e0197d4 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/TorqueTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TorqueTestsBase.g.cs
@@ -1420,7 +1420,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TurbidityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TurbidityTestsBase.g.cs
index 394321a806..8ce9b1991c 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/TurbidityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TurbidityTestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VitaminATestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VitaminATestsBase.g.cs
index eade4a13f4..debc7cbd77 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/VitaminATestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VitaminATestsBase.g.cs
@@ -459,7 +459,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs
index e3f0c10976..2c6bb732e4 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs
@@ -1187,7 +1187,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowPerAreaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowPerAreaTestsBase.g.cs
index 9fe1fa7c96..145fe5eec7 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowPerAreaTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowPerAreaTestsBase.g.cs
@@ -497,7 +497,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs
index 5cef17f3d9..ed4fe29ea9 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs
@@ -4436,7 +4436,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumePerLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumePerLengthTestsBase.g.cs
index 0754d4eb89..40839f6010 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumePerLengthTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumePerLengthTestsBase.g.cs
@@ -682,7 +682,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeTestsBase.g.cs
index af0271bb30..e7ceba6781 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeTestsBase.g.cs
@@ -3404,7 +3404,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumetricHeatCapacityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumetricHeatCapacityTestsBase.g.cs
index 41555fb522..b8d0b128c2 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumetricHeatCapacityTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumetricHeatCapacityTestsBase.g.cs
@@ -756,7 +756,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/WarpingMomentOfInertiaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/WarpingMomentOfInertiaTestsBase.g.cs
index 29709c0913..dd73f347e0 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/WarpingMomentOfInertiaTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/WarpingMomentOfInertiaTestsBase.g.cs
@@ -789,7 +789,7 @@ public void ToString_NullFormat_DefaultsToGeneralFormat(string cultureName)
? null
: CultureInfo.GetCultureInfo(cultureName);
- Assert.Equal(quantity.ToString("g", formatProvider), quantity.ToString(null, formatProvider));
+ Assert.Equal(quantity.ToString("G", formatProvider), quantity.ToString(null, formatProvider));
}
[Theory]
diff --git a/UnitsNet.Tests/QuantityIFormattableTests.cs b/UnitsNet.Tests/QuantityIFormattableTests.cs
index 930cea51f7..a1c33bf1a8 100644
--- a/UnitsNet.Tests/QuantityIFormattableTests.cs
+++ b/UnitsNet.Tests/QuantityIFormattableTests.cs
@@ -19,7 +19,6 @@ public void GFormatStringEqualsToString()
[Fact]
public void EmptyOrNullFormatStringEqualsGFormat()
{
- Assert.Equal(MyLength.ToString("g"), MyLength.ToString(string.Empty));
Assert.Equal(MyLength.ToString("g"), MyLength.ToString(format: null!));
}
@@ -39,18 +38,6 @@ public void AFormatWithInvalidIndexThrowsFormatException()
Assert.Throws(() => MyLength.ToString("a100"));
}
- [Fact]
- public void QFormatEqualsQuantityName()
- {
- Assert.Equal(Length.Info.Name, MyLength.ToString("q"));
- }
-
- [Fact]
- public void UFormatEqualsUnitToString()
- {
- Assert.Equal(MyLength.Unit.ToString(), MyLength.ToString("u"));
- }
-
[Fact]
public void UnsupportedFormatStringThrowsException()
{
diff --git a/UnitsNet.Tests/QuantityTests.ToString.cs b/UnitsNet.Tests/QuantityTests.ToString.cs
index 982713dae1..b1d34a466b 100644
--- a/UnitsNet.Tests/QuantityTests.ToString.cs
+++ b/UnitsNet.Tests/QuantityTests.ToString.cs
@@ -18,9 +18,9 @@ public void ReturnsTheOriginalValueAndUnit()
{
var culture = CultureInfo.InvariantCulture;
Assert.Equal("5 kg", Mass.FromKilograms(5).ToString(culture));
- Assert.Equal("5,000 g", Mass.FromGrams(5000).ToString(culture));
- Assert.Equal("1e-04 long tn", Mass.FromLongTons(1e-4).ToString(culture));
- Assert.Equal("3.46e-04 dN/m", ForcePerLength.FromDecinewtonsPerMeter(0.00034567).ToString(culture));
+ Assert.Equal("5000 g", Mass.FromGrams(5000).ToString(culture));
+ Assert.Equal("0.0001 long tn", Mass.FromLongTons(1e-4).ToString(culture));
+ Assert.Equal("0.00034567 dN/m", ForcePerLength.FromDecinewtonsPerMeter(0.00034567).ToString(culture));
Assert.Equal("0.0069 dB", Level.FromDecibels(0.0069).ToString(culture));
Assert.Equal("0.011 kWh/kg", SpecificEnergy.FromKilowattHoursPerKilogram(0.011).ToString(culture));
// Assert.Equal("0.1 MJ/kg·C", SpecificEntropy.FromMegajoulesPerKilogramDegreeCelsius(0.1).ToString(culture));
diff --git a/UnitsNet.Tests/UnitAbbreviationsCacheTests.cs b/UnitsNet.Tests/UnitAbbreviationsCacheTests.cs
index fbbcca2314..66329f6458 100644
--- a/UnitsNet.Tests/UnitAbbreviationsCacheTests.cs
+++ b/UnitsNet.Tests/UnitAbbreviationsCacheTests.cs
@@ -25,8 +25,8 @@ public class UnitAbbreviationsCacheTests
[InlineData(0, "0 m")]
[InlineData(0.1, "0.1 m")]
[InlineData(0.11, "0.11 m")]
- [InlineData(0.111234, "0.11 m")]
- [InlineData(0.115, "0.12 m")]
+ [InlineData(0.111234, "0.111234 m")]
+ [InlineData(0.115, "0.115 m")]
public void DefaultToStringFormatting(double value, string expected)
{
string actual = Length.FromMeters(value).ToUnit(LengthUnit.Meter).ToString(AmericanCulture);
@@ -78,7 +78,7 @@ public void DigitGroupingCultureFormatting(string cultureName)
CultureInfo culture = GetCulture(cultureName);
string gs = culture.NumberFormat.NumberGroupSeparator;
- Assert.Equal($"1{gs}111 m", Length.FromMeters(1111).ToUnit(LengthUnit.Meter).ToString(culture));
+ Assert.Equal($"1111 m", Length.FromMeters(1111).ToUnit(LengthUnit.Meter).ToString(culture));
// Feet/Inch and Stone/Pound combinations are only used (customarily) in the US, UK and maybe Ireland - all English speaking countries.
// FeetInches returns a whole number of feet, with the remainder expressed (rounded) in inches. Same for StonePounds.
@@ -105,14 +105,18 @@ public void RoundingErrorsWithSignificantDigitsAfterRadixFormatting(double value
// Any value in the interval (-inf ≤ x < 1e-03] is formatted in scientific notation
[Theory]
- [InlineData(double.MinValue, "-1.8e+308 m")]
- [InlineData(1.23e-120, "1.23e-120 m")]
- [InlineData(0.0000111, "1.11e-05 m")]
- [InlineData(1.99e-4, "1.99e-04 m")]
- public void ScientificNotationLowerInterval(double value, string expected)
+ [InlineData(double.MinValue)]
+ [InlineData(1.23e-120)]
+ [InlineData(0.0000111)]
+ [InlineData(1.99e-4)]
+ public void ScientificNotationLowerInterval(double value)
{
- string actual = Length.FromMeters(value).ToUnit(LengthUnit.Meter).ToString(AmericanCulture);
- Assert.Equal(expected, actual);
+ var quantity = Length.FromMeters(value).ToUnit(LengthUnit.Meter);
+
+ string unitsNetFormatted = quantity.ToString(AmericanCulture);
+ string runtimeFormatted = value.ToString(AmericanCulture);
+
+ Assert.StartsWith(runtimeFormatted, unitsNetFormatted);
}
// Any value in the interval [1e-03 ≤ x < 1e+03] is formatted in fixed point notation.
@@ -128,10 +132,10 @@ public void FixedPointNotationIntervalFormatting(double value, string expected)
// Any value in the interval [1e+03 ≤ x < 1e+06] is formatted in fixed point notation with digit grouping.
[Theory]
- [InlineData(1000, "1,000 m")]
- [InlineData(11000, "11,000 m")]
- [InlineData(111000, "111,000 m")]
- [InlineData(999999.99, "999,999.99 m")]
+ [InlineData(1000, "1000 m")]
+ [InlineData(11000, "11000 m")]
+ [InlineData(111000, "111000 m")]
+ [InlineData(999999.99, "999999.99 m")]
public void FixedPointNotationWithDigitGroupingIntervalFormatting(double value, string expected)
{
string actual = Length.FromMeters(value).ToUnit(LengthUnit.Meter).ToString(AmericanCulture);
@@ -140,13 +144,17 @@ public void FixedPointNotationWithDigitGroupingIntervalFormatting(double value,
// Any value in the interval [1e+06 ≤ x ≤ +inf) is formatted in scientific notation.
[Theory]
- [InlineData(1e6, "1e+06 m")]
- [InlineData(11100000, "1.11e+07 m")]
- [InlineData(double.MaxValue, "1.8e+308 m")]
- public void ScientificNotationUpperIntervalFormatting(double value, string expected)
+ [InlineData(1e6)]
+ [InlineData(11100000)]
+ [InlineData(double.MaxValue)]
+ public void ScientificNotationUpperIntervalFormatting(double value)
{
- string actual = Length.FromMeters(value).ToUnit(LengthUnit.Meter).ToString(AmericanCulture);
- Assert.Equal(expected, actual);
+ var quantity = Length.FromMeters(value).ToUnit(LengthUnit.Meter);
+
+ string unitsNetFormatted = quantity.ToString(AmericanCulture);
+ string runtimeFormatted = value.ToString(AmericanCulture);
+
+ Assert.StartsWith(runtimeFormatted, unitsNetFormatted);
}
[Fact]
diff --git a/UnitsNet/CustomCode/UnitAbbreviationsCache.cs b/UnitsNet/CustomCode/UnitAbbreviationsCache.cs
index 6bb34bf28f..0a9a3eb840 100644
--- a/UnitsNet/CustomCode/UnitAbbreviationsCache.cs
+++ b/UnitsNet/CustomCode/UnitAbbreviationsCache.cs
@@ -27,7 +27,7 @@ public sealed class UnitAbbreviationsCache
///
///
/// User wants to call or with Russian
- /// culture, but no translation is defined, so we return the US English definition as a last resort. If it's not
+ /// culture, but no translation is defined, so we return the US English (en-US) definition as a last resort. If it's not
/// defined there either, an exception is thrown.
///
internal static readonly CultureInfo FallbackCulture = new("en-US");
diff --git a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs
index 50c61da5df..e4544c0ad4 100644
--- a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs
@@ -1065,7 +1065,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1075,7 +1075,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1086,7 +1086,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1167,7 +1167,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs
index d0e2a9b1ca..0e2783e114 100644
--- a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs
@@ -1072,7 +1072,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1082,7 +1082,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1093,7 +1093,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1174,7 +1174,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs
index 26a4b35dd2..6f4f6c02e0 100644
--- a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs
@@ -849,7 +849,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -859,7 +859,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -870,7 +870,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -951,7 +951,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs
index 27c248be69..993b9bb2ab 100644
--- a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs
@@ -1105,7 +1105,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1115,7 +1115,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1126,7 +1126,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1207,7 +1207,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs
index baf290ad86..0c568dd8a4 100644
--- a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs
@@ -820,7 +820,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -830,7 +830,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -841,7 +841,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -922,7 +922,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs
index bfc6980144..255a53e440 100644
--- a/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs
@@ -883,7 +883,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -893,7 +893,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -904,7 +904,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -985,7 +985,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Area.g.cs b/UnitsNet/GeneratedCode/Quantities/Area.g.cs
index 4de92cb165..cc721e5a74 100644
--- a/UnitsNet/GeneratedCode/Quantities/Area.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Area.g.cs
@@ -1078,7 +1078,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1088,7 +1088,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1099,7 +1099,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1180,7 +1180,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs
index f989873016..0527cfc0c8 100644
--- a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs
@@ -820,7 +820,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -830,7 +830,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -841,7 +841,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -922,7 +922,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
index 2a63adeb01..604055852c 100644
--- a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
@@ -883,7 +883,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -893,7 +893,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -904,7 +904,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -985,7 +985,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs
index 49e9903f31..734136e3e8 100644
--- a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs
@@ -1318,7 +1318,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1328,7 +1328,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1339,7 +1339,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1420,7 +1420,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
index 3cb5f0382c..0346f37dc0 100644
--- a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
@@ -820,7 +820,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -830,7 +830,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -841,7 +841,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -922,7 +922,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs b/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs
index 26743b160c..a5fc9da2b7 100644
--- a/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs
@@ -907,7 +907,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -917,7 +917,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -928,7 +928,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1009,7 +1009,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs
index 6b116c03db..db07948b03 100644
--- a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs
@@ -820,7 +820,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -830,7 +830,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -841,7 +841,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -922,7 +922,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs b/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs
index d9745f5396..ced0fdc568 100644
--- a/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs
@@ -904,7 +904,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -914,7 +914,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -925,7 +925,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1006,7 +1006,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Density.g.cs b/UnitsNet/GeneratedCode/Quantities/Density.g.cs
index ae27d2e4d7..6a07e5241b 100644
--- a/UnitsNet/GeneratedCode/Quantities/Density.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Density.g.cs
@@ -1835,7 +1835,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1845,7 +1845,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1856,7 +1856,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1937,7 +1937,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs
index ceea4f803a..7609a067e2 100644
--- a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs
@@ -998,7 +998,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1008,7 +1008,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1019,7 +1019,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1100,7 +1100,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs
index eb1ad0a3ae..69c4ed0fb3 100644
--- a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs
@@ -970,7 +970,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -980,7 +980,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -991,7 +991,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1072,7 +1072,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs
index e71b52a4ee..651cd8830e 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs
@@ -841,7 +841,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -851,7 +851,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -862,7 +862,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -943,7 +943,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs
index 3c0b3b2ec7..cc3c592ba2 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs
@@ -991,7 +991,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1001,7 +1001,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1012,7 +1012,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1093,7 +1093,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs
index 5d22f8248d..8749ca6ab9 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs
@@ -781,7 +781,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -791,7 +791,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -802,7 +802,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -883,7 +883,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs
index d5b1e09d3d..6a963b39fd 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs
@@ -865,7 +865,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -875,7 +875,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -886,7 +886,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -967,7 +967,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs
index 3e9c568fe9..f1fe76ae44 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs
@@ -886,7 +886,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -896,7 +896,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -907,7 +907,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -988,7 +988,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs
index 5833e54875..f80b7979fc 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs
@@ -946,7 +946,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -956,7 +956,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -967,7 +967,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1048,7 +1048,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs
index f73aa42c69..64436973c8 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs
@@ -823,7 +823,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -833,7 +833,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -844,7 +844,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -925,7 +925,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs
index ee29ac5b7a..6c8578aab2 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs
@@ -841,7 +841,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -851,7 +851,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -862,7 +862,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -943,7 +943,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs
index 8ab10f5056..335dd2393f 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs
@@ -781,7 +781,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -791,7 +791,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -802,7 +802,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -883,7 +883,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs
index 9fe8cc6a8c..0eb562989d 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs
@@ -865,7 +865,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -875,7 +875,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -886,7 +886,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -967,7 +967,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs
index 1655b702a9..a71e52e0b9 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs
@@ -889,7 +889,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -899,7 +899,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -910,7 +910,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -991,7 +991,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
index 8c243b0b9b..694bdcd82d 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
@@ -862,7 +862,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -872,7 +872,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -883,7 +883,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -964,7 +964,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs
index 204fdb920b..45b992154e 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs
@@ -1177,7 +1177,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1187,7 +1187,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1198,7 +1198,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1279,7 +1279,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
index 7e329382a4..405a74bed7 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
@@ -862,7 +862,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -872,7 +872,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -883,7 +883,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -964,7 +964,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs
index dca339be01..7a9dcecdb7 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs
@@ -904,7 +904,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -914,7 +914,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -925,7 +925,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1006,7 +1006,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs
index 0159a5d433..f60b7f2e23 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs
@@ -1054,7 +1054,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1064,7 +1064,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1075,7 +1075,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1156,7 +1156,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs
index 6a79037987..bf6dabf3d9 100644
--- a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs
@@ -823,7 +823,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -833,7 +833,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -844,7 +844,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -925,7 +925,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs
index c762157cd9..c901ce51d6 100644
--- a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs
@@ -1576,7 +1576,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1586,7 +1586,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1597,7 +1597,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1678,7 +1678,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs
index 280a9d6a72..27a9694972 100644
--- a/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs
@@ -1009,7 +1009,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1019,7 +1019,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1030,7 +1030,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1111,7 +1111,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs
index d66843e420..14c198b93c 100644
--- a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs
@@ -904,7 +904,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -914,7 +914,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -925,7 +925,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1006,7 +1006,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Force.g.cs b/UnitsNet/GeneratedCode/Quantities/Force.g.cs
index 88c7b25449..0658eeb2b1 100644
--- a/UnitsNet/GeneratedCode/Quantities/Force.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Force.g.cs
@@ -1085,7 +1085,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1095,7 +1095,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1106,7 +1106,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1187,7 +1187,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs
index c0bc760270..b8bc62d779 100644
--- a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs
@@ -1072,7 +1072,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1082,7 +1082,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1093,7 +1093,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1174,7 +1174,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs
index c147c0f280..8791041a4d 100644
--- a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs
@@ -1561,7 +1561,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1571,7 +1571,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1582,7 +1582,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1663,7 +1663,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs
index f0d6e735ed..dbd97c72c7 100644
--- a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs
@@ -1039,7 +1039,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1049,7 +1049,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1060,7 +1060,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1141,7 +1141,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs
index 7b513711f6..ad3f67e005 100644
--- a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs
@@ -844,7 +844,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -854,7 +854,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -865,7 +865,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -946,7 +946,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs
index 2e1587b1d6..519998c0e3 100644
--- a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs
@@ -1135,7 +1135,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1145,7 +1145,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1156,7 +1156,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1237,7 +1237,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
index 36ebd8f183..b6c87be4d1 100644
--- a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
@@ -885,7 +885,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -895,7 +895,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -906,7 +906,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -987,7 +987,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs
index 9a61690f4d..3edfc50b38 100644
--- a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs
@@ -844,7 +844,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -854,7 +854,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -865,7 +865,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -946,7 +946,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs b/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs
index 7f106772e6..f8b5cece22 100644
--- a/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs
@@ -1030,7 +1030,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1040,7 +1040,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1051,7 +1051,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1132,7 +1132,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Information.g.cs b/UnitsNet/GeneratedCode/Quantities/Information.g.cs
index 9bacae7e96..0e2da46823 100644
--- a/UnitsNet/GeneratedCode/Quantities/Information.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Information.g.cs
@@ -1315,7 +1315,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1325,7 +1325,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1336,7 +1336,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1417,7 +1417,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs
index d959da58da..b2eb2f5ee0 100644
--- a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs
@@ -1051,7 +1051,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1061,7 +1061,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1072,7 +1072,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1153,7 +1153,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs
index 49c9acc7ad..7925e1960d 100644
--- a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs
@@ -907,7 +907,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -917,7 +917,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -928,7 +928,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1009,7 +1009,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs b/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs
index 8943c98193..85b7b3c4fa 100644
--- a/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs
@@ -999,7 +999,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1009,7 +1009,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1020,7 +1020,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1101,7 +1101,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs
index c6b6d2d859..322a576b6d 100644
--- a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs
@@ -957,7 +957,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -967,7 +967,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -978,7 +978,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1059,7 +1059,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs b/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs
index 2c3fb9b3c6..545c561efa 100644
--- a/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs
@@ -823,7 +823,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -833,7 +833,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -844,7 +844,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -925,7 +925,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Length.g.cs b/UnitsNet/GeneratedCode/Quantities/Length.g.cs
index bd0324ed5f..d4ee77c765 100644
--- a/UnitsNet/GeneratedCode/Quantities/Length.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Length.g.cs
@@ -1568,7 +1568,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1578,7 +1578,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1589,7 +1589,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1670,7 +1670,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Level.g.cs b/UnitsNet/GeneratedCode/Quantities/Level.g.cs
index f175e4459b..c187830a81 100644
--- a/UnitsNet/GeneratedCode/Quantities/Level.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Level.g.cs
@@ -807,7 +807,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -817,7 +817,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -828,7 +828,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -909,7 +909,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs
index b0e899934d..2f49b74356 100644
--- a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs
@@ -1054,7 +1054,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1064,7 +1064,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1075,7 +1075,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1156,7 +1156,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs
index 671c648817..a8a6643a2b 100644
--- a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs
@@ -1285,7 +1285,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1295,7 +1295,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1306,7 +1306,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1387,7 +1387,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs
index f1adbfe009..12efb34c54 100644
--- a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs
@@ -970,7 +970,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -980,7 +980,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -991,7 +991,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1072,7 +1072,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs
index e8b2c721b0..8d6a903df4 100644
--- a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs
@@ -1054,7 +1054,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1064,7 +1064,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1075,7 +1075,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1156,7 +1156,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs
index 6b27265185..55f461d361 100644
--- a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs
@@ -781,7 +781,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -791,7 +791,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -802,7 +802,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -883,7 +883,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs
index 4872fa2242..7117476bff 100644
--- a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs
@@ -781,7 +781,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -791,7 +791,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -802,7 +802,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -883,7 +883,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs
index d8821319dc..3195c90edc 100644
--- a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs
@@ -886,7 +886,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -896,7 +896,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -907,7 +907,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -988,7 +988,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs
index b4a02e2457..32f69b4589 100644
--- a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs
@@ -781,7 +781,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -791,7 +791,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -802,7 +802,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -883,7 +883,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs
index 519e288d50..7d2fc5d48c 100644
--- a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs
@@ -781,7 +781,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -791,7 +791,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -802,7 +802,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -883,7 +883,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs
index 4d09a9ed3f..3fed67e698 100644
--- a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs
@@ -1317,7 +1317,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1327,7 +1327,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1338,7 +1338,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1419,7 +1419,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs
index 60036b0425..552ada64d9 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs
@@ -1793,7 +1793,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1803,7 +1803,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1814,7 +1814,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1895,7 +1895,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs
index 408166d50a..1174cfa186 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs
@@ -1452,7 +1452,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1462,7 +1462,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1473,7 +1473,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1554,7 +1554,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs
index 279e541850..f6a950b493 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs
@@ -1009,7 +1009,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1019,7 +1019,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1030,7 +1030,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1111,7 +1111,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs
index 8c824f4dc5..66360bf131 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs
@@ -1264,7 +1264,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1274,7 +1274,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1285,7 +1285,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1366,7 +1366,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs
index 4b67bdebff..a1326ed00c 100644
--- a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs
@@ -1345,7 +1345,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1355,7 +1355,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1366,7 +1366,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1447,7 +1447,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs
index 6f67309dbd..65bda0ec2f 100644
--- a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs
@@ -820,7 +820,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -830,7 +830,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -841,7 +841,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -922,7 +922,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs
index cd79b26ad1..c522d5298b 100644
--- a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs
@@ -820,7 +820,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -830,7 +830,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -841,7 +841,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -922,7 +922,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs
index 9759e8d22d..a1819df406 100644
--- a/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs
@@ -946,7 +946,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -956,7 +956,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -967,7 +967,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1048,7 +1048,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs
index 8de95c9961..e72b37d1b4 100644
--- a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs
@@ -1042,7 +1042,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1052,7 +1052,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1063,7 +1063,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1144,7 +1144,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs
index 6bbcc8ef82..a4590699b0 100644
--- a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs
@@ -991,7 +991,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1001,7 +1001,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1012,7 +1012,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1093,7 +1093,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs
index f799fbbd69..4cfc8b973b 100644
--- a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs
@@ -781,7 +781,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -791,7 +791,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -802,7 +802,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -883,7 +883,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs
index a3ed041fde..09e7d40f6d 100644
--- a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs
@@ -781,7 +781,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -791,7 +791,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -802,7 +802,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -883,7 +883,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs b/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs
index ca623e65f5..1d0f2782bb 100644
--- a/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs
@@ -865,7 +865,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -875,7 +875,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -886,7 +886,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -967,7 +967,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Power.g.cs b/UnitsNet/GeneratedCode/Quantities/Power.g.cs
index bfdbd51162..e278884432 100644
--- a/UnitsNet/GeneratedCode/Quantities/Power.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Power.g.cs
@@ -1315,7 +1315,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1325,7 +1325,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1336,7 +1336,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1417,7 +1417,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs
index 98524dd812..babbc3887a 100644
--- a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs
@@ -1681,7 +1681,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1691,7 +1691,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1702,7 +1702,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1783,7 +1783,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs
index cbbd8c2b8f..f0c31fce8c 100644
--- a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs
@@ -807,7 +807,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -817,7 +817,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -828,7 +828,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -909,7 +909,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs
index f9abbb6f9b..1f2504bd6b 100644
--- a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs
@@ -1817,7 +1817,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1827,7 +1827,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1838,7 +1838,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1919,7 +1919,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs
index e1976e3ace..02b66c848b 100644
--- a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs
@@ -1065,7 +1065,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -1075,7 +1075,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -1086,7 +1086,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -1167,7 +1167,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs
index bb44dc2933..5b95acf887 100644
--- a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs
@@ -883,7 +883,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -893,7 +893,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -904,7 +904,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -985,7 +985,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs
index 6267989315..7ee447ebac 100644
--- a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs
@@ -799,7 +799,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
/// String representation.
public override string ToString()
{
- return ToString("g");
+ return ToString(null, null);
}
///
@@ -809,7 +809,7 @@ public override string ToString()
/// Format to use for localization and number formatting. Defaults to if null.
public string ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
///
@@ -820,7 +820,7 @@ public string ToString(IFormatProvider? provider)
/// The string representation.
public string ToString(string? format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, null);
}
///
@@ -901,7 +901,7 @@ float IConvertible.ToSingle(IFormatProvider? provider)
string IConvertible.ToString(IFormatProvider? provider)
{
- return ToString("g", provider);
+ return ToString(null, provider);
}
object IConvertible.ToType(Type conversionType, IFormatProvider? provider)
diff --git a/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs
index 7f6dfffdc7..43337894f3 100644
--- a/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs
@@ -820,7 +820,7 @@ IValueQuantity IValueQuantity.ToUnit(Enum unit)
///