diff --git a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
index 77ef517896..6feff58a75 100644
--- a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
+++ b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs
@@ -249,7 +249,7 @@ private void GenerateStaticProperties()
///
/// The of this quantity.
///
- [Obsolete(""QuantityType will be removed in the future. Use Info property instead."")]
+ [Obsolete(""QuantityType will be removed in the future. Use the Info property instead."")]
public static QuantityType QuantityType {{ get; }} = QuantityType.{_quantity.Name};
///
@@ -303,7 +303,8 @@ private void GenerateProperties()
///
/// The of this quantity.
///
- public QuantityType Type => {_quantity.Name}.QuantityType;
+ [Obsolete(""QuantityType will be removed in the future. Use the Info property instead."")]
+ public QuantityType Type => QuantityType.{_quantity.Name};
///
/// The of this quantity.
diff --git a/CodeGen/Generators/UnitsNetGen/QuantityTypeGenerator.cs b/CodeGen/Generators/UnitsNetGen/QuantityTypeGenerator.cs
index 72c1bbccef..624f319486 100644
--- a/CodeGen/Generators/UnitsNetGen/QuantityTypeGenerator.cs
+++ b/CodeGen/Generators/UnitsNetGen/QuantityTypeGenerator.cs
@@ -16,6 +16,9 @@ public override string Generate()
Writer.WL(GeneratedFileHeader);
Writer.WL(@"
// ReSharper disable once CheckNamespace
+
+using System;
+
namespace UnitsNet
{
///
@@ -24,6 +27,7 @@ namespace UnitsNet
/// This is useful for populating options in the UI, such as creating a generic conversion
/// tool with inputValue, quantityName, fromUnit and toUnit selectors.
///
+ [Obsolete(""QuantityType will be removed in the future. Use the QuantityInfo class instead."")]
public enum QuantityType
{
// Missing XML comment for public type or member
diff --git a/CodeGen/Generators/UnitsNetGen/StaticQuantityGenerator.cs b/CodeGen/Generators/UnitsNetGen/StaticQuantityGenerator.cs
index 5e646a0605..99bc982b13 100644
--- a/CodeGen/Generators/UnitsNetGen/StaticQuantityGenerator.cs
+++ b/CodeGen/Generators/UnitsNetGen/StaticQuantityGenerator.cs
@@ -43,16 +43,6 @@ public static partial class Quantity
Writer.WL(@"
};
- // Used by the QuantityInfo .ctor to map a name to a QuantityType. Will be removed when QuantityType
- // will be removed.
- internal static readonly IDictionary QuantityTypeByName = new Dictionary
- {");
- foreach (var quantity in _quantities)
- Writer.WL($@"
- {{ ""{quantity.Name}"", QuantityType.{quantity.Name} }},");
- Writer.WL(@"
- };
-
///
/// Dynamically constructs a quantity of the given with the value in the quantity's base units.
///
diff --git a/CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs b/CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs
index 337b14719c..6b4471253a 100644
--- a/CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs
+++ b/CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs
@@ -1,4 +1,4 @@
-// Licensed under MIT No Attribution, see LICENSE file at the root.
+// Licensed under MIT No Attribution, see LICENSE file at the root.
// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
using System;
@@ -194,6 +194,7 @@ private void GenerateStaticProperties()
///
/// The of this quantity.
///
+ [Obsolete(""QuantityType will be removed in the future. Use the Info property instead."")]
public static QuantityType QuantityType {{ get; }} = QuantityType.{_quantity.Name};
///
@@ -235,6 +236,7 @@ private void GenerateProperties()
///
/// The of this quantity.
///
+ [Obsolete(""QuantityType will be removed in the future. Use the Info property instead."")]
public QuantityType Type => {_quantity.Name}.QuantityType;
///
@@ -585,7 +587,7 @@ public bool Equals({_quantity.Name} other, double tolerance, ComparisonType comp
/// A hash code for the current {_quantity.Name}.
public override int GetHashCode()
{{
- return new {{ QuantityType, Value, Unit }}.GetHashCode();
+ return new {{ Info.Name, Value, Unit }}.GetHashCode();
}}
#endregion
diff --git a/CodeGen/Generators/UnitsNetWrcGen/QuantityTypeGenerator.cs b/CodeGen/Generators/UnitsNetWrcGen/QuantityTypeGenerator.cs
index 582b299d6a..e498d2d2d7 100644
--- a/CodeGen/Generators/UnitsNetWrcGen/QuantityTypeGenerator.cs
+++ b/CodeGen/Generators/UnitsNetWrcGen/QuantityTypeGenerator.cs
@@ -1,4 +1,4 @@
-using CodeGen.JsonTypes;
+using CodeGen.JsonTypes;
namespace CodeGen.Generators.UnitsNetWrcGen
{
@@ -16,6 +16,9 @@ public override string Generate()
Writer.WL(GeneratedFileHeader);
Writer.WL(@"
// ReSharper disable once CheckNamespace
+
+using System;
+
namespace UnitsNet
{
///
@@ -24,6 +27,7 @@ namespace UnitsNet
/// This is useful for populating options in the UI, such as creating a generic conversion
/// tool with inputValue, quantityName, fromUnit and toUnit selectors.
///
+ [Obsolete(""QuantityType will be removed in the future. Use the QuantityInfo class instead."")]
public enum QuantityType
{
Undefined = 0,");
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Acceleration.g.cs
index 85cab970be..887de0cca9 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Acceleration.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Acceleration.g.cs
@@ -110,6 +110,7 @@ private Acceleration(double value, AccelerationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Acceleration;
///
@@ -144,6 +145,7 @@ private Acceleration(double value, AccelerationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Acceleration.QuantityType;
///
@@ -645,7 +647,7 @@ public bool Equals(Acceleration other, double tolerance, ComparisonType comparis
/// A hash code for the current Acceleration.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmountOfSubstance.g.cs
index 5ad5fa29f4..f50690a9f3 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmountOfSubstance.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmountOfSubstance.g.cs
@@ -110,6 +110,7 @@ private AmountOfSubstance(double value, AmountOfSubstanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.AmountOfSubstance;
///
@@ -144,6 +145,7 @@ private AmountOfSubstance(double value, AmountOfSubstanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => AmountOfSubstance.QuantityType;
///
@@ -660,7 +662,7 @@ public bool Equals(AmountOfSubstance other, double tolerance, ComparisonType com
/// A hash code for the current AmountOfSubstance.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmplitudeRatio.g.cs
index 32343032b5..96f5f5536b 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmplitudeRatio.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmplitudeRatio.g.cs
@@ -110,6 +110,7 @@ private AmplitudeRatio(double value, AmplitudeRatioUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.AmplitudeRatio;
///
@@ -144,6 +145,7 @@ private AmplitudeRatio(double value, AmplitudeRatioUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => AmplitudeRatio.QuantityType;
///
@@ -495,7 +497,7 @@ public bool Equals(AmplitudeRatio other, double tolerance, ComparisonType compar
/// A hash code for the current AmplitudeRatio.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Angle.g.cs
index c43fedfd87..5f9a81fb71 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Angle.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Angle.g.cs
@@ -110,6 +110,7 @@ private Angle(double value, AngleUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Angle;
///
@@ -144,6 +145,7 @@ private Angle(double value, AngleUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Angle.QuantityType;
///
@@ -675,7 +677,7 @@ public bool Equals(Angle other, double tolerance, ComparisonType comparisonType)
/// A hash code for the current Angle.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentEnergy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentEnergy.g.cs
index 3ddcbd6a6e..ed3a7470ba 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentEnergy.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentEnergy.g.cs
@@ -110,6 +110,7 @@ private ApparentEnergy(double value, ApparentEnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ApparentEnergy;
///
@@ -144,6 +145,7 @@ private ApparentEnergy(double value, ApparentEnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ApparentEnergy.QuantityType;
///
@@ -480,7 +482,7 @@ public bool Equals(ApparentEnergy other, double tolerance, ComparisonType compar
/// A hash code for the current ApparentEnergy.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentPower.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentPower.g.cs
index 0781f3b56a..6ed5dbb714 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentPower.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentPower.g.cs
@@ -110,6 +110,7 @@ private ApparentPower(double value, ApparentPowerUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ApparentPower;
///
@@ -144,6 +145,7 @@ private ApparentPower(double value, ApparentPowerUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ApparentPower.QuantityType;
///
@@ -495,7 +497,7 @@ public bool Equals(ApparentPower other, double tolerance, ComparisonType compari
/// A hash code for the current ApparentPower.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Area.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Area.g.cs
index 2e8dfb7f71..2c4e1c24b0 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Area.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Area.g.cs
@@ -110,6 +110,7 @@ private Area(double value, AreaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Area;
///
@@ -144,6 +145,7 @@ private Area(double value, AreaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Area.QuantityType;
///
@@ -645,7 +647,7 @@ public bool Equals(Area other, double tolerance, ComparisonType comparisonType)
/// A hash code for the current Area.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaDensity.g.cs
index 0a351eab96..01fedc8752 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaDensity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaDensity.g.cs
@@ -110,6 +110,7 @@ private AreaDensity(double value, AreaDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.AreaDensity;
///
@@ -144,6 +145,7 @@ private AreaDensity(double value, AreaDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => AreaDensity.QuantityType;
///
@@ -450,7 +452,7 @@ public bool Equals(AreaDensity other, double tolerance, ComparisonType compariso
/// A hash code for the current AreaDensity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
index 6b9b75cc31..3695672534 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
@@ -110,6 +110,7 @@ private AreaMomentOfInertia(double value, AreaMomentOfInertiaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.AreaMomentOfInertia;
///
@@ -144,6 +145,7 @@ private AreaMomentOfInertia(double value, AreaMomentOfInertiaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => AreaMomentOfInertia.QuantityType;
///
@@ -525,7 +527,7 @@ public bool Equals(AreaMomentOfInertia other, double tolerance, ComparisonType c
/// A hash code for the current AreaMomentOfInertia.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BitRate.g.cs
index 8f5502bd4e..e1e13abe37 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BitRate.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BitRate.g.cs
@@ -113,6 +113,7 @@ private BitRate(decimal value, BitRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.BitRate;
///
@@ -147,6 +148,7 @@ private BitRate(decimal value, BitRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => BitRate.QuantityType;
///
@@ -828,7 +830,7 @@ public bool Equals(BitRate other, double tolerance, ComparisonType comparisonTyp
/// A hash code for the current BitRate.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
index 81d4e9c4d7..c025f0df11 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
@@ -110,6 +110,7 @@ private BrakeSpecificFuelConsumption(double value, BrakeSpecificFuelConsumptionU
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.BrakeSpecificFuelConsumption;
///
@@ -144,6 +145,7 @@ private BrakeSpecificFuelConsumption(double value, BrakeSpecificFuelConsumptionU
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => BrakeSpecificFuelConsumption.QuantityType;
///
@@ -480,7 +482,7 @@ public bool Equals(BrakeSpecificFuelConsumption other, double tolerance, Compari
/// A hash code for the current BrakeSpecificFuelConsumption.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Capacitance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Capacitance.g.cs
index 211e9d682b..17f1e2ec22 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Capacitance.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Capacitance.g.cs
@@ -113,6 +113,7 @@ private Capacitance(double value, CapacitanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Capacitance;
///
@@ -147,6 +148,7 @@ private Capacitance(double value, CapacitanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Capacitance.QuantityType;
///
@@ -543,7 +545,7 @@ public bool Equals(Capacitance other, double tolerance, ComparisonType compariso
/// A hash code for the current Capacitance.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs
index a491a33eb4..0818c312ad 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs
@@ -110,6 +110,7 @@ private CoefficientOfThermalExpansion(double value, CoefficientOfThermalExpansio
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.CoefficientOfThermalExpansion;
///
@@ -144,6 +145,7 @@ private CoefficientOfThermalExpansion(double value, CoefficientOfThermalExpansio
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => CoefficientOfThermalExpansion.QuantityType;
///
@@ -480,7 +482,7 @@ public bool Equals(CoefficientOfThermalExpansion other, double tolerance, Compar
/// A hash code for the current CoefficientOfThermalExpansion.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Density.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Density.g.cs
index 4322085fa7..7b9c754664 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Density.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Density.g.cs
@@ -113,6 +113,7 @@ private Density(double value, DensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Density;
///
@@ -147,6 +148,7 @@ private Density(double value, DensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Density.QuantityType;
///
@@ -1038,7 +1040,7 @@ public bool Equals(Density other, double tolerance, ComparisonType comparisonTyp
/// A hash code for the current Density.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Duration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Duration.g.cs
index 111414c734..066217baaa 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Duration.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Duration.g.cs
@@ -110,6 +110,7 @@ private Duration(double value, DurationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Duration;
///
@@ -144,6 +145,7 @@ private Duration(double value, DurationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Duration.QuantityType;
///
@@ -600,7 +602,7 @@ public bool Equals(Duration other, double tolerance, ComparisonType comparisonTy
/// A hash code for the current Duration.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/DynamicViscosity.g.cs
index 2975d76bd9..e11f51e684 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/DynamicViscosity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/DynamicViscosity.g.cs
@@ -113,6 +113,7 @@ private DynamicViscosity(double value, DynamicViscosityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.DynamicViscosity;
///
@@ -147,6 +148,7 @@ private DynamicViscosity(double value, DynamicViscosityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => DynamicViscosity.QuantityType;
///
@@ -588,7 +590,7 @@ public bool Equals(DynamicViscosity other, double tolerance, ComparisonType comp
/// A hash code for the current DynamicViscosity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricAdmittance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricAdmittance.g.cs
index 519872df8f..a3b99b4304 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricAdmittance.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricAdmittance.g.cs
@@ -110,6 +110,7 @@ private ElectricAdmittance(double value, ElectricAdmittanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricAdmittance;
///
@@ -144,6 +145,7 @@ private ElectricAdmittance(double value, ElectricAdmittanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricAdmittance.QuantityType;
///
@@ -495,7 +497,7 @@ public bool Equals(ElectricAdmittance other, double tolerance, ComparisonType co
/// A hash code for the current ElectricAdmittance.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCharge.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCharge.g.cs
index abb5480f7c..0bb0693c43 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCharge.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCharge.g.cs
@@ -113,6 +113,7 @@ private ElectricCharge(double value, ElectricChargeUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricCharge;
///
@@ -147,6 +148,7 @@ private ElectricCharge(double value, ElectricChargeUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricCharge.QuantityType;
///
@@ -513,7 +515,7 @@ public bool Equals(ElectricCharge other, double tolerance, ComparisonType compar
/// A hash code for the current ElectricCharge.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricChargeDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricChargeDensity.g.cs
index c56a49e549..401bceae95 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricChargeDensity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricChargeDensity.g.cs
@@ -113,6 +113,7 @@ private ElectricChargeDensity(double value, ElectricChargeDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricChargeDensity;
///
@@ -147,6 +148,7 @@ private ElectricChargeDensity(double value, ElectricChargeDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricChargeDensity.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(ElectricChargeDensity other, double tolerance, ComparisonType
/// A hash code for the current ElectricChargeDensity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductance.g.cs
index 89fe68bac9..9b1fe27bd1 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductance.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductance.g.cs
@@ -113,6 +113,7 @@ private ElectricConductance(double value, ElectricConductanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricConductance;
///
@@ -147,6 +148,7 @@ private ElectricConductance(double value, ElectricConductanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricConductance.QuantityType;
///
@@ -483,7 +485,7 @@ public bool Equals(ElectricConductance other, double tolerance, ComparisonType c
/// A hash code for the current ElectricConductance.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductivity.g.cs
index 1af5cf33cf..915f576883 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductivity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductivity.g.cs
@@ -113,6 +113,7 @@ private ElectricConductivity(double value, ElectricConductivityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricConductivity;
///
@@ -147,6 +148,7 @@ private ElectricConductivity(double value, ElectricConductivityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricConductivity.QuantityType;
///
@@ -483,7 +485,7 @@ public bool Equals(ElectricConductivity other, double tolerance, ComparisonType
/// A hash code for the current ElectricConductivity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrent.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrent.g.cs
index 2842e7852c..c240538c93 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrent.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrent.g.cs
@@ -110,6 +110,7 @@ private ElectricCurrent(double value, ElectricCurrentUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricCurrent;
///
@@ -144,6 +145,7 @@ private ElectricCurrent(double value, ElectricCurrentUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricCurrent.QuantityType;
///
@@ -555,7 +557,7 @@ public bool Equals(ElectricCurrent other, double tolerance, ComparisonType compa
/// A hash code for the current ElectricCurrent.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs
index 80778d222b..ef624633b7 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs
@@ -113,6 +113,7 @@ private ElectricCurrentDensity(double value, ElectricCurrentDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricCurrentDensity;
///
@@ -147,6 +148,7 @@ private ElectricCurrentDensity(double value, ElectricCurrentDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricCurrentDensity.QuantityType;
///
@@ -483,7 +485,7 @@ public bool Equals(ElectricCurrentDensity other, double tolerance, ComparisonTyp
/// A hash code for the current ElectricCurrentDensity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs
index 937a762793..c93b623420 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs
@@ -110,6 +110,7 @@ private ElectricCurrentGradient(double value, ElectricCurrentGradientUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricCurrentGradient;
///
@@ -144,6 +145,7 @@ private ElectricCurrentGradient(double value, ElectricCurrentGradientUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricCurrentGradient.QuantityType;
///
@@ -495,7 +497,7 @@ public bool Equals(ElectricCurrentGradient other, double tolerance, ComparisonTy
/// A hash code for the current ElectricCurrentGradient.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricField.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricField.g.cs
index 22ef18d5f6..e17b8dc2c8 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricField.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricField.g.cs
@@ -113,6 +113,7 @@ private ElectricField(double value, ElectricFieldUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricField;
///
@@ -147,6 +148,7 @@ private ElectricField(double value, ElectricFieldUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricField.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(ElectricField other, double tolerance, ComparisonType compari
/// A hash code for the current ElectricField.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricInductance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricInductance.g.cs
index 5109849aec..62516d9068 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricInductance.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricInductance.g.cs
@@ -113,6 +113,7 @@ private ElectricInductance(double value, ElectricInductanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricInductance;
///
@@ -147,6 +148,7 @@ private ElectricInductance(double value, ElectricInductanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricInductance.QuantityType;
///
@@ -498,7 +500,7 @@ public bool Equals(ElectricInductance other, double tolerance, ComparisonType co
/// A hash code for the current ElectricInductance.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotential.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotential.g.cs
index 7aa0e72cfb..55aa4bf478 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotential.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotential.g.cs
@@ -110,6 +110,7 @@ private ElectricPotential(double value, ElectricPotentialUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricPotential;
///
@@ -144,6 +145,7 @@ private ElectricPotential(double value, ElectricPotentialUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricPotential.QuantityType;
///
@@ -510,7 +512,7 @@ public bool Equals(ElectricPotential other, double tolerance, ComparisonType com
/// A hash code for the current ElectricPotential.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialAc.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
index e9df870b18..4d091ac68e 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialAc.g.cs
@@ -110,6 +110,7 @@ private ElectricPotentialAc(double value, ElectricPotentialAcUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricPotentialAc;
///
@@ -144,6 +145,7 @@ private ElectricPotentialAc(double value, ElectricPotentialAcUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricPotentialAc.QuantityType;
///
@@ -510,7 +512,7 @@ public bool Equals(ElectricPotentialAc other, double tolerance, ComparisonType c
/// A hash code for the current ElectricPotentialAc.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs
index f01bc555f9..87cf3651a8 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs
@@ -110,6 +110,7 @@ private ElectricPotentialChangeRate(double value, ElectricPotentialChangeRateUni
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricPotentialChangeRate;
///
@@ -144,6 +145,7 @@ private ElectricPotentialChangeRate(double value, ElectricPotentialChangeRateUni
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricPotentialChangeRate.QuantityType;
///
@@ -735,7 +737,7 @@ public bool Equals(ElectricPotentialChangeRate other, double tolerance, Comparis
/// A hash code for the current ElectricPotentialChangeRate.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialDc.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
index 9b7dacb193..6bfb3ccb8f 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialDc.g.cs
@@ -110,6 +110,7 @@ private ElectricPotentialDc(double value, ElectricPotentialDcUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricPotentialDc;
///
@@ -144,6 +145,7 @@ private ElectricPotentialDc(double value, ElectricPotentialDcUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricPotentialDc.QuantityType;
///
@@ -510,7 +512,7 @@ public bool Equals(ElectricPotentialDc other, double tolerance, ComparisonType c
/// A hash code for the current ElectricPotentialDc.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistance.g.cs
index 62c594e09e..e78a5b9fda 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistance.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistance.g.cs
@@ -110,6 +110,7 @@ private ElectricResistance(double value, ElectricResistanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricResistance;
///
@@ -144,6 +145,7 @@ private ElectricResistance(double value, ElectricResistanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricResistance.QuantityType;
///
@@ -525,7 +527,7 @@ public bool Equals(ElectricResistance other, double tolerance, ComparisonType co
/// A hash code for the current ElectricResistance.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistivity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistivity.g.cs
index c47de6271c..92d7edc144 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistivity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistivity.g.cs
@@ -113,6 +113,7 @@ private ElectricResistivity(double value, ElectricResistivityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricResistivity;
///
@@ -147,6 +148,7 @@ private ElectricResistivity(double value, ElectricResistivityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricResistivity.QuantityType;
///
@@ -648,7 +650,7 @@ public bool Equals(ElectricResistivity other, double tolerance, ComparisonType c
/// A hash code for the current ElectricResistivity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs
index f56800c357..091df26ea9 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs
@@ -113,6 +113,7 @@ private ElectricSurfaceChargeDensity(double value, ElectricSurfaceChargeDensityU
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ElectricSurfaceChargeDensity;
///
@@ -147,6 +148,7 @@ private ElectricSurfaceChargeDensity(double value, ElectricSurfaceChargeDensityU
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ElectricSurfaceChargeDensity.QuantityType;
///
@@ -483,7 +485,7 @@ public bool Equals(ElectricSurfaceChargeDensity other, double tolerance, Compari
/// A hash code for the current ElectricSurfaceChargeDensity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Energy.g.cs
index c1bbd532f8..ba1328da08 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Energy.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Energy.g.cs
@@ -110,6 +110,7 @@ private Energy(double value, EnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Energy;
///
@@ -144,6 +145,7 @@ private Energy(double value, EnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Energy.QuantityType;
///
@@ -975,7 +977,7 @@ public bool Equals(Energy other, double tolerance, ComparisonType comparisonType
/// A hash code for the current Energy.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Entropy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Entropy.g.cs
index 724b9a22d6..68b168e3c9 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Entropy.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Entropy.g.cs
@@ -110,6 +110,7 @@ private Entropy(double value, EntropyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Entropy;
///
@@ -144,6 +145,7 @@ private Entropy(double value, EntropyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Entropy.QuantityType;
///
@@ -540,7 +542,7 @@ public bool Equals(Entropy other, double tolerance, ComparisonType comparisonTyp
/// A hash code for the current Entropy.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Force.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Force.g.cs
index dbc95e816f..204a9058f9 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Force.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Force.g.cs
@@ -110,6 +110,7 @@ private Force(double value, ForceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Force;
///
@@ -144,6 +145,7 @@ private Force(double value, ForceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Force.QuantityType;
///
@@ -660,7 +662,7 @@ public bool Equals(Force other, double tolerance, ComparisonType comparisonType)
/// A hash code for the current Force.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForceChangeRate.g.cs
index f6e0d5bd50..4fc5c100a0 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForceChangeRate.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForceChangeRate.g.cs
@@ -110,6 +110,7 @@ private ForceChangeRate(double value, ForceChangeRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ForceChangeRate;
///
@@ -144,6 +145,7 @@ private ForceChangeRate(double value, ForceChangeRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ForceChangeRate.QuantityType;
///
@@ -660,7 +662,7 @@ public bool Equals(ForceChangeRate other, double tolerance, ComparisonType compa
/// A hash code for the current ForceChangeRate.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForcePerLength.g.cs
index 9ba947a00e..aab038dde8 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForcePerLength.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForcePerLength.g.cs
@@ -110,6 +110,7 @@ private ForcePerLength(double value, ForcePerLengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ForcePerLength;
///
@@ -144,6 +145,7 @@ private ForcePerLength(double value, ForcePerLengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ForcePerLength.QuantityType;
///
@@ -1005,7 +1007,7 @@ public bool Equals(ForcePerLength other, double tolerance, ComparisonType compar
/// A hash code for the current ForcePerLength.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Frequency.g.cs
index a0f99c7cb5..5a25e5620c 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Frequency.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Frequency.g.cs
@@ -110,6 +110,7 @@ private Frequency(double value, FrequencyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Frequency;
///
@@ -144,6 +145,7 @@ private Frequency(double value, FrequencyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Frequency.QuantityType;
///
@@ -600,7 +602,7 @@ public bool Equals(Frequency other, double tolerance, ComparisonType comparisonT
/// A hash code for the current Frequency.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/FuelEfficiency.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/FuelEfficiency.g.cs
index 1a17cc3fc7..80126fdf13 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/FuelEfficiency.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/FuelEfficiency.g.cs
@@ -113,6 +113,7 @@ private FuelEfficiency(double value, FuelEfficiencyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.FuelEfficiency;
///
@@ -147,6 +148,7 @@ private FuelEfficiency(double value, FuelEfficiencyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => FuelEfficiency.QuantityType;
///
@@ -498,7 +500,7 @@ public bool Equals(FuelEfficiency other, double tolerance, ComparisonType compar
/// A hash code for the current FuelEfficiency.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatFlux.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatFlux.g.cs
index b0899f7903..98bd20151e 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatFlux.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatFlux.g.cs
@@ -110,6 +110,7 @@ private HeatFlux(double value, HeatFluxUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.HeatFlux;
///
@@ -144,6 +145,7 @@ private HeatFlux(double value, HeatFluxUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => HeatFlux.QuantityType;
///
@@ -705,7 +707,7 @@ public bool Equals(HeatFlux other, double tolerance, ComparisonType comparisonTy
/// A hash code for the current HeatFlux.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
index eb4cdc4691..6a61d7e687 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
@@ -110,6 +110,7 @@ private HeatTransferCoefficient(double value, HeatTransferCoefficientUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.HeatTransferCoefficient;
///
@@ -144,6 +145,7 @@ private HeatTransferCoefficient(double value, HeatTransferCoefficientUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => HeatTransferCoefficient.QuantityType;
///
@@ -480,7 +482,7 @@ public bool Equals(HeatTransferCoefficient other, double tolerance, ComparisonTy
/// A hash code for the current HeatTransferCoefficient.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Illuminance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Illuminance.g.cs
index 543b303667..959824140f 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Illuminance.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Illuminance.g.cs
@@ -113,6 +113,7 @@ private Illuminance(double value, IlluminanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Illuminance;
///
@@ -147,6 +148,7 @@ private Illuminance(double value, IlluminanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Illuminance.QuantityType;
///
@@ -498,7 +500,7 @@ public bool Equals(Illuminance other, double tolerance, ComparisonType compariso
/// A hash code for the current Illuminance.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.g.cs
index 493d68e580..f8826f1290 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.g.cs
@@ -110,6 +110,7 @@ private Information(decimal value, InformationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Information;
///
@@ -144,6 +145,7 @@ private Information(decimal value, InformationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Information.QuantityType;
///
@@ -825,7 +827,7 @@ public bool Equals(Information other, double tolerance, ComparisonType compariso
/// A hash code for the current Information.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiance.g.cs
index c144fc7db5..1b539fc840 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiance.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiance.g.cs
@@ -110,6 +110,7 @@ private Irradiance(double value, IrradianceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Irradiance;
///
@@ -144,6 +145,7 @@ private Irradiance(double value, IrradianceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Irradiance.QuantityType;
///
@@ -645,7 +647,7 @@ public bool Equals(Irradiance other, double tolerance, ComparisonType comparison
/// A hash code for the current Irradiance.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiation.g.cs
index cc5a256723..4f7dccf0b1 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiation.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiation.g.cs
@@ -113,6 +113,7 @@ private Irradiation(double value, IrradiationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Irradiation;
///
@@ -147,6 +148,7 @@ private Irradiation(double value, IrradiationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Irradiation.QuantityType;
///
@@ -543,7 +545,7 @@ public bool Equals(Irradiation other, double tolerance, ComparisonType compariso
/// A hash code for the current Irradiation.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/KinematicViscosity.g.cs
index c8783a04c9..13d7fcfa1d 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/KinematicViscosity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/KinematicViscosity.g.cs
@@ -113,6 +113,7 @@ private KinematicViscosity(double value, KinematicViscosityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.KinematicViscosity;
///
@@ -147,6 +148,7 @@ private KinematicViscosity(double value, KinematicViscosityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => KinematicViscosity.QuantityType;
///
@@ -573,7 +575,7 @@ public bool Equals(KinematicViscosity other, double tolerance, ComparisonType co
/// A hash code for the current KinematicViscosity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LapseRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LapseRate.g.cs
index cf49b9649f..9dcbda5522 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LapseRate.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LapseRate.g.cs
@@ -111,6 +111,7 @@ private LapseRate(double value, LapseRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.LapseRate;
///
@@ -145,6 +146,7 @@ private LapseRate(double value, LapseRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => LapseRate.QuantityType;
///
@@ -451,7 +453,7 @@ public bool Equals(LapseRate other, double tolerance, ComparisonType comparisonT
/// A hash code for the current LapseRate.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.g.cs
index f901c4999c..1102917948 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.g.cs
@@ -110,6 +110,7 @@ private Length(double value, LengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Length;
///
@@ -144,6 +145,7 @@ private Length(double value, LengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Length.QuantityType;
///
@@ -930,7 +932,7 @@ public bool Equals(Length other, double tolerance, ComparisonType comparisonType
/// A hash code for the current Length.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.g.cs
index 498a843642..37c39ad953 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.g.cs
@@ -110,6 +110,7 @@ private Level(double value, LevelUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Level;
///
@@ -144,6 +145,7 @@ private Level(double value, LevelUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Level.QuantityType;
///
@@ -465,7 +467,7 @@ public bool Equals(Level other, double tolerance, ComparisonType comparisonType)
/// A hash code for the current Level.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearDensity.g.cs
index da30246f8b..71447472e7 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearDensity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearDensity.g.cs
@@ -113,6 +113,7 @@ private LinearDensity(double value, LinearDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.LinearDensity;
///
@@ -147,6 +148,7 @@ private LinearDensity(double value, LinearDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => LinearDensity.QuantityType;
///
@@ -648,7 +650,7 @@ public bool Equals(LinearDensity other, double tolerance, ComparisonType compari
/// A hash code for the current LinearDensity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearPowerDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearPowerDensity.g.cs
index 3bfbb20af2..0f0ca739f7 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearPowerDensity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearPowerDensity.g.cs
@@ -113,6 +113,7 @@ private LinearPowerDensity(double value, LinearPowerDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.LinearPowerDensity;
///
@@ -147,6 +148,7 @@ private LinearPowerDensity(double value, LinearPowerDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => LinearPowerDensity.QuantityType;
///
@@ -813,7 +815,7 @@ public bool Equals(LinearPowerDensity other, double tolerance, ComparisonType co
/// A hash code for the current LinearPowerDensity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Luminosity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Luminosity.g.cs
index 7ee56e2f39..68484d8b1a 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Luminosity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Luminosity.g.cs
@@ -113,6 +113,7 @@ private Luminosity(double value, LuminosityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Luminosity;
///
@@ -147,6 +148,7 @@ private Luminosity(double value, LuminosityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Luminosity.QuantityType;
///
@@ -648,7 +650,7 @@ public bool Equals(Luminosity other, double tolerance, ComparisonType comparison
/// A hash code for the current Luminosity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousFlux.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousFlux.g.cs
index c197dc10fd..a3b500804a 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousFlux.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousFlux.g.cs
@@ -113,6 +113,7 @@ private LuminousFlux(double value, LuminousFluxUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.LuminousFlux;
///
@@ -147,6 +148,7 @@ private LuminousFlux(double value, LuminousFluxUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => LuminousFlux.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(LuminousFlux other, double tolerance, ComparisonType comparis
/// A hash code for the current LuminousFlux.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousIntensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousIntensity.g.cs
index 143e64a04a..0ac8f4b56a 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousIntensity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousIntensity.g.cs
@@ -113,6 +113,7 @@ private LuminousIntensity(double value, LuminousIntensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.LuminousIntensity;
///
@@ -147,6 +148,7 @@ private LuminousIntensity(double value, LuminousIntensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => LuminousIntensity.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(LuminousIntensity other, double tolerance, ComparisonType com
/// A hash code for the current LuminousIntensity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticField.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticField.g.cs
index a7777d5c1a..d5011eda6c 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticField.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticField.g.cs
@@ -113,6 +113,7 @@ private MagneticField(double value, MagneticFieldUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MagneticField;
///
@@ -147,6 +148,7 @@ private MagneticField(double value, MagneticFieldUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MagneticField.QuantityType;
///
@@ -528,7 +530,7 @@ public bool Equals(MagneticField other, double tolerance, ComparisonType compari
/// A hash code for the current MagneticField.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticFlux.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticFlux.g.cs
index ebce2331a4..c4ea1de71a 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticFlux.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticFlux.g.cs
@@ -113,6 +113,7 @@ private MagneticFlux(double value, MagneticFluxUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MagneticFlux;
///
@@ -147,6 +148,7 @@ private MagneticFlux(double value, MagneticFluxUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MagneticFlux.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(MagneticFlux other, double tolerance, ComparisonType comparis
/// A hash code for the current MagneticFlux.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Magnetization.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Magnetization.g.cs
index b0b66874e3..60286b3c5e 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Magnetization.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Magnetization.g.cs
@@ -113,6 +113,7 @@ private Magnetization(double value, MagnetizationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Magnetization;
///
@@ -147,6 +148,7 @@ private Magnetization(double value, MagnetizationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Magnetization.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(Magnetization other, double tolerance, ComparisonType compari
/// A hash code for the current Magnetization.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Mass.g.cs
index 5e49ff77b0..fa86a2ae2f 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Mass.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Mass.g.cs
@@ -110,6 +110,7 @@ private Mass(double value, MassUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Mass;
///
@@ -144,6 +145,7 @@ private Mass(double value, MassUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Mass.QuantityType;
///
@@ -810,7 +812,7 @@ public bool Equals(Mass other, double tolerance, ComparisonType comparisonType)
/// A hash code for the current Mass.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassConcentration.g.cs
index 3dee8e60c8..016bb8ab13 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassConcentration.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassConcentration.g.cs
@@ -113,6 +113,7 @@ private MassConcentration(double value, MassConcentrationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MassConcentration;
///
@@ -147,6 +148,7 @@ private MassConcentration(double value, MassConcentrationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MassConcentration.QuantityType;
///
@@ -1173,7 +1175,7 @@ public bool Equals(MassConcentration other, double tolerance, ComparisonType com
/// A hash code for the current MassConcentration.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlow.g.cs
index 690395d14f..8d24eab0b7 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlow.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlow.g.cs
@@ -110,6 +110,7 @@ private MassFlow(double value, MassFlowUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MassFlow;
///
@@ -144,6 +145,7 @@ private MassFlow(double value, MassFlowUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MassFlow.QuantityType;
///
@@ -930,7 +932,7 @@ public bool Equals(MassFlow other, double tolerance, ComparisonType comparisonTy
/// A hash code for the current MassFlow.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlux.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlux.g.cs
index 6c9c1c2519..6ec9900b17 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlux.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlux.g.cs
@@ -110,6 +110,7 @@ private MassFlux(double value, MassFluxUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MassFlux;
///
@@ -144,6 +145,7 @@ private MassFlux(double value, MassFluxUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MassFlux.QuantityType;
///
@@ -615,7 +617,7 @@ public bool Equals(MassFlux other, double tolerance, ComparisonType comparisonTy
/// A hash code for the current MassFlux.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFraction.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFraction.g.cs
index 45d38ca472..0f430ba797 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFraction.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFraction.g.cs
@@ -113,6 +113,7 @@ private MassFraction(double value, MassFractionUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MassFraction;
///
@@ -147,6 +148,7 @@ private MassFraction(double value, MassFractionUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MassFraction.QuantityType;
///
@@ -798,7 +800,7 @@ public bool Equals(MassFraction other, double tolerance, ComparisonType comparis
/// A hash code for the current MassFraction.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassMomentOfInertia.g.cs
index c0632713dc..666f93f42c 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassMomentOfInertia.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassMomentOfInertia.g.cs
@@ -110,6 +110,7 @@ private MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MassMomentOfInertia;
///
@@ -144,6 +145,7 @@ private MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MassMomentOfInertia.QuantityType;
///
@@ -855,7 +857,7 @@ public bool Equals(MassMomentOfInertia other, double tolerance, ComparisonType c
/// A hash code for the current MassMomentOfInertia.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEnergy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEnergy.g.cs
index f1bb8ab9b1..35458435a2 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEnergy.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEnergy.g.cs
@@ -110,6 +110,7 @@ private MolarEnergy(double value, MolarEnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MolarEnergy;
///
@@ -144,6 +145,7 @@ private MolarEnergy(double value, MolarEnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MolarEnergy.QuantityType;
///
@@ -480,7 +482,7 @@ public bool Equals(MolarEnergy other, double tolerance, ComparisonType compariso
/// A hash code for the current MolarEnergy.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEntropy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEntropy.g.cs
index 055bcd576b..f603398b6e 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEntropy.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEntropy.g.cs
@@ -110,6 +110,7 @@ private MolarEntropy(double value, MolarEntropyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MolarEntropy;
///
@@ -144,6 +145,7 @@ private MolarEntropy(double value, MolarEntropyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MolarEntropy.QuantityType;
///
@@ -480,7 +482,7 @@ public bool Equals(MolarEntropy other, double tolerance, ComparisonType comparis
/// A hash code for the current MolarEntropy.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarMass.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarMass.g.cs
index e00565a7fd..6707296dfc 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarMass.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarMass.g.cs
@@ -110,6 +110,7 @@ private MolarMass(double value, MolarMassUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.MolarMass;
///
@@ -144,6 +145,7 @@ private MolarMass(double value, MolarMassUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => MolarMass.QuantityType;
///
@@ -615,7 +617,7 @@ public bool Equals(MolarMass other, double tolerance, ComparisonType comparisonT
/// A hash code for the current MolarMass.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Molarity.g.cs
index 008ec84178..cc42941db9 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Molarity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Molarity.g.cs
@@ -113,6 +113,7 @@ private Molarity(double value, MolarityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Molarity;
///
@@ -147,6 +148,7 @@ private Molarity(double value, MolarityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Molarity.QuantityType;
///
@@ -558,7 +560,7 @@ public bool Equals(Molarity other, double tolerance, ComparisonType comparisonTy
/// A hash code for the current Molarity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permeability.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permeability.g.cs
index 398cf90dae..c396b61f45 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permeability.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permeability.g.cs
@@ -113,6 +113,7 @@ private Permeability(double value, PermeabilityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Permeability;
///
@@ -147,6 +148,7 @@ private Permeability(double value, PermeabilityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Permeability.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(Permeability other, double tolerance, ComparisonType comparis
/// A hash code for the current Permeability.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permittivity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permittivity.g.cs
index 21a5a1eda3..837a585b87 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permittivity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permittivity.g.cs
@@ -113,6 +113,7 @@ private Permittivity(double value, PermittivityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Permittivity;
///
@@ -147,6 +148,7 @@ private Permittivity(double value, PermittivityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Permittivity.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(Permittivity other, double tolerance, ComparisonType comparis
/// A hash code for the current Permittivity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Power.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Power.g.cs
index fb8c263383..5e31da8b9c 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Power.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Power.g.cs
@@ -110,6 +110,7 @@ private Power(decimal value, PowerUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Power;
///
@@ -144,6 +145,7 @@ private Power(decimal value, PowerUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Power.QuantityType;
///
@@ -810,7 +812,7 @@ public bool Equals(Power other, double tolerance, ComparisonType comparisonType)
/// A hash code for the current Power.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerDensity.g.cs
index e374a600e1..43e52f7479 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerDensity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerDensity.g.cs
@@ -110,6 +110,7 @@ private PowerDensity(double value, PowerDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.PowerDensity;
///
@@ -144,6 +145,7 @@ private PowerDensity(double value, PowerDensityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => PowerDensity.QuantityType;
///
@@ -1095,7 +1097,7 @@ public bool Equals(PowerDensity other, double tolerance, ComparisonType comparis
/// A hash code for the current PowerDensity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerRatio.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerRatio.g.cs
index 56e646575b..60aa905e75 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerRatio.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerRatio.g.cs
@@ -110,6 +110,7 @@ private PowerRatio(double value, PowerRatioUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.PowerRatio;
///
@@ -144,6 +145,7 @@ private PowerRatio(double value, PowerRatioUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => PowerRatio.QuantityType;
///
@@ -465,7 +467,7 @@ public bool Equals(PowerRatio other, double tolerance, ComparisonType comparison
/// A hash code for the current PowerRatio.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Pressure.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Pressure.g.cs
index bc4bbeea0a..5818154d5b 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Pressure.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Pressure.g.cs
@@ -110,6 +110,7 @@ private Pressure(double value, PressureUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Pressure;
///
@@ -144,6 +145,7 @@ private Pressure(double value, PressureUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Pressure.QuantityType;
///
@@ -1110,7 +1112,7 @@ public bool Equals(Pressure other, double tolerance, ComparisonType comparisonTy
/// A hash code for the current Pressure.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PressureChangeRate.g.cs
index 7a06c5139f..f6b5661741 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PressureChangeRate.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PressureChangeRate.g.cs
@@ -110,6 +110,7 @@ private PressureChangeRate(double value, PressureChangeRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.PressureChangeRate;
///
@@ -144,6 +145,7 @@ private PressureChangeRate(double value, PressureChangeRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => PressureChangeRate.QuantityType;
///
@@ -645,7 +647,7 @@ public bool Equals(PressureChangeRate other, double tolerance, ComparisonType co
/// A hash code for the current PressureChangeRate.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Ratio.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Ratio.g.cs
index bcfd882a71..67ae6a267b 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Ratio.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Ratio.g.cs
@@ -110,6 +110,7 @@ private Ratio(double value, RatioUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Ratio;
///
@@ -144,6 +145,7 @@ private Ratio(double value, RatioUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Ratio.QuantityType;
///
@@ -525,7 +527,7 @@ public bool Equals(Ratio other, double tolerance, ComparisonType comparisonType)
/// A hash code for the current Ratio.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RatioChangeRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RatioChangeRate.g.cs
index f81a5299e9..1b9ef3a9fa 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RatioChangeRate.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RatioChangeRate.g.cs
@@ -110,6 +110,7 @@ private RatioChangeRate(double value, RatioChangeRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.RatioChangeRate;
///
@@ -144,6 +145,7 @@ private RatioChangeRate(double value, RatioChangeRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => RatioChangeRate.QuantityType;
///
@@ -465,7 +467,7 @@ public bool Equals(RatioChangeRate other, double tolerance, ComparisonType compa
/// A hash code for the current RatioChangeRate.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactiveEnergy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactiveEnergy.g.cs
index 851d24d687..cf5d7228a6 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactiveEnergy.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactiveEnergy.g.cs
@@ -110,6 +110,7 @@ private ReactiveEnergy(double value, ReactiveEnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ReactiveEnergy;
///
@@ -144,6 +145,7 @@ private ReactiveEnergy(double value, ReactiveEnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ReactiveEnergy.QuantityType;
///
@@ -480,7 +482,7 @@ public bool Equals(ReactiveEnergy other, double tolerance, ComparisonType compar
/// A hash code for the current ReactiveEnergy.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactivePower.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactivePower.g.cs
index 47e1add8ac..3539899831 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactivePower.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactivePower.g.cs
@@ -110,6 +110,7 @@ private ReactivePower(double value, ReactivePowerUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ReactivePower;
///
@@ -144,6 +145,7 @@ private ReactivePower(double value, ReactivePowerUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ReactivePower.QuantityType;
///
@@ -495,7 +497,7 @@ public bool Equals(ReactivePower other, double tolerance, ComparisonType compari
/// A hash code for the current ReactivePower.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReciprocalArea.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReciprocalArea.g.cs
index ff9fa40dce..09ad6fa501 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReciprocalArea.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReciprocalArea.g.cs
@@ -113,6 +113,7 @@ private ReciprocalArea(double value, ReciprocalAreaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ReciprocalArea;
///
@@ -147,6 +148,7 @@ private ReciprocalArea(double value, ReciprocalAreaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ReciprocalArea.QuantityType;
///
@@ -603,7 +605,7 @@ public bool Equals(ReciprocalArea other, double tolerance, ComparisonType compar
/// A hash code for the current ReciprocalArea.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReciprocalLength.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReciprocalLength.g.cs
index 8a0d4d8d1d..30a64fb2ac 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReciprocalLength.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReciprocalLength.g.cs
@@ -113,6 +113,7 @@ private ReciprocalLength(double value, ReciprocalLengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ReciprocalLength;
///
@@ -147,6 +148,7 @@ private ReciprocalLength(double value, ReciprocalLengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ReciprocalLength.QuantityType;
///
@@ -588,7 +590,7 @@ public bool Equals(ReciprocalLength other, double tolerance, ComparisonType comp
/// A hash code for the current ReciprocalLength.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RelativeHumidity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RelativeHumidity.g.cs
index 4eab60e0a5..3fed1eab0d 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RelativeHumidity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RelativeHumidity.g.cs
@@ -110,6 +110,7 @@ private RelativeHumidity(double value, RelativeHumidityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.RelativeHumidity;
///
@@ -144,6 +145,7 @@ private RelativeHumidity(double value, RelativeHumidityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => RelativeHumidity.QuantityType;
///
@@ -450,7 +452,7 @@ public bool Equals(RelativeHumidity other, double tolerance, ComparisonType comp
/// A hash code for the current RelativeHumidity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalAcceleration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalAcceleration.g.cs
index 5a0de083e2..fca85a060a 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalAcceleration.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalAcceleration.g.cs
@@ -110,6 +110,7 @@ private RotationalAcceleration(double value, RotationalAccelerationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.RotationalAcceleration;
///
@@ -144,6 +145,7 @@ private RotationalAcceleration(double value, RotationalAccelerationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => RotationalAcceleration.QuantityType;
///
@@ -495,7 +497,7 @@ public bool Equals(RotationalAcceleration other, double tolerance, ComparisonTyp
/// A hash code for the current RotationalAcceleration.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalSpeed.g.cs
index 99b6922094..81dcd594d1 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalSpeed.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalSpeed.g.cs
@@ -110,6 +110,7 @@ private RotationalSpeed(double value, RotationalSpeedUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.RotationalSpeed;
///
@@ -144,6 +145,7 @@ private RotationalSpeed(double value, RotationalSpeedUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => RotationalSpeed.QuantityType;
///
@@ -630,7 +632,7 @@ public bool Equals(RotationalSpeed other, double tolerance, ComparisonType compa
/// A hash code for the current RotationalSpeed.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffness.g.cs
index b7879af272..60416bca89 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffness.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffness.g.cs
@@ -110,6 +110,7 @@ private RotationalStiffness(double value, RotationalStiffnessUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.RotationalStiffness;
///
@@ -144,6 +145,7 @@ private RotationalStiffness(double value, RotationalStiffnessUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => RotationalStiffness.QuantityType;
///
@@ -930,7 +932,7 @@ public bool Equals(RotationalStiffness other, double tolerance, ComparisonType c
/// A hash code for the current RotationalStiffness.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs
index cec23a5888..6335f74665 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs
@@ -110,6 +110,7 @@ private RotationalStiffnessPerLength(double value, RotationalStiffnessPerLengthU
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.RotationalStiffnessPerLength;
///
@@ -144,6 +145,7 @@ private RotationalStiffnessPerLength(double value, RotationalStiffnessPerLengthU
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => RotationalStiffnessPerLength.QuantityType;
///
@@ -510,7 +512,7 @@ public bool Equals(RotationalStiffnessPerLength other, double tolerance, Compari
/// A hash code for the current RotationalStiffnessPerLength.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Scalar.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Scalar.g.cs
index 39d68ea3b5..7922956357 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Scalar.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Scalar.g.cs
@@ -110,6 +110,7 @@ private Scalar(double value, ScalarUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Scalar;
///
@@ -144,6 +145,7 @@ private Scalar(double value, ScalarUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Scalar.QuantityType;
///
@@ -450,7 +452,7 @@ public bool Equals(Scalar other, double tolerance, ComparisonType comparisonType
/// A hash code for the current Scalar.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SolidAngle.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SolidAngle.g.cs
index b7163491e9..5e98f42d3e 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SolidAngle.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SolidAngle.g.cs
@@ -113,6 +113,7 @@ private SolidAngle(double value, SolidAngleUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.SolidAngle;
///
@@ -147,6 +148,7 @@ private SolidAngle(double value, SolidAngleUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => SolidAngle.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(SolidAngle other, double tolerance, ComparisonType comparison
/// A hash code for the current SolidAngle.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEnergy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEnergy.g.cs
index 87c65ba238..391033fd59 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEnergy.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEnergy.g.cs
@@ -113,6 +113,7 @@ private SpecificEnergy(double value, SpecificEnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.SpecificEnergy;
///
@@ -147,6 +148,7 @@ private SpecificEnergy(double value, SpecificEnergyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => SpecificEnergy.QuantityType;
///
@@ -813,7 +815,7 @@ public bool Equals(SpecificEnergy other, double tolerance, ComparisonType compar
/// A hash code for the current SpecificEnergy.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEntropy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEntropy.g.cs
index a24c093d9e..3bd5e2557c 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEntropy.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEntropy.g.cs
@@ -110,6 +110,7 @@ private SpecificEntropy(double value, SpecificEntropyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.SpecificEntropy;
///
@@ -144,6 +145,7 @@ private SpecificEntropy(double value, SpecificEntropyUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => SpecificEntropy.QuantityType;
///
@@ -570,7 +572,7 @@ public bool Equals(SpecificEntropy other, double tolerance, ComparisonType compa
/// A hash code for the current SpecificEntropy.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs
index 26129abb06..936059eda6 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs
@@ -113,6 +113,7 @@ private SpecificFuelConsumption(double value, SpecificFuelConsumptionUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.SpecificFuelConsumption;
///
@@ -147,6 +148,7 @@ private SpecificFuelConsumption(double value, SpecificFuelConsumptionUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => SpecificFuelConsumption.QuantityType;
///
@@ -498,7 +500,7 @@ public bool Equals(SpecificFuelConsumption other, double tolerance, ComparisonTy
/// A hash code for the current SpecificFuelConsumption.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificVolume.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificVolume.g.cs
index b0fbec3944..b7f0440a44 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificVolume.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificVolume.g.cs
@@ -110,6 +110,7 @@ private SpecificVolume(double value, SpecificVolumeUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.SpecificVolume;
///
@@ -144,6 +145,7 @@ private SpecificVolume(double value, SpecificVolumeUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => SpecificVolume.QuantityType;
///
@@ -480,7 +482,7 @@ public bool Equals(SpecificVolume other, double tolerance, ComparisonType compar
/// A hash code for the current SpecificVolume.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificWeight.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificWeight.g.cs
index 129be9de76..4ec25f4b8a 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificWeight.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificWeight.g.cs
@@ -113,6 +113,7 @@ private SpecificWeight(double value, SpecificWeightUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.SpecificWeight;
///
@@ -147,6 +148,7 @@ private SpecificWeight(double value, SpecificWeightUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => SpecificWeight.QuantityType;
///
@@ -693,7 +695,7 @@ public bool Equals(SpecificWeight other, double tolerance, ComparisonType compar
/// A hash code for the current SpecificWeight.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Speed.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Speed.g.cs
index 563c5ac20c..843178da8d 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Speed.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Speed.g.cs
@@ -110,6 +110,7 @@ private Speed(double value, SpeedUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Speed;
///
@@ -144,6 +145,7 @@ private Speed(double value, SpeedUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Speed.QuantityType;
///
@@ -915,7 +917,7 @@ public bool Equals(Speed other, double tolerance, ComparisonType comparisonType)
/// A hash code for the current Speed.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/StandardVolumeFlow.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/StandardVolumeFlow.g.cs
index 38b7664b58..bb82514f8a 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/StandardVolumeFlow.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/StandardVolumeFlow.g.cs
@@ -110,6 +110,7 @@ private StandardVolumeFlow(double value, StandardVolumeFlowUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.StandardVolumeFlow;
///
@@ -144,6 +145,7 @@ private StandardVolumeFlow(double value, StandardVolumeFlowUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => StandardVolumeFlow.QuantityType;
///
@@ -570,7 +572,7 @@ public bool Equals(StandardVolumeFlow other, double tolerance, ComparisonType co
/// A hash code for the current StandardVolumeFlow.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Temperature.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Temperature.g.cs
index 7060f1fdd0..c27836ab8e 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Temperature.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Temperature.g.cs
@@ -110,6 +110,7 @@ private Temperature(double value, TemperatureUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Temperature;
///
@@ -144,6 +145,7 @@ private Temperature(double value, TemperatureUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Temperature.QuantityType;
///
@@ -585,7 +587,7 @@ public bool Equals(Temperature other, double tolerance, ComparisonType compariso
/// A hash code for the current Temperature.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureChangeRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureChangeRate.g.cs
index 8cf1566aa2..45d87d636f 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureChangeRate.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureChangeRate.g.cs
@@ -110,6 +110,7 @@ private TemperatureChangeRate(double value, TemperatureChangeRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.TemperatureChangeRate;
///
@@ -144,6 +145,7 @@ private TemperatureChangeRate(double value, TemperatureChangeRateUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => TemperatureChangeRate.QuantityType;
///
@@ -585,7 +587,7 @@ public bool Equals(TemperatureChangeRate other, double tolerance, ComparisonType
/// A hash code for the current TemperatureChangeRate.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureDelta.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureDelta.g.cs
index 90c7179d75..bfb5563d7f 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureDelta.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureDelta.g.cs
@@ -110,6 +110,7 @@ private TemperatureDelta(double value, TemperatureDeltaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.TemperatureDelta;
///
@@ -144,6 +145,7 @@ private TemperatureDelta(double value, TemperatureDeltaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => TemperatureDelta.QuantityType;
///
@@ -570,7 +572,7 @@ public bool Equals(TemperatureDelta other, double tolerance, ComparisonType comp
/// A hash code for the current TemperatureDelta.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureGradient.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureGradient.g.cs
index 00c2b50ddc..9c17567458 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureGradient.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureGradient.g.cs
@@ -110,6 +110,7 @@ private TemperatureGradient(double value, TemperatureGradientUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.TemperatureGradient;
///
@@ -144,6 +145,7 @@ private TemperatureGradient(double value, TemperatureGradientUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => TemperatureGradient.QuantityType;
///
@@ -495,7 +497,7 @@ public bool Equals(TemperatureGradient other, double tolerance, ComparisonType c
/// A hash code for the current TemperatureGradient.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalConductivity.g.cs
index d1dca98373..b874a5d25a 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalConductivity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalConductivity.g.cs
@@ -113,6 +113,7 @@ private ThermalConductivity(double value, ThermalConductivityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ThermalConductivity;
///
@@ -147,6 +148,7 @@ private ThermalConductivity(double value, ThermalConductivityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ThermalConductivity.QuantityType;
///
@@ -468,7 +470,7 @@ public bool Equals(ThermalConductivity other, double tolerance, ComparisonType c
/// A hash code for the current ThermalConductivity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalResistance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalResistance.g.cs
index 249f4ad104..94cfe1d0c4 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalResistance.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalResistance.g.cs
@@ -110,6 +110,7 @@ private ThermalResistance(double value, ThermalResistanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ThermalResistance;
///
@@ -144,6 +145,7 @@ private ThermalResistance(double value, ThermalResistanceUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => ThermalResistance.QuantityType;
///
@@ -525,7 +527,7 @@ public bool Equals(ThermalResistance other, double tolerance, ComparisonType com
/// A hash code for the current ThermalResistance.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Torque.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Torque.g.cs
index 91f2fc3a98..4aa7f2f088 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Torque.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Torque.g.cs
@@ -110,6 +110,7 @@ private Torque(double value, TorqueUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Torque;
///
@@ -144,6 +145,7 @@ private Torque(double value, TorqueUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Torque.QuantityType;
///
@@ -810,7 +812,7 @@ public bool Equals(Torque other, double tolerance, ComparisonType comparisonType
/// A hash code for the current Torque.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TorquePerLength.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TorquePerLength.g.cs
index 66e8eb26b3..ee11ec0f6e 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TorquePerLength.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TorquePerLength.g.cs
@@ -110,6 +110,7 @@ private TorquePerLength(double value, TorquePerLengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.TorquePerLength;
///
@@ -144,6 +145,7 @@ private TorquePerLength(double value, TorquePerLengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => TorquePerLength.QuantityType;
///
@@ -750,7 +752,7 @@ public bool Equals(TorquePerLength other, double tolerance, ComparisonType compa
/// A hash code for the current TorquePerLength.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Turbidity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Turbidity.g.cs
index 7ce077db8c..5e6bb5b668 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Turbidity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Turbidity.g.cs
@@ -113,6 +113,7 @@ private Turbidity(double value, TurbidityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Turbidity;
///
@@ -147,6 +148,7 @@ private Turbidity(double value, TurbidityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Turbidity.QuantityType;
///
@@ -453,7 +455,7 @@ public bool Equals(Turbidity other, double tolerance, ComparisonType comparisonT
/// A hash code for the current Turbidity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VitaminA.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VitaminA.g.cs
index 08118cc8ff..6fdf4481b4 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VitaminA.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VitaminA.g.cs
@@ -110,6 +110,7 @@ private VitaminA(double value, VitaminAUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.VitaminA;
///
@@ -144,6 +145,7 @@ private VitaminA(double value, VitaminAUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => VitaminA.QuantityType;
///
@@ -450,7 +452,7 @@ public bool Equals(VitaminA other, double tolerance, ComparisonType comparisonTy
/// A hash code for the current VitaminA.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Volume.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Volume.g.cs
index f81ce7cd6f..fc73bec294 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Volume.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Volume.g.cs
@@ -110,6 +110,7 @@ private Volume(double value, VolumeUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Volume;
///
@@ -144,6 +145,7 @@ private Volume(double value, VolumeUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => Volume.QuantityType;
///
@@ -1200,7 +1202,7 @@ public bool Equals(Volume other, double tolerance, ComparisonType comparisonType
/// A hash code for the current Volume.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeConcentration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeConcentration.g.cs
index de9d7c8e36..21894872b1 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeConcentration.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeConcentration.g.cs
@@ -113,6 +113,7 @@ private VolumeConcentration(double value, VolumeConcentrationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.VolumeConcentration;
///
@@ -147,6 +148,7 @@ private VolumeConcentration(double value, VolumeConcentrationUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => VolumeConcentration.QuantityType;
///
@@ -738,7 +740,7 @@ public bool Equals(VolumeConcentration other, double tolerance, ComparisonType c
/// A hash code for the current VolumeConcentration.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlow.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlow.g.cs
index c80d0f8f1f..5937363259 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlow.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlow.g.cs
@@ -110,6 +110,7 @@ private VolumeFlow(double value, VolumeFlowUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.VolumeFlow;
///
@@ -144,6 +145,7 @@ private VolumeFlow(double value, VolumeFlowUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => VolumeFlow.QuantityType;
///
@@ -1365,7 +1367,7 @@ public bool Equals(VolumeFlow other, double tolerance, ComparisonType comparison
/// A hash code for the current VolumeFlow.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs
index 040f11a161..8f158a1c1c 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs
@@ -110,6 +110,7 @@ private VolumeFlowPerArea(double value, VolumeFlowPerAreaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.VolumeFlowPerArea;
///
@@ -144,6 +145,7 @@ private VolumeFlowPerArea(double value, VolumeFlowPerAreaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => VolumeFlowPerArea.QuantityType;
///
@@ -465,7 +467,7 @@ public bool Equals(VolumeFlowPerArea other, double tolerance, ComparisonType com
/// A hash code for the current VolumeFlowPerArea.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumePerLength.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumePerLength.g.cs
index 81ab899959..2ba154e219 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumePerLength.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumePerLength.g.cs
@@ -110,6 +110,7 @@ private VolumePerLength(double value, VolumePerLengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.VolumePerLength;
///
@@ -144,6 +145,7 @@ private VolumePerLength(double value, VolumePerLengthUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => VolumePerLength.QuantityType;
///
@@ -540,7 +542,7 @@ public bool Equals(VolumePerLength other, double tolerance, ComparisonType compa
/// A hash code for the current VolumePerLength.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs
index a836761c8a..1d9cb42105 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs
@@ -113,6 +113,7 @@ private VolumetricHeatCapacity(double value, VolumetricHeatCapacityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.VolumetricHeatCapacity;
///
@@ -147,6 +148,7 @@ private VolumetricHeatCapacity(double value, VolumetricHeatCapacityUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => VolumetricHeatCapacity.QuantityType;
///
@@ -573,7 +575,7 @@ public bool Equals(VolumetricHeatCapacity other, double tolerance, ComparisonTyp
/// A hash code for the current VolumetricHeatCapacity.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs
index 74bc407b4d..414a897345 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs
@@ -110,6 +110,7 @@ private WarpingMomentOfInertia(double value, WarpingMomentOfInertiaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.WarpingMomentOfInertia;
///
@@ -144,6 +145,7 @@ private WarpingMomentOfInertia(double value, WarpingMomentOfInertiaUnit unit)
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public QuantityType Type => WarpingMomentOfInertia.QuantityType;
///
@@ -525,7 +527,7 @@ public bool Equals(WarpingMomentOfInertia other, double tolerance, ComparisonTyp
/// A hash code for the current WarpingMomentOfInertia.
public override int GetHashCode()
{
- return new { QuantityType, Value, Unit }.GetHashCode();
+ return new { Info.Name, Value, Unit }.GetHashCode();
}
#endregion
diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/QuantityType.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/QuantityType.g.cs
index f59d4eb444..0da8ff7922 100644
--- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/QuantityType.g.cs
+++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/QuantityType.g.cs
@@ -18,6 +18,9 @@
// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
// ReSharper disable once CheckNamespace
+
+using System;
+
namespace UnitsNet
{
///
@@ -26,6 +29,7 @@ namespace UnitsNet
/// This is useful for populating options in the UI, such as creating a generic conversion
/// tool with inputValue, quantityName, fromUnit and toUnit selectors.
///
+ [Obsolete("QuantityType will be removed in the future. Use the QuantityInfo class instead.")]
public enum QuantityType
{
Undefined = 0,
diff --git a/UnitsNet.WindowsRuntimeComponent/IQuantity.cs b/UnitsNet.WindowsRuntimeComponent/IQuantity.cs
index 34286b6c49..51326eed47 100644
--- a/UnitsNet.WindowsRuntimeComponent/IQuantity.cs
+++ b/UnitsNet.WindowsRuntimeComponent/IQuantity.cs
@@ -15,6 +15,7 @@ public interface IQuantity
///
/// The of this quantity.
///
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
QuantityType Type { get; }
///
diff --git a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs
index 129787880a..cc93a0d920 100644
--- a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs
@@ -138,7 +138,7 @@ public Acceleration(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Acceleration;
///
@@ -174,7 +174,8 @@ public Acceleration(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => Acceleration.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.Acceleration;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs
index a4c975d355..b4d0984d35 100644
--- a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs
@@ -139,7 +139,7 @@ public AmountOfSubstance(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.AmountOfSubstance;
///
@@ -175,7 +175,8 @@ public AmountOfSubstance(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => AmountOfSubstance.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.AmountOfSubstance;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs
index f4478bfd0d..fcb27efe30 100644
--- a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs
@@ -128,7 +128,7 @@ public AmplitudeRatio(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.AmplitudeRatio;
///
@@ -164,7 +164,8 @@ public AmplitudeRatio(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => AmplitudeRatio.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.AmplitudeRatio;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs
index 7025d49b06..6c209d73ad 100644
--- a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs
@@ -140,7 +140,7 @@ public Angle(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Angle;
///
@@ -176,7 +176,8 @@ public Angle(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => Angle.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.Angle;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs
index 5c8f074761..80aef1e282 100644
--- a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs
@@ -127,7 +127,7 @@ public ApparentEnergy(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ApparentEnergy;
///
@@ -163,7 +163,8 @@ public ApparentEnergy(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => ApparentEnergy.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.ApparentEnergy;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs
index 69009aed33..1fc40a404f 100644
--- a/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs
@@ -128,7 +128,7 @@ public ApparentPower(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.ApparentPower;
///
@@ -164,7 +164,8 @@ public ApparentPower(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => ApparentPower.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.ApparentPower;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/Area.g.cs b/UnitsNet/GeneratedCode/Quantities/Area.g.cs
index 0e03c9a519..aa37a081f0 100644
--- a/UnitsNet/GeneratedCode/Quantities/Area.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Area.g.cs
@@ -138,7 +138,7 @@ public Area(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.Area;
///
@@ -174,7 +174,8 @@ public Area(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => Area.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.Area;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs
index e52b05bf88..293b45d731 100644
--- a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs
@@ -125,7 +125,7 @@ public AreaDensity(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.AreaDensity;
///
@@ -161,7 +161,8 @@ public AreaDensity(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => AreaDensity.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.AreaDensity;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
index 35752e8a18..3a8c025943 100644
--- a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs
@@ -130,7 +130,7 @@ public AreaMomentOfInertia(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.AreaMomentOfInertia;
///
@@ -166,7 +166,8 @@ public AreaMomentOfInertia(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => AreaMomentOfInertia.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.AreaMomentOfInertia;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs
index 8215bf3120..2a02c6949e 100644
--- a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs
@@ -153,7 +153,7 @@ public BitRate(decimal value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.BitRate;
///
@@ -194,7 +194,8 @@ public BitRate(decimal value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => BitRate.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.BitRate;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
index 1db65ccd26..6ad6ac491e 100644
--- a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs
@@ -127,7 +127,7 @@ public BrakeSpecificFuelConsumption(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- [Obsolete("QuantityType will be removed in the future. Use Info property instead.")]
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
public static QuantityType QuantityType { get; } = QuantityType.BrakeSpecificFuelConsumption;
///
@@ -163,7 +163,8 @@ public BrakeSpecificFuelConsumption(double value, UnitSystem unitSystem)
///
/// The of this quantity.
///
- public QuantityType Type => BrakeSpecificFuelConsumption.QuantityType;
+ [Obsolete("QuantityType will be removed in the future. Use the Info property instead.")]
+ public QuantityType Type => QuantityType.BrakeSpecificFuelConsumption;
///
/// The of this quantity.
diff --git a/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs b/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs
index cc2bf58663..d57502aad3 100644
--- a/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs
+++ b/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs
@@ -134,7 +134,7 @@ public Capacitance(double value, UnitSystem unitSystem)
///
/// The