diff --git a/UnitsNet/Comparison.cs b/UnitsNet/Comparison.cs index 310c94150a..ad3b781afb 100644 --- a/UnitsNet/Comparison.cs +++ b/UnitsNet/Comparison.cs @@ -44,7 +44,7 @@ public static class Comparison /// Absolute tolerance is defined as the maximum allowable absolute difference between and /// as a fixed number. /// - /// In this example, the two values will be equal if abs( - ) <= 0.01 + /// In this example, the two values will be equal if abs( - ) <= 0.01 /// /// Equals(a, b, 0.01, ComparisonType.Absolute); /// @@ -102,10 +102,10 @@ public static bool EqualsRelative(double referenceValue, double otherValue, doub /// /// Checks if two values are equal with a given absolute tolerance. /// - /// Absolute tolerance is defined as the maximum allowable absolute difference between and - /// as a fixed number. + /// Absolute tolerance is defined as the maximum allowable absolute difference between and + /// as a fixed number. /// - /// In this example, the two values will be equal if abs( - ) <= 0.01 + /// In this example, the two values will be equal if abs( - ) <= 0.01 /// /// Equals(a, b, 0.01, ComparisonType.Absolute); /// diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAccelerationExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAccelerationExtensions.g.cs index edf503e383..9fc9b9cc5b 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAccelerationExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAccelerationExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToAccelerationExtensions public static Acceleration CentimetersPerSecondSquared(this T value) => Acceleration.FromCentimetersPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? CentimetersPerSecondSquared(this T? value) where T : struct => Acceleration.FromCentimetersPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToAccelerationExtensions public static Acceleration DecimetersPerSecondSquared(this T value) => Acceleration.FromDecimetersPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? DecimetersPerSecondSquared(this T? value) where T : struct => Acceleration.FromDecimetersPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToAccelerationExtensions public static Acceleration FeetPerSecondSquared(this T value) => Acceleration.FromFeetPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? FeetPerSecondSquared(this T? value) where T : struct => Acceleration.FromFeetPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToAccelerationExtensions public static Acceleration InchesPerSecondSquared(this T value) => Acceleration.FromInchesPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? InchesPerSecondSquared(this T? value) where T : struct => Acceleration.FromInchesPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToAccelerationExtensions public static Acceleration KilometersPerSecondSquared(this T value) => Acceleration.FromKilometersPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? KilometersPerSecondSquared(this T? value) where T : struct => Acceleration.FromKilometersPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToAccelerationExtensions public static Acceleration KnotsPerHour(this T value) => Acceleration.FromKnotsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? KnotsPerHour(this T? value) where T : struct => Acceleration.FromKnotsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToAccelerationExtensions public static Acceleration KnotsPerMinute(this T value) => Acceleration.FromKnotsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? KnotsPerMinute(this T? value) where T : struct => Acceleration.FromKnotsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToAccelerationExtensions public static Acceleration KnotsPerSecond(this T value) => Acceleration.FromKnotsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? KnotsPerSecond(this T? value) where T : struct => Acceleration.FromKnotsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToAccelerationExtensions public static Acceleration MetersPerSecondSquared(this T value) => Acceleration.FromMetersPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? MetersPerSecondSquared(this T? value) where T : struct => Acceleration.FromMetersPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToAccelerationExtensions public static Acceleration MicrometersPerSecondSquared(this T value) => Acceleration.FromMicrometersPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? MicrometersPerSecondSquared(this T? value) where T : struct => Acceleration.FromMicrometersPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToAccelerationExtensions public static Acceleration MillimetersPerSecondSquared(this T value) => Acceleration.FromMillimetersPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? MillimetersPerSecondSquared(this T? value) where T : struct => Acceleration.FromMillimetersPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToAccelerationExtensions public static Acceleration NanometersPerSecondSquared(this T value) => Acceleration.FromNanometersPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? NanometersPerSecondSquared(this T? value) where T : struct => Acceleration.FromNanometersPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToAccelerationExtensions public static Acceleration StandardGravity(this T value) => Acceleration.FromStandardGravity(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? StandardGravity(this T? value) where T : struct => Acceleration.FromStandardGravity(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAmountOfSubstanceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAmountOfSubstanceExtensions.g.cs index 7bd1b9c441..f51cf4316b 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAmountOfSubstanceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAmountOfSubstanceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance Centimoles(this T value) => AmountOfSubstance.FromCentimoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? Centimoles(this T? value) where T : struct => AmountOfSubstance.FromCentimoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance CentipoundMoles(this T value) => AmountOfSubstance.FromCentipoundMoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? CentipoundMoles(this T? value) where T : struct => AmountOfSubstance.FromCentipoundMoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance Decimoles(this T value) => AmountOfSubstance.FromDecimoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? Decimoles(this T? value) where T : struct => AmountOfSubstance.FromDecimoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance DecipoundMoles(this T value) => AmountOfSubstance.FromDecipoundMoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? DecipoundMoles(this T? value) where T : struct => AmountOfSubstance.FromDecipoundMoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance Kilomoles(this T value) => AmountOfSubstance.FromKilomoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? Kilomoles(this T? value) where T : struct => AmountOfSubstance.FromKilomoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance KilopoundMoles(this T value) => AmountOfSubstance.FromKilopoundMoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? KilopoundMoles(this T? value) where T : struct => AmountOfSubstance.FromKilopoundMoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance Micromoles(this T value) => AmountOfSubstance.FromMicromoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? Micromoles(this T? value) where T : struct => AmountOfSubstance.FromMicromoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance MicropoundMoles(this T value) => AmountOfSubstance.FromMicropoundMoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? MicropoundMoles(this T? value) where T : struct => AmountOfSubstance.FromMicropoundMoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance Millimoles(this T value) => AmountOfSubstance.FromMillimoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? Millimoles(this T? value) where T : struct => AmountOfSubstance.FromMillimoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance MillipoundMoles(this T value) => AmountOfSubstance.FromMillipoundMoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? MillipoundMoles(this T? value) where T : struct => AmountOfSubstance.FromMillipoundMoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance Moles(this T value) => AmountOfSubstance.FromMoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? Moles(this T? value) where T : struct => AmountOfSubstance.FromMoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance Nanomoles(this T value) => AmountOfSubstance.FromNanomoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? Nanomoles(this T? value) where T : struct => AmountOfSubstance.FromNanomoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance NanopoundMoles(this T value) => AmountOfSubstance.FromNanopoundMoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? NanopoundMoles(this T? value) where T : struct => AmountOfSubstance.FromNanopoundMoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToAmountOfSubstanceExtensions public static AmountOfSubstance PoundMoles(this T value) => AmountOfSubstance.FromPoundMoles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? PoundMoles(this T? value) where T : struct => AmountOfSubstance.FromPoundMoles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAmplitudeRatioExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAmplitudeRatioExtensions.g.cs index 629d25b5a9..c65efd7352 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAmplitudeRatioExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAmplitudeRatioExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToAmplitudeRatioExtensions public static AmplitudeRatio DecibelMicrovolts(this T value) => AmplitudeRatio.FromDecibelMicrovolts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmplitudeRatio? DecibelMicrovolts(this T? value) where T : struct => AmplitudeRatio.FromDecibelMicrovolts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToAmplitudeRatioExtensions public static AmplitudeRatio DecibelMillivolts(this T value) => AmplitudeRatio.FromDecibelMillivolts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmplitudeRatio? DecibelMillivolts(this T? value) where T : struct => AmplitudeRatio.FromDecibelMillivolts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToAmplitudeRatioExtensions public static AmplitudeRatio DecibelsUnloaded(this T value) => AmplitudeRatio.FromDecibelsUnloaded(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmplitudeRatio? DecibelsUnloaded(this T? value) where T : struct => AmplitudeRatio.FromDecibelsUnloaded(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToAmplitudeRatioExtensions public static AmplitudeRatio DecibelVolts(this T value) => AmplitudeRatio.FromDecibelVolts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmplitudeRatio? DecibelVolts(this T? value) where T : struct => AmplitudeRatio.FromDecibelVolts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAngleExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAngleExtensions.g.cs index 588694ab48..7a6a5ef36a 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAngleExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAngleExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToAngleExtensions public static Angle Arcminutes(this T value) => Angle.FromArcminutes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Arcminutes(this T? value) where T : struct => Angle.FromArcminutes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToAngleExtensions public static Angle Arcseconds(this T value) => Angle.FromArcseconds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Arcseconds(this T? value) where T : struct => Angle.FromArcseconds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToAngleExtensions public static Angle Centiradians(this T value) => Angle.FromCentiradians(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Centiradians(this T? value) where T : struct => Angle.FromCentiradians(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToAngleExtensions public static Angle Deciradians(this T value) => Angle.FromDeciradians(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Deciradians(this T? value) where T : struct => Angle.FromDeciradians(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToAngleExtensions public static Angle Degrees(this T value) => Angle.FromDegrees(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Degrees(this T? value) where T : struct => Angle.FromDegrees(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToAngleExtensions public static Angle Gradians(this T value) => Angle.FromGradians(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Gradians(this T? value) where T : struct => Angle.FromGradians(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToAngleExtensions public static Angle Microdegrees(this T value) => Angle.FromMicrodegrees(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Microdegrees(this T? value) where T : struct => Angle.FromMicrodegrees(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToAngleExtensions public static Angle Microradians(this T value) => Angle.FromMicroradians(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Microradians(this T? value) where T : struct => Angle.FromMicroradians(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToAngleExtensions public static Angle Millidegrees(this T value) => Angle.FromMillidegrees(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Millidegrees(this T? value) where T : struct => Angle.FromMillidegrees(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToAngleExtensions public static Angle Milliradians(this T value) => Angle.FromMilliradians(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Milliradians(this T? value) where T : struct => Angle.FromMilliradians(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToAngleExtensions public static Angle Nanodegrees(this T value) => Angle.FromNanodegrees(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Nanodegrees(this T? value) where T : struct => Angle.FromNanodegrees(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToAngleExtensions public static Angle Nanoradians(this T value) => Angle.FromNanoradians(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Nanoradians(this T? value) where T : struct => Angle.FromNanoradians(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToAngleExtensions public static Angle Radians(this T value) => Angle.FromRadians(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Radians(this T? value) where T : struct => Angle.FromRadians(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToAngleExtensions public static Angle Revolutions(this T value) => Angle.FromRevolutions(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? Revolutions(this T? value) where T : struct => Angle.FromRevolutions(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToApparentEnergyExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToApparentEnergyExtensions.g.cs index 0de30c9b7a..b6ff726836 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToApparentEnergyExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToApparentEnergyExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToApparentEnergyExtensions public static ApparentEnergy KilovoltampereHours(this T value) => ApparentEnergy.FromKilovoltampereHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ApparentEnergy? KilovoltampereHours(this T? value) where T : struct => ApparentEnergy.FromKilovoltampereHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToApparentEnergyExtensions public static ApparentEnergy MegavoltampereHours(this T value) => ApparentEnergy.FromMegavoltampereHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ApparentEnergy? MegavoltampereHours(this T? value) where T : struct => ApparentEnergy.FromMegavoltampereHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToApparentEnergyExtensions public static ApparentEnergy VoltampereHours(this T value) => ApparentEnergy.FromVoltampereHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ApparentEnergy? VoltampereHours(this T? value) where T : struct => ApparentEnergy.FromVoltampereHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToApparentPowerExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToApparentPowerExtensions.g.cs index 01dc57077d..ad97cdc78e 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToApparentPowerExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToApparentPowerExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToApparentPowerExtensions public static ApparentPower Gigavoltamperes(this T value) => ApparentPower.FromGigavoltamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ApparentPower? Gigavoltamperes(this T? value) where T : struct => ApparentPower.FromGigavoltamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToApparentPowerExtensions public static ApparentPower Kilovoltamperes(this T value) => ApparentPower.FromKilovoltamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ApparentPower? Kilovoltamperes(this T? value) where T : struct => ApparentPower.FromKilovoltamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToApparentPowerExtensions public static ApparentPower Megavoltamperes(this T value) => ApparentPower.FromMegavoltamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ApparentPower? Megavoltamperes(this T? value) where T : struct => ApparentPower.FromMegavoltamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToApparentPowerExtensions public static ApparentPower Voltamperes(this T value) => ApparentPower.FromVoltamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ApparentPower? Voltamperes(this T? value) where T : struct => ApparentPower.FromVoltamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaDensityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaDensityExtensions.g.cs index 4ea6a9826c..c91ee1b15d 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaDensityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaDensityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToAreaDensityExtensions public static AreaDensity KilogramsPerSquareMeter(this T value) => AreaDensity.FromKilogramsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AreaDensity? KilogramsPerSquareMeter(this T? value) where T : struct => AreaDensity.FromKilogramsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaExtensions.g.cs index 2567e15d3e..f9efe3d5f6 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToAreaExtensions public static Area Acres(this T value) => Area.FromAcres(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? Acres(this T? value) where T : struct => Area.FromAcres(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToAreaExtensions public static Area Hectares(this T value) => Area.FromHectares(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? Hectares(this T? value) where T : struct => Area.FromHectares(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToAreaExtensions public static Area SquareCentimeters(this T value) => Area.FromSquareCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareCentimeters(this T? value) where T : struct => Area.FromSquareCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToAreaExtensions public static Area SquareDecimeters(this T value) => Area.FromSquareDecimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareDecimeters(this T? value) where T : struct => Area.FromSquareDecimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToAreaExtensions public static Area SquareFeet(this T value) => Area.FromSquareFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareFeet(this T? value) where T : struct => Area.FromSquareFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToAreaExtensions public static Area SquareInches(this T value) => Area.FromSquareInches(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareInches(this T? value) where T : struct => Area.FromSquareInches(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToAreaExtensions public static Area SquareKilometers(this T value) => Area.FromSquareKilometers(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareKilometers(this T? value) where T : struct => Area.FromSquareKilometers(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToAreaExtensions public static Area SquareMeters(this T value) => Area.FromSquareMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareMeters(this T? value) where T : struct => Area.FromSquareMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToAreaExtensions public static Area SquareMicrometers(this T value) => Area.FromSquareMicrometers(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareMicrometers(this T? value) where T : struct => Area.FromSquareMicrometers(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToAreaExtensions public static Area SquareMiles(this T value) => Area.FromSquareMiles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareMiles(this T? value) where T : struct => Area.FromSquareMiles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToAreaExtensions public static Area SquareMillimeters(this T value) => Area.FromSquareMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareMillimeters(this T? value) where T : struct => Area.FromSquareMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToAreaExtensions public static Area SquareYards(this T value) => Area.FromSquareYards(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? SquareYards(this T? value) where T : struct => Area.FromSquareYards(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToAreaExtensions public static Area UsSurveySquareFeet(this T value) => Area.FromUsSurveySquareFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? UsSurveySquareFeet(this T? value) where T : struct => Area.FromUsSurveySquareFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaMomentOfInertiaExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaMomentOfInertiaExtensions.g.cs index eff49c3ffb..e9a5af6b3f 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaMomentOfInertiaExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToAreaMomentOfInertiaExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToAreaMomentOfInertiaExtensions public static AreaMomentOfInertia CentimetersToTheFourth(this T value) => AreaMomentOfInertia.FromCentimetersToTheFourth(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AreaMomentOfInertia? CentimetersToTheFourth(this T? value) where T : struct => AreaMomentOfInertia.FromCentimetersToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToAreaMomentOfInertiaExtensions public static AreaMomentOfInertia DecimetersToTheFourth(this T value) => AreaMomentOfInertia.FromDecimetersToTheFourth(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AreaMomentOfInertia? DecimetersToTheFourth(this T? value) where T : struct => AreaMomentOfInertia.FromDecimetersToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToAreaMomentOfInertiaExtensions public static AreaMomentOfInertia FeetToTheFourth(this T value) => AreaMomentOfInertia.FromFeetToTheFourth(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AreaMomentOfInertia? FeetToTheFourth(this T? value) where T : struct => AreaMomentOfInertia.FromFeetToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToAreaMomentOfInertiaExtensions public static AreaMomentOfInertia InchesToTheFourth(this T value) => AreaMomentOfInertia.FromInchesToTheFourth(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AreaMomentOfInertia? InchesToTheFourth(this T? value) where T : struct => AreaMomentOfInertia.FromInchesToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToAreaMomentOfInertiaExtensions public static AreaMomentOfInertia MetersToTheFourth(this T value) => AreaMomentOfInertia.FromMetersToTheFourth(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AreaMomentOfInertia? MetersToTheFourth(this T? value) where T : struct => AreaMomentOfInertia.FromMetersToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToAreaMomentOfInertiaExtensions public static AreaMomentOfInertia MillimetersToTheFourth(this T value) => AreaMomentOfInertia.FromMillimetersToTheFourth(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AreaMomentOfInertia? MillimetersToTheFourth(this T? value) where T : struct => AreaMomentOfInertia.FromMillimetersToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToBitRateExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToBitRateExtensions.g.cs index 35921232c7..4efef3834b 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToBitRateExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToBitRateExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToBitRateExtensions public static BitRate BitsPerSecond(this T value) => BitRate.FromBitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? BitsPerSecond(this T? value) where T : struct => BitRate.FromBitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToBitRateExtensions public static BitRate BytesPerSecond(this T value) => BitRate.FromBytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? BytesPerSecond(this T? value) where T : struct => BitRate.FromBytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToBitRateExtensions public static BitRate ExabitsPerSecond(this T value) => BitRate.FromExabitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? ExabitsPerSecond(this T? value) where T : struct => BitRate.FromExabitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToBitRateExtensions public static BitRate ExabytesPerSecond(this T value) => BitRate.FromExabytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? ExabytesPerSecond(this T? value) where T : struct => BitRate.FromExabytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToBitRateExtensions public static BitRate ExbibitsPerSecond(this T value) => BitRate.FromExbibitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? ExbibitsPerSecond(this T? value) where T : struct => BitRate.FromExbibitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToBitRateExtensions public static BitRate ExbibytesPerSecond(this T value) => BitRate.FromExbibytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? ExbibytesPerSecond(this T? value) where T : struct => BitRate.FromExbibytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToBitRateExtensions public static BitRate GibibitsPerSecond(this T value) => BitRate.FromGibibitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? GibibitsPerSecond(this T? value) where T : struct => BitRate.FromGibibitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToBitRateExtensions public static BitRate GibibytesPerSecond(this T value) => BitRate.FromGibibytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? GibibytesPerSecond(this T? value) where T : struct => BitRate.FromGibibytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToBitRateExtensions public static BitRate GigabitsPerSecond(this T value) => BitRate.FromGigabitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? GigabitsPerSecond(this T? value) where T : struct => BitRate.FromGigabitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToBitRateExtensions public static BitRate GigabytesPerSecond(this T value) => BitRate.FromGigabytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? GigabytesPerSecond(this T? value) where T : struct => BitRate.FromGigabytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToBitRateExtensions public static BitRate KibibitsPerSecond(this T value) => BitRate.FromKibibitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? KibibitsPerSecond(this T? value) where T : struct => BitRate.FromKibibitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToBitRateExtensions public static BitRate KibibytesPerSecond(this T value) => BitRate.FromKibibytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? KibibytesPerSecond(this T? value) where T : struct => BitRate.FromKibibytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToBitRateExtensions public static BitRate KilobitsPerSecond(this T value) => BitRate.FromKilobitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? KilobitsPerSecond(this T? value) where T : struct => BitRate.FromKilobitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToBitRateExtensions public static BitRate KilobytesPerSecond(this T value) => BitRate.FromKilobytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? KilobytesPerSecond(this T? value) where T : struct => BitRate.FromKilobytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToBitRateExtensions public static BitRate MebibitsPerSecond(this T value) => BitRate.FromMebibitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? MebibitsPerSecond(this T? value) where T : struct => BitRate.FromMebibitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToBitRateExtensions public static BitRate MebibytesPerSecond(this T value) => BitRate.FromMebibytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? MebibytesPerSecond(this T? value) where T : struct => BitRate.FromMebibytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToBitRateExtensions public static BitRate MegabitsPerSecond(this T value) => BitRate.FromMegabitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? MegabitsPerSecond(this T? value) where T : struct => BitRate.FromMegabitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToBitRateExtensions public static BitRate MegabytesPerSecond(this T value) => BitRate.FromMegabytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? MegabytesPerSecond(this T? value) where T : struct => BitRate.FromMegabytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToBitRateExtensions public static BitRate PebibitsPerSecond(this T value) => BitRate.FromPebibitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? PebibitsPerSecond(this T? value) where T : struct => BitRate.FromPebibitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToBitRateExtensions public static BitRate PebibytesPerSecond(this T value) => BitRate.FromPebibytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? PebibytesPerSecond(this T? value) where T : struct => BitRate.FromPebibytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToBitRateExtensions public static BitRate PetabitsPerSecond(this T value) => BitRate.FromPetabitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? PetabitsPerSecond(this T? value) where T : struct => BitRate.FromPetabitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToBitRateExtensions public static BitRate PetabytesPerSecond(this T value) => BitRate.FromPetabytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? PetabytesPerSecond(this T? value) where T : struct => BitRate.FromPetabytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToBitRateExtensions public static BitRate TebibitsPerSecond(this T value) => BitRate.FromTebibitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? TebibitsPerSecond(this T? value) where T : struct => BitRate.FromTebibitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToBitRateExtensions public static BitRate TebibytesPerSecond(this T value) => BitRate.FromTebibytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? TebibytesPerSecond(this T? value) where T : struct => BitRate.FromTebibytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -290,6 +314,7 @@ public static class NumberToBitRateExtensions public static BitRate TerabitsPerSecond(this T value) => BitRate.FromTerabitsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? TerabitsPerSecond(this T? value) where T : struct => BitRate.FromTerabitsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -300,6 +325,7 @@ public static class NumberToBitRateExtensions public static BitRate TerabytesPerSecond(this T value) => BitRate.FromTerabytesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? TerabytesPerSecond(this T? value) where T : struct => BitRate.FromTerabytesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToBrakeSpecificFuelConsumptionExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToBrakeSpecificFuelConsumptionExtensions.g.cs index d4ca726177..1342e04e53 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToBrakeSpecificFuelConsumptionExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToBrakeSpecificFuelConsumptionExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToBrakeSpecificFuelConsumptionExtensions public static BrakeSpecificFuelConsumption GramsPerKiloWattHour(this T value) => BrakeSpecificFuelConsumption.FromGramsPerKiloWattHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BrakeSpecificFuelConsumption? GramsPerKiloWattHour(this T? value) where T : struct => BrakeSpecificFuelConsumption.FromGramsPerKiloWattHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToBrakeSpecificFuelConsumptionExtensions public static BrakeSpecificFuelConsumption KilogramsPerJoule(this T value) => BrakeSpecificFuelConsumption.FromKilogramsPerJoule(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BrakeSpecificFuelConsumption? KilogramsPerJoule(this T? value) where T : struct => BrakeSpecificFuelConsumption.FromKilogramsPerJoule(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToBrakeSpecificFuelConsumptionExtensions public static BrakeSpecificFuelConsumption PoundsPerMechanicalHorsepowerHour(this T value) => BrakeSpecificFuelConsumption.FromPoundsPerMechanicalHorsepowerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BrakeSpecificFuelConsumption? PoundsPerMechanicalHorsepowerHour(this T? value) where T : struct => BrakeSpecificFuelConsumption.FromPoundsPerMechanicalHorsepowerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToCapacitanceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToCapacitanceExtensions.g.cs index 9233a82eae..0ec974e4ae 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToCapacitanceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToCapacitanceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToCapacitanceExtensions public static Capacitance Farads(this T value) => Capacitance.FromFarads(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Capacitance? Farads(this T? value) where T : struct => Capacitance.FromFarads(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToDensityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToDensityExtensions.g.cs index 4eab768465..ea7699b6a7 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToDensityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToDensityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToDensityExtensions public static Density CentigramsPerDeciLiter(this T value) => Density.FromCentigramsPerDeciLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? CentigramsPerDeciLiter(this T? value) where T : struct => Density.FromCentigramsPerDeciLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToDensityExtensions public static Density CentigramsPerLiter(this T value) => Density.FromCentigramsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? CentigramsPerLiter(this T? value) where T : struct => Density.FromCentigramsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToDensityExtensions public static Density CentigramsPerMilliliter(this T value) => Density.FromCentigramsPerMilliliter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? CentigramsPerMilliliter(this T? value) where T : struct => Density.FromCentigramsPerMilliliter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToDensityExtensions public static Density DecigramsPerDeciLiter(this T value) => Density.FromDecigramsPerDeciLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? DecigramsPerDeciLiter(this T? value) where T : struct => Density.FromDecigramsPerDeciLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToDensityExtensions public static Density DecigramsPerLiter(this T value) => Density.FromDecigramsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? DecigramsPerLiter(this T? value) where T : struct => Density.FromDecigramsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToDensityExtensions public static Density DecigramsPerMilliliter(this T value) => Density.FromDecigramsPerMilliliter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? DecigramsPerMilliliter(this T? value) where T : struct => Density.FromDecigramsPerMilliliter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToDensityExtensions public static Density GramsPerCubicCentimeter(this T value) => Density.FromGramsPerCubicCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? GramsPerCubicCentimeter(this T? value) where T : struct => Density.FromGramsPerCubicCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToDensityExtensions public static Density GramsPerCubicMeter(this T value) => Density.FromGramsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? GramsPerCubicMeter(this T? value) where T : struct => Density.FromGramsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToDensityExtensions public static Density GramsPerCubicMillimeter(this T value) => Density.FromGramsPerCubicMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? GramsPerCubicMillimeter(this T? value) where T : struct => Density.FromGramsPerCubicMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToDensityExtensions public static Density GramsPerDeciLiter(this T value) => Density.FromGramsPerDeciLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? GramsPerDeciLiter(this T? value) where T : struct => Density.FromGramsPerDeciLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToDensityExtensions public static Density GramsPerLiter(this T value) => Density.FromGramsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? GramsPerLiter(this T? value) where T : struct => Density.FromGramsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToDensityExtensions public static Density GramsPerMilliliter(this T value) => Density.FromGramsPerMilliliter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? GramsPerMilliliter(this T? value) where T : struct => Density.FromGramsPerMilliliter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToDensityExtensions public static Density KilogramsPerCubicCentimeter(this T value) => Density.FromKilogramsPerCubicCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? KilogramsPerCubicCentimeter(this T? value) where T : struct => Density.FromKilogramsPerCubicCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToDensityExtensions public static Density KilogramsPerCubicMeter(this T value) => Density.FromKilogramsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? KilogramsPerCubicMeter(this T? value) where T : struct => Density.FromKilogramsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToDensityExtensions public static Density KilogramsPerCubicMillimeter(this T value) => Density.FromKilogramsPerCubicMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? KilogramsPerCubicMillimeter(this T? value) where T : struct => Density.FromKilogramsPerCubicMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToDensityExtensions public static Density KilopoundsPerCubicFoot(this T value) => Density.FromKilopoundsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? KilopoundsPerCubicFoot(this T? value) where T : struct => Density.FromKilopoundsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToDensityExtensions public static Density KilopoundsPerCubicInch(this T value) => Density.FromKilopoundsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? KilopoundsPerCubicInch(this T? value) where T : struct => Density.FromKilopoundsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToDensityExtensions public static Density MicrogramsPerDeciLiter(this T value) => Density.FromMicrogramsPerDeciLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? MicrogramsPerDeciLiter(this T? value) where T : struct => Density.FromMicrogramsPerDeciLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToDensityExtensions public static Density MicrogramsPerLiter(this T value) => Density.FromMicrogramsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? MicrogramsPerLiter(this T? value) where T : struct => Density.FromMicrogramsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToDensityExtensions public static Density MicrogramsPerMilliliter(this T value) => Density.FromMicrogramsPerMilliliter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? MicrogramsPerMilliliter(this T? value) where T : struct => Density.FromMicrogramsPerMilliliter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToDensityExtensions public static Density MilligramsPerCubicMeter(this T value) => Density.FromMilligramsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? MilligramsPerCubicMeter(this T? value) where T : struct => Density.FromMilligramsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToDensityExtensions public static Density MilligramsPerDeciLiter(this T value) => Density.FromMilligramsPerDeciLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? MilligramsPerDeciLiter(this T? value) where T : struct => Density.FromMilligramsPerDeciLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToDensityExtensions public static Density MilligramsPerLiter(this T value) => Density.FromMilligramsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? MilligramsPerLiter(this T? value) where T : struct => Density.FromMilligramsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToDensityExtensions public static Density MilligramsPerMilliliter(this T value) => Density.FromMilligramsPerMilliliter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? MilligramsPerMilliliter(this T? value) where T : struct => Density.FromMilligramsPerMilliliter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -290,6 +314,7 @@ public static class NumberToDensityExtensions public static Density NanogramsPerDeciLiter(this T value) => Density.FromNanogramsPerDeciLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? NanogramsPerDeciLiter(this T? value) where T : struct => Density.FromNanogramsPerDeciLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -300,6 +325,7 @@ public static class NumberToDensityExtensions public static Density NanogramsPerLiter(this T value) => Density.FromNanogramsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? NanogramsPerLiter(this T? value) where T : struct => Density.FromNanogramsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -310,6 +336,7 @@ public static class NumberToDensityExtensions public static Density NanogramsPerMilliliter(this T value) => Density.FromNanogramsPerMilliliter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? NanogramsPerMilliliter(this T? value) where T : struct => Density.FromNanogramsPerMilliliter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -320,6 +347,7 @@ public static class NumberToDensityExtensions public static Density PicogramsPerDeciLiter(this T value) => Density.FromPicogramsPerDeciLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? PicogramsPerDeciLiter(this T? value) where T : struct => Density.FromPicogramsPerDeciLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -330,6 +358,7 @@ public static class NumberToDensityExtensions public static Density PicogramsPerLiter(this T value) => Density.FromPicogramsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? PicogramsPerLiter(this T? value) where T : struct => Density.FromPicogramsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -340,6 +369,7 @@ public static class NumberToDensityExtensions public static Density PicogramsPerMilliliter(this T value) => Density.FromPicogramsPerMilliliter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? PicogramsPerMilliliter(this T? value) where T : struct => Density.FromPicogramsPerMilliliter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -350,6 +380,7 @@ public static class NumberToDensityExtensions public static Density PoundsPerCubicFoot(this T value) => Density.FromPoundsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? PoundsPerCubicFoot(this T? value) where T : struct => Density.FromPoundsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -360,6 +391,7 @@ public static class NumberToDensityExtensions public static Density PoundsPerCubicInch(this T value) => Density.FromPoundsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? PoundsPerCubicInch(this T? value) where T : struct => Density.FromPoundsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -370,6 +402,7 @@ public static class NumberToDensityExtensions public static Density PoundsPerImperialGallon(this T value) => Density.FromPoundsPerImperialGallon(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? PoundsPerImperialGallon(this T? value) where T : struct => Density.FromPoundsPerImperialGallon(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -380,6 +413,7 @@ public static class NumberToDensityExtensions public static Density PoundsPerUSGallon(this T value) => Density.FromPoundsPerUSGallon(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? PoundsPerUSGallon(this T? value) where T : struct => Density.FromPoundsPerUSGallon(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -390,6 +424,7 @@ public static class NumberToDensityExtensions public static Density SlugsPerCubicFoot(this T value) => Density.FromSlugsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? SlugsPerCubicFoot(this T? value) where T : struct => Density.FromSlugsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -400,6 +435,7 @@ public static class NumberToDensityExtensions public static Density TonnesPerCubicCentimeter(this T value) => Density.FromTonnesPerCubicCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? TonnesPerCubicCentimeter(this T? value) where T : struct => Density.FromTonnesPerCubicCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -410,6 +446,7 @@ public static class NumberToDensityExtensions public static Density TonnesPerCubicMeter(this T value) => Density.FromTonnesPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? TonnesPerCubicMeter(this T? value) where T : struct => Density.FromTonnesPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -420,6 +457,7 @@ public static class NumberToDensityExtensions public static Density TonnesPerCubicMillimeter(this T value) => Density.FromTonnesPerCubicMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? TonnesPerCubicMillimeter(this T? value) where T : struct => Density.FromTonnesPerCubicMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToDurationExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToDurationExtensions.g.cs index 848af5ddd5..50b2c429a3 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToDurationExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToDurationExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToDurationExtensions public static Duration Days(this T value) => Duration.FromDays(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Days(this T? value) where T : struct => Duration.FromDays(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToDurationExtensions public static Duration Hours(this T value) => Duration.FromHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Hours(this T? value) where T : struct => Duration.FromHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToDurationExtensions public static Duration Microseconds(this T value) => Duration.FromMicroseconds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Microseconds(this T? value) where T : struct => Duration.FromMicroseconds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToDurationExtensions public static Duration Milliseconds(this T value) => Duration.FromMilliseconds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Milliseconds(this T? value) where T : struct => Duration.FromMilliseconds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToDurationExtensions public static Duration Minutes(this T value) => Duration.FromMinutes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Minutes(this T? value) where T : struct => Duration.FromMinutes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToDurationExtensions public static Duration Months(this T value) => Duration.FromMonths(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Months(this T? value) where T : struct => Duration.FromMonths(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToDurationExtensions public static Duration Months30(this T value) => Duration.FromMonths30(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Months30(this T? value) where T : struct => Duration.FromMonths30(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToDurationExtensions public static Duration Nanoseconds(this T value) => Duration.FromNanoseconds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Nanoseconds(this T? value) where T : struct => Duration.FromNanoseconds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToDurationExtensions public static Duration Seconds(this T value) => Duration.FromSeconds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Seconds(this T? value) where T : struct => Duration.FromSeconds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToDurationExtensions public static Duration Weeks(this T value) => Duration.FromWeeks(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Weeks(this T? value) where T : struct => Duration.FromWeeks(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToDurationExtensions public static Duration Years(this T value) => Duration.FromYears(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Years(this T? value) where T : struct => Duration.FromYears(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToDurationExtensions public static Duration Years365(this T value) => Duration.FromYears365(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? Years365(this T? value) where T : struct => Duration.FromYears365(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToDynamicViscosityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToDynamicViscosityExtensions.g.cs index 80bcd1d212..e8af61187f 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToDynamicViscosityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToDynamicViscosityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToDynamicViscosityExtensions public static DynamicViscosity Centipoise(this T value) => DynamicViscosity.FromCentipoise(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static DynamicViscosity? Centipoise(this T? value) where T : struct => DynamicViscosity.FromCentipoise(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToDynamicViscosityExtensions public static DynamicViscosity MicropascalSeconds(this T value) => DynamicViscosity.FromMicropascalSeconds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static DynamicViscosity? MicropascalSeconds(this T? value) where T : struct => DynamicViscosity.FromMicropascalSeconds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToDynamicViscosityExtensions public static DynamicViscosity MillipascalSeconds(this T value) => DynamicViscosity.FromMillipascalSeconds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static DynamicViscosity? MillipascalSeconds(this T? value) where T : struct => DynamicViscosity.FromMillipascalSeconds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToDynamicViscosityExtensions public static DynamicViscosity NewtonSecondsPerMeterSquared(this T value) => DynamicViscosity.FromNewtonSecondsPerMeterSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static DynamicViscosity? NewtonSecondsPerMeterSquared(this T? value) where T : struct => DynamicViscosity.FromNewtonSecondsPerMeterSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToDynamicViscosityExtensions public static DynamicViscosity PascalSeconds(this T value) => DynamicViscosity.FromPascalSeconds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static DynamicViscosity? PascalSeconds(this T? value) where T : struct => DynamicViscosity.FromPascalSeconds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToDynamicViscosityExtensions public static DynamicViscosity Poise(this T value) => DynamicViscosity.FromPoise(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static DynamicViscosity? Poise(this T? value) where T : struct => DynamicViscosity.FromPoise(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricAdmittanceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricAdmittanceExtensions.g.cs index d8b6def3ce..479d2dadec 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricAdmittanceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricAdmittanceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricAdmittanceExtensions public static ElectricAdmittance Microsiemens(this T value) => ElectricAdmittance.FromMicrosiemens(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricAdmittance? Microsiemens(this T? value) where T : struct => ElectricAdmittance.FromMicrosiemens(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToElectricAdmittanceExtensions public static ElectricAdmittance Millisiemens(this T value) => ElectricAdmittance.FromMillisiemens(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricAdmittance? Millisiemens(this T? value) where T : struct => ElectricAdmittance.FromMillisiemens(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToElectricAdmittanceExtensions public static ElectricAdmittance Nanosiemens(this T value) => ElectricAdmittance.FromNanosiemens(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricAdmittance? Nanosiemens(this T? value) where T : struct => ElectricAdmittance.FromNanosiemens(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToElectricAdmittanceExtensions public static ElectricAdmittance Siemens(this T value) => ElectricAdmittance.FromSiemens(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricAdmittance? Siemens(this T? value) where T : struct => ElectricAdmittance.FromSiemens(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricChargeDensityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricChargeDensityExtensions.g.cs index 8dbf669b60..8cce5635a8 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricChargeDensityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricChargeDensityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricChargeDensityExtensions public static ElectricChargeDensity CoulombsPerCubicMeter(this T value) => ElectricChargeDensity.FromCoulombsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricChargeDensity? CoulombsPerCubicMeter(this T? value) where T : struct => ElectricChargeDensity.FromCoulombsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricChargeExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricChargeExtensions.g.cs index 7daa18a788..4172b896c6 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricChargeExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricChargeExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricChargeExtensions public static ElectricCharge Coulombs(this T value) => ElectricCharge.FromCoulombs(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCharge? Coulombs(this T? value) where T : struct => ElectricCharge.FromCoulombs(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricConductanceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricConductanceExtensions.g.cs index aca5ef9045..009d984d58 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricConductanceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricConductanceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricConductanceExtensions public static ElectricConductance Microsiemens(this T value) => ElectricConductance.FromMicrosiemens(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricConductance? Microsiemens(this T? value) where T : struct => ElectricConductance.FromMicrosiemens(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToElectricConductanceExtensions public static ElectricConductance Millisiemens(this T value) => ElectricConductance.FromMillisiemens(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricConductance? Millisiemens(this T? value) where T : struct => ElectricConductance.FromMillisiemens(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToElectricConductanceExtensions public static ElectricConductance Siemens(this T value) => ElectricConductance.FromSiemens(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricConductance? Siemens(this T? value) where T : struct => ElectricConductance.FromSiemens(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricConductivityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricConductivityExtensions.g.cs index b96686e826..d3f606e246 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricConductivityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricConductivityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricConductivityExtensions public static ElectricConductivity SiemensPerMeter(this T value) => ElectricConductivity.FromSiemensPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricConductivity? SiemensPerMeter(this T? value) where T : struct => ElectricConductivity.FromSiemensPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentDensityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentDensityExtensions.g.cs index fcc40cb6eb..efd6ced57a 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentDensityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentDensityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricCurrentDensityExtensions public static ElectricCurrentDensity AmperesPerSquareMeter(this T value) => ElectricCurrentDensity.FromAmperesPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrentDensity? AmperesPerSquareMeter(this T? value) where T : struct => ElectricCurrentDensity.FromAmperesPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentExtensions.g.cs index 57a7a13573..cc6432cea8 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricCurrentExtensions public static ElectricCurrent Amperes(this T value) => ElectricCurrent.FromAmperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrent? Amperes(this T? value) where T : struct => ElectricCurrent.FromAmperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToElectricCurrentExtensions public static ElectricCurrent Centiamperes(this T value) => ElectricCurrent.FromCentiamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrent? Centiamperes(this T? value) where T : struct => ElectricCurrent.FromCentiamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToElectricCurrentExtensions public static ElectricCurrent Kiloamperes(this T value) => ElectricCurrent.FromKiloamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrent? Kiloamperes(this T? value) where T : struct => ElectricCurrent.FromKiloamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToElectricCurrentExtensions public static ElectricCurrent Megaamperes(this T value) => ElectricCurrent.FromMegaamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrent? Megaamperes(this T? value) where T : struct => ElectricCurrent.FromMegaamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToElectricCurrentExtensions public static ElectricCurrent Microamperes(this T value) => ElectricCurrent.FromMicroamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrent? Microamperes(this T? value) where T : struct => ElectricCurrent.FromMicroamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToElectricCurrentExtensions public static ElectricCurrent Milliamperes(this T value) => ElectricCurrent.FromMilliamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrent? Milliamperes(this T? value) where T : struct => ElectricCurrent.FromMilliamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToElectricCurrentExtensions public static ElectricCurrent Nanoamperes(this T value) => ElectricCurrent.FromNanoamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrent? Nanoamperes(this T? value) where T : struct => ElectricCurrent.FromNanoamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToElectricCurrentExtensions public static ElectricCurrent Picoamperes(this T value) => ElectricCurrent.FromPicoamperes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrent? Picoamperes(this T? value) where T : struct => ElectricCurrent.FromPicoamperes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentGradientExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentGradientExtensions.g.cs index b985766eac..f8ff56e216 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentGradientExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricCurrentGradientExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricCurrentGradientExtensions public static ElectricCurrentGradient AmperesPerSecond(this T value) => ElectricCurrentGradient.FromAmperesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrentGradient? AmperesPerSecond(this T? value) where T : struct => ElectricCurrentGradient.FromAmperesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricFieldExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricFieldExtensions.g.cs index bb37aecc38..dd03e3351a 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricFieldExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricFieldExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricFieldExtensions public static ElectricField VoltsPerMeter(this T value) => ElectricField.FromVoltsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricField? VoltsPerMeter(this T? value) where T : struct => ElectricField.FromVoltsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricInductanceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricInductanceExtensions.g.cs index d08422b161..f080d2a359 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricInductanceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricInductanceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricInductanceExtensions public static ElectricInductance Henries(this T value) => ElectricInductance.FromHenries(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricInductance? Henries(this T? value) where T : struct => ElectricInductance.FromHenries(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialAcExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialAcExtensions.g.cs index ea7530a324..2e0562ea00 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialAcExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialAcExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricPotentialAcExtensions public static ElectricPotentialAc KilovoltsAc(this T value) => ElectricPotentialAc.FromKilovoltsAc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialAc? KilovoltsAc(this T? value) where T : struct => ElectricPotentialAc.FromKilovoltsAc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToElectricPotentialAcExtensions public static ElectricPotentialAc MegavoltsAc(this T value) => ElectricPotentialAc.FromMegavoltsAc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialAc? MegavoltsAc(this T? value) where T : struct => ElectricPotentialAc.FromMegavoltsAc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToElectricPotentialAcExtensions public static ElectricPotentialAc MicrovoltsAc(this T value) => ElectricPotentialAc.FromMicrovoltsAc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialAc? MicrovoltsAc(this T? value) where T : struct => ElectricPotentialAc.FromMicrovoltsAc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToElectricPotentialAcExtensions public static ElectricPotentialAc MillivoltsAc(this T value) => ElectricPotentialAc.FromMillivoltsAc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialAc? MillivoltsAc(this T? value) where T : struct => ElectricPotentialAc.FromMillivoltsAc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToElectricPotentialAcExtensions public static ElectricPotentialAc VoltsAc(this T value) => ElectricPotentialAc.FromVoltsAc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialAc? VoltsAc(this T? value) where T : struct => ElectricPotentialAc.FromVoltsAc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialDcExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialDcExtensions.g.cs index 94c97b668c..fde616f3e2 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialDcExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialDcExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricPotentialDcExtensions public static ElectricPotentialDc KilovoltsDc(this T value) => ElectricPotentialDc.FromKilovoltsDc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialDc? KilovoltsDc(this T? value) where T : struct => ElectricPotentialDc.FromKilovoltsDc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToElectricPotentialDcExtensions public static ElectricPotentialDc MegavoltsDc(this T value) => ElectricPotentialDc.FromMegavoltsDc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialDc? MegavoltsDc(this T? value) where T : struct => ElectricPotentialDc.FromMegavoltsDc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToElectricPotentialDcExtensions public static ElectricPotentialDc MicrovoltsDc(this T value) => ElectricPotentialDc.FromMicrovoltsDc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialDc? MicrovoltsDc(this T? value) where T : struct => ElectricPotentialDc.FromMicrovoltsDc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToElectricPotentialDcExtensions public static ElectricPotentialDc MillivoltsDc(this T value) => ElectricPotentialDc.FromMillivoltsDc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialDc? MillivoltsDc(this T? value) where T : struct => ElectricPotentialDc.FromMillivoltsDc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToElectricPotentialDcExtensions public static ElectricPotentialDc VoltsDc(this T value) => ElectricPotentialDc.FromVoltsDc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialDc? VoltsDc(this T? value) where T : struct => ElectricPotentialDc.FromVoltsDc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialExtensions.g.cs index 6c444402f9..4d65056731 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricPotentialExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricPotentialExtensions public static ElectricPotential Kilovolts(this T value) => ElectricPotential.FromKilovolts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotential? Kilovolts(this T? value) where T : struct => ElectricPotential.FromKilovolts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToElectricPotentialExtensions public static ElectricPotential Megavolts(this T value) => ElectricPotential.FromMegavolts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotential? Megavolts(this T? value) where T : struct => ElectricPotential.FromMegavolts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToElectricPotentialExtensions public static ElectricPotential Microvolts(this T value) => ElectricPotential.FromMicrovolts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotential? Microvolts(this T? value) where T : struct => ElectricPotential.FromMicrovolts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToElectricPotentialExtensions public static ElectricPotential Millivolts(this T value) => ElectricPotential.FromMillivolts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotential? Millivolts(this T? value) where T : struct => ElectricPotential.FromMillivolts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToElectricPotentialExtensions public static ElectricPotential Volts(this T value) => ElectricPotential.FromVolts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotential? Volts(this T? value) where T : struct => ElectricPotential.FromVolts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricResistanceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricResistanceExtensions.g.cs index 395d121335..2bdd86c11d 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricResistanceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricResistanceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricResistanceExtensions public static ElectricResistance Kiloohms(this T value) => ElectricResistance.FromKiloohms(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistance? Kiloohms(this T? value) where T : struct => ElectricResistance.FromKiloohms(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToElectricResistanceExtensions public static ElectricResistance Megaohms(this T value) => ElectricResistance.FromMegaohms(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistance? Megaohms(this T? value) where T : struct => ElectricResistance.FromMegaohms(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToElectricResistanceExtensions public static ElectricResistance Milliohms(this T value) => ElectricResistance.FromMilliohms(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistance? Milliohms(this T? value) where T : struct => ElectricResistance.FromMilliohms(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToElectricResistanceExtensions public static ElectricResistance Ohms(this T value) => ElectricResistance.FromOhms(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistance? Ohms(this T? value) where T : struct => ElectricResistance.FromOhms(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricResistivityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricResistivityExtensions.g.cs index 51fa4e455e..1ef50dabd8 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricResistivityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToElectricResistivityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToElectricResistivityExtensions public static ElectricResistivity MicroohmMeters(this T value) => ElectricResistivity.FromMicroohmMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistivity? MicroohmMeters(this T? value) where T : struct => ElectricResistivity.FromMicroohmMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToElectricResistivityExtensions public static ElectricResistivity MilliohmMeters(this T value) => ElectricResistivity.FromMilliohmMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistivity? MilliohmMeters(this T? value) where T : struct => ElectricResistivity.FromMilliohmMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToElectricResistivityExtensions public static ElectricResistivity NanoohmMeters(this T value) => ElectricResistivity.FromNanoohmMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistivity? NanoohmMeters(this T? value) where T : struct => ElectricResistivity.FromNanoohmMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToElectricResistivityExtensions public static ElectricResistivity OhmMeters(this T value) => ElectricResistivity.FromOhmMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistivity? OhmMeters(this T? value) where T : struct => ElectricResistivity.FromOhmMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToEnergyExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToEnergyExtensions.g.cs index 36c67408aa..f1b22c4470 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToEnergyExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToEnergyExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToEnergyExtensions public static Energy BritishThermalUnits(this T value) => Energy.FromBritishThermalUnits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? BritishThermalUnits(this T? value) where T : struct => Energy.FromBritishThermalUnits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToEnergyExtensions public static Energy Calories(this T value) => Energy.FromCalories(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? Calories(this T? value) where T : struct => Energy.FromCalories(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToEnergyExtensions public static Energy DecathermsEc(this T value) => Energy.FromDecathermsEc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? DecathermsEc(this T? value) where T : struct => Energy.FromDecathermsEc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToEnergyExtensions public static Energy DecathermsImperial(this T value) => Energy.FromDecathermsImperial(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? DecathermsImperial(this T? value) where T : struct => Energy.FromDecathermsImperial(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToEnergyExtensions public static Energy DecathermsUs(this T value) => Energy.FromDecathermsUs(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? DecathermsUs(this T? value) where T : struct => Energy.FromDecathermsUs(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToEnergyExtensions public static Energy ElectronVolts(this T value) => Energy.FromElectronVolts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? ElectronVolts(this T? value) where T : struct => Energy.FromElectronVolts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToEnergyExtensions public static Energy Ergs(this T value) => Energy.FromErgs(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? Ergs(this T? value) where T : struct => Energy.FromErgs(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToEnergyExtensions public static Energy FootPounds(this T value) => Energy.FromFootPounds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? FootPounds(this T? value) where T : struct => Energy.FromFootPounds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToEnergyExtensions public static Energy GigabritishThermalUnits(this T value) => Energy.FromGigabritishThermalUnits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? GigabritishThermalUnits(this T? value) where T : struct => Energy.FromGigabritishThermalUnits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToEnergyExtensions public static Energy GigawattHours(this T value) => Energy.FromGigawattHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? GigawattHours(this T? value) where T : struct => Energy.FromGigawattHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToEnergyExtensions public static Energy Joules(this T value) => Energy.FromJoules(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? Joules(this T? value) where T : struct => Energy.FromJoules(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToEnergyExtensions public static Energy KilobritishThermalUnits(this T value) => Energy.FromKilobritishThermalUnits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? KilobritishThermalUnits(this T? value) where T : struct => Energy.FromKilobritishThermalUnits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToEnergyExtensions public static Energy Kilocalories(this T value) => Energy.FromKilocalories(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? Kilocalories(this T? value) where T : struct => Energy.FromKilocalories(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToEnergyExtensions public static Energy Kilojoules(this T value) => Energy.FromKilojoules(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? Kilojoules(this T? value) where T : struct => Energy.FromKilojoules(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToEnergyExtensions public static Energy KilowattHours(this T value) => Energy.FromKilowattHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? KilowattHours(this T? value) where T : struct => Energy.FromKilowattHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToEnergyExtensions public static Energy MegabritishThermalUnits(this T value) => Energy.FromMegabritishThermalUnits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? MegabritishThermalUnits(this T? value) where T : struct => Energy.FromMegabritishThermalUnits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToEnergyExtensions public static Energy Megajoules(this T value) => Energy.FromMegajoules(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? Megajoules(this T? value) where T : struct => Energy.FromMegajoules(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToEnergyExtensions public static Energy MegawattHours(this T value) => Energy.FromMegawattHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? MegawattHours(this T? value) where T : struct => Energy.FromMegawattHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToEnergyExtensions public static Energy ThermsEc(this T value) => Energy.FromThermsEc(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? ThermsEc(this T? value) where T : struct => Energy.FromThermsEc(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToEnergyExtensions public static Energy ThermsImperial(this T value) => Energy.FromThermsImperial(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? ThermsImperial(this T? value) where T : struct => Energy.FromThermsImperial(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToEnergyExtensions public static Energy ThermsUs(this T value) => Energy.FromThermsUs(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? ThermsUs(this T? value) where T : struct => Energy.FromThermsUs(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToEnergyExtensions public static Energy WattHours(this T value) => Energy.FromWattHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? WattHours(this T? value) where T : struct => Energy.FromWattHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToEntropyExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToEntropyExtensions.g.cs index 55060e682f..0c83b6987b 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToEntropyExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToEntropyExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToEntropyExtensions public static Entropy CaloriesPerKelvin(this T value) => Entropy.FromCaloriesPerKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Entropy? CaloriesPerKelvin(this T? value) where T : struct => Entropy.FromCaloriesPerKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToEntropyExtensions public static Entropy JoulesPerDegreeCelsius(this T value) => Entropy.FromJoulesPerDegreeCelsius(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Entropy? JoulesPerDegreeCelsius(this T? value) where T : struct => Entropy.FromJoulesPerDegreeCelsius(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToEntropyExtensions public static Entropy JoulesPerKelvin(this T value) => Entropy.FromJoulesPerKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Entropy? JoulesPerKelvin(this T? value) where T : struct => Entropy.FromJoulesPerKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToEntropyExtensions public static Entropy KilocaloriesPerKelvin(this T value) => Entropy.FromKilocaloriesPerKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Entropy? KilocaloriesPerKelvin(this T? value) where T : struct => Entropy.FromKilocaloriesPerKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToEntropyExtensions public static Entropy KilojoulesPerDegreeCelsius(this T value) => Entropy.FromKilojoulesPerDegreeCelsius(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Entropy? KilojoulesPerDegreeCelsius(this T? value) where T : struct => Entropy.FromKilojoulesPerDegreeCelsius(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToEntropyExtensions public static Entropy KilojoulesPerKelvin(this T value) => Entropy.FromKilojoulesPerKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Entropy? KilojoulesPerKelvin(this T? value) where T : struct => Entropy.FromKilojoulesPerKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToEntropyExtensions public static Entropy MegajoulesPerKelvin(this T value) => Entropy.FromMegajoulesPerKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Entropy? MegajoulesPerKelvin(this T? value) where T : struct => Entropy.FromMegajoulesPerKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToFlowExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToFlowExtensions.g.cs index 9a8c6e4606..6d424f8f7f 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToFlowExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToFlowExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToFlowExtensions public static Flow CentilitersPerMinute(this T value) => Flow.FromCentilitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CentilitersPerMinute(this T? value) where T : struct => Flow.FromCentilitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToFlowExtensions public static Flow CubicDecimetersPerMinute(this T value) => Flow.FromCubicDecimetersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicDecimetersPerMinute(this T? value) where T : struct => Flow.FromCubicDecimetersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToFlowExtensions public static Flow CubicFeetPerHour(this T value) => Flow.FromCubicFeetPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicFeetPerHour(this T? value) where T : struct => Flow.FromCubicFeetPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToFlowExtensions public static Flow CubicFeetPerMinute(this T value) => Flow.FromCubicFeetPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicFeetPerMinute(this T? value) where T : struct => Flow.FromCubicFeetPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToFlowExtensions public static Flow CubicFeetPerSecond(this T value) => Flow.FromCubicFeetPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicFeetPerSecond(this T? value) where T : struct => Flow.FromCubicFeetPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToFlowExtensions public static Flow CubicMetersPerHour(this T value) => Flow.FromCubicMetersPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicMetersPerHour(this T? value) where T : struct => Flow.FromCubicMetersPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToFlowExtensions public static Flow CubicMetersPerMinute(this T value) => Flow.FromCubicMetersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicMetersPerMinute(this T? value) where T : struct => Flow.FromCubicMetersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToFlowExtensions public static Flow CubicMetersPerSecond(this T value) => Flow.FromCubicMetersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicMetersPerSecond(this T? value) where T : struct => Flow.FromCubicMetersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToFlowExtensions public static Flow CubicYardsPerHour(this T value) => Flow.FromCubicYardsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicYardsPerHour(this T? value) where T : struct => Flow.FromCubicYardsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToFlowExtensions public static Flow CubicYardsPerMinute(this T value) => Flow.FromCubicYardsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicYardsPerMinute(this T? value) where T : struct => Flow.FromCubicYardsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToFlowExtensions public static Flow CubicYardsPerSecond(this T value) => Flow.FromCubicYardsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? CubicYardsPerSecond(this T? value) where T : struct => Flow.FromCubicYardsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToFlowExtensions public static Flow DecilitersPerMinute(this T value) => Flow.FromDecilitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? DecilitersPerMinute(this T? value) where T : struct => Flow.FromDecilitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToFlowExtensions public static Flow KilolitersPerMinute(this T value) => Flow.FromKilolitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? KilolitersPerMinute(this T? value) where T : struct => Flow.FromKilolitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToFlowExtensions public static Flow LitersPerHour(this T value) => Flow.FromLitersPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? LitersPerHour(this T? value) where T : struct => Flow.FromLitersPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToFlowExtensions public static Flow LitersPerMinute(this T value) => Flow.FromLitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? LitersPerMinute(this T? value) where T : struct => Flow.FromLitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToFlowExtensions public static Flow LitersPerSecond(this T value) => Flow.FromLitersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? LitersPerSecond(this T? value) where T : struct => Flow.FromLitersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToFlowExtensions public static Flow MicrolitersPerMinute(this T value) => Flow.FromMicrolitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? MicrolitersPerMinute(this T? value) where T : struct => Flow.FromMicrolitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToFlowExtensions public static Flow MillilitersPerMinute(this T value) => Flow.FromMillilitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? MillilitersPerMinute(this T? value) where T : struct => Flow.FromMillilitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToFlowExtensions public static Flow MillionUsGallonsPerDay(this T value) => Flow.FromMillionUsGallonsPerDay(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? MillionUsGallonsPerDay(this T? value) where T : struct => Flow.FromMillionUsGallonsPerDay(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToFlowExtensions public static Flow NanolitersPerMinute(this T value) => Flow.FromNanolitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? NanolitersPerMinute(this T? value) where T : struct => Flow.FromNanolitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToFlowExtensions public static Flow OilBarrelsPerDay(this T value) => Flow.FromOilBarrelsPerDay(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? OilBarrelsPerDay(this T? value) where T : struct => Flow.FromOilBarrelsPerDay(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToFlowExtensions public static Flow UsGallonsPerHour(this T value) => Flow.FromUsGallonsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? UsGallonsPerHour(this T? value) where T : struct => Flow.FromUsGallonsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToFlowExtensions public static Flow UsGallonsPerMinute(this T value) => Flow.FromUsGallonsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? UsGallonsPerMinute(this T? value) where T : struct => Flow.FromUsGallonsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToFlowExtensions public static Flow UsGallonsPerSecond(this T value) => Flow.FromUsGallonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? UsGallonsPerSecond(this T? value) where T : struct => Flow.FromUsGallonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToForceChangeRateExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToForceChangeRateExtensions.g.cs index 60413711fd..4e9fd9075b 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToForceChangeRateExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToForceChangeRateExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate CentinewtonsPerSecond(this T value) => ForceChangeRate.FromCentinewtonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? CentinewtonsPerSecond(this T? value) where T : struct => ForceChangeRate.FromCentinewtonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate DecanewtonsPerMinute(this T value) => ForceChangeRate.FromDecanewtonsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? DecanewtonsPerMinute(this T? value) where T : struct => ForceChangeRate.FromDecanewtonsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate DecanewtonsPerSecond(this T value) => ForceChangeRate.FromDecanewtonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? DecanewtonsPerSecond(this T? value) where T : struct => ForceChangeRate.FromDecanewtonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate DecinewtonsPerSecond(this T value) => ForceChangeRate.FromDecinewtonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? DecinewtonsPerSecond(this T? value) where T : struct => ForceChangeRate.FromDecinewtonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate KilonewtonsPerMinute(this T value) => ForceChangeRate.FromKilonewtonsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? KilonewtonsPerMinute(this T? value) where T : struct => ForceChangeRate.FromKilonewtonsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate KilonewtonsPerSecond(this T value) => ForceChangeRate.FromKilonewtonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? KilonewtonsPerSecond(this T? value) where T : struct => ForceChangeRate.FromKilonewtonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate MicronewtonsPerSecond(this T value) => ForceChangeRate.FromMicronewtonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? MicronewtonsPerSecond(this T? value) where T : struct => ForceChangeRate.FromMicronewtonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate MillinewtonsPerSecond(this T value) => ForceChangeRate.FromMillinewtonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? MillinewtonsPerSecond(this T? value) where T : struct => ForceChangeRate.FromMillinewtonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate NanonewtonsPerSecond(this T value) => ForceChangeRate.FromNanonewtonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? NanonewtonsPerSecond(this T? value) where T : struct => ForceChangeRate.FromNanonewtonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate NewtonsPerMinute(this T value) => ForceChangeRate.FromNewtonsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? NewtonsPerMinute(this T? value) where T : struct => ForceChangeRate.FromNewtonsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToForceChangeRateExtensions public static ForceChangeRate NewtonsPerSecond(this T value) => ForceChangeRate.FromNewtonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? NewtonsPerSecond(this T? value) where T : struct => ForceChangeRate.FromNewtonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToForceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToForceExtensions.g.cs index 212e668e8d..da7ac9dba4 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToForceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToForceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToForceExtensions public static Force Decanewtons(this T value) => Force.FromDecanewtons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? Decanewtons(this T? value) where T : struct => Force.FromDecanewtons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToForceExtensions public static Force Dyne(this T value) => Force.FromDyne(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? Dyne(this T? value) where T : struct => Force.FromDyne(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToForceExtensions public static Force KilogramsForce(this T value) => Force.FromKilogramsForce(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? KilogramsForce(this T? value) where T : struct => Force.FromKilogramsForce(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToForceExtensions public static Force Kilonewtons(this T value) => Force.FromKilonewtons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? Kilonewtons(this T? value) where T : struct => Force.FromKilonewtons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToForceExtensions public static Force KiloPonds(this T value) => Force.FromKiloPonds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? KiloPonds(this T? value) where T : struct => Force.FromKiloPonds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToForceExtensions public static Force Meganewtons(this T value) => Force.FromMeganewtons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? Meganewtons(this T? value) where T : struct => Force.FromMeganewtons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToForceExtensions public static Force Newtons(this T value) => Force.FromNewtons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? Newtons(this T? value) where T : struct => Force.FromNewtons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToForceExtensions public static Force Poundals(this T value) => Force.FromPoundals(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? Poundals(this T? value) where T : struct => Force.FromPoundals(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToForceExtensions public static Force PoundsForce(this T value) => Force.FromPoundsForce(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? PoundsForce(this T? value) where T : struct => Force.FromPoundsForce(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToForceExtensions public static Force TonnesForce(this T value) => Force.FromTonnesForce(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? TonnesForce(this T? value) where T : struct => Force.FromTonnesForce(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToForcePerLengthExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToForcePerLengthExtensions.g.cs index 4b75b2c874..6db097dcd1 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToForcePerLengthExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToForcePerLengthExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToForcePerLengthExtensions public static ForcePerLength CentinewtonsPerMeter(this T value) => ForcePerLength.FromCentinewtonsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? CentinewtonsPerMeter(this T? value) where T : struct => ForcePerLength.FromCentinewtonsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToForcePerLengthExtensions public static ForcePerLength DecinewtonsPerMeter(this T value) => ForcePerLength.FromDecinewtonsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? DecinewtonsPerMeter(this T? value) where T : struct => ForcePerLength.FromDecinewtonsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToForcePerLengthExtensions public static ForcePerLength KilogramsForcePerMeter(this T value) => ForcePerLength.FromKilogramsForcePerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? KilogramsForcePerMeter(this T? value) where T : struct => ForcePerLength.FromKilogramsForcePerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToForcePerLengthExtensions public static ForcePerLength KilonewtonsPerMeter(this T value) => ForcePerLength.FromKilonewtonsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? KilonewtonsPerMeter(this T? value) where T : struct => ForcePerLength.FromKilonewtonsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToForcePerLengthExtensions public static ForcePerLength MeganewtonsPerMeter(this T value) => ForcePerLength.FromMeganewtonsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? MeganewtonsPerMeter(this T? value) where T : struct => ForcePerLength.FromMeganewtonsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToForcePerLengthExtensions public static ForcePerLength MicronewtonsPerMeter(this T value) => ForcePerLength.FromMicronewtonsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? MicronewtonsPerMeter(this T? value) where T : struct => ForcePerLength.FromMicronewtonsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToForcePerLengthExtensions public static ForcePerLength MillinewtonsPerMeter(this T value) => ForcePerLength.FromMillinewtonsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? MillinewtonsPerMeter(this T? value) where T : struct => ForcePerLength.FromMillinewtonsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToForcePerLengthExtensions public static ForcePerLength NanonewtonsPerMeter(this T value) => ForcePerLength.FromNanonewtonsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? NanonewtonsPerMeter(this T? value) where T : struct => ForcePerLength.FromNanonewtonsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToForcePerLengthExtensions public static ForcePerLength NewtonsPerMeter(this T value) => ForcePerLength.FromNewtonsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? NewtonsPerMeter(this T? value) where T : struct => ForcePerLength.FromNewtonsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToFrequencyExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToFrequencyExtensions.g.cs index 3d566e514a..d9628a6665 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToFrequencyExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToFrequencyExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToFrequencyExtensions public static Frequency CyclesPerHour(this T value) => Frequency.FromCyclesPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Frequency? CyclesPerHour(this T? value) where T : struct => Frequency.FromCyclesPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToFrequencyExtensions public static Frequency CyclesPerMinute(this T value) => Frequency.FromCyclesPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Frequency? CyclesPerMinute(this T? value) where T : struct => Frequency.FromCyclesPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToFrequencyExtensions public static Frequency Gigahertz(this T value) => Frequency.FromGigahertz(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Frequency? Gigahertz(this T? value) where T : struct => Frequency.FromGigahertz(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToFrequencyExtensions public static Frequency Hertz(this T value) => Frequency.FromHertz(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Frequency? Hertz(this T? value) where T : struct => Frequency.FromHertz(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToFrequencyExtensions public static Frequency Kilohertz(this T value) => Frequency.FromKilohertz(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Frequency? Kilohertz(this T? value) where T : struct => Frequency.FromKilohertz(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToFrequencyExtensions public static Frequency Megahertz(this T value) => Frequency.FromMegahertz(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Frequency? Megahertz(this T? value) where T : struct => Frequency.FromMegahertz(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToFrequencyExtensions public static Frequency Terahertz(this T value) => Frequency.FromTerahertz(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Frequency? Terahertz(this T? value) where T : struct => Frequency.FromTerahertz(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToHeatFluxExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToHeatFluxExtensions.g.cs index a9bd3a8f1d..d351423200 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToHeatFluxExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToHeatFluxExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux BtusPerHourSquareFoot(this T value) => HeatFlux.FromBtusPerHourSquareFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? BtusPerHourSquareFoot(this T? value) where T : struct => HeatFlux.FromBtusPerHourSquareFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux BtusPerMinuteSquareFoot(this T value) => HeatFlux.FromBtusPerMinuteSquareFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? BtusPerMinuteSquareFoot(this T? value) where T : struct => HeatFlux.FromBtusPerMinuteSquareFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux BtusPerSecondSquareFoot(this T value) => HeatFlux.FromBtusPerSecondSquareFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? BtusPerSecondSquareFoot(this T? value) where T : struct => HeatFlux.FromBtusPerSecondSquareFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux BtusPerSecondSquareInch(this T value) => HeatFlux.FromBtusPerSecondSquareInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? BtusPerSecondSquareInch(this T? value) where T : struct => HeatFlux.FromBtusPerSecondSquareInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux CaloriesPerSecondSquareCentimeter(this T value) => HeatFlux.FromCaloriesPerSecondSquareCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? CaloriesPerSecondSquareCentimeter(this T? value) where T : struct => HeatFlux.FromCaloriesPerSecondSquareCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux CentiwattsPerSquareMeter(this T value) => HeatFlux.FromCentiwattsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? CentiwattsPerSquareMeter(this T? value) where T : struct => HeatFlux.FromCentiwattsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux DeciwattsPerSquareMeter(this T value) => HeatFlux.FromDeciwattsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? DeciwattsPerSquareMeter(this T? value) where T : struct => HeatFlux.FromDeciwattsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux KilocaloriesPerHourSquareMeter(this T value) => HeatFlux.FromKilocaloriesPerHourSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? KilocaloriesPerHourSquareMeter(this T? value) where T : struct => HeatFlux.FromKilocaloriesPerHourSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux KilocaloriesPerSecondSquareCentimeter(this T value) => HeatFlux.FromKilocaloriesPerSecondSquareCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? KilocaloriesPerSecondSquareCentimeter(this T? value) where T : struct => HeatFlux.FromKilocaloriesPerSecondSquareCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux KilowattsPerSquareMeter(this T value) => HeatFlux.FromKilowattsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? KilowattsPerSquareMeter(this T? value) where T : struct => HeatFlux.FromKilowattsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux MicrowattsPerSquareMeter(this T value) => HeatFlux.FromMicrowattsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? MicrowattsPerSquareMeter(this T? value) where T : struct => HeatFlux.FromMicrowattsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux MilliwattsPerSquareMeter(this T value) => HeatFlux.FromMilliwattsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? MilliwattsPerSquareMeter(this T? value) where T : struct => HeatFlux.FromMilliwattsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux NanowattsPerSquareMeter(this T value) => HeatFlux.FromNanowattsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? NanowattsPerSquareMeter(this T? value) where T : struct => HeatFlux.FromNanowattsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux WattsPerSquareFoot(this T value) => HeatFlux.FromWattsPerSquareFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? WattsPerSquareFoot(this T? value) where T : struct => HeatFlux.FromWattsPerSquareFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux WattsPerSquareInch(this T value) => HeatFlux.FromWattsPerSquareInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? WattsPerSquareInch(this T? value) where T : struct => HeatFlux.FromWattsPerSquareInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToHeatFluxExtensions public static HeatFlux WattsPerSquareMeter(this T value) => HeatFlux.FromWattsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? WattsPerSquareMeter(this T? value) where T : struct => HeatFlux.FromWattsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToHeatTransferCoefficientExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToHeatTransferCoefficientExtensions.g.cs index 7dbf5affec..95b2497adf 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToHeatTransferCoefficientExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToHeatTransferCoefficientExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToHeatTransferCoefficientExtensions public static HeatTransferCoefficient WattsPerSquareMeterCelsius(this T value) => HeatTransferCoefficient.FromWattsPerSquareMeterCelsius(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatTransferCoefficient? WattsPerSquareMeterCelsius(this T? value) where T : struct => HeatTransferCoefficient.FromWattsPerSquareMeterCelsius(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToHeatTransferCoefficientExtensions public static HeatTransferCoefficient WattsPerSquareMeterKelvin(this T value) => HeatTransferCoefficient.FromWattsPerSquareMeterKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatTransferCoefficient? WattsPerSquareMeterKelvin(this T? value) where T : struct => HeatTransferCoefficient.FromWattsPerSquareMeterKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToIlluminanceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToIlluminanceExtensions.g.cs index c1d0e8f863..f65660e24d 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToIlluminanceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToIlluminanceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToIlluminanceExtensions public static Illuminance Kilolux(this T value) => Illuminance.FromKilolux(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Illuminance? Kilolux(this T? value) where T : struct => Illuminance.FromKilolux(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToIlluminanceExtensions public static Illuminance Lux(this T value) => Illuminance.FromLux(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Illuminance? Lux(this T? value) where T : struct => Illuminance.FromLux(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToIlluminanceExtensions public static Illuminance Megalux(this T value) => Illuminance.FromMegalux(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Illuminance? Megalux(this T? value) where T : struct => Illuminance.FromMegalux(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToIlluminanceExtensions public static Illuminance Millilux(this T value) => Illuminance.FromMillilux(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Illuminance? Millilux(this T? value) where T : struct => Illuminance.FromMillilux(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToInformationExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToInformationExtensions.g.cs index a7bbb56ebf..e3e9b1e43e 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToInformationExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToInformationExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToInformationExtensions public static Information Bits(this T value) => Information.FromBits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Bits(this T? value) where T : struct => Information.FromBits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToInformationExtensions public static Information Bytes(this T value) => Information.FromBytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Bytes(this T? value) where T : struct => Information.FromBytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToInformationExtensions public static Information Exabits(this T value) => Information.FromExabits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Exabits(this T? value) where T : struct => Information.FromExabits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToInformationExtensions public static Information Exabytes(this T value) => Information.FromExabytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Exabytes(this T? value) where T : struct => Information.FromExabytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToInformationExtensions public static Information Exbibits(this T value) => Information.FromExbibits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Exbibits(this T? value) where T : struct => Information.FromExbibits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToInformationExtensions public static Information Exbibytes(this T value) => Information.FromExbibytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Exbibytes(this T? value) where T : struct => Information.FromExbibytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToInformationExtensions public static Information Gibibits(this T value) => Information.FromGibibits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Gibibits(this T? value) where T : struct => Information.FromGibibits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToInformationExtensions public static Information Gibibytes(this T value) => Information.FromGibibytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Gibibytes(this T? value) where T : struct => Information.FromGibibytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToInformationExtensions public static Information Gigabits(this T value) => Information.FromGigabits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Gigabits(this T? value) where T : struct => Information.FromGigabits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToInformationExtensions public static Information Gigabytes(this T value) => Information.FromGigabytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Gigabytes(this T? value) where T : struct => Information.FromGigabytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToInformationExtensions public static Information Kibibits(this T value) => Information.FromKibibits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Kibibits(this T? value) where T : struct => Information.FromKibibits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToInformationExtensions public static Information Kibibytes(this T value) => Information.FromKibibytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Kibibytes(this T? value) where T : struct => Information.FromKibibytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToInformationExtensions public static Information Kilobits(this T value) => Information.FromKilobits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Kilobits(this T? value) where T : struct => Information.FromKilobits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToInformationExtensions public static Information Kilobytes(this T value) => Information.FromKilobytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Kilobytes(this T? value) where T : struct => Information.FromKilobytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToInformationExtensions public static Information Mebibits(this T value) => Information.FromMebibits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Mebibits(this T? value) where T : struct => Information.FromMebibits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToInformationExtensions public static Information Mebibytes(this T value) => Information.FromMebibytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Mebibytes(this T? value) where T : struct => Information.FromMebibytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToInformationExtensions public static Information Megabits(this T value) => Information.FromMegabits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Megabits(this T? value) where T : struct => Information.FromMegabits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToInformationExtensions public static Information Megabytes(this T value) => Information.FromMegabytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Megabytes(this T? value) where T : struct => Information.FromMegabytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToInformationExtensions public static Information Pebibits(this T value) => Information.FromPebibits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Pebibits(this T? value) where T : struct => Information.FromPebibits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToInformationExtensions public static Information Pebibytes(this T value) => Information.FromPebibytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Pebibytes(this T? value) where T : struct => Information.FromPebibytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToInformationExtensions public static Information Petabits(this T value) => Information.FromPetabits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Petabits(this T? value) where T : struct => Information.FromPetabits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToInformationExtensions public static Information Petabytes(this T value) => Information.FromPetabytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Petabytes(this T? value) where T : struct => Information.FromPetabytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToInformationExtensions public static Information Tebibits(this T value) => Information.FromTebibits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Tebibits(this T? value) where T : struct => Information.FromTebibits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToInformationExtensions public static Information Tebibytes(this T value) => Information.FromTebibytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Tebibytes(this T? value) where T : struct => Information.FromTebibytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -290,6 +314,7 @@ public static class NumberToInformationExtensions public static Information Terabits(this T value) => Information.FromTerabits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Terabits(this T? value) where T : struct => Information.FromTerabits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -300,6 +325,7 @@ public static class NumberToInformationExtensions public static Information Terabytes(this T value) => Information.FromTerabytes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? Terabytes(this T? value) where T : struct => Information.FromTerabytes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToIrradianceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToIrradianceExtensions.g.cs index 27c0fac8ae..6102ebb51b 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToIrradianceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToIrradianceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToIrradianceExtensions public static Irradiance KilowattsPerSquareMeter(this T value) => Irradiance.FromKilowattsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Irradiance? KilowattsPerSquareMeter(this T? value) where T : struct => Irradiance.FromKilowattsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToIrradianceExtensions public static Irradiance WattsPerSquareMeter(this T value) => Irradiance.FromWattsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Irradiance? WattsPerSquareMeter(this T? value) where T : struct => Irradiance.FromWattsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToIrradiationExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToIrradiationExtensions.g.cs index da8eeedfd7..790e51aea5 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToIrradiationExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToIrradiationExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToIrradiationExtensions public static Irradiation JoulesPerSquareMeter(this T value) => Irradiation.FromJoulesPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Irradiation? JoulesPerSquareMeter(this T? value) where T : struct => Irradiation.FromJoulesPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToIrradiationExtensions public static Irradiation KilowattHoursPerSquareMeter(this T value) => Irradiation.FromKilowattHoursPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Irradiation? KilowattHoursPerSquareMeter(this T? value) where T : struct => Irradiation.FromKilowattHoursPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToIrradiationExtensions public static Irradiation WattHoursPerSquareMeter(this T value) => Irradiation.FromWattHoursPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Irradiation? WattHoursPerSquareMeter(this T? value) where T : struct => Irradiation.FromWattHoursPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToKinematicViscosityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToKinematicViscosityExtensions.g.cs index a9b8bdfe3c..ba6654d1d2 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToKinematicViscosityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToKinematicViscosityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToKinematicViscosityExtensions public static KinematicViscosity Centistokes(this T value) => KinematicViscosity.FromCentistokes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static KinematicViscosity? Centistokes(this T? value) where T : struct => KinematicViscosity.FromCentistokes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToKinematicViscosityExtensions public static KinematicViscosity Decistokes(this T value) => KinematicViscosity.FromDecistokes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static KinematicViscosity? Decistokes(this T? value) where T : struct => KinematicViscosity.FromDecistokes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToKinematicViscosityExtensions public static KinematicViscosity Kilostokes(this T value) => KinematicViscosity.FromKilostokes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static KinematicViscosity? Kilostokes(this T? value) where T : struct => KinematicViscosity.FromKilostokes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToKinematicViscosityExtensions public static KinematicViscosity Microstokes(this T value) => KinematicViscosity.FromMicrostokes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static KinematicViscosity? Microstokes(this T? value) where T : struct => KinematicViscosity.FromMicrostokes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToKinematicViscosityExtensions public static KinematicViscosity Millistokes(this T value) => KinematicViscosity.FromMillistokes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static KinematicViscosity? Millistokes(this T? value) where T : struct => KinematicViscosity.FromMillistokes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToKinematicViscosityExtensions public static KinematicViscosity Nanostokes(this T value) => KinematicViscosity.FromNanostokes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static KinematicViscosity? Nanostokes(this T? value) where T : struct => KinematicViscosity.FromNanostokes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToKinematicViscosityExtensions public static KinematicViscosity SquareMetersPerSecond(this T value) => KinematicViscosity.FromSquareMetersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static KinematicViscosity? SquareMetersPerSecond(this T? value) where T : struct => KinematicViscosity.FromSquareMetersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToKinematicViscosityExtensions public static KinematicViscosity Stokes(this T value) => KinematicViscosity.FromStokes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static KinematicViscosity? Stokes(this T? value) where T : struct => KinematicViscosity.FromStokes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLapseRateExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLapseRateExtensions.g.cs index 014fa51c66..591ef48585 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLapseRateExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLapseRateExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToLapseRateExtensions public static LapseRate DegreesCelciusPerKilometer(this T value) => LapseRate.FromDegreesCelciusPerKilometer(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LapseRate? DegreesCelciusPerKilometer(this T? value) where T : struct => LapseRate.FromDegreesCelciusPerKilometer(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLengthExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLengthExtensions.g.cs index 48879aa88f..0b2b14e3a0 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLengthExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLengthExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToLengthExtensions public static Length Centimeters(this T value) => Length.FromCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Centimeters(this T? value) where T : struct => Length.FromCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToLengthExtensions public static Length Decimeters(this T value) => Length.FromDecimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Decimeters(this T? value) where T : struct => Length.FromDecimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToLengthExtensions public static Length DtpPicas(this T value) => Length.FromDtpPicas(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? DtpPicas(this T? value) where T : struct => Length.FromDtpPicas(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToLengthExtensions public static Length DtpPoints(this T value) => Length.FromDtpPoints(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? DtpPoints(this T? value) where T : struct => Length.FromDtpPoints(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToLengthExtensions public static Length Fathoms(this T value) => Length.FromFathoms(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Fathoms(this T? value) where T : struct => Length.FromFathoms(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToLengthExtensions public static Length Feet(this T value) => Length.FromFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Feet(this T? value) where T : struct => Length.FromFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToLengthExtensions public static Length Inches(this T value) => Length.FromInches(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Inches(this T? value) where T : struct => Length.FromInches(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToLengthExtensions public static Length Kilometers(this T value) => Length.FromKilometers(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Kilometers(this T? value) where T : struct => Length.FromKilometers(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToLengthExtensions public static Length Meters(this T value) => Length.FromMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Meters(this T? value) where T : struct => Length.FromMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToLengthExtensions public static Length Microinches(this T value) => Length.FromMicroinches(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Microinches(this T? value) where T : struct => Length.FromMicroinches(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToLengthExtensions public static Length Micrometers(this T value) => Length.FromMicrometers(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Micrometers(this T? value) where T : struct => Length.FromMicrometers(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToLengthExtensions public static Length Mils(this T value) => Length.FromMils(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Mils(this T? value) where T : struct => Length.FromMils(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToLengthExtensions public static Length Miles(this T value) => Length.FromMiles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Miles(this T? value) where T : struct => Length.FromMiles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToLengthExtensions public static Length Millimeters(this T value) => Length.FromMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Millimeters(this T? value) where T : struct => Length.FromMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToLengthExtensions public static Length Nanometers(this T value) => Length.FromNanometers(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Nanometers(this T? value) where T : struct => Length.FromNanometers(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToLengthExtensions public static Length NauticalMiles(this T value) => Length.FromNauticalMiles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? NauticalMiles(this T? value) where T : struct => Length.FromNauticalMiles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToLengthExtensions public static Length PrinterPicas(this T value) => Length.FromPrinterPicas(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? PrinterPicas(this T? value) where T : struct => Length.FromPrinterPicas(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToLengthExtensions public static Length PrinterPoints(this T value) => Length.FromPrinterPoints(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? PrinterPoints(this T? value) where T : struct => Length.FromPrinterPoints(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToLengthExtensions public static Length Shackles(this T value) => Length.FromShackles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Shackles(this T? value) where T : struct => Length.FromShackles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToLengthExtensions public static Length Twips(this T value) => Length.FromTwips(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Twips(this T? value) where T : struct => Length.FromTwips(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToLengthExtensions public static Length UsSurveyFeet(this T value) => Length.FromUsSurveyFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? UsSurveyFeet(this T? value) where T : struct => Length.FromUsSurveyFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToLengthExtensions public static Length Yards(this T value) => Length.FromYards(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? Yards(this T? value) where T : struct => Length.FromYards(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLevelExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLevelExtensions.g.cs index 50a683a876..f0d7aed5c8 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLevelExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLevelExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToLevelExtensions public static Level Decibels(this T value) => Level.FromDecibels(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Level? Decibels(this T? value) where T : struct => Level.FromDecibels(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToLevelExtensions public static Level Nepers(this T value) => Level.FromNepers(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Level? Nepers(this T? value) where T : struct => Level.FromNepers(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLinearDensityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLinearDensityExtensions.g.cs index 9be30d8b35..9481175332 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLinearDensityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLinearDensityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToLinearDensityExtensions public static LinearDensity GramsPerMeter(this T value) => LinearDensity.FromGramsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LinearDensity? GramsPerMeter(this T? value) where T : struct => LinearDensity.FromGramsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToLinearDensityExtensions public static LinearDensity KilogramsPerMeter(this T value) => LinearDensity.FromKilogramsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LinearDensity? KilogramsPerMeter(this T? value) where T : struct => LinearDensity.FromKilogramsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToLinearDensityExtensions public static LinearDensity PoundsPerFoot(this T value) => LinearDensity.FromPoundsPerFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LinearDensity? PoundsPerFoot(this T? value) where T : struct => LinearDensity.FromPoundsPerFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLuminousFluxExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLuminousFluxExtensions.g.cs index 1ca1fcd729..3db0da00d8 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLuminousFluxExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLuminousFluxExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToLuminousFluxExtensions public static LuminousFlux Lumens(this T value) => LuminousFlux.FromLumens(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LuminousFlux? Lumens(this T? value) where T : struct => LuminousFlux.FromLumens(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLuminousIntensityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLuminousIntensityExtensions.g.cs index 60ff83e0ab..79c9c9cd1b 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToLuminousIntensityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToLuminousIntensityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToLuminousIntensityExtensions public static LuminousIntensity Candela(this T value) => LuminousIntensity.FromCandela(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LuminousIntensity? Candela(this T? value) where T : struct => LuminousIntensity.FromCandela(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagneticFieldExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagneticFieldExtensions.g.cs index bd2b39134f..b3484f756b 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagneticFieldExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagneticFieldExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMagneticFieldExtensions public static MagneticField Teslas(this T value) => MagneticField.FromTeslas(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MagneticField? Teslas(this T? value) where T : struct => MagneticField.FromTeslas(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagneticFluxExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagneticFluxExtensions.g.cs index eaba5fbcaf..935ecb2375 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagneticFluxExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagneticFluxExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMagneticFluxExtensions public static MagneticFlux Webers(this T value) => MagneticFlux.FromWebers(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MagneticFlux? Webers(this T? value) where T : struct => MagneticFlux.FromWebers(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagnetizationExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagnetizationExtensions.g.cs index a3b5713c73..cce5daf093 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagnetizationExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMagnetizationExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMagnetizationExtensions public static Magnetization AmperesPerMeter(this T value) => Magnetization.FromAmperesPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Magnetization? AmperesPerMeter(this T? value) where T : struct => Magnetization.FromAmperesPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassExtensions.g.cs index ede89da9e7..1d75e9f3e0 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMassExtensions public static Mass Centigrams(this T value) => Mass.FromCentigrams(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Centigrams(this T? value) where T : struct => Mass.FromCentigrams(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToMassExtensions public static Mass Decagrams(this T value) => Mass.FromDecagrams(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Decagrams(this T? value) where T : struct => Mass.FromDecagrams(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToMassExtensions public static Mass Decigrams(this T value) => Mass.FromDecigrams(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Decigrams(this T? value) where T : struct => Mass.FromDecigrams(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToMassExtensions public static Mass Grams(this T value) => Mass.FromGrams(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Grams(this T? value) where T : struct => Mass.FromGrams(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToMassExtensions public static Mass Hectograms(this T value) => Mass.FromHectograms(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Hectograms(this T? value) where T : struct => Mass.FromHectograms(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToMassExtensions public static Mass Kilograms(this T value) => Mass.FromKilograms(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Kilograms(this T? value) where T : struct => Mass.FromKilograms(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToMassExtensions public static Mass Kilopounds(this T value) => Mass.FromKilopounds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Kilopounds(this T? value) where T : struct => Mass.FromKilopounds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToMassExtensions public static Mass Kilotonnes(this T value) => Mass.FromKilotonnes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Kilotonnes(this T? value) where T : struct => Mass.FromKilotonnes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToMassExtensions public static Mass LongHundredweight(this T value) => Mass.FromLongHundredweight(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? LongHundredweight(this T? value) where T : struct => Mass.FromLongHundredweight(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToMassExtensions public static Mass LongTons(this T value) => Mass.FromLongTons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? LongTons(this T? value) where T : struct => Mass.FromLongTons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToMassExtensions public static Mass Megapounds(this T value) => Mass.FromMegapounds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Megapounds(this T? value) where T : struct => Mass.FromMegapounds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToMassExtensions public static Mass Megatonnes(this T value) => Mass.FromMegatonnes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Megatonnes(this T? value) where T : struct => Mass.FromMegatonnes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToMassExtensions public static Mass Micrograms(this T value) => Mass.FromMicrograms(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Micrograms(this T? value) where T : struct => Mass.FromMicrograms(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToMassExtensions public static Mass Milligrams(this T value) => Mass.FromMilligrams(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Milligrams(this T? value) where T : struct => Mass.FromMilligrams(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToMassExtensions public static Mass Nanograms(this T value) => Mass.FromNanograms(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Nanograms(this T? value) where T : struct => Mass.FromNanograms(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToMassExtensions public static Mass Ounces(this T value) => Mass.FromOunces(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Ounces(this T? value) where T : struct => Mass.FromOunces(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToMassExtensions public static Mass Pounds(this T value) => Mass.FromPounds(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Pounds(this T? value) where T : struct => Mass.FromPounds(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToMassExtensions public static Mass ShortHundredweight(this T value) => Mass.FromShortHundredweight(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? ShortHundredweight(this T? value) where T : struct => Mass.FromShortHundredweight(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToMassExtensions public static Mass ShortTons(this T value) => Mass.FromShortTons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? ShortTons(this T? value) where T : struct => Mass.FromShortTons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToMassExtensions public static Mass Stone(this T value) => Mass.FromStone(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Stone(this T? value) where T : struct => Mass.FromStone(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToMassExtensions public static Mass Tonnes(this T value) => Mass.FromTonnes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? Tonnes(this T? value) where T : struct => Mass.FromTonnes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassFlowExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassFlowExtensions.g.cs index bf79e00709..133b50a4eb 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassFlowExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassFlowExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMassFlowExtensions public static MassFlow CentigramsPerSecond(this T value) => MassFlow.FromCentigramsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? CentigramsPerSecond(this T? value) where T : struct => MassFlow.FromCentigramsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToMassFlowExtensions public static MassFlow DecagramsPerSecond(this T value) => MassFlow.FromDecagramsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? DecagramsPerSecond(this T? value) where T : struct => MassFlow.FromDecagramsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToMassFlowExtensions public static MassFlow DecigramsPerSecond(this T value) => MassFlow.FromDecigramsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? DecigramsPerSecond(this T? value) where T : struct => MassFlow.FromDecigramsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToMassFlowExtensions public static MassFlow GramsPerSecond(this T value) => MassFlow.FromGramsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? GramsPerSecond(this T? value) where T : struct => MassFlow.FromGramsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToMassFlowExtensions public static MassFlow HectogramsPerSecond(this T value) => MassFlow.FromHectogramsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? HectogramsPerSecond(this T? value) where T : struct => MassFlow.FromHectogramsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToMassFlowExtensions public static MassFlow KilogramsPerHour(this T value) => MassFlow.FromKilogramsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? KilogramsPerHour(this T? value) where T : struct => MassFlow.FromKilogramsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToMassFlowExtensions public static MassFlow KilogramsPerSecond(this T value) => MassFlow.FromKilogramsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? KilogramsPerSecond(this T? value) where T : struct => MassFlow.FromKilogramsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToMassFlowExtensions public static MassFlow MegapoundsPerHour(this T value) => MassFlow.FromMegapoundsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? MegapoundsPerHour(this T? value) where T : struct => MassFlow.FromMegapoundsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToMassFlowExtensions public static MassFlow MicrogramsPerSecond(this T value) => MassFlow.FromMicrogramsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? MicrogramsPerSecond(this T? value) where T : struct => MassFlow.FromMicrogramsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToMassFlowExtensions public static MassFlow MilligramsPerSecond(this T value) => MassFlow.FromMilligramsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? MilligramsPerSecond(this T? value) where T : struct => MassFlow.FromMilligramsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToMassFlowExtensions public static MassFlow NanogramsPerSecond(this T value) => MassFlow.FromNanogramsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? NanogramsPerSecond(this T? value) where T : struct => MassFlow.FromNanogramsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToMassFlowExtensions public static MassFlow PoundsPerHour(this T value) => MassFlow.FromPoundsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? PoundsPerHour(this T? value) where T : struct => MassFlow.FromPoundsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToMassFlowExtensions public static MassFlow ShortTonsPerHour(this T value) => MassFlow.FromShortTonsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? ShortTonsPerHour(this T? value) where T : struct => MassFlow.FromShortTonsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToMassFlowExtensions public static MassFlow TonnesPerDay(this T value) => MassFlow.FromTonnesPerDay(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? TonnesPerDay(this T? value) where T : struct => MassFlow.FromTonnesPerDay(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToMassFlowExtensions public static MassFlow TonnesPerHour(this T value) => MassFlow.FromTonnesPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? TonnesPerHour(this T? value) where T : struct => MassFlow.FromTonnesPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassFluxExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassFluxExtensions.g.cs index 37b736b5bf..08731e83a2 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassFluxExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassFluxExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMassFluxExtensions public static MassFlux GramsPerSecondPerSquareMeter(this T value) => MassFlux.FromGramsPerSecondPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlux? GramsPerSecondPerSquareMeter(this T? value) where T : struct => MassFlux.FromGramsPerSecondPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToMassFluxExtensions public static MassFlux KilogramsPerSecondPerSquareMeter(this T value) => MassFlux.FromKilogramsPerSecondPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlux? KilogramsPerSecondPerSquareMeter(this T? value) where T : struct => MassFlux.FromKilogramsPerSecondPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassMomentOfInertiaExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassMomentOfInertiaExtensions.g.cs index 0e88fc2426..0762120e59 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassMomentOfInertiaExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMassMomentOfInertiaExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia GramSquareCentimeters(this T value) => MassMomentOfInertia.FromGramSquareCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? GramSquareCentimeters(this T? value) where T : struct => MassMomentOfInertia.FromGramSquareCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia GramSquareDecimeters(this T value) => MassMomentOfInertia.FromGramSquareDecimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? GramSquareDecimeters(this T? value) where T : struct => MassMomentOfInertia.FromGramSquareDecimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia GramSquareMeters(this T value) => MassMomentOfInertia.FromGramSquareMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? GramSquareMeters(this T? value) where T : struct => MassMomentOfInertia.FromGramSquareMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia GramSquareMillimeters(this T value) => MassMomentOfInertia.FromGramSquareMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? GramSquareMillimeters(this T? value) where T : struct => MassMomentOfInertia.FromGramSquareMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia KilogramSquareCentimeters(this T value) => MassMomentOfInertia.FromKilogramSquareCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? KilogramSquareCentimeters(this T? value) where T : struct => MassMomentOfInertia.FromKilogramSquareCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia KilogramSquareDecimeters(this T value) => MassMomentOfInertia.FromKilogramSquareDecimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? KilogramSquareDecimeters(this T? value) where T : struct => MassMomentOfInertia.FromKilogramSquareDecimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia KilogramSquareMeters(this T value) => MassMomentOfInertia.FromKilogramSquareMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? KilogramSquareMeters(this T? value) where T : struct => MassMomentOfInertia.FromKilogramSquareMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia KilogramSquareMillimeters(this T value) => MassMomentOfInertia.FromKilogramSquareMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? KilogramSquareMillimeters(this T? value) where T : struct => MassMomentOfInertia.FromKilogramSquareMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia KilotonneSquareCentimeters(this T value) => MassMomentOfInertia.FromKilotonneSquareCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? KilotonneSquareCentimeters(this T? value) where T : struct => MassMomentOfInertia.FromKilotonneSquareCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia KilotonneSquareDecimeters(this T value) => MassMomentOfInertia.FromKilotonneSquareDecimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? KilotonneSquareDecimeters(this T? value) where T : struct => MassMomentOfInertia.FromKilotonneSquareDecimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia KilotonneSquareMeters(this T value) => MassMomentOfInertia.FromKilotonneSquareMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? KilotonneSquareMeters(this T? value) where T : struct => MassMomentOfInertia.FromKilotonneSquareMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia KilotonneSquareMilimeters(this T value) => MassMomentOfInertia.FromKilotonneSquareMilimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? KilotonneSquareMilimeters(this T? value) where T : struct => MassMomentOfInertia.FromKilotonneSquareMilimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia MegatonneSquareCentimeters(this T value) => MassMomentOfInertia.FromMegatonneSquareCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? MegatonneSquareCentimeters(this T? value) where T : struct => MassMomentOfInertia.FromMegatonneSquareCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia MegatonneSquareDecimeters(this T value) => MassMomentOfInertia.FromMegatonneSquareDecimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? MegatonneSquareDecimeters(this T? value) where T : struct => MassMomentOfInertia.FromMegatonneSquareDecimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia MegatonneSquareMeters(this T value) => MassMomentOfInertia.FromMegatonneSquareMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? MegatonneSquareMeters(this T? value) where T : struct => MassMomentOfInertia.FromMegatonneSquareMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia MegatonneSquareMilimeters(this T value) => MassMomentOfInertia.FromMegatonneSquareMilimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? MegatonneSquareMilimeters(this T? value) where T : struct => MassMomentOfInertia.FromMegatonneSquareMilimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia MilligramSquareCentimeters(this T value) => MassMomentOfInertia.FromMilligramSquareCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? MilligramSquareCentimeters(this T? value) where T : struct => MassMomentOfInertia.FromMilligramSquareCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia MilligramSquareDecimeters(this T value) => MassMomentOfInertia.FromMilligramSquareDecimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? MilligramSquareDecimeters(this T? value) where T : struct => MassMomentOfInertia.FromMilligramSquareDecimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia MilligramSquareMeters(this T value) => MassMomentOfInertia.FromMilligramSquareMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? MilligramSquareMeters(this T? value) where T : struct => MassMomentOfInertia.FromMilligramSquareMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia MilligramSquareMillimeters(this T value) => MassMomentOfInertia.FromMilligramSquareMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? MilligramSquareMillimeters(this T? value) where T : struct => MassMomentOfInertia.FromMilligramSquareMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia PoundSquareFeet(this T value) => MassMomentOfInertia.FromPoundSquareFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? PoundSquareFeet(this T? value) where T : struct => MassMomentOfInertia.FromPoundSquareFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia PoundSquareInches(this T value) => MassMomentOfInertia.FromPoundSquareInches(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? PoundSquareInches(this T? value) where T : struct => MassMomentOfInertia.FromPoundSquareInches(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia TonneSquareCentimeters(this T value) => MassMomentOfInertia.FromTonneSquareCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? TonneSquareCentimeters(this T? value) where T : struct => MassMomentOfInertia.FromTonneSquareCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia TonneSquareDecimeters(this T value) => MassMomentOfInertia.FromTonneSquareDecimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? TonneSquareDecimeters(this T? value) where T : struct => MassMomentOfInertia.FromTonneSquareDecimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -290,6 +314,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia TonneSquareMeters(this T value) => MassMomentOfInertia.FromTonneSquareMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? TonneSquareMeters(this T? value) where T : struct => MassMomentOfInertia.FromTonneSquareMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -300,6 +325,7 @@ public static class NumberToMassMomentOfInertiaExtensions public static MassMomentOfInertia TonneSquareMilimeters(this T value) => MassMomentOfInertia.FromTonneSquareMilimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? TonneSquareMilimeters(this T? value) where T : struct => MassMomentOfInertia.FromTonneSquareMilimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarEnergyExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarEnergyExtensions.g.cs index 5d75594479..bd21a01cfe 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarEnergyExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarEnergyExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMolarEnergyExtensions public static MolarEnergy JoulesPerMole(this T value) => MolarEnergy.FromJoulesPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarEnergy? JoulesPerMole(this T? value) where T : struct => MolarEnergy.FromJoulesPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToMolarEnergyExtensions public static MolarEnergy KilojoulesPerMole(this T value) => MolarEnergy.FromKilojoulesPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarEnergy? KilojoulesPerMole(this T? value) where T : struct => MolarEnergy.FromKilojoulesPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToMolarEnergyExtensions public static MolarEnergy MegajoulesPerMole(this T value) => MolarEnergy.FromMegajoulesPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarEnergy? MegajoulesPerMole(this T? value) where T : struct => MolarEnergy.FromMegajoulesPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarEntropyExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarEntropyExtensions.g.cs index 6f79041253..1585ae6298 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarEntropyExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarEntropyExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMolarEntropyExtensions public static MolarEntropy JoulesPerMoleKelvin(this T value) => MolarEntropy.FromJoulesPerMoleKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarEntropy? JoulesPerMoleKelvin(this T? value) where T : struct => MolarEntropy.FromJoulesPerMoleKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToMolarEntropyExtensions public static MolarEntropy KilojoulesPerMoleKelvin(this T value) => MolarEntropy.FromKilojoulesPerMoleKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarEntropy? KilojoulesPerMoleKelvin(this T? value) where T : struct => MolarEntropy.FromKilojoulesPerMoleKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToMolarEntropyExtensions public static MolarEntropy MegajoulesPerMoleKelvin(this T value) => MolarEntropy.FromMegajoulesPerMoleKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarEntropy? MegajoulesPerMoleKelvin(this T? value) where T : struct => MolarEntropy.FromMegajoulesPerMoleKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarMassExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarMassExtensions.g.cs index f5f4aef05d..bde7d51d10 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarMassExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarMassExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMolarMassExtensions public static MolarMass CentigramsPerMole(this T value) => MolarMass.FromCentigramsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? CentigramsPerMole(this T? value) where T : struct => MolarMass.FromCentigramsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToMolarMassExtensions public static MolarMass DecagramsPerMole(this T value) => MolarMass.FromDecagramsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? DecagramsPerMole(this T? value) where T : struct => MolarMass.FromDecagramsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToMolarMassExtensions public static MolarMass DecigramsPerMole(this T value) => MolarMass.FromDecigramsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? DecigramsPerMole(this T? value) where T : struct => MolarMass.FromDecigramsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToMolarMassExtensions public static MolarMass GramsPerMole(this T value) => MolarMass.FromGramsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? GramsPerMole(this T? value) where T : struct => MolarMass.FromGramsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToMolarMassExtensions public static MolarMass HectogramsPerMole(this T value) => MolarMass.FromHectogramsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? HectogramsPerMole(this T? value) where T : struct => MolarMass.FromHectogramsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToMolarMassExtensions public static MolarMass KilogramsPerMole(this T value) => MolarMass.FromKilogramsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? KilogramsPerMole(this T? value) where T : struct => MolarMass.FromKilogramsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToMolarMassExtensions public static MolarMass KilopoundsPerMole(this T value) => MolarMass.FromKilopoundsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? KilopoundsPerMole(this T? value) where T : struct => MolarMass.FromKilopoundsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToMolarMassExtensions public static MolarMass MegapoundsPerMole(this T value) => MolarMass.FromMegapoundsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? MegapoundsPerMole(this T? value) where T : struct => MolarMass.FromMegapoundsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToMolarMassExtensions public static MolarMass MicrogramsPerMole(this T value) => MolarMass.FromMicrogramsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? MicrogramsPerMole(this T? value) where T : struct => MolarMass.FromMicrogramsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToMolarMassExtensions public static MolarMass MilligramsPerMole(this T value) => MolarMass.FromMilligramsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? MilligramsPerMole(this T? value) where T : struct => MolarMass.FromMilligramsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToMolarMassExtensions public static MolarMass NanogramsPerMole(this T value) => MolarMass.FromNanogramsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? NanogramsPerMole(this T? value) where T : struct => MolarMass.FromNanogramsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToMolarMassExtensions public static MolarMass PoundsPerMole(this T value) => MolarMass.FromPoundsPerMole(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? PoundsPerMole(this T? value) where T : struct => MolarMass.FromPoundsPerMole(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarityExtensions.g.cs index 45f095983a..e8a9e7d2e1 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToMolarityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToMolarityExtensions public static Molarity CentimolesPerLiter(this T value) => Molarity.FromCentimolesPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Molarity? CentimolesPerLiter(this T? value) where T : struct => Molarity.FromCentimolesPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToMolarityExtensions public static Molarity DecimolesPerLiter(this T value) => Molarity.FromDecimolesPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Molarity? DecimolesPerLiter(this T? value) where T : struct => Molarity.FromDecimolesPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToMolarityExtensions public static Molarity MicromolesPerLiter(this T value) => Molarity.FromMicromolesPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Molarity? MicromolesPerLiter(this T? value) where T : struct => Molarity.FromMicromolesPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToMolarityExtensions public static Molarity MillimolesPerLiter(this T value) => Molarity.FromMillimolesPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Molarity? MillimolesPerLiter(this T? value) where T : struct => Molarity.FromMillimolesPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToMolarityExtensions public static Molarity MolesPerCubicMeter(this T value) => Molarity.FromMolesPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Molarity? MolesPerCubicMeter(this T? value) where T : struct => Molarity.FromMolesPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToMolarityExtensions public static Molarity MolesPerLiter(this T value) => Molarity.FromMolesPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Molarity? MolesPerLiter(this T? value) where T : struct => Molarity.FromMolesPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToMolarityExtensions public static Molarity NanomolesPerLiter(this T value) => Molarity.FromNanomolesPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Molarity? NanomolesPerLiter(this T? value) where T : struct => Molarity.FromNanomolesPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToMolarityExtensions public static Molarity PicomolesPerLiter(this T value) => Molarity.FromPicomolesPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Molarity? PicomolesPerLiter(this T? value) where T : struct => Molarity.FromPicomolesPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPermeabilityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPermeabilityExtensions.g.cs index 0a9e644eb2..e098fc24ea 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPermeabilityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPermeabilityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToPermeabilityExtensions public static Permeability HenriesPerMeter(this T value) => Permeability.FromHenriesPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Permeability? HenriesPerMeter(this T? value) where T : struct => Permeability.FromHenriesPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPermittivityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPermittivityExtensions.g.cs index 22bf608880..8744ae9a5f 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPermittivityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPermittivityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToPermittivityExtensions public static Permittivity FaradsPerMeter(this T value) => Permittivity.FromFaradsPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Permittivity? FaradsPerMeter(this T? value) where T : struct => Permittivity.FromFaradsPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerDensityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerDensityExtensions.g.cs index 463d414a2d..fdf6c889f3 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerDensityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerDensityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity DecawattsPerCubicFoot(this T value) => PowerDensity.FromDecawattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? DecawattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromDecawattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity DecawattsPerCubicInch(this T value) => PowerDensity.FromDecawattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? DecawattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromDecawattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity DecawattsPerCubicMeter(this T value) => PowerDensity.FromDecawattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? DecawattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromDecawattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity DecawattsPerLiter(this T value) => PowerDensity.FromDecawattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? DecawattsPerLiter(this T? value) where T : struct => PowerDensity.FromDecawattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity DeciwattsPerCubicFoot(this T value) => PowerDensity.FromDeciwattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? DeciwattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromDeciwattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity DeciwattsPerCubicInch(this T value) => PowerDensity.FromDeciwattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? DeciwattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromDeciwattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity DeciwattsPerCubicMeter(this T value) => PowerDensity.FromDeciwattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? DeciwattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromDeciwattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity DeciwattsPerLiter(this T value) => PowerDensity.FromDeciwattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? DeciwattsPerLiter(this T? value) where T : struct => PowerDensity.FromDeciwattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity GigawattsPerCubicFoot(this T value) => PowerDensity.FromGigawattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? GigawattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromGigawattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity GigawattsPerCubicInch(this T value) => PowerDensity.FromGigawattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? GigawattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromGigawattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity GigawattsPerCubicMeter(this T value) => PowerDensity.FromGigawattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? GigawattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromGigawattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity GigawattsPerLiter(this T value) => PowerDensity.FromGigawattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? GigawattsPerLiter(this T? value) where T : struct => PowerDensity.FromGigawattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity KilowattsPerCubicFoot(this T value) => PowerDensity.FromKilowattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? KilowattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromKilowattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity KilowattsPerCubicInch(this T value) => PowerDensity.FromKilowattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? KilowattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromKilowattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity KilowattsPerCubicMeter(this T value) => PowerDensity.FromKilowattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? KilowattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromKilowattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity KilowattsPerLiter(this T value) => PowerDensity.FromKilowattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? KilowattsPerLiter(this T? value) where T : struct => PowerDensity.FromKilowattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MegawattsPerCubicFoot(this T value) => PowerDensity.FromMegawattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MegawattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromMegawattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MegawattsPerCubicInch(this T value) => PowerDensity.FromMegawattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MegawattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromMegawattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MegawattsPerCubicMeter(this T value) => PowerDensity.FromMegawattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MegawattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromMegawattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MegawattsPerLiter(this T value) => PowerDensity.FromMegawattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MegawattsPerLiter(this T? value) where T : struct => PowerDensity.FromMegawattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MicrowattsPerCubicFoot(this T value) => PowerDensity.FromMicrowattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MicrowattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromMicrowattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MicrowattsPerCubicInch(this T value) => PowerDensity.FromMicrowattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MicrowattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromMicrowattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MicrowattsPerCubicMeter(this T value) => PowerDensity.FromMicrowattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MicrowattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromMicrowattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MicrowattsPerLiter(this T value) => PowerDensity.FromMicrowattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MicrowattsPerLiter(this T? value) where T : struct => PowerDensity.FromMicrowattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -290,6 +314,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MilliwattsPerCubicFoot(this T value) => PowerDensity.FromMilliwattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MilliwattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromMilliwattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -300,6 +325,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MilliwattsPerCubicInch(this T value) => PowerDensity.FromMilliwattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MilliwattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromMilliwattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -310,6 +336,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MilliwattsPerCubicMeter(this T value) => PowerDensity.FromMilliwattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MilliwattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromMilliwattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -320,6 +347,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity MilliwattsPerLiter(this T value) => PowerDensity.FromMilliwattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? MilliwattsPerLiter(this T? value) where T : struct => PowerDensity.FromMilliwattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -330,6 +358,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity NanowattsPerCubicFoot(this T value) => PowerDensity.FromNanowattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? NanowattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromNanowattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -340,6 +369,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity NanowattsPerCubicInch(this T value) => PowerDensity.FromNanowattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? NanowattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromNanowattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -350,6 +380,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity NanowattsPerCubicMeter(this T value) => PowerDensity.FromNanowattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? NanowattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromNanowattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -360,6 +391,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity NanowattsPerLiter(this T value) => PowerDensity.FromNanowattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? NanowattsPerLiter(this T? value) where T : struct => PowerDensity.FromNanowattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -370,6 +402,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity PicowattsPerCubicFoot(this T value) => PowerDensity.FromPicowattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? PicowattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromPicowattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -380,6 +413,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity PicowattsPerCubicInch(this T value) => PowerDensity.FromPicowattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? PicowattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromPicowattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -390,6 +424,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity PicowattsPerCubicMeter(this T value) => PowerDensity.FromPicowattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? PicowattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromPicowattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -400,6 +435,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity PicowattsPerLiter(this T value) => PowerDensity.FromPicowattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? PicowattsPerLiter(this T? value) where T : struct => PowerDensity.FromPicowattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -410,6 +446,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity TerawattsPerCubicFoot(this T value) => PowerDensity.FromTerawattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? TerawattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromTerawattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -420,6 +457,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity TerawattsPerCubicInch(this T value) => PowerDensity.FromTerawattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? TerawattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromTerawattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -430,6 +468,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity TerawattsPerCubicMeter(this T value) => PowerDensity.FromTerawattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? TerawattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromTerawattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -440,6 +479,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity TerawattsPerLiter(this T value) => PowerDensity.FromTerawattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? TerawattsPerLiter(this T? value) where T : struct => PowerDensity.FromTerawattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -450,6 +490,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity WattsPerCubicFoot(this T value) => PowerDensity.FromWattsPerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? WattsPerCubicFoot(this T? value) where T : struct => PowerDensity.FromWattsPerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -460,6 +501,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity WattsPerCubicInch(this T value) => PowerDensity.FromWattsPerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? WattsPerCubicInch(this T? value) where T : struct => PowerDensity.FromWattsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -470,6 +512,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity WattsPerCubicMeter(this T value) => PowerDensity.FromWattsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? WattsPerCubicMeter(this T? value) where T : struct => PowerDensity.FromWattsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -480,6 +523,7 @@ public static class NumberToPowerDensityExtensions public static PowerDensity WattsPerLiter(this T value) => PowerDensity.FromWattsPerLiter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? WattsPerLiter(this T? value) where T : struct => PowerDensity.FromWattsPerLiter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerExtensions.g.cs index 8f1b1a3f8d..6b787f7371 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToPowerExtensions public static Power BoilerHorsepower(this T value) => Power.FromBoilerHorsepower(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? BoilerHorsepower(this T? value) where T : struct => Power.FromBoilerHorsepower(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToPowerExtensions public static Power BritishThermalUnitsPerHour(this T value) => Power.FromBritishThermalUnitsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? BritishThermalUnitsPerHour(this T? value) where T : struct => Power.FromBritishThermalUnitsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToPowerExtensions public static Power Decawatts(this T value) => Power.FromDecawatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Decawatts(this T? value) where T : struct => Power.FromDecawatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToPowerExtensions public static Power Deciwatts(this T value) => Power.FromDeciwatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Deciwatts(this T? value) where T : struct => Power.FromDeciwatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToPowerExtensions public static Power ElectricalHorsepower(this T value) => Power.FromElectricalHorsepower(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? ElectricalHorsepower(this T? value) where T : struct => Power.FromElectricalHorsepower(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToPowerExtensions public static Power Femtowatts(this T value) => Power.FromFemtowatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Femtowatts(this T? value) where T : struct => Power.FromFemtowatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToPowerExtensions public static Power Gigawatts(this T value) => Power.FromGigawatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Gigawatts(this T? value) where T : struct => Power.FromGigawatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToPowerExtensions public static Power HydraulicHorsepower(this T value) => Power.FromHydraulicHorsepower(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? HydraulicHorsepower(this T? value) where T : struct => Power.FromHydraulicHorsepower(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToPowerExtensions public static Power KilobritishThermalUnitsPerHour(this T value) => Power.FromKilobritishThermalUnitsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? KilobritishThermalUnitsPerHour(this T? value) where T : struct => Power.FromKilobritishThermalUnitsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToPowerExtensions public static Power Kilowatts(this T value) => Power.FromKilowatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Kilowatts(this T? value) where T : struct => Power.FromKilowatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToPowerExtensions public static Power MechanicalHorsepower(this T value) => Power.FromMechanicalHorsepower(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? MechanicalHorsepower(this T? value) where T : struct => Power.FromMechanicalHorsepower(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToPowerExtensions public static Power Megawatts(this T value) => Power.FromMegawatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Megawatts(this T? value) where T : struct => Power.FromMegawatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToPowerExtensions public static Power MetricHorsepower(this T value) => Power.FromMetricHorsepower(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? MetricHorsepower(this T? value) where T : struct => Power.FromMetricHorsepower(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToPowerExtensions public static Power Microwatts(this T value) => Power.FromMicrowatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Microwatts(this T? value) where T : struct => Power.FromMicrowatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToPowerExtensions public static Power Milliwatts(this T value) => Power.FromMilliwatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Milliwatts(this T? value) where T : struct => Power.FromMilliwatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToPowerExtensions public static Power Nanowatts(this T value) => Power.FromNanowatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Nanowatts(this T? value) where T : struct => Power.FromNanowatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToPowerExtensions public static Power Petawatts(this T value) => Power.FromPetawatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Petawatts(this T? value) where T : struct => Power.FromPetawatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToPowerExtensions public static Power Picowatts(this T value) => Power.FromPicowatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Picowatts(this T? value) where T : struct => Power.FromPicowatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToPowerExtensions public static Power Terawatts(this T value) => Power.FromTerawatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Terawatts(this T? value) where T : struct => Power.FromTerawatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToPowerExtensions public static Power Watts(this T value) => Power.FromWatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? Watts(this T? value) where T : struct => Power.FromWatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerRatioExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerRatioExtensions.g.cs index 902972e7ee..df98da38e2 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerRatioExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPowerRatioExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToPowerRatioExtensions public static PowerRatio DecibelMilliwatts(this T value) => PowerRatio.FromDecibelMilliwatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerRatio? DecibelMilliwatts(this T? value) where T : struct => PowerRatio.FromDecibelMilliwatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToPowerRatioExtensions public static PowerRatio DecibelWatts(this T value) => PowerRatio.FromDecibelWatts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerRatio? DecibelWatts(this T? value) where T : struct => PowerRatio.FromDecibelWatts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPressureChangeRateExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPressureChangeRateExtensions.g.cs index 02b35775cc..afb087b144 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPressureChangeRateExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPressureChangeRateExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToPressureChangeRateExtensions public static PressureChangeRate AtmospheresPerSecond(this T value) => PressureChangeRate.FromAtmospheresPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PressureChangeRate? AtmospheresPerSecond(this T? value) where T : struct => PressureChangeRate.FromAtmospheresPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToPressureChangeRateExtensions public static PressureChangeRate KilopascalsPerSecond(this T value) => PressureChangeRate.FromKilopascalsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PressureChangeRate? KilopascalsPerSecond(this T? value) where T : struct => PressureChangeRate.FromKilopascalsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToPressureChangeRateExtensions public static PressureChangeRate MegapascalsPerSecond(this T value) => PressureChangeRate.FromMegapascalsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PressureChangeRate? MegapascalsPerSecond(this T? value) where T : struct => PressureChangeRate.FromMegapascalsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToPressureChangeRateExtensions public static PressureChangeRate PascalsPerSecond(this T value) => PressureChangeRate.FromPascalsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PressureChangeRate? PascalsPerSecond(this T? value) where T : struct => PressureChangeRate.FromPascalsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPressureExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPressureExtensions.g.cs index fdaa4f3833..1091613a81 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToPressureExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToPressureExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToPressureExtensions public static Pressure Atmospheres(this T value) => Pressure.FromAtmospheres(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Atmospheres(this T? value) where T : struct => Pressure.FromAtmospheres(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToPressureExtensions public static Pressure Bars(this T value) => Pressure.FromBars(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Bars(this T? value) where T : struct => Pressure.FromBars(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToPressureExtensions public static Pressure Centibars(this T value) => Pressure.FromCentibars(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Centibars(this T? value) where T : struct => Pressure.FromCentibars(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToPressureExtensions public static Pressure Decapascals(this T value) => Pressure.FromDecapascals(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Decapascals(this T? value) where T : struct => Pressure.FromDecapascals(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToPressureExtensions public static Pressure Decibars(this T value) => Pressure.FromDecibars(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Decibars(this T? value) where T : struct => Pressure.FromDecibars(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToPressureExtensions public static Pressure FeetOfHead(this T value) => Pressure.FromFeetOfHead(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? FeetOfHead(this T? value) where T : struct => Pressure.FromFeetOfHead(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToPressureExtensions public static Pressure Gigapascals(this T value) => Pressure.FromGigapascals(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Gigapascals(this T? value) where T : struct => Pressure.FromGigapascals(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToPressureExtensions public static Pressure Hectopascals(this T value) => Pressure.FromHectopascals(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Hectopascals(this T? value) where T : struct => Pressure.FromHectopascals(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToPressureExtensions public static Pressure InchesOfMercury(this T value) => Pressure.FromInchesOfMercury(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? InchesOfMercury(this T? value) where T : struct => Pressure.FromInchesOfMercury(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToPressureExtensions public static Pressure Kilobars(this T value) => Pressure.FromKilobars(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Kilobars(this T? value) where T : struct => Pressure.FromKilobars(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToPressureExtensions public static Pressure KilogramsForcePerSquareCentimeter(this T value) => Pressure.FromKilogramsForcePerSquareCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? KilogramsForcePerSquareCentimeter(this T? value) where T : struct => Pressure.FromKilogramsForcePerSquareCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToPressureExtensions public static Pressure KilogramsForcePerSquareMeter(this T value) => Pressure.FromKilogramsForcePerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? KilogramsForcePerSquareMeter(this T? value) where T : struct => Pressure.FromKilogramsForcePerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToPressureExtensions public static Pressure KilogramsForcePerSquareMillimeter(this T value) => Pressure.FromKilogramsForcePerSquareMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? KilogramsForcePerSquareMillimeter(this T? value) where T : struct => Pressure.FromKilogramsForcePerSquareMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToPressureExtensions public static Pressure KilonewtonsPerSquareCentimeter(this T value) => Pressure.FromKilonewtonsPerSquareCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? KilonewtonsPerSquareCentimeter(this T? value) where T : struct => Pressure.FromKilonewtonsPerSquareCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToPressureExtensions public static Pressure KilonewtonsPerSquareMeter(this T value) => Pressure.FromKilonewtonsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? KilonewtonsPerSquareMeter(this T? value) where T : struct => Pressure.FromKilonewtonsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToPressureExtensions public static Pressure KilonewtonsPerSquareMillimeter(this T value) => Pressure.FromKilonewtonsPerSquareMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? KilonewtonsPerSquareMillimeter(this T? value) where T : struct => Pressure.FromKilonewtonsPerSquareMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToPressureExtensions public static Pressure Kilopascals(this T value) => Pressure.FromKilopascals(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Kilopascals(this T? value) where T : struct => Pressure.FromKilopascals(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToPressureExtensions public static Pressure KilopoundsForcePerSquareFoot(this T value) => Pressure.FromKilopoundsForcePerSquareFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? KilopoundsForcePerSquareFoot(this T? value) where T : struct => Pressure.FromKilopoundsForcePerSquareFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToPressureExtensions public static Pressure KilopoundsForcePerSquareInch(this T value) => Pressure.FromKilopoundsForcePerSquareInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? KilopoundsForcePerSquareInch(this T? value) where T : struct => Pressure.FromKilopoundsForcePerSquareInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToPressureExtensions public static Pressure Megabars(this T value) => Pressure.FromMegabars(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Megabars(this T? value) where T : struct => Pressure.FromMegabars(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToPressureExtensions public static Pressure MeganewtonsPerSquareMeter(this T value) => Pressure.FromMeganewtonsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? MeganewtonsPerSquareMeter(this T? value) where T : struct => Pressure.FromMeganewtonsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToPressureExtensions public static Pressure Megapascals(this T value) => Pressure.FromMegapascals(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Megapascals(this T? value) where T : struct => Pressure.FromMegapascals(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToPressureExtensions public static Pressure MetersOfHead(this T value) => Pressure.FromMetersOfHead(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? MetersOfHead(this T? value) where T : struct => Pressure.FromMetersOfHead(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToPressureExtensions public static Pressure Micropascals(this T value) => Pressure.FromMicropascals(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Micropascals(this T? value) where T : struct => Pressure.FromMicropascals(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -290,6 +314,7 @@ public static class NumberToPressureExtensions public static Pressure Millibars(this T value) => Pressure.FromMillibars(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Millibars(this T? value) where T : struct => Pressure.FromMillibars(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -300,6 +325,7 @@ public static class NumberToPressureExtensions public static Pressure MillimetersOfMercury(this T value) => Pressure.FromMillimetersOfMercury(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? MillimetersOfMercury(this T? value) where T : struct => Pressure.FromMillimetersOfMercury(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -310,6 +336,7 @@ public static class NumberToPressureExtensions public static Pressure NewtonsPerSquareCentimeter(this T value) => Pressure.FromNewtonsPerSquareCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? NewtonsPerSquareCentimeter(this T? value) where T : struct => Pressure.FromNewtonsPerSquareCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -320,6 +347,7 @@ public static class NumberToPressureExtensions public static Pressure NewtonsPerSquareMeter(this T value) => Pressure.FromNewtonsPerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? NewtonsPerSquareMeter(this T? value) where T : struct => Pressure.FromNewtonsPerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -330,6 +358,7 @@ public static class NumberToPressureExtensions public static Pressure NewtonsPerSquareMillimeter(this T value) => Pressure.FromNewtonsPerSquareMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? NewtonsPerSquareMillimeter(this T? value) where T : struct => Pressure.FromNewtonsPerSquareMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -340,6 +369,7 @@ public static class NumberToPressureExtensions public static Pressure Pascals(this T value) => Pressure.FromPascals(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Pascals(this T? value) where T : struct => Pressure.FromPascals(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -350,6 +380,7 @@ public static class NumberToPressureExtensions public static Pressure PoundsForcePerSquareFoot(this T value) => Pressure.FromPoundsForcePerSquareFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? PoundsForcePerSquareFoot(this T? value) where T : struct => Pressure.FromPoundsForcePerSquareFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -360,6 +391,7 @@ public static class NumberToPressureExtensions public static Pressure PoundsForcePerSquareInch(this T value) => Pressure.FromPoundsForcePerSquareInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? PoundsForcePerSquareInch(this T? value) where T : struct => Pressure.FromPoundsForcePerSquareInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -370,6 +402,7 @@ public static class NumberToPressureExtensions public static Pressure Psi(this T value) => Pressure.FromPsi(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Psi(this T? value) where T : struct => Pressure.FromPsi(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -380,6 +413,7 @@ public static class NumberToPressureExtensions public static Pressure TechnicalAtmospheres(this T value) => Pressure.FromTechnicalAtmospheres(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? TechnicalAtmospheres(this T? value) where T : struct => Pressure.FromTechnicalAtmospheres(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -390,6 +424,7 @@ public static class NumberToPressureExtensions public static Pressure TonnesForcePerSquareCentimeter(this T value) => Pressure.FromTonnesForcePerSquareCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? TonnesForcePerSquareCentimeter(this T? value) where T : struct => Pressure.FromTonnesForcePerSquareCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -400,6 +435,7 @@ public static class NumberToPressureExtensions public static Pressure TonnesForcePerSquareMeter(this T value) => Pressure.FromTonnesForcePerSquareMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? TonnesForcePerSquareMeter(this T? value) where T : struct => Pressure.FromTonnesForcePerSquareMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -410,6 +446,7 @@ public static class NumberToPressureExtensions public static Pressure TonnesForcePerSquareMillimeter(this T value) => Pressure.FromTonnesForcePerSquareMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? TonnesForcePerSquareMillimeter(this T? value) where T : struct => Pressure.FromTonnesForcePerSquareMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -420,6 +457,7 @@ public static class NumberToPressureExtensions public static Pressure Torrs(this T value) => Pressure.FromTorrs(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? Torrs(this T? value) where T : struct => Pressure.FromTorrs(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRatioExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRatioExtensions.g.cs index 03931a1c19..470f763f82 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRatioExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRatioExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToRatioExtensions public static Ratio DecimalFractions(this T value) => Ratio.FromDecimalFractions(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Ratio? DecimalFractions(this T? value) where T : struct => Ratio.FromDecimalFractions(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToRatioExtensions public static Ratio PartsPerBillion(this T value) => Ratio.FromPartsPerBillion(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Ratio? PartsPerBillion(this T? value) where T : struct => Ratio.FromPartsPerBillion(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToRatioExtensions public static Ratio PartsPerMillion(this T value) => Ratio.FromPartsPerMillion(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Ratio? PartsPerMillion(this T? value) where T : struct => Ratio.FromPartsPerMillion(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToRatioExtensions public static Ratio PartsPerThousand(this T value) => Ratio.FromPartsPerThousand(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Ratio? PartsPerThousand(this T? value) where T : struct => Ratio.FromPartsPerThousand(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToRatioExtensions public static Ratio PartsPerTrillion(this T value) => Ratio.FromPartsPerTrillion(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Ratio? PartsPerTrillion(this T? value) where T : struct => Ratio.FromPartsPerTrillion(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToRatioExtensions public static Ratio Percent(this T value) => Ratio.FromPercent(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Ratio? Percent(this T? value) where T : struct => Ratio.FromPercent(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToReactiveEnergyExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToReactiveEnergyExtensions.g.cs index 47ab4fc988..9a4594afc3 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToReactiveEnergyExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToReactiveEnergyExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToReactiveEnergyExtensions public static ReactiveEnergy KilovoltampereReactiveHours(this T value) => ReactiveEnergy.FromKilovoltampereReactiveHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ReactiveEnergy? KilovoltampereReactiveHours(this T? value) where T : struct => ReactiveEnergy.FromKilovoltampereReactiveHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToReactiveEnergyExtensions public static ReactiveEnergy MegavoltampereReactiveHours(this T value) => ReactiveEnergy.FromMegavoltampereReactiveHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ReactiveEnergy? MegavoltampereReactiveHours(this T? value) where T : struct => ReactiveEnergy.FromMegavoltampereReactiveHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToReactiveEnergyExtensions public static ReactiveEnergy VoltampereReactiveHours(this T value) => ReactiveEnergy.FromVoltampereReactiveHours(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ReactiveEnergy? VoltampereReactiveHours(this T? value) where T : struct => ReactiveEnergy.FromVoltampereReactiveHours(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToReactivePowerExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToReactivePowerExtensions.g.cs index 6edfec6ffb..89d6b7f589 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToReactivePowerExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToReactivePowerExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToReactivePowerExtensions public static ReactivePower GigavoltamperesReactive(this T value) => ReactivePower.FromGigavoltamperesReactive(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ReactivePower? GigavoltamperesReactive(this T? value) where T : struct => ReactivePower.FromGigavoltamperesReactive(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToReactivePowerExtensions public static ReactivePower KilovoltamperesReactive(this T value) => ReactivePower.FromKilovoltamperesReactive(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ReactivePower? KilovoltamperesReactive(this T? value) where T : struct => ReactivePower.FromKilovoltamperesReactive(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToReactivePowerExtensions public static ReactivePower MegavoltamperesReactive(this T value) => ReactivePower.FromMegavoltamperesReactive(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ReactivePower? MegavoltamperesReactive(this T? value) where T : struct => ReactivePower.FromMegavoltamperesReactive(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToReactivePowerExtensions public static ReactivePower VoltamperesReactive(this T value) => ReactivePower.FromVoltamperesReactive(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ReactivePower? VoltamperesReactive(this T? value) where T : struct => ReactivePower.FromVoltamperesReactive(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalAccelerationExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalAccelerationExtensions.g.cs index edfcde9e10..68b257bddd 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalAccelerationExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalAccelerationExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToRotationalAccelerationExtensions public static RotationalAcceleration DegreesPerSecondSquared(this T value) => RotationalAcceleration.FromDegreesPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalAcceleration? DegreesPerSecondSquared(this T? value) where T : struct => RotationalAcceleration.FromDegreesPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToRotationalAccelerationExtensions public static RotationalAcceleration RadiansPerSecondSquared(this T value) => RotationalAcceleration.FromRadiansPerSecondSquared(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalAcceleration? RadiansPerSecondSquared(this T? value) where T : struct => RotationalAcceleration.FromRadiansPerSecondSquared(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToRotationalAccelerationExtensions public static RotationalAcceleration RevolutionsPerMinutePerSecond(this T value) => RotationalAcceleration.FromRevolutionsPerMinutePerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalAcceleration? RevolutionsPerMinutePerSecond(this T? value) where T : struct => RotationalAcceleration.FromRevolutionsPerMinutePerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalSpeedExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalSpeedExtensions.g.cs index d81f93196c..f0512ae33d 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalSpeedExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalSpeedExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed CentiradiansPerSecond(this T value) => RotationalSpeed.FromCentiradiansPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? CentiradiansPerSecond(this T? value) where T : struct => RotationalSpeed.FromCentiradiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed DeciradiansPerSecond(this T value) => RotationalSpeed.FromDeciradiansPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? DeciradiansPerSecond(this T? value) where T : struct => RotationalSpeed.FromDeciradiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed DegreesPerMinute(this T value) => RotationalSpeed.FromDegreesPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? DegreesPerMinute(this T? value) where T : struct => RotationalSpeed.FromDegreesPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed DegreesPerSecond(this T value) => RotationalSpeed.FromDegreesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? DegreesPerSecond(this T? value) where T : struct => RotationalSpeed.FromDegreesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed MicrodegreesPerSecond(this T value) => RotationalSpeed.FromMicrodegreesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? MicrodegreesPerSecond(this T? value) where T : struct => RotationalSpeed.FromMicrodegreesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed MicroradiansPerSecond(this T value) => RotationalSpeed.FromMicroradiansPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? MicroradiansPerSecond(this T? value) where T : struct => RotationalSpeed.FromMicroradiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed MillidegreesPerSecond(this T value) => RotationalSpeed.FromMillidegreesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? MillidegreesPerSecond(this T? value) where T : struct => RotationalSpeed.FromMillidegreesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed MilliradiansPerSecond(this T value) => RotationalSpeed.FromMilliradiansPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? MilliradiansPerSecond(this T? value) where T : struct => RotationalSpeed.FromMilliradiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed NanodegreesPerSecond(this T value) => RotationalSpeed.FromNanodegreesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? NanodegreesPerSecond(this T? value) where T : struct => RotationalSpeed.FromNanodegreesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed NanoradiansPerSecond(this T value) => RotationalSpeed.FromNanoradiansPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? NanoradiansPerSecond(this T? value) where T : struct => RotationalSpeed.FromNanoradiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed RadiansPerSecond(this T value) => RotationalSpeed.FromRadiansPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? RadiansPerSecond(this T? value) where T : struct => RotationalSpeed.FromRadiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed RevolutionsPerMinute(this T value) => RotationalSpeed.FromRevolutionsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? RevolutionsPerMinute(this T? value) where T : struct => RotationalSpeed.FromRevolutionsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToRotationalSpeedExtensions public static RotationalSpeed RevolutionsPerSecond(this T value) => RotationalSpeed.FromRevolutionsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? RevolutionsPerSecond(this T? value) where T : struct => RotationalSpeed.FromRevolutionsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalStiffnessExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalStiffnessExtensions.g.cs index df73cc9a2a..25d863aac9 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalStiffnessExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalStiffnessExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToRotationalStiffnessExtensions public static RotationalStiffness KilonewtonMetersPerRadian(this T value) => RotationalStiffness.FromKilonewtonMetersPerRadian(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalStiffness? KilonewtonMetersPerRadian(this T? value) where T : struct => RotationalStiffness.FromKilonewtonMetersPerRadian(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToRotationalStiffnessExtensions public static RotationalStiffness MeganewtonMetersPerRadian(this T value) => RotationalStiffness.FromMeganewtonMetersPerRadian(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalStiffness? MeganewtonMetersPerRadian(this T? value) where T : struct => RotationalStiffness.FromMeganewtonMetersPerRadian(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToRotationalStiffnessExtensions public static RotationalStiffness NewtonMetersPerRadian(this T value) => RotationalStiffness.FromNewtonMetersPerRadian(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalStiffness? NewtonMetersPerRadian(this T? value) where T : struct => RotationalStiffness.FromNewtonMetersPerRadian(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalStiffnessPerLengthExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalStiffnessPerLengthExtensions.g.cs index 9d26c731c9..d8891117ff 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalStiffnessPerLengthExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToRotationalStiffnessPerLengthExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToRotationalStiffnessPerLengthExtensions public static RotationalStiffnessPerLength KilonewtonMetersPerRadianPerMeter(this T value) => RotationalStiffnessPerLength.FromKilonewtonMetersPerRadianPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalStiffnessPerLength? KilonewtonMetersPerRadianPerMeter(this T? value) where T : struct => RotationalStiffnessPerLength.FromKilonewtonMetersPerRadianPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToRotationalStiffnessPerLengthExtensions public static RotationalStiffnessPerLength MeganewtonMetersPerRadianPerMeter(this T value) => RotationalStiffnessPerLength.FromMeganewtonMetersPerRadianPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalStiffnessPerLength? MeganewtonMetersPerRadianPerMeter(this T? value) where T : struct => RotationalStiffnessPerLength.FromMeganewtonMetersPerRadianPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToRotationalStiffnessPerLengthExtensions public static RotationalStiffnessPerLength NewtonMetersPerRadianPerMeter(this T value) => RotationalStiffnessPerLength.FromNewtonMetersPerRadianPerMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalStiffnessPerLength? NewtonMetersPerRadianPerMeter(this T? value) where T : struct => RotationalStiffnessPerLength.FromNewtonMetersPerRadianPerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSolidAngleExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSolidAngleExtensions.g.cs index 1dc33cf6c0..b960b70ba1 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSolidAngleExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSolidAngleExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToSolidAngleExtensions public static SolidAngle Steradians(this T value) => SolidAngle.FromSteradians(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SolidAngle? Steradians(this T? value) where T : struct => SolidAngle.FromSteradians(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificEnergyExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificEnergyExtensions.g.cs index e1fe63fab0..873ffd7db8 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificEnergyExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificEnergyExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToSpecificEnergyExtensions public static SpecificEnergy CaloriesPerGram(this T value) => SpecificEnergy.FromCaloriesPerGram(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEnergy? CaloriesPerGram(this T? value) where T : struct => SpecificEnergy.FromCaloriesPerGram(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToSpecificEnergyExtensions public static SpecificEnergy JoulesPerKilogram(this T value) => SpecificEnergy.FromJoulesPerKilogram(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEnergy? JoulesPerKilogram(this T? value) where T : struct => SpecificEnergy.FromJoulesPerKilogram(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToSpecificEnergyExtensions public static SpecificEnergy KilocaloriesPerGram(this T value) => SpecificEnergy.FromKilocaloriesPerGram(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEnergy? KilocaloriesPerGram(this T? value) where T : struct => SpecificEnergy.FromKilocaloriesPerGram(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToSpecificEnergyExtensions public static SpecificEnergy KilojoulesPerKilogram(this T value) => SpecificEnergy.FromKilojoulesPerKilogram(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEnergy? KilojoulesPerKilogram(this T? value) where T : struct => SpecificEnergy.FromKilojoulesPerKilogram(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToSpecificEnergyExtensions public static SpecificEnergy KilowattHoursPerKilogram(this T value) => SpecificEnergy.FromKilowattHoursPerKilogram(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEnergy? KilowattHoursPerKilogram(this T? value) where T : struct => SpecificEnergy.FromKilowattHoursPerKilogram(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToSpecificEnergyExtensions public static SpecificEnergy MegajoulesPerKilogram(this T value) => SpecificEnergy.FromMegajoulesPerKilogram(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEnergy? MegajoulesPerKilogram(this T? value) where T : struct => SpecificEnergy.FromMegajoulesPerKilogram(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToSpecificEnergyExtensions public static SpecificEnergy MegawattHoursPerKilogram(this T value) => SpecificEnergy.FromMegawattHoursPerKilogram(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEnergy? MegawattHoursPerKilogram(this T? value) where T : struct => SpecificEnergy.FromMegawattHoursPerKilogram(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToSpecificEnergyExtensions public static SpecificEnergy WattHoursPerKilogram(this T value) => SpecificEnergy.FromWattHoursPerKilogram(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEnergy? WattHoursPerKilogram(this T? value) where T : struct => SpecificEnergy.FromWattHoursPerKilogram(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificEntropyExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificEntropyExtensions.g.cs index 72f5b71882..e9915976d1 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificEntropyExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificEntropyExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToSpecificEntropyExtensions public static SpecificEntropy CaloriesPerGramKelvin(this T value) => SpecificEntropy.FromCaloriesPerGramKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEntropy? CaloriesPerGramKelvin(this T? value) where T : struct => SpecificEntropy.FromCaloriesPerGramKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToSpecificEntropyExtensions public static SpecificEntropy JoulesPerKilogramDegreeCelsius(this T value) => SpecificEntropy.FromJoulesPerKilogramDegreeCelsius(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEntropy? JoulesPerKilogramDegreeCelsius(this T? value) where T : struct => SpecificEntropy.FromJoulesPerKilogramDegreeCelsius(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToSpecificEntropyExtensions public static SpecificEntropy JoulesPerKilogramKelvin(this T value) => SpecificEntropy.FromJoulesPerKilogramKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEntropy? JoulesPerKilogramKelvin(this T? value) where T : struct => SpecificEntropy.FromJoulesPerKilogramKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToSpecificEntropyExtensions public static SpecificEntropy KilocaloriesPerGramKelvin(this T value) => SpecificEntropy.FromKilocaloriesPerGramKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEntropy? KilocaloriesPerGramKelvin(this T? value) where T : struct => SpecificEntropy.FromKilocaloriesPerGramKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToSpecificEntropyExtensions public static SpecificEntropy KilojoulesPerKilogramDegreeCelsius(this T value) => SpecificEntropy.FromKilojoulesPerKilogramDegreeCelsius(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEntropy? KilojoulesPerKilogramDegreeCelsius(this T? value) where T : struct => SpecificEntropy.FromKilojoulesPerKilogramDegreeCelsius(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToSpecificEntropyExtensions public static SpecificEntropy KilojoulesPerKilogramKelvin(this T value) => SpecificEntropy.FromKilojoulesPerKilogramKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEntropy? KilojoulesPerKilogramKelvin(this T? value) where T : struct => SpecificEntropy.FromKilojoulesPerKilogramKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToSpecificEntropyExtensions public static SpecificEntropy MegajoulesPerKilogramDegreeCelsius(this T value) => SpecificEntropy.FromMegajoulesPerKilogramDegreeCelsius(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEntropy? MegajoulesPerKilogramDegreeCelsius(this T? value) where T : struct => SpecificEntropy.FromMegajoulesPerKilogramDegreeCelsius(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToSpecificEntropyExtensions public static SpecificEntropy MegajoulesPerKilogramKelvin(this T value) => SpecificEntropy.FromMegajoulesPerKilogramKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEntropy? MegajoulesPerKilogramKelvin(this T? value) where T : struct => SpecificEntropy.FromMegajoulesPerKilogramKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificVolumeExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificVolumeExtensions.g.cs index 8bdb75c8a1..3ac4fad9d2 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificVolumeExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificVolumeExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToSpecificVolumeExtensions public static SpecificVolume CubicFeetPerPound(this T value) => SpecificVolume.FromCubicFeetPerPound(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificVolume? CubicFeetPerPound(this T? value) where T : struct => SpecificVolume.FromCubicFeetPerPound(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToSpecificVolumeExtensions public static SpecificVolume CubicMetersPerKilogram(this T value) => SpecificVolume.FromCubicMetersPerKilogram(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificVolume? CubicMetersPerKilogram(this T? value) where T : struct => SpecificVolume.FromCubicMetersPerKilogram(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificWeightExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificWeightExtensions.g.cs index 1ff5d4a009..96baddecbc 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificWeightExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpecificWeightExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight KilogramsForcePerCubicCentimeter(this T value) => SpecificWeight.FromKilogramsForcePerCubicCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? KilogramsForcePerCubicCentimeter(this T? value) where T : struct => SpecificWeight.FromKilogramsForcePerCubicCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight KilogramsForcePerCubicMeter(this T value) => SpecificWeight.FromKilogramsForcePerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? KilogramsForcePerCubicMeter(this T? value) where T : struct => SpecificWeight.FromKilogramsForcePerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight KilogramsForcePerCubicMillimeter(this T value) => SpecificWeight.FromKilogramsForcePerCubicMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? KilogramsForcePerCubicMillimeter(this T? value) where T : struct => SpecificWeight.FromKilogramsForcePerCubicMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight KilonewtonsPerCubicCentimeter(this T value) => SpecificWeight.FromKilonewtonsPerCubicCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? KilonewtonsPerCubicCentimeter(this T? value) where T : struct => SpecificWeight.FromKilonewtonsPerCubicCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight KilonewtonsPerCubicMeter(this T value) => SpecificWeight.FromKilonewtonsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? KilonewtonsPerCubicMeter(this T? value) where T : struct => SpecificWeight.FromKilonewtonsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight KilonewtonsPerCubicMillimeter(this T value) => SpecificWeight.FromKilonewtonsPerCubicMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? KilonewtonsPerCubicMillimeter(this T? value) where T : struct => SpecificWeight.FromKilonewtonsPerCubicMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight KilopoundsForcePerCubicFoot(this T value) => SpecificWeight.FromKilopoundsForcePerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? KilopoundsForcePerCubicFoot(this T? value) where T : struct => SpecificWeight.FromKilopoundsForcePerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight KilopoundsForcePerCubicInch(this T value) => SpecificWeight.FromKilopoundsForcePerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? KilopoundsForcePerCubicInch(this T? value) where T : struct => SpecificWeight.FromKilopoundsForcePerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight MeganewtonsPerCubicMeter(this T value) => SpecificWeight.FromMeganewtonsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? MeganewtonsPerCubicMeter(this T? value) where T : struct => SpecificWeight.FromMeganewtonsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight NewtonsPerCubicCentimeter(this T value) => SpecificWeight.FromNewtonsPerCubicCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? NewtonsPerCubicCentimeter(this T? value) where T : struct => SpecificWeight.FromNewtonsPerCubicCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight NewtonsPerCubicMeter(this T value) => SpecificWeight.FromNewtonsPerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? NewtonsPerCubicMeter(this T? value) where T : struct => SpecificWeight.FromNewtonsPerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight NewtonsPerCubicMillimeter(this T value) => SpecificWeight.FromNewtonsPerCubicMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? NewtonsPerCubicMillimeter(this T? value) where T : struct => SpecificWeight.FromNewtonsPerCubicMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight PoundsForcePerCubicFoot(this T value) => SpecificWeight.FromPoundsForcePerCubicFoot(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? PoundsForcePerCubicFoot(this T? value) where T : struct => SpecificWeight.FromPoundsForcePerCubicFoot(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight PoundsForcePerCubicInch(this T value) => SpecificWeight.FromPoundsForcePerCubicInch(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? PoundsForcePerCubicInch(this T? value) where T : struct => SpecificWeight.FromPoundsForcePerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight TonnesForcePerCubicCentimeter(this T value) => SpecificWeight.FromTonnesForcePerCubicCentimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? TonnesForcePerCubicCentimeter(this T? value) where T : struct => SpecificWeight.FromTonnesForcePerCubicCentimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight TonnesForcePerCubicMeter(this T value) => SpecificWeight.FromTonnesForcePerCubicMeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? TonnesForcePerCubicMeter(this T? value) where T : struct => SpecificWeight.FromTonnesForcePerCubicMeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToSpecificWeightExtensions public static SpecificWeight TonnesForcePerCubicMillimeter(this T value) => SpecificWeight.FromTonnesForcePerCubicMillimeter(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? TonnesForcePerCubicMillimeter(this T? value) where T : struct => SpecificWeight.FromTonnesForcePerCubicMillimeter(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpeedExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpeedExtensions.g.cs index d7920dde38..ee9db77b1f 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpeedExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToSpeedExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToSpeedExtensions public static Speed CentimetersPerHour(this T value) => Speed.FromCentimetersPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? CentimetersPerHour(this T? value) where T : struct => Speed.FromCentimetersPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToSpeedExtensions public static Speed CentimetersPerMinutes(this T value) => Speed.FromCentimetersPerMinutes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? CentimetersPerMinutes(this T? value) where T : struct => Speed.FromCentimetersPerMinutes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToSpeedExtensions public static Speed CentimetersPerSecond(this T value) => Speed.FromCentimetersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? CentimetersPerSecond(this T? value) where T : struct => Speed.FromCentimetersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToSpeedExtensions public static Speed DecimetersPerMinutes(this T value) => Speed.FromDecimetersPerMinutes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? DecimetersPerMinutes(this T? value) where T : struct => Speed.FromDecimetersPerMinutes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToSpeedExtensions public static Speed DecimetersPerSecond(this T value) => Speed.FromDecimetersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? DecimetersPerSecond(this T? value) where T : struct => Speed.FromDecimetersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToSpeedExtensions public static Speed FeetPerHour(this T value) => Speed.FromFeetPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? FeetPerHour(this T? value) where T : struct => Speed.FromFeetPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToSpeedExtensions public static Speed FeetPerMinute(this T value) => Speed.FromFeetPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? FeetPerMinute(this T? value) where T : struct => Speed.FromFeetPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToSpeedExtensions public static Speed FeetPerSecond(this T value) => Speed.FromFeetPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? FeetPerSecond(this T? value) where T : struct => Speed.FromFeetPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToSpeedExtensions public static Speed InchesPerHour(this T value) => Speed.FromInchesPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? InchesPerHour(this T? value) where T : struct => Speed.FromInchesPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToSpeedExtensions public static Speed InchesPerMinute(this T value) => Speed.FromInchesPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? InchesPerMinute(this T? value) where T : struct => Speed.FromInchesPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToSpeedExtensions public static Speed InchesPerSecond(this T value) => Speed.FromInchesPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? InchesPerSecond(this T? value) where T : struct => Speed.FromInchesPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToSpeedExtensions public static Speed KilometersPerHour(this T value) => Speed.FromKilometersPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? KilometersPerHour(this T? value) where T : struct => Speed.FromKilometersPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToSpeedExtensions public static Speed KilometersPerMinutes(this T value) => Speed.FromKilometersPerMinutes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? KilometersPerMinutes(this T? value) where T : struct => Speed.FromKilometersPerMinutes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToSpeedExtensions public static Speed KilometersPerSecond(this T value) => Speed.FromKilometersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? KilometersPerSecond(this T? value) where T : struct => Speed.FromKilometersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToSpeedExtensions public static Speed Knots(this T value) => Speed.FromKnots(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? Knots(this T? value) where T : struct => Speed.FromKnots(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToSpeedExtensions public static Speed MetersPerHour(this T value) => Speed.FromMetersPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? MetersPerHour(this T? value) where T : struct => Speed.FromMetersPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToSpeedExtensions public static Speed MetersPerMinutes(this T value) => Speed.FromMetersPerMinutes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? MetersPerMinutes(this T? value) where T : struct => Speed.FromMetersPerMinutes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToSpeedExtensions public static Speed MetersPerSecond(this T value) => Speed.FromMetersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? MetersPerSecond(this T? value) where T : struct => Speed.FromMetersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToSpeedExtensions public static Speed MicrometersPerMinutes(this T value) => Speed.FromMicrometersPerMinutes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? MicrometersPerMinutes(this T? value) where T : struct => Speed.FromMicrometersPerMinutes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToSpeedExtensions public static Speed MicrometersPerSecond(this T value) => Speed.FromMicrometersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? MicrometersPerSecond(this T? value) where T : struct => Speed.FromMicrometersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToSpeedExtensions public static Speed MilesPerHour(this T value) => Speed.FromMilesPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? MilesPerHour(this T? value) where T : struct => Speed.FromMilesPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToSpeedExtensions public static Speed MillimetersPerHour(this T value) => Speed.FromMillimetersPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? MillimetersPerHour(this T? value) where T : struct => Speed.FromMillimetersPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToSpeedExtensions public static Speed MillimetersPerMinutes(this T value) => Speed.FromMillimetersPerMinutes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? MillimetersPerMinutes(this T? value) where T : struct => Speed.FromMillimetersPerMinutes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToSpeedExtensions public static Speed MillimetersPerSecond(this T value) => Speed.FromMillimetersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? MillimetersPerSecond(this T? value) where T : struct => Speed.FromMillimetersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -290,6 +314,7 @@ public static class NumberToSpeedExtensions public static Speed NanometersPerMinutes(this T value) => Speed.FromNanometersPerMinutes(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? NanometersPerMinutes(this T? value) where T : struct => Speed.FromNanometersPerMinutes(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -300,6 +325,7 @@ public static class NumberToSpeedExtensions public static Speed NanometersPerSecond(this T value) => Speed.FromNanometersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? NanometersPerSecond(this T? value) where T : struct => Speed.FromNanometersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -310,6 +336,7 @@ public static class NumberToSpeedExtensions public static Speed UsSurveyFeetPerHour(this T value) => Speed.FromUsSurveyFeetPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? UsSurveyFeetPerHour(this T? value) where T : struct => Speed.FromUsSurveyFeetPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -320,6 +347,7 @@ public static class NumberToSpeedExtensions public static Speed UsSurveyFeetPerMinute(this T value) => Speed.FromUsSurveyFeetPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? UsSurveyFeetPerMinute(this T? value) where T : struct => Speed.FromUsSurveyFeetPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -330,6 +358,7 @@ public static class NumberToSpeedExtensions public static Speed UsSurveyFeetPerSecond(this T value) => Speed.FromUsSurveyFeetPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? UsSurveyFeetPerSecond(this T? value) where T : struct => Speed.FromUsSurveyFeetPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -340,6 +369,7 @@ public static class NumberToSpeedExtensions public static Speed YardsPerHour(this T value) => Speed.FromYardsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? YardsPerHour(this T? value) where T : struct => Speed.FromYardsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -350,6 +380,7 @@ public static class NumberToSpeedExtensions public static Speed YardsPerMinute(this T value) => Speed.FromYardsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? YardsPerMinute(this T? value) where T : struct => Speed.FromYardsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -360,6 +391,7 @@ public static class NumberToSpeedExtensions public static Speed YardsPerSecond(this T value) => Speed.FromYardsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? YardsPerSecond(this T? value) where T : struct => Speed.FromYardsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureChangeRateExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureChangeRateExtensions.g.cs index 7fb2565451..3e6946be23 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureChangeRateExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureChangeRateExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate CentidegreesCelsiusPerSecond(this T value) => TemperatureChangeRate.FromCentidegreesCelsiusPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? CentidegreesCelsiusPerSecond(this T? value) where T : struct => TemperatureChangeRate.FromCentidegreesCelsiusPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate DecadegreesCelsiusPerSecond(this T value) => TemperatureChangeRate.FromDecadegreesCelsiusPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? DecadegreesCelsiusPerSecond(this T? value) where T : struct => TemperatureChangeRate.FromDecadegreesCelsiusPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate DecidegreesCelsiusPerSecond(this T value) => TemperatureChangeRate.FromDecidegreesCelsiusPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? DecidegreesCelsiusPerSecond(this T? value) where T : struct => TemperatureChangeRate.FromDecidegreesCelsiusPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate DegreesCelsiusPerMinute(this T value) => TemperatureChangeRate.FromDegreesCelsiusPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? DegreesCelsiusPerMinute(this T? value) where T : struct => TemperatureChangeRate.FromDegreesCelsiusPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate DegreesCelsiusPerSecond(this T value) => TemperatureChangeRate.FromDegreesCelsiusPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? DegreesCelsiusPerSecond(this T? value) where T : struct => TemperatureChangeRate.FromDegreesCelsiusPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate HectodegreesCelsiusPerSecond(this T value) => TemperatureChangeRate.FromHectodegreesCelsiusPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? HectodegreesCelsiusPerSecond(this T? value) where T : struct => TemperatureChangeRate.FromHectodegreesCelsiusPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate KilodegreesCelsiusPerSecond(this T value) => TemperatureChangeRate.FromKilodegreesCelsiusPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? KilodegreesCelsiusPerSecond(this T? value) where T : struct => TemperatureChangeRate.FromKilodegreesCelsiusPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate MicrodegreesCelsiusPerSecond(this T value) => TemperatureChangeRate.FromMicrodegreesCelsiusPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? MicrodegreesCelsiusPerSecond(this T? value) where T : struct => TemperatureChangeRate.FromMicrodegreesCelsiusPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate MillidegreesCelsiusPerSecond(this T value) => TemperatureChangeRate.FromMillidegreesCelsiusPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? MillidegreesCelsiusPerSecond(this T? value) where T : struct => TemperatureChangeRate.FromMillidegreesCelsiusPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToTemperatureChangeRateExtensions public static TemperatureChangeRate NanodegreesCelsiusPerSecond(this T value) => TemperatureChangeRate.FromNanodegreesCelsiusPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? NanodegreesCelsiusPerSecond(this T? value) where T : struct => TemperatureChangeRate.FromNanodegreesCelsiusPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureDeltaExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureDeltaExtensions.g.cs index 71abb8abd2..f88a38736a 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureDeltaExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureDeltaExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesCelsius(this T value) => TemperatureDelta.FromDegreesCelsius(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesCelsius(this T? value) where T : struct => TemperatureDelta.FromDegreesCelsius(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesCelsiusDelta(this T value) => TemperatureDelta.FromDegreesCelsiusDelta(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesCelsiusDelta(this T? value) where T : struct => TemperatureDelta.FromDegreesCelsiusDelta(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesDelisle(this T value) => TemperatureDelta.FromDegreesDelisle(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesDelisle(this T? value) where T : struct => TemperatureDelta.FromDegreesDelisle(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesDelisleDelta(this T value) => TemperatureDelta.FromDegreesDelisleDelta(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesDelisleDelta(this T? value) where T : struct => TemperatureDelta.FromDegreesDelisleDelta(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesFahrenheit(this T value) => TemperatureDelta.FromDegreesFahrenheit(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesFahrenheit(this T? value) where T : struct => TemperatureDelta.FromDegreesFahrenheit(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesFahrenheitDelta(this T value) => TemperatureDelta.FromDegreesFahrenheitDelta(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesFahrenheitDelta(this T? value) where T : struct => TemperatureDelta.FromDegreesFahrenheitDelta(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesNewton(this T value) => TemperatureDelta.FromDegreesNewton(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesNewton(this T? value) where T : struct => TemperatureDelta.FromDegreesNewton(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesNewtonDelta(this T value) => TemperatureDelta.FromDegreesNewtonDelta(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesNewtonDelta(this T? value) where T : struct => TemperatureDelta.FromDegreesNewtonDelta(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesRankine(this T value) => TemperatureDelta.FromDegreesRankine(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesRankine(this T? value) where T : struct => TemperatureDelta.FromDegreesRankine(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesRankineDelta(this T value) => TemperatureDelta.FromDegreesRankineDelta(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesRankineDelta(this T? value) where T : struct => TemperatureDelta.FromDegreesRankineDelta(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesReaumur(this T value) => TemperatureDelta.FromDegreesReaumur(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesReaumur(this T? value) where T : struct => TemperatureDelta.FromDegreesReaumur(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesReaumurDelta(this T value) => TemperatureDelta.FromDegreesReaumurDelta(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesReaumurDelta(this T? value) where T : struct => TemperatureDelta.FromDegreesReaumurDelta(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesRoemer(this T value) => TemperatureDelta.FromDegreesRoemer(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesRoemer(this T? value) where T : struct => TemperatureDelta.FromDegreesRoemer(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta DegreesRoemerDelta(this T value) => TemperatureDelta.FromDegreesRoemerDelta(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? DegreesRoemerDelta(this T? value) where T : struct => TemperatureDelta.FromDegreesRoemerDelta(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta Kelvins(this T value) => TemperatureDelta.FromKelvins(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? Kelvins(this T? value) where T : struct => TemperatureDelta.FromKelvins(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToTemperatureDeltaExtensions public static TemperatureDelta KelvinsDelta(this T value) => TemperatureDelta.FromKelvinsDelta(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? KelvinsDelta(this T? value) where T : struct => TemperatureDelta.FromKelvinsDelta(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureExtensions.g.cs index 5035d32d88..74b3d22047 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToTemperatureExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToTemperatureExtensions public static Temperature DegreesCelsius(this T value) => Temperature.FromDegreesCelsius(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Temperature? DegreesCelsius(this T? value) where T : struct => Temperature.FromDegreesCelsius(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToTemperatureExtensions public static Temperature DegreesDelisle(this T value) => Temperature.FromDegreesDelisle(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Temperature? DegreesDelisle(this T? value) where T : struct => Temperature.FromDegreesDelisle(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToTemperatureExtensions public static Temperature DegreesFahrenheit(this T value) => Temperature.FromDegreesFahrenheit(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Temperature? DegreesFahrenheit(this T? value) where T : struct => Temperature.FromDegreesFahrenheit(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToTemperatureExtensions public static Temperature DegreesNewton(this T value) => Temperature.FromDegreesNewton(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Temperature? DegreesNewton(this T? value) where T : struct => Temperature.FromDegreesNewton(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToTemperatureExtensions public static Temperature DegreesRankine(this T value) => Temperature.FromDegreesRankine(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Temperature? DegreesRankine(this T? value) where T : struct => Temperature.FromDegreesRankine(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToTemperatureExtensions public static Temperature DegreesReaumur(this T value) => Temperature.FromDegreesReaumur(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Temperature? DegreesReaumur(this T? value) where T : struct => Temperature.FromDegreesReaumur(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToTemperatureExtensions public static Temperature DegreesRoemer(this T value) => Temperature.FromDegreesRoemer(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Temperature? DegreesRoemer(this T? value) where T : struct => Temperature.FromDegreesRoemer(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToTemperatureExtensions public static Temperature Kelvins(this T value) => Temperature.FromKelvins(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Temperature? Kelvins(this T? value) where T : struct => Temperature.FromKelvins(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToThermalConductivityExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToThermalConductivityExtensions.g.cs index 44d49ff792..dc9c3d7539 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToThermalConductivityExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToThermalConductivityExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToThermalConductivityExtensions public static ThermalConductivity BtusPerHourFootFahrenheit(this T value) => ThermalConductivity.FromBtusPerHourFootFahrenheit(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ThermalConductivity? BtusPerHourFootFahrenheit(this T? value) where T : struct => ThermalConductivity.FromBtusPerHourFootFahrenheit(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToThermalConductivityExtensions public static ThermalConductivity WattsPerMeterKelvin(this T value) => ThermalConductivity.FromWattsPerMeterKelvin(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ThermalConductivity? WattsPerMeterKelvin(this T? value) where T : struct => ThermalConductivity.FromWattsPerMeterKelvin(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToThermalResistanceExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToThermalResistanceExtensions.g.cs index 619c8adbf1..cd13575d0a 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToThermalResistanceExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToThermalResistanceExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToThermalResistanceExtensions public static ThermalResistance HourSquareFeetDegreesFahrenheitPerBtu(this T value) => ThermalResistance.FromHourSquareFeetDegreesFahrenheitPerBtu(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ThermalResistance? HourSquareFeetDegreesFahrenheitPerBtu(this T? value) where T : struct => ThermalResistance.FromHourSquareFeetDegreesFahrenheitPerBtu(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToThermalResistanceExtensions public static ThermalResistance SquareCentimeterHourDegreesCelsiusPerKilocalorie(this T value) => ThermalResistance.FromSquareCentimeterHourDegreesCelsiusPerKilocalorie(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ThermalResistance? SquareCentimeterHourDegreesCelsiusPerKilocalorie(this T? value) where T : struct => ThermalResistance.FromSquareCentimeterHourDegreesCelsiusPerKilocalorie(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToThermalResistanceExtensions public static ThermalResistance SquareCentimeterKelvinsPerWatt(this T value) => ThermalResistance.FromSquareCentimeterKelvinsPerWatt(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ThermalResistance? SquareCentimeterKelvinsPerWatt(this T? value) where T : struct => ThermalResistance.FromSquareCentimeterKelvinsPerWatt(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToThermalResistanceExtensions public static ThermalResistance SquareMeterDegreesCelsiusPerWatt(this T value) => ThermalResistance.FromSquareMeterDegreesCelsiusPerWatt(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ThermalResistance? SquareMeterDegreesCelsiusPerWatt(this T? value) where T : struct => ThermalResistance.FromSquareMeterDegreesCelsiusPerWatt(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToThermalResistanceExtensions public static ThermalResistance SquareMeterKelvinsPerKilowatt(this T value) => ThermalResistance.FromSquareMeterKelvinsPerKilowatt(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ThermalResistance? SquareMeterKelvinsPerKilowatt(this T? value) where T : struct => ThermalResistance.FromSquareMeterKelvinsPerKilowatt(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToTorqueExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToTorqueExtensions.g.cs index b720075f8e..3e373c103a 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToTorqueExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToTorqueExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToTorqueExtensions public static Torque KilogramForceCentimeters(this T value) => Torque.FromKilogramForceCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? KilogramForceCentimeters(this T? value) where T : struct => Torque.FromKilogramForceCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToTorqueExtensions public static Torque KilogramForceMeters(this T value) => Torque.FromKilogramForceMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? KilogramForceMeters(this T? value) where T : struct => Torque.FromKilogramForceMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToTorqueExtensions public static Torque KilogramForceMillimeters(this T value) => Torque.FromKilogramForceMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? KilogramForceMillimeters(this T? value) where T : struct => Torque.FromKilogramForceMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToTorqueExtensions public static Torque KilonewtonCentimeters(this T value) => Torque.FromKilonewtonCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? KilonewtonCentimeters(this T? value) where T : struct => Torque.FromKilonewtonCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToTorqueExtensions public static Torque KilonewtonMeters(this T value) => Torque.FromKilonewtonMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? KilonewtonMeters(this T? value) where T : struct => Torque.FromKilonewtonMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToTorqueExtensions public static Torque KilonewtonMillimeters(this T value) => Torque.FromKilonewtonMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? KilonewtonMillimeters(this T? value) where T : struct => Torque.FromKilonewtonMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToTorqueExtensions public static Torque KilopoundForceFeet(this T value) => Torque.FromKilopoundForceFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? KilopoundForceFeet(this T? value) where T : struct => Torque.FromKilopoundForceFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToTorqueExtensions public static Torque KilopoundForceInches(this T value) => Torque.FromKilopoundForceInches(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? KilopoundForceInches(this T? value) where T : struct => Torque.FromKilopoundForceInches(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToTorqueExtensions public static Torque MeganewtonCentimeters(this T value) => Torque.FromMeganewtonCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? MeganewtonCentimeters(this T? value) where T : struct => Torque.FromMeganewtonCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToTorqueExtensions public static Torque MeganewtonMeters(this T value) => Torque.FromMeganewtonMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? MeganewtonMeters(this T? value) where T : struct => Torque.FromMeganewtonMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToTorqueExtensions public static Torque MeganewtonMillimeters(this T value) => Torque.FromMeganewtonMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? MeganewtonMillimeters(this T? value) where T : struct => Torque.FromMeganewtonMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToTorqueExtensions public static Torque MegapoundForceFeet(this T value) => Torque.FromMegapoundForceFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? MegapoundForceFeet(this T? value) where T : struct => Torque.FromMegapoundForceFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToTorqueExtensions public static Torque MegapoundForceInches(this T value) => Torque.FromMegapoundForceInches(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? MegapoundForceInches(this T? value) where T : struct => Torque.FromMegapoundForceInches(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToTorqueExtensions public static Torque NewtonCentimeters(this T value) => Torque.FromNewtonCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? NewtonCentimeters(this T? value) where T : struct => Torque.FromNewtonCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToTorqueExtensions public static Torque NewtonMeters(this T value) => Torque.FromNewtonMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? NewtonMeters(this T? value) where T : struct => Torque.FromNewtonMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToTorqueExtensions public static Torque NewtonMillimeters(this T value) => Torque.FromNewtonMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? NewtonMillimeters(this T? value) where T : struct => Torque.FromNewtonMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToTorqueExtensions public static Torque PoundForceFeet(this T value) => Torque.FromPoundForceFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? PoundForceFeet(this T? value) where T : struct => Torque.FromPoundForceFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToTorqueExtensions public static Torque PoundForceInches(this T value) => Torque.FromPoundForceInches(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? PoundForceInches(this T? value) where T : struct => Torque.FromPoundForceInches(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToTorqueExtensions public static Torque TonneForceCentimeters(this T value) => Torque.FromTonneForceCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? TonneForceCentimeters(this T? value) where T : struct => Torque.FromTonneForceCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToTorqueExtensions public static Torque TonneForceMeters(this T value) => Torque.FromTonneForceMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? TonneForceMeters(this T? value) where T : struct => Torque.FromTonneForceMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToTorqueExtensions public static Torque TonneForceMillimeters(this T value) => Torque.FromTonneForceMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? TonneForceMillimeters(this T? value) where T : struct => Torque.FromTonneForceMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToVitaminAExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToVitaminAExtensions.g.cs index 1a2cebe803..748f471f95 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToVitaminAExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToVitaminAExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToVitaminAExtensions public static VitaminA InternationalUnits(this T value) => VitaminA.FromInternationalUnits(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VitaminA? InternationalUnits(this T? value) where T : struct => VitaminA.FromInternationalUnits(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToVolumeExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToVolumeExtensions.g.cs index c13da7e596..13c1b216e3 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToVolumeExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToVolumeExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToVolumeExtensions public static Volume AuTablespoons(this T value) => Volume.FromAuTablespoons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? AuTablespoons(this T? value) where T : struct => Volume.FromAuTablespoons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToVolumeExtensions public static Volume Centiliters(this T value) => Volume.FromCentiliters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? Centiliters(this T? value) where T : struct => Volume.FromCentiliters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToVolumeExtensions public static Volume CubicCentimeters(this T value) => Volume.FromCubicCentimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicCentimeters(this T? value) where T : struct => Volume.FromCubicCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToVolumeExtensions public static Volume CubicDecimeters(this T value) => Volume.FromCubicDecimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicDecimeters(this T? value) where T : struct => Volume.FromCubicDecimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToVolumeExtensions public static Volume CubicFeet(this T value) => Volume.FromCubicFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicFeet(this T? value) where T : struct => Volume.FromCubicFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToVolumeExtensions public static Volume CubicInches(this T value) => Volume.FromCubicInches(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicInches(this T? value) where T : struct => Volume.FromCubicInches(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToVolumeExtensions public static Volume CubicKilometers(this T value) => Volume.FromCubicKilometers(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicKilometers(this T? value) where T : struct => Volume.FromCubicKilometers(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToVolumeExtensions public static Volume CubicMeters(this T value) => Volume.FromCubicMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicMeters(this T? value) where T : struct => Volume.FromCubicMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToVolumeExtensions public static Volume CubicMicrometers(this T value) => Volume.FromCubicMicrometers(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicMicrometers(this T? value) where T : struct => Volume.FromCubicMicrometers(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToVolumeExtensions public static Volume CubicMiles(this T value) => Volume.FromCubicMiles(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicMiles(this T? value) where T : struct => Volume.FromCubicMiles(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToVolumeExtensions public static Volume CubicMillimeters(this T value) => Volume.FromCubicMillimeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicMillimeters(this T? value) where T : struct => Volume.FromCubicMillimeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToVolumeExtensions public static Volume CubicYards(this T value) => Volume.FromCubicYards(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? CubicYards(this T? value) where T : struct => Volume.FromCubicYards(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToVolumeExtensions public static Volume Deciliters(this T value) => Volume.FromDeciliters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? Deciliters(this T? value) where T : struct => Volume.FromDeciliters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToVolumeExtensions public static Volume HectocubicFeet(this T value) => Volume.FromHectocubicFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? HectocubicFeet(this T? value) where T : struct => Volume.FromHectocubicFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToVolumeExtensions public static Volume HectocubicMeters(this T value) => Volume.FromHectocubicMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? HectocubicMeters(this T? value) where T : struct => Volume.FromHectocubicMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToVolumeExtensions public static Volume Hectoliters(this T value) => Volume.FromHectoliters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? Hectoliters(this T? value) where T : struct => Volume.FromHectoliters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToVolumeExtensions public static Volume ImperialBeerBarrels(this T value) => Volume.FromImperialBeerBarrels(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? ImperialBeerBarrels(this T? value) where T : struct => Volume.FromImperialBeerBarrels(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToVolumeExtensions public static Volume ImperialGallons(this T value) => Volume.FromImperialGallons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? ImperialGallons(this T? value) where T : struct => Volume.FromImperialGallons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToVolumeExtensions public static Volume ImperialOunces(this T value) => Volume.FromImperialOunces(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? ImperialOunces(this T? value) where T : struct => Volume.FromImperialOunces(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToVolumeExtensions public static Volume KilocubicFeet(this T value) => Volume.FromKilocubicFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? KilocubicFeet(this T? value) where T : struct => Volume.FromKilocubicFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToVolumeExtensions public static Volume KilocubicMeters(this T value) => Volume.FromKilocubicMeters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? KilocubicMeters(this T? value) where T : struct => Volume.FromKilocubicMeters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToVolumeExtensions public static Volume KiloimperialGallons(this T value) => Volume.FromKiloimperialGallons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? KiloimperialGallons(this T? value) where T : struct => Volume.FromKiloimperialGallons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToVolumeExtensions public static Volume KilousGallons(this T value) => Volume.FromKilousGallons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? KilousGallons(this T? value) where T : struct => Volume.FromKilousGallons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToVolumeExtensions public static Volume Liters(this T value) => Volume.FromLiters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? Liters(this T? value) where T : struct => Volume.FromLiters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -290,6 +314,7 @@ public static class NumberToVolumeExtensions public static Volume MegacubicFeet(this T value) => Volume.FromMegacubicFeet(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? MegacubicFeet(this T? value) where T : struct => Volume.FromMegacubicFeet(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -300,6 +325,7 @@ public static class NumberToVolumeExtensions public static Volume MegaimperialGallons(this T value) => Volume.FromMegaimperialGallons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? MegaimperialGallons(this T? value) where T : struct => Volume.FromMegaimperialGallons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -310,6 +336,7 @@ public static class NumberToVolumeExtensions public static Volume MegausGallons(this T value) => Volume.FromMegausGallons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? MegausGallons(this T? value) where T : struct => Volume.FromMegausGallons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -320,6 +347,7 @@ public static class NumberToVolumeExtensions public static Volume MetricCups(this T value) => Volume.FromMetricCups(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? MetricCups(this T? value) where T : struct => Volume.FromMetricCups(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -330,6 +358,7 @@ public static class NumberToVolumeExtensions public static Volume MetricTeaspoons(this T value) => Volume.FromMetricTeaspoons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? MetricTeaspoons(this T? value) where T : struct => Volume.FromMetricTeaspoons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -340,6 +369,7 @@ public static class NumberToVolumeExtensions public static Volume Microliters(this T value) => Volume.FromMicroliters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? Microliters(this T? value) where T : struct => Volume.FromMicroliters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -350,6 +380,7 @@ public static class NumberToVolumeExtensions public static Volume Milliliters(this T value) => Volume.FromMilliliters(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? Milliliters(this T? value) where T : struct => Volume.FromMilliliters(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -360,6 +391,7 @@ public static class NumberToVolumeExtensions public static Volume OilBarrels(this T value) => Volume.FromOilBarrels(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? OilBarrels(this T? value) where T : struct => Volume.FromOilBarrels(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -370,6 +402,7 @@ public static class NumberToVolumeExtensions public static Volume Tablespoons(this T value) => Volume.FromTablespoons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? Tablespoons(this T? value) where T : struct => Volume.FromTablespoons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -380,6 +413,7 @@ public static class NumberToVolumeExtensions public static Volume Teaspoons(this T value) => Volume.FromTeaspoons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? Teaspoons(this T? value) where T : struct => Volume.FromTeaspoons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -390,6 +424,7 @@ public static class NumberToVolumeExtensions public static Volume UkTablespoons(this T value) => Volume.FromUkTablespoons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UkTablespoons(this T? value) where T : struct => Volume.FromUkTablespoons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -400,6 +435,7 @@ public static class NumberToVolumeExtensions public static Volume UsBeerBarrels(this T value) => Volume.FromUsBeerBarrels(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UsBeerBarrels(this T? value) where T : struct => Volume.FromUsBeerBarrels(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -410,6 +446,7 @@ public static class NumberToVolumeExtensions public static Volume UsCustomaryCups(this T value) => Volume.FromUsCustomaryCups(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UsCustomaryCups(this T? value) where T : struct => Volume.FromUsCustomaryCups(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -420,6 +457,7 @@ public static class NumberToVolumeExtensions public static Volume UsGallons(this T value) => Volume.FromUsGallons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UsGallons(this T? value) where T : struct => Volume.FromUsGallons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -430,6 +468,7 @@ public static class NumberToVolumeExtensions public static Volume UsLegalCups(this T value) => Volume.FromUsLegalCups(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UsLegalCups(this T? value) where T : struct => Volume.FromUsLegalCups(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -440,6 +479,7 @@ public static class NumberToVolumeExtensions public static Volume UsOunces(this T value) => Volume.FromUsOunces(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UsOunces(this T? value) where T : struct => Volume.FromUsOunces(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -450,6 +490,7 @@ public static class NumberToVolumeExtensions public static Volume UsPints(this T value) => Volume.FromUsPints(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UsPints(this T? value) where T : struct => Volume.FromUsPints(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -460,6 +501,7 @@ public static class NumberToVolumeExtensions public static Volume UsQuarts(this T value) => Volume.FromUsQuarts(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UsQuarts(this T? value) where T : struct => Volume.FromUsQuarts(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -470,6 +512,7 @@ public static class NumberToVolumeExtensions public static Volume UsTablespoons(this T value) => Volume.FromUsTablespoons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UsTablespoons(this T? value) where T : struct => Volume.FromUsTablespoons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -480,6 +523,7 @@ public static class NumberToVolumeExtensions public static Volume UsTeaspoons(this T value) => Volume.FromUsTeaspoons(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? UsTeaspoons(this T? value) where T : struct => Volume.FromUsTeaspoons(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Extensions/Number/NumberToVolumeFlowExtensions.g.cs b/UnitsNet/GeneratedCode/Extensions/Number/NumberToVolumeFlowExtensions.g.cs index 9baca116b4..19375aa8a8 100644 --- a/UnitsNet/GeneratedCode/Extensions/Number/NumberToVolumeFlowExtensions.g.cs +++ b/UnitsNet/GeneratedCode/Extensions/Number/NumberToVolumeFlowExtensions.g.cs @@ -50,6 +50,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CentilitersPerMinute(this T value) => VolumeFlow.FromCentilitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CentilitersPerMinute(this T? value) where T : struct => VolumeFlow.FromCentilitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -60,6 +61,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicDecimetersPerMinute(this T value) => VolumeFlow.FromCubicDecimetersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicDecimetersPerMinute(this T? value) where T : struct => VolumeFlow.FromCubicDecimetersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -70,6 +72,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicFeetPerHour(this T value) => VolumeFlow.FromCubicFeetPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicFeetPerHour(this T? value) where T : struct => VolumeFlow.FromCubicFeetPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -80,6 +83,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicFeetPerMinute(this T value) => VolumeFlow.FromCubicFeetPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicFeetPerMinute(this T? value) where T : struct => VolumeFlow.FromCubicFeetPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -90,6 +94,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicFeetPerSecond(this T value) => VolumeFlow.FromCubicFeetPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicFeetPerSecond(this T? value) where T : struct => VolumeFlow.FromCubicFeetPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -100,6 +105,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicMetersPerHour(this T value) => VolumeFlow.FromCubicMetersPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicMetersPerHour(this T? value) where T : struct => VolumeFlow.FromCubicMetersPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -110,6 +116,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicMetersPerMinute(this T value) => VolumeFlow.FromCubicMetersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicMetersPerMinute(this T? value) where T : struct => VolumeFlow.FromCubicMetersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -120,6 +127,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicMetersPerSecond(this T value) => VolumeFlow.FromCubicMetersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicMetersPerSecond(this T? value) where T : struct => VolumeFlow.FromCubicMetersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -130,6 +138,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicYardsPerHour(this T value) => VolumeFlow.FromCubicYardsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicYardsPerHour(this T? value) where T : struct => VolumeFlow.FromCubicYardsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -140,6 +149,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicYardsPerMinute(this T value) => VolumeFlow.FromCubicYardsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicYardsPerMinute(this T? value) where T : struct => VolumeFlow.FromCubicYardsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -150,6 +160,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow CubicYardsPerSecond(this T value) => VolumeFlow.FromCubicYardsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? CubicYardsPerSecond(this T? value) where T : struct => VolumeFlow.FromCubicYardsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -160,6 +171,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow DecilitersPerMinute(this T value) => VolumeFlow.FromDecilitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? DecilitersPerMinute(this T? value) where T : struct => VolumeFlow.FromDecilitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -170,6 +182,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow KilolitersPerMinute(this T value) => VolumeFlow.FromKilolitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? KilolitersPerMinute(this T? value) where T : struct => VolumeFlow.FromKilolitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -180,6 +193,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow LitersPerHour(this T value) => VolumeFlow.FromLitersPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? LitersPerHour(this T? value) where T : struct => VolumeFlow.FromLitersPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -190,6 +204,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow LitersPerMinute(this T value) => VolumeFlow.FromLitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? LitersPerMinute(this T? value) where T : struct => VolumeFlow.FromLitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -200,6 +215,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow LitersPerSecond(this T value) => VolumeFlow.FromLitersPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? LitersPerSecond(this T? value) where T : struct => VolumeFlow.FromLitersPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -210,6 +226,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow MicrolitersPerMinute(this T value) => VolumeFlow.FromMicrolitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? MicrolitersPerMinute(this T? value) where T : struct => VolumeFlow.FromMicrolitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -220,6 +237,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow MillilitersPerMinute(this T value) => VolumeFlow.FromMillilitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? MillilitersPerMinute(this T? value) where T : struct => VolumeFlow.FromMillilitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -230,6 +248,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow MillionUsGallonsPerDay(this T value) => VolumeFlow.FromMillionUsGallonsPerDay(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? MillionUsGallonsPerDay(this T? value) where T : struct => VolumeFlow.FromMillionUsGallonsPerDay(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -240,6 +259,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow NanolitersPerMinute(this T value) => VolumeFlow.FromNanolitersPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? NanolitersPerMinute(this T? value) where T : struct => VolumeFlow.FromNanolitersPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -250,6 +270,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow OilBarrelsPerDay(this T value) => VolumeFlow.FromOilBarrelsPerDay(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? OilBarrelsPerDay(this T? value) where T : struct => VolumeFlow.FromOilBarrelsPerDay(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -260,6 +281,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow OilBarrelsPerHour(this T value) => VolumeFlow.FromOilBarrelsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? OilBarrelsPerHour(this T? value) where T : struct => VolumeFlow.FromOilBarrelsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -270,6 +292,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow OilBarrelsPerMinute(this T value) => VolumeFlow.FromOilBarrelsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? OilBarrelsPerMinute(this T? value) where T : struct => VolumeFlow.FromOilBarrelsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -280,6 +303,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow UsGallonsPerHour(this T value) => VolumeFlow.FromUsGallonsPerHour(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? UsGallonsPerHour(this T? value) where T : struct => VolumeFlow.FromUsGallonsPerHour(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -290,6 +314,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow UsGallonsPerMinute(this T value) => VolumeFlow.FromUsGallonsPerMinute(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? UsGallonsPerMinute(this T? value) where T : struct => VolumeFlow.FromUsGallonsPerMinute(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion @@ -300,6 +325,7 @@ public static class NumberToVolumeFlowExtensions public static VolumeFlow UsGallonsPerSecond(this T value) => VolumeFlow.FromUsGallonsPerSecond(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? UsGallonsPerSecond(this T? value) where T : struct => VolumeFlow.FromUsGallonsPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/GeneratedCode/Quantities/Acceleration.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Acceleration.NetFramework.g.cs index 644c538eaf..afe7bad3d2 100644 --- a/UnitsNet/GeneratedCode/Quantities/Acceleration.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Acceleration.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable CentimetersPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromCentimetersPerSecondSquared(QuantityValue? centimeterspersecondsquared) { return centimeterspersecondsquared.HasValue ? FromCentimetersPerSecondSquared(centimeterspersecondsquared.Value) : default(Acceleration?); @@ -73,6 +74,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable DecimetersPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromDecimetersPerSecondSquared(QuantityValue? decimeterspersecondsquared) { return decimeterspersecondsquared.HasValue ? FromDecimetersPerSecondSquared(decimeterspersecondsquared.Value) : default(Acceleration?); @@ -81,6 +83,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable FeetPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromFeetPerSecondSquared(QuantityValue? feetpersecondsquared) { return feetpersecondsquared.HasValue ? FromFeetPerSecondSquared(feetpersecondsquared.Value) : default(Acceleration?); @@ -89,6 +92,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable InchesPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromInchesPerSecondSquared(QuantityValue? inchespersecondsquared) { return inchespersecondsquared.HasValue ? FromInchesPerSecondSquared(inchespersecondsquared.Value) : default(Acceleration?); @@ -97,6 +101,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable KilometersPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromKilometersPerSecondSquared(QuantityValue? kilometerspersecondsquared) { return kilometerspersecondsquared.HasValue ? FromKilometersPerSecondSquared(kilometerspersecondsquared.Value) : default(Acceleration?); @@ -105,6 +110,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable KnotsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromKnotsPerHour(QuantityValue? knotsperhour) { return knotsperhour.HasValue ? FromKnotsPerHour(knotsperhour.Value) : default(Acceleration?); @@ -113,6 +119,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable KnotsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromKnotsPerMinute(QuantityValue? knotsperminute) { return knotsperminute.HasValue ? FromKnotsPerMinute(knotsperminute.Value) : default(Acceleration?); @@ -121,6 +128,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable KnotsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromKnotsPerSecond(QuantityValue? knotspersecond) { return knotspersecond.HasValue ? FromKnotsPerSecond(knotspersecond.Value) : default(Acceleration?); @@ -129,6 +137,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable MetersPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromMetersPerSecondSquared(QuantityValue? meterspersecondsquared) { return meterspersecondsquared.HasValue ? FromMetersPerSecondSquared(meterspersecondsquared.Value) : default(Acceleration?); @@ -137,6 +146,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable MicrometersPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromMicrometersPerSecondSquared(QuantityValue? micrometerspersecondsquared) { return micrometerspersecondsquared.HasValue ? FromMicrometersPerSecondSquared(micrometerspersecondsquared.Value) : default(Acceleration?); @@ -145,6 +155,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable MillimetersPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromMillimetersPerSecondSquared(QuantityValue? millimeterspersecondsquared) { return millimeterspersecondsquared.HasValue ? FromMillimetersPerSecondSquared(millimeterspersecondsquared.Value) : default(Acceleration?); @@ -153,6 +164,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable NanometersPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromNanometersPerSecondSquared(QuantityValue? nanometerspersecondsquared) { return nanometerspersecondsquared.HasValue ? FromNanometersPerSecondSquared(nanometerspersecondsquared.Value) : default(Acceleration?); @@ -161,6 +173,7 @@ public partial struct Acceleration : IComparable, IComparable /// /// Get nullable Acceleration from nullable StandardGravity. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Acceleration? FromStandardGravity(QuantityValue? standardgravity) { return standardgravity.HasValue ? FromStandardGravity(standardgravity.Value) : default(Acceleration?); @@ -172,6 +185,7 @@ public partial struct Acceleration : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Acceleration unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Acceleration? From(QuantityValue? value, AccelerationUnit fromUnit) { return value.HasValue ? new Acceleration((double)value.Value, fromUnit) : default(Acceleration?); diff --git a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.NetFramework.g.cs index f5c04a7bd5..61e24dca68 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable Centimoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromCentimoles(QuantityValue? centimoles) { return centimoles.HasValue ? FromCentimoles(centimoles.Value) : default(AmountOfSubstance?); @@ -73,6 +74,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable CentipoundMoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromCentipoundMoles(QuantityValue? centipoundmoles) { return centipoundmoles.HasValue ? FromCentipoundMoles(centipoundmoles.Value) : default(AmountOfSubstance?); @@ -81,6 +83,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable Decimoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromDecimoles(QuantityValue? decimoles) { return decimoles.HasValue ? FromDecimoles(decimoles.Value) : default(AmountOfSubstance?); @@ -89,6 +92,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable DecipoundMoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromDecipoundMoles(QuantityValue? decipoundmoles) { return decipoundmoles.HasValue ? FromDecipoundMoles(decipoundmoles.Value) : default(AmountOfSubstance?); @@ -97,6 +101,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable Kilomoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromKilomoles(QuantityValue? kilomoles) { return kilomoles.HasValue ? FromKilomoles(kilomoles.Value) : default(AmountOfSubstance?); @@ -105,6 +110,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable KilopoundMoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromKilopoundMoles(QuantityValue? kilopoundmoles) { return kilopoundmoles.HasValue ? FromKilopoundMoles(kilopoundmoles.Value) : default(AmountOfSubstance?); @@ -113,6 +119,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable Micromoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromMicromoles(QuantityValue? micromoles) { return micromoles.HasValue ? FromMicromoles(micromoles.Value) : default(AmountOfSubstance?); @@ -121,6 +128,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable MicropoundMoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromMicropoundMoles(QuantityValue? micropoundmoles) { return micropoundmoles.HasValue ? FromMicropoundMoles(micropoundmoles.Value) : default(AmountOfSubstance?); @@ -129,6 +137,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable Millimoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromMillimoles(QuantityValue? millimoles) { return millimoles.HasValue ? FromMillimoles(millimoles.Value) : default(AmountOfSubstance?); @@ -137,6 +146,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable MillipoundMoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromMillipoundMoles(QuantityValue? millipoundmoles) { return millipoundmoles.HasValue ? FromMillipoundMoles(millipoundmoles.Value) : default(AmountOfSubstance?); @@ -145,6 +155,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable Moles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromMoles(QuantityValue? moles) { return moles.HasValue ? FromMoles(moles.Value) : default(AmountOfSubstance?); @@ -153,6 +164,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable Nanomoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromNanomoles(QuantityValue? nanomoles) { return nanomoles.HasValue ? FromNanomoles(nanomoles.Value) : default(AmountOfSubstance?); @@ -161,6 +173,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable NanopoundMoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromNanopoundMoles(QuantityValue? nanopoundmoles) { return nanopoundmoles.HasValue ? FromNanopoundMoles(nanopoundmoles.Value) : default(AmountOfSubstance?); @@ -169,6 +182,7 @@ public partial struct AmountOfSubstance : IComparable, IComparable /// Get nullable AmountOfSubstance from nullable PoundMoles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmountOfSubstance? FromPoundMoles(QuantityValue? poundmoles) { return poundmoles.HasValue ? FromPoundMoles(poundmoles.Value) : default(AmountOfSubstance?); @@ -180,6 +194,7 @@ public partial struct AmountOfSubstance : IComparable, IComparableValue to convert from. /// Unit to convert from. /// AmountOfSubstance unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmountOfSubstance? From(QuantityValue? value, AmountOfSubstanceUnit fromUnit) { return value.HasValue ? new AmountOfSubstance((double)value.Value, fromUnit) : default(AmountOfSubstance?); diff --git a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.NetFramework.g.cs index 79e121583f..23c643afd5 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct AmplitudeRatio : IComparable, IComparable /// /// Get nullable AmplitudeRatio from nullable DecibelMicrovolts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmplitudeRatio? FromDecibelMicrovolts(QuantityValue? decibelmicrovolts) { return decibelmicrovolts.HasValue ? FromDecibelMicrovolts(decibelmicrovolts.Value) : default(AmplitudeRatio?); @@ -73,6 +74,7 @@ public partial struct AmplitudeRatio : IComparable, IComparable /// /// Get nullable AmplitudeRatio from nullable DecibelMillivolts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmplitudeRatio? FromDecibelMillivolts(QuantityValue? decibelmillivolts) { return decibelmillivolts.HasValue ? FromDecibelMillivolts(decibelmillivolts.Value) : default(AmplitudeRatio?); @@ -81,6 +83,7 @@ public partial struct AmplitudeRatio : IComparable, IComparable /// /// Get nullable AmplitudeRatio from nullable DecibelsUnloaded. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmplitudeRatio? FromDecibelsUnloaded(QuantityValue? decibelsunloaded) { return decibelsunloaded.HasValue ? FromDecibelsUnloaded(decibelsunloaded.Value) : default(AmplitudeRatio?); @@ -89,6 +92,7 @@ public partial struct AmplitudeRatio : IComparable, IComparable /// /// Get nullable AmplitudeRatio from nullable DecibelVolts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AmplitudeRatio? FromDecibelVolts(QuantityValue? decibelvolts) { return decibelvolts.HasValue ? FromDecibelVolts(decibelvolts.Value) : default(AmplitudeRatio?); @@ -100,6 +104,7 @@ public partial struct AmplitudeRatio : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// AmplitudeRatio unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AmplitudeRatio? From(QuantityValue? value, AmplitudeRatioUnit fromUnit) { return value.HasValue ? new AmplitudeRatio((double)value.Value, fromUnit) : default(AmplitudeRatio?); diff --git a/UnitsNet/GeneratedCode/Quantities/Angle.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Angle.NetFramework.g.cs index ddef9c8e43..ca02498de4 100644 --- a/UnitsNet/GeneratedCode/Quantities/Angle.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Angle.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Arcminutes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromArcminutes(QuantityValue? arcminutes) { return arcminutes.HasValue ? FromArcminutes(arcminutes.Value) : default(Angle?); @@ -73,6 +74,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Arcseconds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromArcseconds(QuantityValue? arcseconds) { return arcseconds.HasValue ? FromArcseconds(arcseconds.Value) : default(Angle?); @@ -81,6 +83,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Centiradians. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromCentiradians(QuantityValue? centiradians) { return centiradians.HasValue ? FromCentiradians(centiradians.Value) : default(Angle?); @@ -89,6 +92,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Deciradians. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromDeciradians(QuantityValue? deciradians) { return deciradians.HasValue ? FromDeciradians(deciradians.Value) : default(Angle?); @@ -97,6 +101,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Degrees. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromDegrees(QuantityValue? degrees) { return degrees.HasValue ? FromDegrees(degrees.Value) : default(Angle?); @@ -105,6 +110,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Gradians. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromGradians(QuantityValue? gradians) { return gradians.HasValue ? FromGradians(gradians.Value) : default(Angle?); @@ -113,6 +119,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Microdegrees. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromMicrodegrees(QuantityValue? microdegrees) { return microdegrees.HasValue ? FromMicrodegrees(microdegrees.Value) : default(Angle?); @@ -121,6 +128,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Microradians. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromMicroradians(QuantityValue? microradians) { return microradians.HasValue ? FromMicroradians(microradians.Value) : default(Angle?); @@ -129,6 +137,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Millidegrees. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromMillidegrees(QuantityValue? millidegrees) { return millidegrees.HasValue ? FromMillidegrees(millidegrees.Value) : default(Angle?); @@ -137,6 +146,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Milliradians. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromMilliradians(QuantityValue? milliradians) { return milliradians.HasValue ? FromMilliradians(milliradians.Value) : default(Angle?); @@ -145,6 +155,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Nanodegrees. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromNanodegrees(QuantityValue? nanodegrees) { return nanodegrees.HasValue ? FromNanodegrees(nanodegrees.Value) : default(Angle?); @@ -153,6 +164,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Nanoradians. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromNanoradians(QuantityValue? nanoradians) { return nanoradians.HasValue ? FromNanoradians(nanoradians.Value) : default(Angle?); @@ -161,6 +173,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Radians. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromRadians(QuantityValue? radians) { return radians.HasValue ? FromRadians(radians.Value) : default(Angle?); @@ -169,6 +182,7 @@ public partial struct Angle : IComparable, IComparable /// /// Get nullable Angle from nullable Revolutions. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Angle? FromRevolutions(QuantityValue? revolutions) { return revolutions.HasValue ? FromRevolutions(revolutions.Value) : default(Angle?); @@ -180,6 +194,7 @@ public partial struct Angle : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Angle unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Angle? From(QuantityValue? value, AngleUnit fromUnit) { return value.HasValue ? new Angle((double)value.Value, fromUnit) : default(Angle?); diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.NetFramework.g.cs index c63d6ec6f8..05dfc23e9d 100644 --- a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ApparentEnergy : IComparable, IComparable /// /// Get nullable ApparentEnergy from nullable KilovoltampereHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ApparentEnergy? FromKilovoltampereHours(QuantityValue? kilovoltamperehours) { return kilovoltamperehours.HasValue ? FromKilovoltampereHours(kilovoltamperehours.Value) : default(ApparentEnergy?); @@ -73,6 +74,7 @@ public partial struct ApparentEnergy : IComparable, IComparable /// /// Get nullable ApparentEnergy from nullable MegavoltampereHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ApparentEnergy? FromMegavoltampereHours(QuantityValue? megavoltamperehours) { return megavoltamperehours.HasValue ? FromMegavoltampereHours(megavoltamperehours.Value) : default(ApparentEnergy?); @@ -81,6 +83,7 @@ public partial struct ApparentEnergy : IComparable, IComparable /// /// Get nullable ApparentEnergy from nullable VoltampereHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ApparentEnergy? FromVoltampereHours(QuantityValue? voltamperehours) { return voltamperehours.HasValue ? FromVoltampereHours(voltamperehours.Value) : default(ApparentEnergy?); @@ -92,6 +95,7 @@ public partial struct ApparentEnergy : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// ApparentEnergy unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ApparentEnergy? From(QuantityValue? value, ApparentEnergyUnit fromUnit) { return value.HasValue ? new ApparentEnergy((double)value.Value, fromUnit) : default(ApparentEnergy?); diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentPower.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentPower.NetFramework.g.cs index 6a77db10c6..aea8d678f7 100644 --- a/UnitsNet/GeneratedCode/Quantities/ApparentPower.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ApparentPower.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ApparentPower : IComparable, IComparable /// /// Get nullable ApparentPower from nullable Gigavoltamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ApparentPower? FromGigavoltamperes(QuantityValue? gigavoltamperes) { return gigavoltamperes.HasValue ? FromGigavoltamperes(gigavoltamperes.Value) : default(ApparentPower?); @@ -73,6 +74,7 @@ public partial struct ApparentPower : IComparable, IComparable /// /// Get nullable ApparentPower from nullable Kilovoltamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ApparentPower? FromKilovoltamperes(QuantityValue? kilovoltamperes) { return kilovoltamperes.HasValue ? FromKilovoltamperes(kilovoltamperes.Value) : default(ApparentPower?); @@ -81,6 +83,7 @@ public partial struct ApparentPower : IComparable, IComparable /// /// Get nullable ApparentPower from nullable Megavoltamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ApparentPower? FromMegavoltamperes(QuantityValue? megavoltamperes) { return megavoltamperes.HasValue ? FromMegavoltamperes(megavoltamperes.Value) : default(ApparentPower?); @@ -89,6 +92,7 @@ public partial struct ApparentPower : IComparable, IComparable /// /// Get nullable ApparentPower from nullable Voltamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ApparentPower? FromVoltamperes(QuantityValue? voltamperes) { return voltamperes.HasValue ? FromVoltamperes(voltamperes.Value) : default(ApparentPower?); @@ -100,6 +104,7 @@ public partial struct ApparentPower : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// ApparentPower unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ApparentPower? From(QuantityValue? value, ApparentPowerUnit fromUnit) { return value.HasValue ? new ApparentPower((double)value.Value, fromUnit) : default(ApparentPower?); diff --git a/UnitsNet/GeneratedCode/Quantities/Area.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Area.NetFramework.g.cs index e32c869441..5235e24c0d 100644 --- a/UnitsNet/GeneratedCode/Quantities/Area.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Area.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable Acres. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromAcres(QuantityValue? acres) { return acres.HasValue ? FromAcres(acres.Value) : default(Area?); @@ -73,6 +74,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable Hectares. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromHectares(QuantityValue? hectares) { return hectares.HasValue ? FromHectares(hectares.Value) : default(Area?); @@ -81,6 +83,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareCentimeters(QuantityValue? squarecentimeters) { return squarecentimeters.HasValue ? FromSquareCentimeters(squarecentimeters.Value) : default(Area?); @@ -89,6 +92,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareDecimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareDecimeters(QuantityValue? squaredecimeters) { return squaredecimeters.HasValue ? FromSquareDecimeters(squaredecimeters.Value) : default(Area?); @@ -97,6 +101,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareFeet(QuantityValue? squarefeet) { return squarefeet.HasValue ? FromSquareFeet(squarefeet.Value) : default(Area?); @@ -105,6 +110,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareInches. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareInches(QuantityValue? squareinches) { return squareinches.HasValue ? FromSquareInches(squareinches.Value) : default(Area?); @@ -113,6 +119,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareKilometers. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareKilometers(QuantityValue? squarekilometers) { return squarekilometers.HasValue ? FromSquareKilometers(squarekilometers.Value) : default(Area?); @@ -121,6 +128,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareMeters(QuantityValue? squaremeters) { return squaremeters.HasValue ? FromSquareMeters(squaremeters.Value) : default(Area?); @@ -129,6 +137,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareMicrometers. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareMicrometers(QuantityValue? squaremicrometers) { return squaremicrometers.HasValue ? FromSquareMicrometers(squaremicrometers.Value) : default(Area?); @@ -137,6 +146,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareMiles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareMiles(QuantityValue? squaremiles) { return squaremiles.HasValue ? FromSquareMiles(squaremiles.Value) : default(Area?); @@ -145,6 +155,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareMillimeters(QuantityValue? squaremillimeters) { return squaremillimeters.HasValue ? FromSquareMillimeters(squaremillimeters.Value) : default(Area?); @@ -153,6 +164,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable SquareYards. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromSquareYards(QuantityValue? squareyards) { return squareyards.HasValue ? FromSquareYards(squareyards.Value) : default(Area?); @@ -161,6 +173,7 @@ public partial struct Area : IComparable, IComparable /// /// Get nullable Area from nullable UsSurveySquareFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Area? FromUsSurveySquareFeet(QuantityValue? ussurveysquarefeet) { return ussurveysquarefeet.HasValue ? FromUsSurveySquareFeet(ussurveysquarefeet.Value) : default(Area?); @@ -172,6 +185,7 @@ public partial struct Area : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Area unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Area? From(QuantityValue? value, AreaUnit fromUnit) { return value.HasValue ? new Area((double)value.Value, fromUnit) : default(Area?); diff --git a/UnitsNet/GeneratedCode/Quantities/AreaDensity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaDensity.NetFramework.g.cs index 278ba3bfa9..842a74b281 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaDensity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaDensity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct AreaDensity : IComparable, IComparable /// /// Get nullable AreaDensity from nullable KilogramsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AreaDensity? FromKilogramsPerSquareMeter(QuantityValue? kilogramspersquaremeter) { return kilogramspersquaremeter.HasValue ? FromKilogramsPerSquareMeter(kilogramspersquaremeter.Value) : default(AreaDensity?); @@ -76,6 +77,7 @@ public partial struct AreaDensity : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// AreaDensity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AreaDensity? From(QuantityValue? value, AreaDensityUnit fromUnit) { return value.HasValue ? new AreaDensity((double)value.Value, fromUnit) : default(AreaDensity?); diff --git a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.NetFramework.g.cs index b28cdaa9e5..76f090fc9d 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct AreaMomentOfInertia : IComparable, IComparable /// Get nullable AreaMomentOfInertia from nullable CentimetersToTheFourth. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AreaMomentOfInertia? FromCentimetersToTheFourth(QuantityValue? centimeterstothefourth) { return centimeterstothefourth.HasValue ? FromCentimetersToTheFourth(centimeterstothefourth.Value) : default(AreaMomentOfInertia?); @@ -73,6 +74,7 @@ public partial struct AreaMomentOfInertia : IComparable, IComparable /// Get nullable AreaMomentOfInertia from nullable DecimetersToTheFourth. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AreaMomentOfInertia? FromDecimetersToTheFourth(QuantityValue? decimeterstothefourth) { return decimeterstothefourth.HasValue ? FromDecimetersToTheFourth(decimeterstothefourth.Value) : default(AreaMomentOfInertia?); @@ -81,6 +83,7 @@ public partial struct AreaMomentOfInertia : IComparable, IComparable /// Get nullable AreaMomentOfInertia from nullable FeetToTheFourth. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AreaMomentOfInertia? FromFeetToTheFourth(QuantityValue? feettothefourth) { return feettothefourth.HasValue ? FromFeetToTheFourth(feettothefourth.Value) : default(AreaMomentOfInertia?); @@ -89,6 +92,7 @@ public partial struct AreaMomentOfInertia : IComparable, IComparable /// Get nullable AreaMomentOfInertia from nullable InchesToTheFourth. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AreaMomentOfInertia? FromInchesToTheFourth(QuantityValue? inchestothefourth) { return inchestothefourth.HasValue ? FromInchesToTheFourth(inchestothefourth.Value) : default(AreaMomentOfInertia?); @@ -97,6 +101,7 @@ public partial struct AreaMomentOfInertia : IComparable, IComparable /// Get nullable AreaMomentOfInertia from nullable MetersToTheFourth. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AreaMomentOfInertia? FromMetersToTheFourth(QuantityValue? meterstothefourth) { return meterstothefourth.HasValue ? FromMetersToTheFourth(meterstothefourth.Value) : default(AreaMomentOfInertia?); @@ -105,6 +110,7 @@ public partial struct AreaMomentOfInertia : IComparable, IComparable /// Get nullable AreaMomentOfInertia from nullable MillimetersToTheFourth. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static AreaMomentOfInertia? FromMillimetersToTheFourth(QuantityValue? millimeterstothefourth) { return millimeterstothefourth.HasValue ? FromMillimetersToTheFourth(millimeterstothefourth.Value) : default(AreaMomentOfInertia?); @@ -116,6 +122,7 @@ public partial struct AreaMomentOfInertia : IComparable, IComparableValue to convert from. /// Unit to convert from. /// AreaMomentOfInertia unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static AreaMomentOfInertia? From(QuantityValue? value, AreaMomentOfInertiaUnit fromUnit) { return value.HasValue ? new AreaMomentOfInertia((double)value.Value, fromUnit) : default(AreaMomentOfInertia?); diff --git a/UnitsNet/GeneratedCode/Quantities/BitRate.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/BitRate.NetFramework.g.cs index 0eaa2e45d4..222a886e70 100644 --- a/UnitsNet/GeneratedCode/Quantities/BitRate.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BitRate.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable BitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromBitsPerSecond(QuantityValue? bitspersecond) { return bitspersecond.HasValue ? FromBitsPerSecond(bitspersecond.Value) : default(BitRate?); @@ -73,6 +74,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable BytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromBytesPerSecond(QuantityValue? bytespersecond) { return bytespersecond.HasValue ? FromBytesPerSecond(bytespersecond.Value) : default(BitRate?); @@ -81,6 +83,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable ExabitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromExabitsPerSecond(QuantityValue? exabitspersecond) { return exabitspersecond.HasValue ? FromExabitsPerSecond(exabitspersecond.Value) : default(BitRate?); @@ -89,6 +92,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable ExabytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromExabytesPerSecond(QuantityValue? exabytespersecond) { return exabytespersecond.HasValue ? FromExabytesPerSecond(exabytespersecond.Value) : default(BitRate?); @@ -97,6 +101,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable ExbibitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromExbibitsPerSecond(QuantityValue? exbibitspersecond) { return exbibitspersecond.HasValue ? FromExbibitsPerSecond(exbibitspersecond.Value) : default(BitRate?); @@ -105,6 +110,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable ExbibytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromExbibytesPerSecond(QuantityValue? exbibytespersecond) { return exbibytespersecond.HasValue ? FromExbibytesPerSecond(exbibytespersecond.Value) : default(BitRate?); @@ -113,6 +119,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable GibibitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromGibibitsPerSecond(QuantityValue? gibibitspersecond) { return gibibitspersecond.HasValue ? FromGibibitsPerSecond(gibibitspersecond.Value) : default(BitRate?); @@ -121,6 +128,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable GibibytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromGibibytesPerSecond(QuantityValue? gibibytespersecond) { return gibibytespersecond.HasValue ? FromGibibytesPerSecond(gibibytespersecond.Value) : default(BitRate?); @@ -129,6 +137,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable GigabitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromGigabitsPerSecond(QuantityValue? gigabitspersecond) { return gigabitspersecond.HasValue ? FromGigabitsPerSecond(gigabitspersecond.Value) : default(BitRate?); @@ -137,6 +146,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable GigabytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromGigabytesPerSecond(QuantityValue? gigabytespersecond) { return gigabytespersecond.HasValue ? FromGigabytesPerSecond(gigabytespersecond.Value) : default(BitRate?); @@ -145,6 +155,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable KibibitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromKibibitsPerSecond(QuantityValue? kibibitspersecond) { return kibibitspersecond.HasValue ? FromKibibitsPerSecond(kibibitspersecond.Value) : default(BitRate?); @@ -153,6 +164,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable KibibytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromKibibytesPerSecond(QuantityValue? kibibytespersecond) { return kibibytespersecond.HasValue ? FromKibibytesPerSecond(kibibytespersecond.Value) : default(BitRate?); @@ -161,6 +173,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable KilobitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromKilobitsPerSecond(QuantityValue? kilobitspersecond) { return kilobitspersecond.HasValue ? FromKilobitsPerSecond(kilobitspersecond.Value) : default(BitRate?); @@ -169,6 +182,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable KilobytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromKilobytesPerSecond(QuantityValue? kilobytespersecond) { return kilobytespersecond.HasValue ? FromKilobytesPerSecond(kilobytespersecond.Value) : default(BitRate?); @@ -177,6 +191,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable MebibitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromMebibitsPerSecond(QuantityValue? mebibitspersecond) { return mebibitspersecond.HasValue ? FromMebibitsPerSecond(mebibitspersecond.Value) : default(BitRate?); @@ -185,6 +200,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable MebibytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromMebibytesPerSecond(QuantityValue? mebibytespersecond) { return mebibytespersecond.HasValue ? FromMebibytesPerSecond(mebibytespersecond.Value) : default(BitRate?); @@ -193,6 +209,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable MegabitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromMegabitsPerSecond(QuantityValue? megabitspersecond) { return megabitspersecond.HasValue ? FromMegabitsPerSecond(megabitspersecond.Value) : default(BitRate?); @@ -201,6 +218,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable MegabytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromMegabytesPerSecond(QuantityValue? megabytespersecond) { return megabytespersecond.HasValue ? FromMegabytesPerSecond(megabytespersecond.Value) : default(BitRate?); @@ -209,6 +227,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable PebibitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromPebibitsPerSecond(QuantityValue? pebibitspersecond) { return pebibitspersecond.HasValue ? FromPebibitsPerSecond(pebibitspersecond.Value) : default(BitRate?); @@ -217,6 +236,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable PebibytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromPebibytesPerSecond(QuantityValue? pebibytespersecond) { return pebibytespersecond.HasValue ? FromPebibytesPerSecond(pebibytespersecond.Value) : default(BitRate?); @@ -225,6 +245,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable PetabitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromPetabitsPerSecond(QuantityValue? petabitspersecond) { return petabitspersecond.HasValue ? FromPetabitsPerSecond(petabitspersecond.Value) : default(BitRate?); @@ -233,6 +254,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable PetabytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromPetabytesPerSecond(QuantityValue? petabytespersecond) { return petabytespersecond.HasValue ? FromPetabytesPerSecond(petabytespersecond.Value) : default(BitRate?); @@ -241,6 +263,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable TebibitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromTebibitsPerSecond(QuantityValue? tebibitspersecond) { return tebibitspersecond.HasValue ? FromTebibitsPerSecond(tebibitspersecond.Value) : default(BitRate?); @@ -249,6 +272,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable TebibytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromTebibytesPerSecond(QuantityValue? tebibytespersecond) { return tebibytespersecond.HasValue ? FromTebibytesPerSecond(tebibytespersecond.Value) : default(BitRate?); @@ -257,6 +281,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable TerabitsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromTerabitsPerSecond(QuantityValue? terabitspersecond) { return terabitspersecond.HasValue ? FromTerabitsPerSecond(terabitspersecond.Value) : default(BitRate?); @@ -265,6 +290,7 @@ public partial struct BitRate : IComparable, IComparable /// /// Get nullable BitRate from nullable TerabytesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BitRate? FromTerabytesPerSecond(QuantityValue? terabytespersecond) { return terabytespersecond.HasValue ? FromTerabytesPerSecond(terabytespersecond.Value) : default(BitRate?); @@ -276,6 +302,7 @@ public partial struct BitRate : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// BitRate unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BitRate? From(QuantityValue? value, BitRateUnit fromUnit) { return value.HasValue ? new BitRate((decimal)value.Value, fromUnit) : default(BitRate?); diff --git a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.NetFramework.g.cs index e0f25c1a25..9de58b5023 100644 --- a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct BrakeSpecificFuelConsumption : IComparable, IComparable
/// Get nullable BrakeSpecificFuelConsumption from nullable GramsPerKiloWattHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BrakeSpecificFuelConsumption? FromGramsPerKiloWattHour(QuantityValue? gramsperkilowatthour) { return gramsperkilowatthour.HasValue ? FromGramsPerKiloWattHour(gramsperkilowatthour.Value) : default(BrakeSpecificFuelConsumption?); @@ -73,6 +74,7 @@ public partial struct BrakeSpecificFuelConsumption : IComparable, IComparable
/// Get nullable BrakeSpecificFuelConsumption from nullable KilogramsPerJoule. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BrakeSpecificFuelConsumption? FromKilogramsPerJoule(QuantityValue? kilogramsperjoule) { return kilogramsperjoule.HasValue ? FromKilogramsPerJoule(kilogramsperjoule.Value) : default(BrakeSpecificFuelConsumption?); @@ -81,6 +83,7 @@ public partial struct BrakeSpecificFuelConsumption : IComparable, IComparable
/// Get nullable BrakeSpecificFuelConsumption from nullable PoundsPerMechanicalHorsepowerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static BrakeSpecificFuelConsumption? FromPoundsPerMechanicalHorsepowerHour(QuantityValue? poundspermechanicalhorsepowerhour) { return poundspermechanicalhorsepowerhour.HasValue ? FromPoundsPerMechanicalHorsepowerHour(poundspermechanicalhorsepowerhour.Value) : default(BrakeSpecificFuelConsumption?); @@ -92,6 +95,7 @@ public partial struct BrakeSpecificFuelConsumption : IComparable, IComparable
Value to convert from. /// Unit to convert from. /// BrakeSpecificFuelConsumption unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static BrakeSpecificFuelConsumption? From(QuantityValue? value, BrakeSpecificFuelConsumptionUnit fromUnit) { return value.HasValue ? new BrakeSpecificFuelConsumption((double)value.Value, fromUnit) : default(BrakeSpecificFuelConsumption?); diff --git a/UnitsNet/GeneratedCode/Quantities/Capacitance.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Capacitance.NetFramework.g.cs index 5779b55b85..1a0f3a3dd9 100644 --- a/UnitsNet/GeneratedCode/Quantities/Capacitance.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Capacitance.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Capacitance : IComparable, IComparable /// /// Get nullable Capacitance from nullable Farads. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Capacitance? FromFarads(QuantityValue? farads) { return farads.HasValue ? FromFarads(farads.Value) : default(Capacitance?); @@ -76,6 +77,7 @@ public partial struct Capacitance : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Capacitance unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Capacitance? From(QuantityValue? value, CapacitanceUnit fromUnit) { return value.HasValue ? new Capacitance((double)value.Value, fromUnit) : default(Capacitance?); diff --git a/UnitsNet/GeneratedCode/Quantities/Density.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Density.NetFramework.g.cs index 0e180b1118..adc1b74e5f 100644 --- a/UnitsNet/GeneratedCode/Quantities/Density.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Density.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable CentigramsPerDeciLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromCentigramsPerDeciLiter(QuantityValue? centigramsperdeciliter) { return centigramsperdeciliter.HasValue ? FromCentigramsPerDeciLiter(centigramsperdeciliter.Value) : default(Density?); @@ -73,6 +74,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable CentigramsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromCentigramsPerLiter(QuantityValue? centigramsperliter) { return centigramsperliter.HasValue ? FromCentigramsPerLiter(centigramsperliter.Value) : default(Density?); @@ -81,6 +83,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable CentigramsPerMilliliter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromCentigramsPerMilliliter(QuantityValue? centigramspermilliliter) { return centigramspermilliliter.HasValue ? FromCentigramsPerMilliliter(centigramspermilliliter.Value) : default(Density?); @@ -89,6 +92,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable DecigramsPerDeciLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromDecigramsPerDeciLiter(QuantityValue? decigramsperdeciliter) { return decigramsperdeciliter.HasValue ? FromDecigramsPerDeciLiter(decigramsperdeciliter.Value) : default(Density?); @@ -97,6 +101,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable DecigramsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromDecigramsPerLiter(QuantityValue? decigramsperliter) { return decigramsperliter.HasValue ? FromDecigramsPerLiter(decigramsperliter.Value) : default(Density?); @@ -105,6 +110,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable DecigramsPerMilliliter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromDecigramsPerMilliliter(QuantityValue? decigramspermilliliter) { return decigramspermilliliter.HasValue ? FromDecigramsPerMilliliter(decigramspermilliliter.Value) : default(Density?); @@ -113,6 +119,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable GramsPerCubicCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromGramsPerCubicCentimeter(QuantityValue? gramspercubiccentimeter) { return gramspercubiccentimeter.HasValue ? FromGramsPerCubicCentimeter(gramspercubiccentimeter.Value) : default(Density?); @@ -121,6 +128,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable GramsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromGramsPerCubicMeter(QuantityValue? gramspercubicmeter) { return gramspercubicmeter.HasValue ? FromGramsPerCubicMeter(gramspercubicmeter.Value) : default(Density?); @@ -129,6 +137,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable GramsPerCubicMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromGramsPerCubicMillimeter(QuantityValue? gramspercubicmillimeter) { return gramspercubicmillimeter.HasValue ? FromGramsPerCubicMillimeter(gramspercubicmillimeter.Value) : default(Density?); @@ -137,6 +146,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable GramsPerDeciLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromGramsPerDeciLiter(QuantityValue? gramsperdeciliter) { return gramsperdeciliter.HasValue ? FromGramsPerDeciLiter(gramsperdeciliter.Value) : default(Density?); @@ -145,6 +155,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable GramsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromGramsPerLiter(QuantityValue? gramsperliter) { return gramsperliter.HasValue ? FromGramsPerLiter(gramsperliter.Value) : default(Density?); @@ -153,6 +164,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable GramsPerMilliliter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromGramsPerMilliliter(QuantityValue? gramspermilliliter) { return gramspermilliliter.HasValue ? FromGramsPerMilliliter(gramspermilliliter.Value) : default(Density?); @@ -161,6 +173,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable KilogramsPerCubicCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromKilogramsPerCubicCentimeter(QuantityValue? kilogramspercubiccentimeter) { return kilogramspercubiccentimeter.HasValue ? FromKilogramsPerCubicCentimeter(kilogramspercubiccentimeter.Value) : default(Density?); @@ -169,6 +182,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable KilogramsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromKilogramsPerCubicMeter(QuantityValue? kilogramspercubicmeter) { return kilogramspercubicmeter.HasValue ? FromKilogramsPerCubicMeter(kilogramspercubicmeter.Value) : default(Density?); @@ -177,6 +191,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable KilogramsPerCubicMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromKilogramsPerCubicMillimeter(QuantityValue? kilogramspercubicmillimeter) { return kilogramspercubicmillimeter.HasValue ? FromKilogramsPerCubicMillimeter(kilogramspercubicmillimeter.Value) : default(Density?); @@ -185,6 +200,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable KilopoundsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromKilopoundsPerCubicFoot(QuantityValue? kilopoundspercubicfoot) { return kilopoundspercubicfoot.HasValue ? FromKilopoundsPerCubicFoot(kilopoundspercubicfoot.Value) : default(Density?); @@ -193,6 +209,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable KilopoundsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromKilopoundsPerCubicInch(QuantityValue? kilopoundspercubicinch) { return kilopoundspercubicinch.HasValue ? FromKilopoundsPerCubicInch(kilopoundspercubicinch.Value) : default(Density?); @@ -201,6 +218,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable MicrogramsPerDeciLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromMicrogramsPerDeciLiter(QuantityValue? microgramsperdeciliter) { return microgramsperdeciliter.HasValue ? FromMicrogramsPerDeciLiter(microgramsperdeciliter.Value) : default(Density?); @@ -209,6 +227,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable MicrogramsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromMicrogramsPerLiter(QuantityValue? microgramsperliter) { return microgramsperliter.HasValue ? FromMicrogramsPerLiter(microgramsperliter.Value) : default(Density?); @@ -217,6 +236,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable MicrogramsPerMilliliter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromMicrogramsPerMilliliter(QuantityValue? microgramspermilliliter) { return microgramspermilliliter.HasValue ? FromMicrogramsPerMilliliter(microgramspermilliliter.Value) : default(Density?); @@ -225,6 +245,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable MilligramsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromMilligramsPerCubicMeter(QuantityValue? milligramspercubicmeter) { return milligramspercubicmeter.HasValue ? FromMilligramsPerCubicMeter(milligramspercubicmeter.Value) : default(Density?); @@ -233,6 +254,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable MilligramsPerDeciLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromMilligramsPerDeciLiter(QuantityValue? milligramsperdeciliter) { return milligramsperdeciliter.HasValue ? FromMilligramsPerDeciLiter(milligramsperdeciliter.Value) : default(Density?); @@ -241,6 +263,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable MilligramsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromMilligramsPerLiter(QuantityValue? milligramsperliter) { return milligramsperliter.HasValue ? FromMilligramsPerLiter(milligramsperliter.Value) : default(Density?); @@ -249,6 +272,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable MilligramsPerMilliliter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromMilligramsPerMilliliter(QuantityValue? milligramspermilliliter) { return milligramspermilliliter.HasValue ? FromMilligramsPerMilliliter(milligramspermilliliter.Value) : default(Density?); @@ -257,6 +281,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable NanogramsPerDeciLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromNanogramsPerDeciLiter(QuantityValue? nanogramsperdeciliter) { return nanogramsperdeciliter.HasValue ? FromNanogramsPerDeciLiter(nanogramsperdeciliter.Value) : default(Density?); @@ -265,6 +290,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable NanogramsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromNanogramsPerLiter(QuantityValue? nanogramsperliter) { return nanogramsperliter.HasValue ? FromNanogramsPerLiter(nanogramsperliter.Value) : default(Density?); @@ -273,6 +299,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable NanogramsPerMilliliter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromNanogramsPerMilliliter(QuantityValue? nanogramspermilliliter) { return nanogramspermilliliter.HasValue ? FromNanogramsPerMilliliter(nanogramspermilliliter.Value) : default(Density?); @@ -281,6 +308,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable PicogramsPerDeciLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromPicogramsPerDeciLiter(QuantityValue? picogramsperdeciliter) { return picogramsperdeciliter.HasValue ? FromPicogramsPerDeciLiter(picogramsperdeciliter.Value) : default(Density?); @@ -289,6 +317,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable PicogramsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromPicogramsPerLiter(QuantityValue? picogramsperliter) { return picogramsperliter.HasValue ? FromPicogramsPerLiter(picogramsperliter.Value) : default(Density?); @@ -297,6 +326,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable PicogramsPerMilliliter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromPicogramsPerMilliliter(QuantityValue? picogramspermilliliter) { return picogramspermilliliter.HasValue ? FromPicogramsPerMilliliter(picogramspermilliliter.Value) : default(Density?); @@ -305,6 +335,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable PoundsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromPoundsPerCubicFoot(QuantityValue? poundspercubicfoot) { return poundspercubicfoot.HasValue ? FromPoundsPerCubicFoot(poundspercubicfoot.Value) : default(Density?); @@ -313,6 +344,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable PoundsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromPoundsPerCubicInch(QuantityValue? poundspercubicinch) { return poundspercubicinch.HasValue ? FromPoundsPerCubicInch(poundspercubicinch.Value) : default(Density?); @@ -321,6 +353,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable PoundsPerImperialGallon. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromPoundsPerImperialGallon(QuantityValue? poundsperimperialgallon) { return poundsperimperialgallon.HasValue ? FromPoundsPerImperialGallon(poundsperimperialgallon.Value) : default(Density?); @@ -329,6 +362,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable PoundsPerUSGallon. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromPoundsPerUSGallon(QuantityValue? poundsperusgallon) { return poundsperusgallon.HasValue ? FromPoundsPerUSGallon(poundsperusgallon.Value) : default(Density?); @@ -337,6 +371,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable SlugsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromSlugsPerCubicFoot(QuantityValue? slugspercubicfoot) { return slugspercubicfoot.HasValue ? FromSlugsPerCubicFoot(slugspercubicfoot.Value) : default(Density?); @@ -345,6 +380,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable TonnesPerCubicCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromTonnesPerCubicCentimeter(QuantityValue? tonnespercubiccentimeter) { return tonnespercubiccentimeter.HasValue ? FromTonnesPerCubicCentimeter(tonnespercubiccentimeter.Value) : default(Density?); @@ -353,6 +389,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable TonnesPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromTonnesPerCubicMeter(QuantityValue? tonnespercubicmeter) { return tonnespercubicmeter.HasValue ? FromTonnesPerCubicMeter(tonnespercubicmeter.Value) : default(Density?); @@ -361,6 +398,7 @@ public partial struct Density : IComparable, IComparable /// /// Get nullable Density from nullable TonnesPerCubicMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Density? FromTonnesPerCubicMillimeter(QuantityValue? tonnespercubicmillimeter) { return tonnespercubicmillimeter.HasValue ? FromTonnesPerCubicMillimeter(tonnespercubicmillimeter.Value) : default(Density?); @@ -372,6 +410,7 @@ public partial struct Density : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Density unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Density? From(QuantityValue? value, DensityUnit fromUnit) { return value.HasValue ? new Density((double)value.Value, fromUnit) : default(Density?); diff --git a/UnitsNet/GeneratedCode/Quantities/Duration.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Duration.NetFramework.g.cs index a7eb65a870..351f373794 100644 --- a/UnitsNet/GeneratedCode/Quantities/Duration.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Duration.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Days. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromDays(QuantityValue? days) { return days.HasValue ? FromDays(days.Value) : default(Duration?); @@ -73,6 +74,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Hours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromHours(QuantityValue? hours) { return hours.HasValue ? FromHours(hours.Value) : default(Duration?); @@ -81,6 +83,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Microseconds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromMicroseconds(QuantityValue? microseconds) { return microseconds.HasValue ? FromMicroseconds(microseconds.Value) : default(Duration?); @@ -89,6 +92,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Milliseconds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromMilliseconds(QuantityValue? milliseconds) { return milliseconds.HasValue ? FromMilliseconds(milliseconds.Value) : default(Duration?); @@ -97,6 +101,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Minutes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromMinutes(QuantityValue? minutes) { return minutes.HasValue ? FromMinutes(minutes.Value) : default(Duration?); @@ -105,6 +110,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Months. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromMonths(QuantityValue? months) { return months.HasValue ? FromMonths(months.Value) : default(Duration?); @@ -113,6 +119,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Months30. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromMonths30(QuantityValue? months30) { return months30.HasValue ? FromMonths30(months30.Value) : default(Duration?); @@ -121,6 +128,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Nanoseconds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromNanoseconds(QuantityValue? nanoseconds) { return nanoseconds.HasValue ? FromNanoseconds(nanoseconds.Value) : default(Duration?); @@ -129,6 +137,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Seconds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromSeconds(QuantityValue? seconds) { return seconds.HasValue ? FromSeconds(seconds.Value) : default(Duration?); @@ -137,6 +146,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Weeks. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromWeeks(QuantityValue? weeks) { return weeks.HasValue ? FromWeeks(weeks.Value) : default(Duration?); @@ -145,6 +155,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Years. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromYears(QuantityValue? years) { return years.HasValue ? FromYears(years.Value) : default(Duration?); @@ -153,6 +164,7 @@ public partial struct Duration : IComparable, IComparable /// /// Get nullable Duration from nullable Years365. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Duration? FromYears365(QuantityValue? years365) { return years365.HasValue ? FromYears365(years365.Value) : default(Duration?); @@ -164,6 +176,7 @@ public partial struct Duration : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Duration unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Duration? From(QuantityValue? value, DurationUnit fromUnit) { return value.HasValue ? new Duration((double)value.Value, fromUnit) : default(Duration?); diff --git a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.NetFramework.g.cs index 2d335dfde8..40c15616e8 100644 --- a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct DynamicViscosity : IComparable, IComparable /// Get nullable DynamicViscosity from nullable Centipoise. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static DynamicViscosity? FromCentipoise(QuantityValue? centipoise) { return centipoise.HasValue ? FromCentipoise(centipoise.Value) : default(DynamicViscosity?); @@ -73,6 +74,7 @@ public partial struct DynamicViscosity : IComparable, IComparable /// Get nullable DynamicViscosity from nullable MicropascalSeconds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static DynamicViscosity? FromMicropascalSeconds(QuantityValue? micropascalseconds) { return micropascalseconds.HasValue ? FromMicropascalSeconds(micropascalseconds.Value) : default(DynamicViscosity?); @@ -81,6 +83,7 @@ public partial struct DynamicViscosity : IComparable, IComparable /// Get nullable DynamicViscosity from nullable MillipascalSeconds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static DynamicViscosity? FromMillipascalSeconds(QuantityValue? millipascalseconds) { return millipascalseconds.HasValue ? FromMillipascalSeconds(millipascalseconds.Value) : default(DynamicViscosity?); @@ -89,6 +92,7 @@ public partial struct DynamicViscosity : IComparable, IComparable /// Get nullable DynamicViscosity from nullable NewtonSecondsPerMeterSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static DynamicViscosity? FromNewtonSecondsPerMeterSquared(QuantityValue? newtonsecondspermetersquared) { return newtonsecondspermetersquared.HasValue ? FromNewtonSecondsPerMeterSquared(newtonsecondspermetersquared.Value) : default(DynamicViscosity?); @@ -97,6 +101,7 @@ public partial struct DynamicViscosity : IComparable, IComparable /// Get nullable DynamicViscosity from nullable PascalSeconds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static DynamicViscosity? FromPascalSeconds(QuantityValue? pascalseconds) { return pascalseconds.HasValue ? FromPascalSeconds(pascalseconds.Value) : default(DynamicViscosity?); @@ -105,6 +110,7 @@ public partial struct DynamicViscosity : IComparable, IComparable /// Get nullable DynamicViscosity from nullable Poise. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static DynamicViscosity? FromPoise(QuantityValue? poise) { return poise.HasValue ? FromPoise(poise.Value) : default(DynamicViscosity?); @@ -116,6 +122,7 @@ public partial struct DynamicViscosity : IComparable, IComparableValue to convert from. /// Unit to convert from. /// DynamicViscosity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static DynamicViscosity? From(QuantityValue? value, DynamicViscosityUnit fromUnit) { return value.HasValue ? new DynamicViscosity((double)value.Value, fromUnit) : default(DynamicViscosity?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.NetFramework.g.cs index 02b40ce273..d1814b926c 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricAdmittance : IComparable, IComparable /// Get nullable ElectricAdmittance from nullable Microsiemens. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricAdmittance? FromMicrosiemens(QuantityValue? microsiemens) { return microsiemens.HasValue ? FromMicrosiemens(microsiemens.Value) : default(ElectricAdmittance?); @@ -73,6 +74,7 @@ public partial struct ElectricAdmittance : IComparable, IComparable /// Get nullable ElectricAdmittance from nullable Millisiemens. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricAdmittance? FromMillisiemens(QuantityValue? millisiemens) { return millisiemens.HasValue ? FromMillisiemens(millisiemens.Value) : default(ElectricAdmittance?); @@ -81,6 +83,7 @@ public partial struct ElectricAdmittance : IComparable, IComparable /// Get nullable ElectricAdmittance from nullable Nanosiemens. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricAdmittance? FromNanosiemens(QuantityValue? nanosiemens) { return nanosiemens.HasValue ? FromNanosiemens(nanosiemens.Value) : default(ElectricAdmittance?); @@ -89,6 +92,7 @@ public partial struct ElectricAdmittance : IComparable, IComparable /// Get nullable ElectricAdmittance from nullable Siemens. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricAdmittance? FromSiemens(QuantityValue? siemens) { return siemens.HasValue ? FromSiemens(siemens.Value) : default(ElectricAdmittance?); @@ -100,6 +104,7 @@ public partial struct ElectricAdmittance : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricAdmittance unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricAdmittance? From(QuantityValue? value, ElectricAdmittanceUnit fromUnit) { return value.HasValue ? new ElectricAdmittance((double)value.Value, fromUnit) : default(ElectricAdmittance?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.NetFramework.g.cs index 3ed54bddbd..de311c02d2 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricCharge : IComparable, IComparable /// /// Get nullable ElectricCharge from nullable Coulombs. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCharge? FromCoulombs(QuantityValue? coulombs) { return coulombs.HasValue ? FromCoulombs(coulombs.Value) : default(ElectricCharge?); @@ -76,6 +77,7 @@ public partial struct ElectricCharge : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// ElectricCharge unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCharge? From(QuantityValue? value, ElectricChargeUnit fromUnit) { return value.HasValue ? new ElectricCharge((double)value.Value, fromUnit) : default(ElectricCharge?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.NetFramework.g.cs index 0a665b703a..e5ac919058 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricChargeDensity : IComparable, IComparable /// Get nullable ElectricChargeDensity from nullable CoulombsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricChargeDensity? FromCoulombsPerCubicMeter(QuantityValue? coulombspercubicmeter) { return coulombspercubicmeter.HasValue ? FromCoulombsPerCubicMeter(coulombspercubicmeter.Value) : default(ElectricChargeDensity?); @@ -76,6 +77,7 @@ public partial struct ElectricChargeDensity : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricChargeDensity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricChargeDensity? From(QuantityValue? value, ElectricChargeDensityUnit fromUnit) { return value.HasValue ? new ElectricChargeDensity((double)value.Value, fromUnit) : default(ElectricChargeDensity?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.NetFramework.g.cs index 9104ff6bdf..c8e5ee97db 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricConductance : IComparable, IComparable /// Get nullable ElectricConductance from nullable Microsiemens. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricConductance? FromMicrosiemens(QuantityValue? microsiemens) { return microsiemens.HasValue ? FromMicrosiemens(microsiemens.Value) : default(ElectricConductance?); @@ -73,6 +74,7 @@ public partial struct ElectricConductance : IComparable, IComparable /// Get nullable ElectricConductance from nullable Millisiemens. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricConductance? FromMillisiemens(QuantityValue? millisiemens) { return millisiemens.HasValue ? FromMillisiemens(millisiemens.Value) : default(ElectricConductance?); @@ -81,6 +83,7 @@ public partial struct ElectricConductance : IComparable, IComparable /// Get nullable ElectricConductance from nullable Siemens. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricConductance? FromSiemens(QuantityValue? siemens) { return siemens.HasValue ? FromSiemens(siemens.Value) : default(ElectricConductance?); @@ -92,6 +95,7 @@ public partial struct ElectricConductance : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricConductance unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricConductance? From(QuantityValue? value, ElectricConductanceUnit fromUnit) { return value.HasValue ? new ElectricConductance((double)value.Value, fromUnit) : default(ElectricConductance?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.NetFramework.g.cs index 9d951c80e7..d74de9be33 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricConductivity : IComparable, IComparable /// Get nullable ElectricConductivity from nullable SiemensPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricConductivity? FromSiemensPerMeter(QuantityValue? siemenspermeter) { return siemenspermeter.HasValue ? FromSiemensPerMeter(siemenspermeter.Value) : default(ElectricConductivity?); @@ -76,6 +77,7 @@ public partial struct ElectricConductivity : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricConductivity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricConductivity? From(QuantityValue? value, ElectricConductivityUnit fromUnit) { return value.HasValue ? new ElectricConductivity((double)value.Value, fromUnit) : default(ElectricConductivity?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.NetFramework.g.cs index e35f985f28..0f5858fe1b 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricCurrent : IComparable, IComparable /// Get nullable ElectricCurrent from nullable Amperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrent? FromAmperes(QuantityValue? amperes) { return amperes.HasValue ? FromAmperes(amperes.Value) : default(ElectricCurrent?); @@ -73,6 +74,7 @@ public partial struct ElectricCurrent : IComparable, IComparable /// Get nullable ElectricCurrent from nullable Centiamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrent? FromCentiamperes(QuantityValue? centiamperes) { return centiamperes.HasValue ? FromCentiamperes(centiamperes.Value) : default(ElectricCurrent?); @@ -81,6 +83,7 @@ public partial struct ElectricCurrent : IComparable, IComparable /// Get nullable ElectricCurrent from nullable Kiloamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrent? FromKiloamperes(QuantityValue? kiloamperes) { return kiloamperes.HasValue ? FromKiloamperes(kiloamperes.Value) : default(ElectricCurrent?); @@ -89,6 +92,7 @@ public partial struct ElectricCurrent : IComparable, IComparable /// Get nullable ElectricCurrent from nullable Megaamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrent? FromMegaamperes(QuantityValue? megaamperes) { return megaamperes.HasValue ? FromMegaamperes(megaamperes.Value) : default(ElectricCurrent?); @@ -97,6 +101,7 @@ public partial struct ElectricCurrent : IComparable, IComparable /// Get nullable ElectricCurrent from nullable Microamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrent? FromMicroamperes(QuantityValue? microamperes) { return microamperes.HasValue ? FromMicroamperes(microamperes.Value) : default(ElectricCurrent?); @@ -105,6 +110,7 @@ public partial struct ElectricCurrent : IComparable, IComparable /// Get nullable ElectricCurrent from nullable Milliamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrent? FromMilliamperes(QuantityValue? milliamperes) { return milliamperes.HasValue ? FromMilliamperes(milliamperes.Value) : default(ElectricCurrent?); @@ -113,6 +119,7 @@ public partial struct ElectricCurrent : IComparable, IComparable /// Get nullable ElectricCurrent from nullable Nanoamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrent? FromNanoamperes(QuantityValue? nanoamperes) { return nanoamperes.HasValue ? FromNanoamperes(nanoamperes.Value) : default(ElectricCurrent?); @@ -121,6 +128,7 @@ public partial struct ElectricCurrent : IComparable, IComparable /// Get nullable ElectricCurrent from nullable Picoamperes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrent? FromPicoamperes(QuantityValue? picoamperes) { return picoamperes.HasValue ? FromPicoamperes(picoamperes.Value) : default(ElectricCurrent?); @@ -132,6 +140,7 @@ public partial struct ElectricCurrent : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricCurrent unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrent? From(QuantityValue? value, ElectricCurrentUnit fromUnit) { return value.HasValue ? new ElectricCurrent((double)value.Value, fromUnit) : default(ElectricCurrent?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.NetFramework.g.cs index 39c2273c1a..4ac621d58f 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricCurrentDensity : IComparable, IComparable /// Get nullable ElectricCurrentDensity from nullable AmperesPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrentDensity? FromAmperesPerSquareMeter(QuantityValue? amperespersquaremeter) { return amperespersquaremeter.HasValue ? FromAmperesPerSquareMeter(amperespersquaremeter.Value) : default(ElectricCurrentDensity?); @@ -76,6 +77,7 @@ public partial struct ElectricCurrentDensity : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricCurrentDensity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrentDensity? From(QuantityValue? value, ElectricCurrentDensityUnit fromUnit) { return value.HasValue ? new ElectricCurrentDensity((double)value.Value, fromUnit) : default(ElectricCurrentDensity?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.NetFramework.g.cs index 2cd2db1ff1..1bdea233a1 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricCurrentGradient : IComparable, IComparable /// Get nullable ElectricCurrentGradient from nullable AmperesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricCurrentGradient? FromAmperesPerSecond(QuantityValue? amperespersecond) { return amperespersecond.HasValue ? FromAmperesPerSecond(amperespersecond.Value) : default(ElectricCurrentGradient?); @@ -76,6 +77,7 @@ public partial struct ElectricCurrentGradient : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricCurrentGradient unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricCurrentGradient? From(QuantityValue? value, ElectricCurrentGradientUnit fromUnit) { return value.HasValue ? new ElectricCurrentGradient((double)value.Value, fromUnit) : default(ElectricCurrentGradient?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricField.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricField.NetFramework.g.cs index 4e9fa3a7a3..5f7b4d55cd 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricField.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricField.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricField : IComparable, IComparable /// /// Get nullable ElectricField from nullable VoltsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricField? FromVoltsPerMeter(QuantityValue? voltspermeter) { return voltspermeter.HasValue ? FromVoltsPerMeter(voltspermeter.Value) : default(ElectricField?); @@ -76,6 +77,7 @@ public partial struct ElectricField : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// ElectricField unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricField? From(QuantityValue? value, ElectricFieldUnit fromUnit) { return value.HasValue ? new ElectricField((double)value.Value, fromUnit) : default(ElectricField?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.NetFramework.g.cs index f7cbc92424..8b8e0060e5 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricInductance : IComparable, IComparable /// Get nullable ElectricInductance from nullable Henries. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricInductance? FromHenries(QuantityValue? henries) { return henries.HasValue ? FromHenries(henries.Value) : default(ElectricInductance?); @@ -76,6 +77,7 @@ public partial struct ElectricInductance : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricInductance unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricInductance? From(QuantityValue? value, ElectricInductanceUnit fromUnit) { return value.HasValue ? new ElectricInductance((double)value.Value, fromUnit) : default(ElectricInductance?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.NetFramework.g.cs index 2dd37fb563..f9cebf55a4 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricPotential : IComparable, IComparable /// Get nullable ElectricPotential from nullable Kilovolts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotential? FromKilovolts(QuantityValue? kilovolts) { return kilovolts.HasValue ? FromKilovolts(kilovolts.Value) : default(ElectricPotential?); @@ -73,6 +74,7 @@ public partial struct ElectricPotential : IComparable, IComparable /// Get nullable ElectricPotential from nullable Megavolts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotential? FromMegavolts(QuantityValue? megavolts) { return megavolts.HasValue ? FromMegavolts(megavolts.Value) : default(ElectricPotential?); @@ -81,6 +83,7 @@ public partial struct ElectricPotential : IComparable, IComparable /// Get nullable ElectricPotential from nullable Microvolts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotential? FromMicrovolts(QuantityValue? microvolts) { return microvolts.HasValue ? FromMicrovolts(microvolts.Value) : default(ElectricPotential?); @@ -89,6 +92,7 @@ public partial struct ElectricPotential : IComparable, IComparable /// Get nullable ElectricPotential from nullable Millivolts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotential? FromMillivolts(QuantityValue? millivolts) { return millivolts.HasValue ? FromMillivolts(millivolts.Value) : default(ElectricPotential?); @@ -97,6 +101,7 @@ public partial struct ElectricPotential : IComparable, IComparable /// Get nullable ElectricPotential from nullable Volts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotential? FromVolts(QuantityValue? volts) { return volts.HasValue ? FromVolts(volts.Value) : default(ElectricPotential?); @@ -108,6 +113,7 @@ public partial struct ElectricPotential : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricPotential unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotential? From(QuantityValue? value, ElectricPotentialUnit fromUnit) { return value.HasValue ? new ElectricPotential((double)value.Value, fromUnit) : default(ElectricPotential?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.NetFramework.g.cs index a77dd9627d..f3df5f0762 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricPotentialAc : IComparable, IComparable /// Get nullable ElectricPotentialAc from nullable KilovoltsAc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialAc? FromKilovoltsAc(QuantityValue? kilovoltsac) { return kilovoltsac.HasValue ? FromKilovoltsAc(kilovoltsac.Value) : default(ElectricPotentialAc?); @@ -73,6 +74,7 @@ public partial struct ElectricPotentialAc : IComparable, IComparable /// Get nullable ElectricPotentialAc from nullable MegavoltsAc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialAc? FromMegavoltsAc(QuantityValue? megavoltsac) { return megavoltsac.HasValue ? FromMegavoltsAc(megavoltsac.Value) : default(ElectricPotentialAc?); @@ -81,6 +83,7 @@ public partial struct ElectricPotentialAc : IComparable, IComparable /// Get nullable ElectricPotentialAc from nullable MicrovoltsAc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialAc? FromMicrovoltsAc(QuantityValue? microvoltsac) { return microvoltsac.HasValue ? FromMicrovoltsAc(microvoltsac.Value) : default(ElectricPotentialAc?); @@ -89,6 +92,7 @@ public partial struct ElectricPotentialAc : IComparable, IComparable /// Get nullable ElectricPotentialAc from nullable MillivoltsAc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialAc? FromMillivoltsAc(QuantityValue? millivoltsac) { return millivoltsac.HasValue ? FromMillivoltsAc(millivoltsac.Value) : default(ElectricPotentialAc?); @@ -97,6 +101,7 @@ public partial struct ElectricPotentialAc : IComparable, IComparable /// Get nullable ElectricPotentialAc from nullable VoltsAc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialAc? FromVoltsAc(QuantityValue? voltsac) { return voltsac.HasValue ? FromVoltsAc(voltsac.Value) : default(ElectricPotentialAc?); @@ -108,6 +113,7 @@ public partial struct ElectricPotentialAc : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricPotentialAc unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialAc? From(QuantityValue? value, ElectricPotentialAcUnit fromUnit) { return value.HasValue ? new ElectricPotentialAc((double)value.Value, fromUnit) : default(ElectricPotentialAc?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.NetFramework.g.cs index 1b4ce12b6a..ea6f85c7ae 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricPotentialDc : IComparable, IComparable /// Get nullable ElectricPotentialDc from nullable KilovoltsDc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialDc? FromKilovoltsDc(QuantityValue? kilovoltsdc) { return kilovoltsdc.HasValue ? FromKilovoltsDc(kilovoltsdc.Value) : default(ElectricPotentialDc?); @@ -73,6 +74,7 @@ public partial struct ElectricPotentialDc : IComparable, IComparable /// Get nullable ElectricPotentialDc from nullable MegavoltsDc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialDc? FromMegavoltsDc(QuantityValue? megavoltsdc) { return megavoltsdc.HasValue ? FromMegavoltsDc(megavoltsdc.Value) : default(ElectricPotentialDc?); @@ -81,6 +83,7 @@ public partial struct ElectricPotentialDc : IComparable, IComparable /// Get nullable ElectricPotentialDc from nullable MicrovoltsDc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialDc? FromMicrovoltsDc(QuantityValue? microvoltsdc) { return microvoltsdc.HasValue ? FromMicrovoltsDc(microvoltsdc.Value) : default(ElectricPotentialDc?); @@ -89,6 +92,7 @@ public partial struct ElectricPotentialDc : IComparable, IComparable /// Get nullable ElectricPotentialDc from nullable MillivoltsDc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialDc? FromMillivoltsDc(QuantityValue? millivoltsdc) { return millivoltsdc.HasValue ? FromMillivoltsDc(millivoltsdc.Value) : default(ElectricPotentialDc?); @@ -97,6 +101,7 @@ public partial struct ElectricPotentialDc : IComparable, IComparable /// Get nullable ElectricPotentialDc from nullable VoltsDc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricPotentialDc? FromVoltsDc(QuantityValue? voltsdc) { return voltsdc.HasValue ? FromVoltsDc(voltsdc.Value) : default(ElectricPotentialDc?); @@ -108,6 +113,7 @@ public partial struct ElectricPotentialDc : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricPotentialDc unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricPotentialDc? From(QuantityValue? value, ElectricPotentialDcUnit fromUnit) { return value.HasValue ? new ElectricPotentialDc((double)value.Value, fromUnit) : default(ElectricPotentialDc?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.NetFramework.g.cs index de58881cc2..df944cce7a 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricResistance : IComparable, IComparable /// Get nullable ElectricResistance from nullable Kiloohms. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricResistance? FromKiloohms(QuantityValue? kiloohms) { return kiloohms.HasValue ? FromKiloohms(kiloohms.Value) : default(ElectricResistance?); @@ -73,6 +74,7 @@ public partial struct ElectricResistance : IComparable, IComparable /// Get nullable ElectricResistance from nullable Megaohms. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricResistance? FromMegaohms(QuantityValue? megaohms) { return megaohms.HasValue ? FromMegaohms(megaohms.Value) : default(ElectricResistance?); @@ -81,6 +83,7 @@ public partial struct ElectricResistance : IComparable, IComparable /// Get nullable ElectricResistance from nullable Milliohms. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricResistance? FromMilliohms(QuantityValue? milliohms) { return milliohms.HasValue ? FromMilliohms(milliohms.Value) : default(ElectricResistance?); @@ -89,6 +92,7 @@ public partial struct ElectricResistance : IComparable, IComparable /// Get nullable ElectricResistance from nullable Ohms. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricResistance? FromOhms(QuantityValue? ohms) { return ohms.HasValue ? FromOhms(ohms.Value) : default(ElectricResistance?); @@ -100,6 +104,7 @@ public partial struct ElectricResistance : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricResistance unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistance? From(QuantityValue? value, ElectricResistanceUnit fromUnit) { return value.HasValue ? new ElectricResistance((double)value.Value, fromUnit) : default(ElectricResistance?); diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.NetFramework.g.cs index 776db8657d..e909be0ec1 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ElectricResistivity : IComparable, IComparable /// Get nullable ElectricResistivity from nullable MicroohmMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricResistivity? FromMicroohmMeters(QuantityValue? microohmmeters) { return microohmmeters.HasValue ? FromMicroohmMeters(microohmmeters.Value) : default(ElectricResistivity?); @@ -73,6 +74,7 @@ public partial struct ElectricResistivity : IComparable, IComparable /// Get nullable ElectricResistivity from nullable MilliohmMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricResistivity? FromMilliohmMeters(QuantityValue? milliohmmeters) { return milliohmmeters.HasValue ? FromMilliohmMeters(milliohmmeters.Value) : default(ElectricResistivity?); @@ -81,6 +83,7 @@ public partial struct ElectricResistivity : IComparable, IComparable /// Get nullable ElectricResistivity from nullable NanoohmMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricResistivity? FromNanoohmMeters(QuantityValue? nanoohmmeters) { return nanoohmmeters.HasValue ? FromNanoohmMeters(nanoohmmeters.Value) : default(ElectricResistivity?); @@ -89,6 +92,7 @@ public partial struct ElectricResistivity : IComparable, IComparable /// Get nullable ElectricResistivity from nullable OhmMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ElectricResistivity? FromOhmMeters(QuantityValue? ohmmeters) { return ohmmeters.HasValue ? FromOhmMeters(ohmmeters.Value) : default(ElectricResistivity?); @@ -100,6 +104,7 @@ public partial struct ElectricResistivity : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ElectricResistivity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ElectricResistivity? From(QuantityValue? value, ElectricResistivityUnit fromUnit) { return value.HasValue ? new ElectricResistivity((double)value.Value, fromUnit) : default(ElectricResistivity?); diff --git a/UnitsNet/GeneratedCode/Quantities/Energy.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Energy.NetFramework.g.cs index 3f48960987..0aab5ee9a9 100644 --- a/UnitsNet/GeneratedCode/Quantities/Energy.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Energy.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable BritishThermalUnits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromBritishThermalUnits(QuantityValue? britishthermalunits) { return britishthermalunits.HasValue ? FromBritishThermalUnits(britishthermalunits.Value) : default(Energy?); @@ -73,6 +74,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable Calories. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromCalories(QuantityValue? calories) { return calories.HasValue ? FromCalories(calories.Value) : default(Energy?); @@ -81,6 +83,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable DecathermsEc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromDecathermsEc(QuantityValue? decathermsec) { return decathermsec.HasValue ? FromDecathermsEc(decathermsec.Value) : default(Energy?); @@ -89,6 +92,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable DecathermsImperial. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromDecathermsImperial(QuantityValue? decathermsimperial) { return decathermsimperial.HasValue ? FromDecathermsImperial(decathermsimperial.Value) : default(Energy?); @@ -97,6 +101,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable DecathermsUs. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromDecathermsUs(QuantityValue? decathermsus) { return decathermsus.HasValue ? FromDecathermsUs(decathermsus.Value) : default(Energy?); @@ -105,6 +110,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable ElectronVolts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromElectronVolts(QuantityValue? electronvolts) { return electronvolts.HasValue ? FromElectronVolts(electronvolts.Value) : default(Energy?); @@ -113,6 +119,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable Ergs. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromErgs(QuantityValue? ergs) { return ergs.HasValue ? FromErgs(ergs.Value) : default(Energy?); @@ -121,6 +128,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable FootPounds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromFootPounds(QuantityValue? footpounds) { return footpounds.HasValue ? FromFootPounds(footpounds.Value) : default(Energy?); @@ -129,6 +137,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable GigabritishThermalUnits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromGigabritishThermalUnits(QuantityValue? gigabritishthermalunits) { return gigabritishthermalunits.HasValue ? FromGigabritishThermalUnits(gigabritishthermalunits.Value) : default(Energy?); @@ -137,6 +146,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable GigawattHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromGigawattHours(QuantityValue? gigawatthours) { return gigawatthours.HasValue ? FromGigawattHours(gigawatthours.Value) : default(Energy?); @@ -145,6 +155,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable Joules. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromJoules(QuantityValue? joules) { return joules.HasValue ? FromJoules(joules.Value) : default(Energy?); @@ -153,6 +164,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable KilobritishThermalUnits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromKilobritishThermalUnits(QuantityValue? kilobritishthermalunits) { return kilobritishthermalunits.HasValue ? FromKilobritishThermalUnits(kilobritishthermalunits.Value) : default(Energy?); @@ -161,6 +173,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable Kilocalories. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromKilocalories(QuantityValue? kilocalories) { return kilocalories.HasValue ? FromKilocalories(kilocalories.Value) : default(Energy?); @@ -169,6 +182,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable Kilojoules. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromKilojoules(QuantityValue? kilojoules) { return kilojoules.HasValue ? FromKilojoules(kilojoules.Value) : default(Energy?); @@ -177,6 +191,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable KilowattHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromKilowattHours(QuantityValue? kilowatthours) { return kilowatthours.HasValue ? FromKilowattHours(kilowatthours.Value) : default(Energy?); @@ -185,6 +200,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable MegabritishThermalUnits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromMegabritishThermalUnits(QuantityValue? megabritishthermalunits) { return megabritishthermalunits.HasValue ? FromMegabritishThermalUnits(megabritishthermalunits.Value) : default(Energy?); @@ -193,6 +209,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable Megajoules. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromMegajoules(QuantityValue? megajoules) { return megajoules.HasValue ? FromMegajoules(megajoules.Value) : default(Energy?); @@ -201,6 +218,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable MegawattHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromMegawattHours(QuantityValue? megawatthours) { return megawatthours.HasValue ? FromMegawattHours(megawatthours.Value) : default(Energy?); @@ -209,6 +227,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable ThermsEc. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromThermsEc(QuantityValue? thermsec) { return thermsec.HasValue ? FromThermsEc(thermsec.Value) : default(Energy?); @@ -217,6 +236,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable ThermsImperial. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromThermsImperial(QuantityValue? thermsimperial) { return thermsimperial.HasValue ? FromThermsImperial(thermsimperial.Value) : default(Energy?); @@ -225,6 +245,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable ThermsUs. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromThermsUs(QuantityValue? thermsus) { return thermsus.HasValue ? FromThermsUs(thermsus.Value) : default(Energy?); @@ -233,6 +254,7 @@ public partial struct Energy : IComparable, IComparable /// /// Get nullable Energy from nullable WattHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Energy? FromWattHours(QuantityValue? watthours) { return watthours.HasValue ? FromWattHours(watthours.Value) : default(Energy?); @@ -244,6 +266,7 @@ public partial struct Energy : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Energy unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Energy? From(QuantityValue? value, EnergyUnit fromUnit) { return value.HasValue ? new Energy((double)value.Value, fromUnit) : default(Energy?); diff --git a/UnitsNet/GeneratedCode/Quantities/Entropy.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Entropy.NetFramework.g.cs index f79853147b..1e174a2486 100644 --- a/UnitsNet/GeneratedCode/Quantities/Entropy.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Entropy.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Entropy : IComparable, IComparable /// /// Get nullable Entropy from nullable CaloriesPerKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Entropy? FromCaloriesPerKelvin(QuantityValue? caloriesperkelvin) { return caloriesperkelvin.HasValue ? FromCaloriesPerKelvin(caloriesperkelvin.Value) : default(Entropy?); @@ -73,6 +74,7 @@ public partial struct Entropy : IComparable, IComparable /// /// Get nullable Entropy from nullable JoulesPerDegreeCelsius. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Entropy? FromJoulesPerDegreeCelsius(QuantityValue? joulesperdegreecelsius) { return joulesperdegreecelsius.HasValue ? FromJoulesPerDegreeCelsius(joulesperdegreecelsius.Value) : default(Entropy?); @@ -81,6 +83,7 @@ public partial struct Entropy : IComparable, IComparable /// /// Get nullable Entropy from nullable JoulesPerKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Entropy? FromJoulesPerKelvin(QuantityValue? joulesperkelvin) { return joulesperkelvin.HasValue ? FromJoulesPerKelvin(joulesperkelvin.Value) : default(Entropy?); @@ -89,6 +92,7 @@ public partial struct Entropy : IComparable, IComparable /// /// Get nullable Entropy from nullable KilocaloriesPerKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Entropy? FromKilocaloriesPerKelvin(QuantityValue? kilocaloriesperkelvin) { return kilocaloriesperkelvin.HasValue ? FromKilocaloriesPerKelvin(kilocaloriesperkelvin.Value) : default(Entropy?); @@ -97,6 +101,7 @@ public partial struct Entropy : IComparable, IComparable /// /// Get nullable Entropy from nullable KilojoulesPerDegreeCelsius. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Entropy? FromKilojoulesPerDegreeCelsius(QuantityValue? kilojoulesperdegreecelsius) { return kilojoulesperdegreecelsius.HasValue ? FromKilojoulesPerDegreeCelsius(kilojoulesperdegreecelsius.Value) : default(Entropy?); @@ -105,6 +110,7 @@ public partial struct Entropy : IComparable, IComparable /// /// Get nullable Entropy from nullable KilojoulesPerKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Entropy? FromKilojoulesPerKelvin(QuantityValue? kilojoulesperkelvin) { return kilojoulesperkelvin.HasValue ? FromKilojoulesPerKelvin(kilojoulesperkelvin.Value) : default(Entropy?); @@ -113,6 +119,7 @@ public partial struct Entropy : IComparable, IComparable /// /// Get nullable Entropy from nullable MegajoulesPerKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Entropy? FromMegajoulesPerKelvin(QuantityValue? megajoulesperkelvin) { return megajoulesperkelvin.HasValue ? FromMegajoulesPerKelvin(megajoulesperkelvin.Value) : default(Entropy?); @@ -124,6 +131,7 @@ public partial struct Entropy : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Entropy unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Entropy? From(QuantityValue? value, EntropyUnit fromUnit) { return value.HasValue ? new Entropy((double)value.Value, fromUnit) : default(Entropy?); diff --git a/UnitsNet/GeneratedCode/Quantities/Flow.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Flow.NetFramework.g.cs index a44c26cf36..1530fa6888 100644 --- a/UnitsNet/GeneratedCode/Quantities/Flow.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Flow.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CentilitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCentilitersPerMinute(QuantityValue? centilitersperminute) { return centilitersperminute.HasValue ? FromCentilitersPerMinute(centilitersperminute.Value) : default(Flow?); @@ -73,6 +74,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicDecimetersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicDecimetersPerMinute(QuantityValue? cubicdecimetersperminute) { return cubicdecimetersperminute.HasValue ? FromCubicDecimetersPerMinute(cubicdecimetersperminute.Value) : default(Flow?); @@ -81,6 +83,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicFeetPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicFeetPerHour(QuantityValue? cubicfeetperhour) { return cubicfeetperhour.HasValue ? FromCubicFeetPerHour(cubicfeetperhour.Value) : default(Flow?); @@ -89,6 +92,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicFeetPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicFeetPerMinute(QuantityValue? cubicfeetperminute) { return cubicfeetperminute.HasValue ? FromCubicFeetPerMinute(cubicfeetperminute.Value) : default(Flow?); @@ -97,6 +101,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicFeetPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicFeetPerSecond(QuantityValue? cubicfeetpersecond) { return cubicfeetpersecond.HasValue ? FromCubicFeetPerSecond(cubicfeetpersecond.Value) : default(Flow?); @@ -105,6 +110,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicMetersPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicMetersPerHour(QuantityValue? cubicmetersperhour) { return cubicmetersperhour.HasValue ? FromCubicMetersPerHour(cubicmetersperhour.Value) : default(Flow?); @@ -113,6 +119,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicMetersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicMetersPerMinute(QuantityValue? cubicmetersperminute) { return cubicmetersperminute.HasValue ? FromCubicMetersPerMinute(cubicmetersperminute.Value) : default(Flow?); @@ -121,6 +128,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicMetersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicMetersPerSecond(QuantityValue? cubicmeterspersecond) { return cubicmeterspersecond.HasValue ? FromCubicMetersPerSecond(cubicmeterspersecond.Value) : default(Flow?); @@ -129,6 +137,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicYardsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicYardsPerHour(QuantityValue? cubicyardsperhour) { return cubicyardsperhour.HasValue ? FromCubicYardsPerHour(cubicyardsperhour.Value) : default(Flow?); @@ -137,6 +146,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicYardsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicYardsPerMinute(QuantityValue? cubicyardsperminute) { return cubicyardsperminute.HasValue ? FromCubicYardsPerMinute(cubicyardsperminute.Value) : default(Flow?); @@ -145,6 +155,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable CubicYardsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromCubicYardsPerSecond(QuantityValue? cubicyardspersecond) { return cubicyardspersecond.HasValue ? FromCubicYardsPerSecond(cubicyardspersecond.Value) : default(Flow?); @@ -153,6 +164,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable DecilitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromDecilitersPerMinute(QuantityValue? decilitersperminute) { return decilitersperminute.HasValue ? FromDecilitersPerMinute(decilitersperminute.Value) : default(Flow?); @@ -161,6 +173,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable KilolitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromKilolitersPerMinute(QuantityValue? kilolitersperminute) { return kilolitersperminute.HasValue ? FromKilolitersPerMinute(kilolitersperminute.Value) : default(Flow?); @@ -169,6 +182,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable LitersPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromLitersPerHour(QuantityValue? litersperhour) { return litersperhour.HasValue ? FromLitersPerHour(litersperhour.Value) : default(Flow?); @@ -177,6 +191,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable LitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromLitersPerMinute(QuantityValue? litersperminute) { return litersperminute.HasValue ? FromLitersPerMinute(litersperminute.Value) : default(Flow?); @@ -185,6 +200,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable LitersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromLitersPerSecond(QuantityValue? literspersecond) { return literspersecond.HasValue ? FromLitersPerSecond(literspersecond.Value) : default(Flow?); @@ -193,6 +209,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable MicrolitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromMicrolitersPerMinute(QuantityValue? microlitersperminute) { return microlitersperminute.HasValue ? FromMicrolitersPerMinute(microlitersperminute.Value) : default(Flow?); @@ -201,6 +218,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable MillilitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromMillilitersPerMinute(QuantityValue? millilitersperminute) { return millilitersperminute.HasValue ? FromMillilitersPerMinute(millilitersperminute.Value) : default(Flow?); @@ -209,6 +227,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable MillionUsGallonsPerDay. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromMillionUsGallonsPerDay(QuantityValue? millionusgallonsperday) { return millionusgallonsperday.HasValue ? FromMillionUsGallonsPerDay(millionusgallonsperday.Value) : default(Flow?); @@ -217,6 +236,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable NanolitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromNanolitersPerMinute(QuantityValue? nanolitersperminute) { return nanolitersperminute.HasValue ? FromNanolitersPerMinute(nanolitersperminute.Value) : default(Flow?); @@ -225,6 +245,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable OilBarrelsPerDay. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromOilBarrelsPerDay(QuantityValue? oilbarrelsperday) { return oilbarrelsperday.HasValue ? FromOilBarrelsPerDay(oilbarrelsperday.Value) : default(Flow?); @@ -233,6 +254,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable UsGallonsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromUsGallonsPerHour(QuantityValue? usgallonsperhour) { return usgallonsperhour.HasValue ? FromUsGallonsPerHour(usgallonsperhour.Value) : default(Flow?); @@ -241,6 +263,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable UsGallonsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromUsGallonsPerMinute(QuantityValue? usgallonsperminute) { return usgallonsperminute.HasValue ? FromUsGallonsPerMinute(usgallonsperminute.Value) : default(Flow?); @@ -249,6 +272,7 @@ public partial struct Flow : IComparable, IComparable /// /// Get nullable Flow from nullable UsGallonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Flow? FromUsGallonsPerSecond(QuantityValue? usgallonspersecond) { return usgallonspersecond.HasValue ? FromUsGallonsPerSecond(usgallonspersecond.Value) : default(Flow?); @@ -260,6 +284,7 @@ public partial struct Flow : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Flow unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Flow? From(QuantityValue? value, FlowUnit fromUnit) { return value.HasValue ? new Flow((double)value.Value, fromUnit) : default(Flow?); diff --git a/UnitsNet/GeneratedCode/Quantities/Force.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Force.NetFramework.g.cs index beeb1161f9..d741260a28 100644 --- a/UnitsNet/GeneratedCode/Quantities/Force.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Force.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable Decanewtons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromDecanewtons(QuantityValue? decanewtons) { return decanewtons.HasValue ? FromDecanewtons(decanewtons.Value) : default(Force?); @@ -73,6 +74,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable Dyne. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromDyne(QuantityValue? dyne) { return dyne.HasValue ? FromDyne(dyne.Value) : default(Force?); @@ -81,6 +83,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable KilogramsForce. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromKilogramsForce(QuantityValue? kilogramsforce) { return kilogramsforce.HasValue ? FromKilogramsForce(kilogramsforce.Value) : default(Force?); @@ -89,6 +92,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable Kilonewtons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromKilonewtons(QuantityValue? kilonewtons) { return kilonewtons.HasValue ? FromKilonewtons(kilonewtons.Value) : default(Force?); @@ -97,6 +101,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable KiloPonds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromKiloPonds(QuantityValue? kiloponds) { return kiloponds.HasValue ? FromKiloPonds(kiloponds.Value) : default(Force?); @@ -105,6 +110,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable Meganewtons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromMeganewtons(QuantityValue? meganewtons) { return meganewtons.HasValue ? FromMeganewtons(meganewtons.Value) : default(Force?); @@ -113,6 +119,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable Newtons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromNewtons(QuantityValue? newtons) { return newtons.HasValue ? FromNewtons(newtons.Value) : default(Force?); @@ -121,6 +128,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable Poundals. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromPoundals(QuantityValue? poundals) { return poundals.HasValue ? FromPoundals(poundals.Value) : default(Force?); @@ -129,6 +137,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable PoundsForce. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromPoundsForce(QuantityValue? poundsforce) { return poundsforce.HasValue ? FromPoundsForce(poundsforce.Value) : default(Force?); @@ -137,6 +146,7 @@ public partial struct Force : IComparable, IComparable /// /// Get nullable Force from nullable TonnesForce. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Force? FromTonnesForce(QuantityValue? tonnesforce) { return tonnesforce.HasValue ? FromTonnesForce(tonnesforce.Value) : default(Force?); @@ -148,6 +158,7 @@ public partial struct Force : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Force unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Force? From(QuantityValue? value, ForceUnit fromUnit) { return value.HasValue ? new Force((double)value.Value, fromUnit) : default(Force?); diff --git a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.NetFramework.g.cs index ae56566519..1c5ec27ce0 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable CentinewtonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromCentinewtonsPerSecond(QuantityValue? centinewtonspersecond) { return centinewtonspersecond.HasValue ? FromCentinewtonsPerSecond(centinewtonspersecond.Value) : default(ForceChangeRate?); @@ -73,6 +74,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable DecanewtonsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromDecanewtonsPerMinute(QuantityValue? decanewtonsperminute) { return decanewtonsperminute.HasValue ? FromDecanewtonsPerMinute(decanewtonsperminute.Value) : default(ForceChangeRate?); @@ -81,6 +83,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable DecanewtonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromDecanewtonsPerSecond(QuantityValue? decanewtonspersecond) { return decanewtonspersecond.HasValue ? FromDecanewtonsPerSecond(decanewtonspersecond.Value) : default(ForceChangeRate?); @@ -89,6 +92,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable DecinewtonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromDecinewtonsPerSecond(QuantityValue? decinewtonspersecond) { return decinewtonspersecond.HasValue ? FromDecinewtonsPerSecond(decinewtonspersecond.Value) : default(ForceChangeRate?); @@ -97,6 +101,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable KilonewtonsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromKilonewtonsPerMinute(QuantityValue? kilonewtonsperminute) { return kilonewtonsperminute.HasValue ? FromKilonewtonsPerMinute(kilonewtonsperminute.Value) : default(ForceChangeRate?); @@ -105,6 +110,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable KilonewtonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromKilonewtonsPerSecond(QuantityValue? kilonewtonspersecond) { return kilonewtonspersecond.HasValue ? FromKilonewtonsPerSecond(kilonewtonspersecond.Value) : default(ForceChangeRate?); @@ -113,6 +119,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable MicronewtonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromMicronewtonsPerSecond(QuantityValue? micronewtonspersecond) { return micronewtonspersecond.HasValue ? FromMicronewtonsPerSecond(micronewtonspersecond.Value) : default(ForceChangeRate?); @@ -121,6 +128,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable MillinewtonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromMillinewtonsPerSecond(QuantityValue? millinewtonspersecond) { return millinewtonspersecond.HasValue ? FromMillinewtonsPerSecond(millinewtonspersecond.Value) : default(ForceChangeRate?); @@ -129,6 +137,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable NanonewtonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromNanonewtonsPerSecond(QuantityValue? nanonewtonspersecond) { return nanonewtonspersecond.HasValue ? FromNanonewtonsPerSecond(nanonewtonspersecond.Value) : default(ForceChangeRate?); @@ -137,6 +146,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable NewtonsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromNewtonsPerMinute(QuantityValue? newtonsperminute) { return newtonsperminute.HasValue ? FromNewtonsPerMinute(newtonsperminute.Value) : default(ForceChangeRate?); @@ -145,6 +155,7 @@ public partial struct ForceChangeRate : IComparable, IComparable /// Get nullable ForceChangeRate from nullable NewtonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForceChangeRate? FromNewtonsPerSecond(QuantityValue? newtonspersecond) { return newtonspersecond.HasValue ? FromNewtonsPerSecond(newtonspersecond.Value) : default(ForceChangeRate?); @@ -156,6 +167,7 @@ public partial struct ForceChangeRate : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ForceChangeRate unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForceChangeRate? From(QuantityValue? value, ForceChangeRateUnit fromUnit) { return value.HasValue ? new ForceChangeRate((double)value.Value, fromUnit) : default(ForceChangeRate?); diff --git a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.NetFramework.g.cs index 710db23f84..a221b700b4 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// /// Get nullable ForcePerLength from nullable CentinewtonsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForcePerLength? FromCentinewtonsPerMeter(QuantityValue? centinewtonspermeter) { return centinewtonspermeter.HasValue ? FromCentinewtonsPerMeter(centinewtonspermeter.Value) : default(ForcePerLength?); @@ -73,6 +74,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// /// Get nullable ForcePerLength from nullable DecinewtonsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForcePerLength? FromDecinewtonsPerMeter(QuantityValue? decinewtonspermeter) { return decinewtonspermeter.HasValue ? FromDecinewtonsPerMeter(decinewtonspermeter.Value) : default(ForcePerLength?); @@ -81,6 +83,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// /// Get nullable ForcePerLength from nullable KilogramsForcePerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForcePerLength? FromKilogramsForcePerMeter(QuantityValue? kilogramsforcepermeter) { return kilogramsforcepermeter.HasValue ? FromKilogramsForcePerMeter(kilogramsforcepermeter.Value) : default(ForcePerLength?); @@ -89,6 +92,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// /// Get nullable ForcePerLength from nullable KilonewtonsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForcePerLength? FromKilonewtonsPerMeter(QuantityValue? kilonewtonspermeter) { return kilonewtonspermeter.HasValue ? FromKilonewtonsPerMeter(kilonewtonspermeter.Value) : default(ForcePerLength?); @@ -97,6 +101,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// /// Get nullable ForcePerLength from nullable MeganewtonsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForcePerLength? FromMeganewtonsPerMeter(QuantityValue? meganewtonspermeter) { return meganewtonspermeter.HasValue ? FromMeganewtonsPerMeter(meganewtonspermeter.Value) : default(ForcePerLength?); @@ -105,6 +110,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// /// Get nullable ForcePerLength from nullable MicronewtonsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForcePerLength? FromMicronewtonsPerMeter(QuantityValue? micronewtonspermeter) { return micronewtonspermeter.HasValue ? FromMicronewtonsPerMeter(micronewtonspermeter.Value) : default(ForcePerLength?); @@ -113,6 +119,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// /// Get nullable ForcePerLength from nullable MillinewtonsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForcePerLength? FromMillinewtonsPerMeter(QuantityValue? millinewtonspermeter) { return millinewtonspermeter.HasValue ? FromMillinewtonsPerMeter(millinewtonspermeter.Value) : default(ForcePerLength?); @@ -121,6 +128,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// /// Get nullable ForcePerLength from nullable NanonewtonsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForcePerLength? FromNanonewtonsPerMeter(QuantityValue? nanonewtonspermeter) { return nanonewtonspermeter.HasValue ? FromNanonewtonsPerMeter(nanonewtonspermeter.Value) : default(ForcePerLength?); @@ -129,6 +137,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// /// Get nullable ForcePerLength from nullable NewtonsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ForcePerLength? FromNewtonsPerMeter(QuantityValue? newtonspermeter) { return newtonspermeter.HasValue ? FromNewtonsPerMeter(newtonspermeter.Value) : default(ForcePerLength?); @@ -140,6 +149,7 @@ public partial struct ForcePerLength : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// ForcePerLength unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ForcePerLength? From(QuantityValue? value, ForcePerLengthUnit fromUnit) { return value.HasValue ? new ForcePerLength((double)value.Value, fromUnit) : default(ForcePerLength?); diff --git a/UnitsNet/GeneratedCode/Quantities/Frequency.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Frequency.NetFramework.g.cs index 145e855ea8..649b2a2c52 100644 --- a/UnitsNet/GeneratedCode/Quantities/Frequency.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Frequency.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Frequency : IComparable, IComparable /// /// Get nullable Frequency from nullable CyclesPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Frequency? FromCyclesPerHour(QuantityValue? cyclesperhour) { return cyclesperhour.HasValue ? FromCyclesPerHour(cyclesperhour.Value) : default(Frequency?); @@ -73,6 +74,7 @@ public partial struct Frequency : IComparable, IComparable /// /// Get nullable Frequency from nullable CyclesPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Frequency? FromCyclesPerMinute(QuantityValue? cyclesperminute) { return cyclesperminute.HasValue ? FromCyclesPerMinute(cyclesperminute.Value) : default(Frequency?); @@ -81,6 +83,7 @@ public partial struct Frequency : IComparable, IComparable /// /// Get nullable Frequency from nullable Gigahertz. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Frequency? FromGigahertz(QuantityValue? gigahertz) { return gigahertz.HasValue ? FromGigahertz(gigahertz.Value) : default(Frequency?); @@ -89,6 +92,7 @@ public partial struct Frequency : IComparable, IComparable /// /// Get nullable Frequency from nullable Hertz. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Frequency? FromHertz(QuantityValue? hertz) { return hertz.HasValue ? FromHertz(hertz.Value) : default(Frequency?); @@ -97,6 +101,7 @@ public partial struct Frequency : IComparable, IComparable /// /// Get nullable Frequency from nullable Kilohertz. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Frequency? FromKilohertz(QuantityValue? kilohertz) { return kilohertz.HasValue ? FromKilohertz(kilohertz.Value) : default(Frequency?); @@ -105,6 +110,7 @@ public partial struct Frequency : IComparable, IComparable /// /// Get nullable Frequency from nullable Megahertz. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Frequency? FromMegahertz(QuantityValue? megahertz) { return megahertz.HasValue ? FromMegahertz(megahertz.Value) : default(Frequency?); @@ -113,6 +119,7 @@ public partial struct Frequency : IComparable, IComparable /// /// Get nullable Frequency from nullable RadiansPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Frequency? FromRadiansPerSecond(QuantityValue? radianspersecond) { return radianspersecond.HasValue ? FromRadiansPerSecond(radianspersecond.Value) : default(Frequency?); @@ -121,6 +128,7 @@ public partial struct Frequency : IComparable, IComparable /// /// Get nullable Frequency from nullable Terahertz. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Frequency? FromTerahertz(QuantityValue? terahertz) { return terahertz.HasValue ? FromTerahertz(terahertz.Value) : default(Frequency?); @@ -132,6 +140,7 @@ public partial struct Frequency : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Frequency unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Frequency? From(QuantityValue? value, FrequencyUnit fromUnit) { return value.HasValue ? new Frequency((double)value.Value, fromUnit) : default(Frequency?); diff --git a/UnitsNet/GeneratedCode/Quantities/HeatFlux.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatFlux.NetFramework.g.cs index d0b8d35e1a..3e1fdde1d7 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatFlux.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatFlux.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable BtusPerHourSquareFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromBtusPerHourSquareFoot(QuantityValue? btusperhoursquarefoot) { return btusperhoursquarefoot.HasValue ? FromBtusPerHourSquareFoot(btusperhoursquarefoot.Value) : default(HeatFlux?); @@ -73,6 +74,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable BtusPerMinuteSquareFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromBtusPerMinuteSquareFoot(QuantityValue? btusperminutesquarefoot) { return btusperminutesquarefoot.HasValue ? FromBtusPerMinuteSquareFoot(btusperminutesquarefoot.Value) : default(HeatFlux?); @@ -81,6 +83,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable BtusPerSecondSquareFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromBtusPerSecondSquareFoot(QuantityValue? btuspersecondsquarefoot) { return btuspersecondsquarefoot.HasValue ? FromBtusPerSecondSquareFoot(btuspersecondsquarefoot.Value) : default(HeatFlux?); @@ -89,6 +92,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable BtusPerSecondSquareInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromBtusPerSecondSquareInch(QuantityValue? btuspersecondsquareinch) { return btuspersecondsquareinch.HasValue ? FromBtusPerSecondSquareInch(btuspersecondsquareinch.Value) : default(HeatFlux?); @@ -97,6 +101,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable CaloriesPerSecondSquareCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromCaloriesPerSecondSquareCentimeter(QuantityValue? caloriespersecondsquarecentimeter) { return caloriespersecondsquarecentimeter.HasValue ? FromCaloriesPerSecondSquareCentimeter(caloriespersecondsquarecentimeter.Value) : default(HeatFlux?); @@ -105,6 +110,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable CentiwattsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromCentiwattsPerSquareMeter(QuantityValue? centiwattspersquaremeter) { return centiwattspersquaremeter.HasValue ? FromCentiwattsPerSquareMeter(centiwattspersquaremeter.Value) : default(HeatFlux?); @@ -113,6 +119,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable DeciwattsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromDeciwattsPerSquareMeter(QuantityValue? deciwattspersquaremeter) { return deciwattspersquaremeter.HasValue ? FromDeciwattsPerSquareMeter(deciwattspersquaremeter.Value) : default(HeatFlux?); @@ -121,6 +128,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable KilocaloriesPerHourSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromKilocaloriesPerHourSquareMeter(QuantityValue? kilocaloriesperhoursquaremeter) { return kilocaloriesperhoursquaremeter.HasValue ? FromKilocaloriesPerHourSquareMeter(kilocaloriesperhoursquaremeter.Value) : default(HeatFlux?); @@ -129,6 +137,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable KilocaloriesPerSecondSquareCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromKilocaloriesPerSecondSquareCentimeter(QuantityValue? kilocaloriespersecondsquarecentimeter) { return kilocaloriespersecondsquarecentimeter.HasValue ? FromKilocaloriesPerSecondSquareCentimeter(kilocaloriespersecondsquarecentimeter.Value) : default(HeatFlux?); @@ -137,6 +146,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable KilowattsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromKilowattsPerSquareMeter(QuantityValue? kilowattspersquaremeter) { return kilowattspersquaremeter.HasValue ? FromKilowattsPerSquareMeter(kilowattspersquaremeter.Value) : default(HeatFlux?); @@ -145,6 +155,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable MicrowattsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromMicrowattsPerSquareMeter(QuantityValue? microwattspersquaremeter) { return microwattspersquaremeter.HasValue ? FromMicrowattsPerSquareMeter(microwattspersquaremeter.Value) : default(HeatFlux?); @@ -153,6 +164,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable MilliwattsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromMilliwattsPerSquareMeter(QuantityValue? milliwattspersquaremeter) { return milliwattspersquaremeter.HasValue ? FromMilliwattsPerSquareMeter(milliwattspersquaremeter.Value) : default(HeatFlux?); @@ -161,6 +173,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable NanowattsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromNanowattsPerSquareMeter(QuantityValue? nanowattspersquaremeter) { return nanowattspersquaremeter.HasValue ? FromNanowattsPerSquareMeter(nanowattspersquaremeter.Value) : default(HeatFlux?); @@ -169,6 +182,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable WattsPerSquareFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromWattsPerSquareFoot(QuantityValue? wattspersquarefoot) { return wattspersquarefoot.HasValue ? FromWattsPerSquareFoot(wattspersquarefoot.Value) : default(HeatFlux?); @@ -177,6 +191,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable WattsPerSquareInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromWattsPerSquareInch(QuantityValue? wattspersquareinch) { return wattspersquareinch.HasValue ? FromWattsPerSquareInch(wattspersquareinch.Value) : default(HeatFlux?); @@ -185,6 +200,7 @@ public partial struct HeatFlux : IComparable, IComparable /// /// Get nullable HeatFlux from nullable WattsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatFlux? FromWattsPerSquareMeter(QuantityValue? wattspersquaremeter) { return wattspersquaremeter.HasValue ? FromWattsPerSquareMeter(wattspersquaremeter.Value) : default(HeatFlux?); @@ -196,6 +212,7 @@ public partial struct HeatFlux : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// HeatFlux unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatFlux? From(QuantityValue? value, HeatFluxUnit fromUnit) { return value.HasValue ? new HeatFlux((double)value.Value, fromUnit) : default(HeatFlux?); diff --git a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.NetFramework.g.cs index c79f13f5ea..cf0bf1e253 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct HeatTransferCoefficient : IComparable, IComparable /// Get nullable HeatTransferCoefficient from nullable WattsPerSquareMeterCelsius. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatTransferCoefficient? FromWattsPerSquareMeterCelsius(QuantityValue? wattspersquaremetercelsius) { return wattspersquaremetercelsius.HasValue ? FromWattsPerSquareMeterCelsius(wattspersquaremetercelsius.Value) : default(HeatTransferCoefficient?); @@ -73,6 +74,7 @@ public partial struct HeatTransferCoefficient : IComparable, IComparable /// Get nullable HeatTransferCoefficient from nullable WattsPerSquareMeterKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static HeatTransferCoefficient? FromWattsPerSquareMeterKelvin(QuantityValue? wattspersquaremeterkelvin) { return wattspersquaremeterkelvin.HasValue ? FromWattsPerSquareMeterKelvin(wattspersquaremeterkelvin.Value) : default(HeatTransferCoefficient?); @@ -84,6 +86,7 @@ public partial struct HeatTransferCoefficient : IComparable, IComparableValue to convert from. /// Unit to convert from. /// HeatTransferCoefficient unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static HeatTransferCoefficient? From(QuantityValue? value, HeatTransferCoefficientUnit fromUnit) { return value.HasValue ? new HeatTransferCoefficient((double)value.Value, fromUnit) : default(HeatTransferCoefficient?); diff --git a/UnitsNet/GeneratedCode/Quantities/Illuminance.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Illuminance.NetFramework.g.cs index 647bc16d65..16e9931409 100644 --- a/UnitsNet/GeneratedCode/Quantities/Illuminance.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Illuminance.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Illuminance : IComparable, IComparable /// /// Get nullable Illuminance from nullable Kilolux. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Illuminance? FromKilolux(QuantityValue? kilolux) { return kilolux.HasValue ? FromKilolux(kilolux.Value) : default(Illuminance?); @@ -73,6 +74,7 @@ public partial struct Illuminance : IComparable, IComparable /// /// Get nullable Illuminance from nullable Lux. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Illuminance? FromLux(QuantityValue? lux) { return lux.HasValue ? FromLux(lux.Value) : default(Illuminance?); @@ -81,6 +83,7 @@ public partial struct Illuminance : IComparable, IComparable /// /// Get nullable Illuminance from nullable Megalux. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Illuminance? FromMegalux(QuantityValue? megalux) { return megalux.HasValue ? FromMegalux(megalux.Value) : default(Illuminance?); @@ -89,6 +92,7 @@ public partial struct Illuminance : IComparable, IComparable /// /// Get nullable Illuminance from nullable Millilux. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Illuminance? FromMillilux(QuantityValue? millilux) { return millilux.HasValue ? FromMillilux(millilux.Value) : default(Illuminance?); @@ -100,6 +104,7 @@ public partial struct Illuminance : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Illuminance unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Illuminance? From(QuantityValue? value, IlluminanceUnit fromUnit) { return value.HasValue ? new Illuminance((double)value.Value, fromUnit) : default(Illuminance?); diff --git a/UnitsNet/GeneratedCode/Quantities/Information.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Information.NetFramework.g.cs index e6b960b182..bf562afe24 100644 --- a/UnitsNet/GeneratedCode/Quantities/Information.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Information.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Bits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromBits(QuantityValue? bits) { return bits.HasValue ? FromBits(bits.Value) : default(Information?); @@ -73,6 +74,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Bytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromBytes(QuantityValue? bytes) { return bytes.HasValue ? FromBytes(bytes.Value) : default(Information?); @@ -81,6 +83,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Exabits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromExabits(QuantityValue? exabits) { return exabits.HasValue ? FromExabits(exabits.Value) : default(Information?); @@ -89,6 +92,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Exabytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromExabytes(QuantityValue? exabytes) { return exabytes.HasValue ? FromExabytes(exabytes.Value) : default(Information?); @@ -97,6 +101,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Exbibits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromExbibits(QuantityValue? exbibits) { return exbibits.HasValue ? FromExbibits(exbibits.Value) : default(Information?); @@ -105,6 +110,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Exbibytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromExbibytes(QuantityValue? exbibytes) { return exbibytes.HasValue ? FromExbibytes(exbibytes.Value) : default(Information?); @@ -113,6 +119,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Gibibits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromGibibits(QuantityValue? gibibits) { return gibibits.HasValue ? FromGibibits(gibibits.Value) : default(Information?); @@ -121,6 +128,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Gibibytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromGibibytes(QuantityValue? gibibytes) { return gibibytes.HasValue ? FromGibibytes(gibibytes.Value) : default(Information?); @@ -129,6 +137,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Gigabits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromGigabits(QuantityValue? gigabits) { return gigabits.HasValue ? FromGigabits(gigabits.Value) : default(Information?); @@ -137,6 +146,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Gigabytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromGigabytes(QuantityValue? gigabytes) { return gigabytes.HasValue ? FromGigabytes(gigabytes.Value) : default(Information?); @@ -145,6 +155,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Kibibits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromKibibits(QuantityValue? kibibits) { return kibibits.HasValue ? FromKibibits(kibibits.Value) : default(Information?); @@ -153,6 +164,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Kibibytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromKibibytes(QuantityValue? kibibytes) { return kibibytes.HasValue ? FromKibibytes(kibibytes.Value) : default(Information?); @@ -161,6 +173,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Kilobits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromKilobits(QuantityValue? kilobits) { return kilobits.HasValue ? FromKilobits(kilobits.Value) : default(Information?); @@ -169,6 +182,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Kilobytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromKilobytes(QuantityValue? kilobytes) { return kilobytes.HasValue ? FromKilobytes(kilobytes.Value) : default(Information?); @@ -177,6 +191,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Mebibits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromMebibits(QuantityValue? mebibits) { return mebibits.HasValue ? FromMebibits(mebibits.Value) : default(Information?); @@ -185,6 +200,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Mebibytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromMebibytes(QuantityValue? mebibytes) { return mebibytes.HasValue ? FromMebibytes(mebibytes.Value) : default(Information?); @@ -193,6 +209,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Megabits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromMegabits(QuantityValue? megabits) { return megabits.HasValue ? FromMegabits(megabits.Value) : default(Information?); @@ -201,6 +218,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Megabytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromMegabytes(QuantityValue? megabytes) { return megabytes.HasValue ? FromMegabytes(megabytes.Value) : default(Information?); @@ -209,6 +227,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Pebibits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromPebibits(QuantityValue? pebibits) { return pebibits.HasValue ? FromPebibits(pebibits.Value) : default(Information?); @@ -217,6 +236,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Pebibytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromPebibytes(QuantityValue? pebibytes) { return pebibytes.HasValue ? FromPebibytes(pebibytes.Value) : default(Information?); @@ -225,6 +245,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Petabits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromPetabits(QuantityValue? petabits) { return petabits.HasValue ? FromPetabits(petabits.Value) : default(Information?); @@ -233,6 +254,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Petabytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromPetabytes(QuantityValue? petabytes) { return petabytes.HasValue ? FromPetabytes(petabytes.Value) : default(Information?); @@ -241,6 +263,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Tebibits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromTebibits(QuantityValue? tebibits) { return tebibits.HasValue ? FromTebibits(tebibits.Value) : default(Information?); @@ -249,6 +272,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Tebibytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromTebibytes(QuantityValue? tebibytes) { return tebibytes.HasValue ? FromTebibytes(tebibytes.Value) : default(Information?); @@ -257,6 +281,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Terabits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromTerabits(QuantityValue? terabits) { return terabits.HasValue ? FromTerabits(terabits.Value) : default(Information?); @@ -265,6 +290,7 @@ public partial struct Information : IComparable, IComparable /// /// Get nullable Information from nullable Terabytes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Information? FromTerabytes(QuantityValue? terabytes) { return terabytes.HasValue ? FromTerabytes(terabytes.Value) : default(Information?); @@ -276,6 +302,7 @@ public partial struct Information : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Information unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Information? From(QuantityValue? value, InformationUnit fromUnit) { return value.HasValue ? new Information((decimal)value.Value, fromUnit) : default(Information?); diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiance.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiance.NetFramework.g.cs index 954f890bec..8a1ef1ab60 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiance.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiance.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Irradiance : IComparable, IComparable /// /// Get nullable Irradiance from nullable KilowattsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Irradiance? FromKilowattsPerSquareMeter(QuantityValue? kilowattspersquaremeter) { return kilowattspersquaremeter.HasValue ? FromKilowattsPerSquareMeter(kilowattspersquaremeter.Value) : default(Irradiance?); @@ -73,6 +74,7 @@ public partial struct Irradiance : IComparable, IComparable /// /// Get nullable Irradiance from nullable WattsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Irradiance? FromWattsPerSquareMeter(QuantityValue? wattspersquaremeter) { return wattspersquaremeter.HasValue ? FromWattsPerSquareMeter(wattspersquaremeter.Value) : default(Irradiance?); @@ -84,6 +86,7 @@ public partial struct Irradiance : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Irradiance unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Irradiance? From(QuantityValue? value, IrradianceUnit fromUnit) { return value.HasValue ? new Irradiance((double)value.Value, fromUnit) : default(Irradiance?); diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiation.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiation.NetFramework.g.cs index 066271d526..486da8cd88 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiation.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiation.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Irradiation : IComparable, IComparable /// /// Get nullable Irradiation from nullable JoulesPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Irradiation? FromJoulesPerSquareMeter(QuantityValue? joulespersquaremeter) { return joulespersquaremeter.HasValue ? FromJoulesPerSquareMeter(joulespersquaremeter.Value) : default(Irradiation?); @@ -73,6 +74,7 @@ public partial struct Irradiation : IComparable, IComparable /// /// Get nullable Irradiation from nullable KilowattHoursPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Irradiation? FromKilowattHoursPerSquareMeter(QuantityValue? kilowatthourspersquaremeter) { return kilowatthourspersquaremeter.HasValue ? FromKilowattHoursPerSquareMeter(kilowatthourspersquaremeter.Value) : default(Irradiation?); @@ -81,6 +83,7 @@ public partial struct Irradiation : IComparable, IComparable /// /// Get nullable Irradiation from nullable WattHoursPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Irradiation? FromWattHoursPerSquareMeter(QuantityValue? watthourspersquaremeter) { return watthourspersquaremeter.HasValue ? FromWattHoursPerSquareMeter(watthourspersquaremeter.Value) : default(Irradiation?); @@ -92,6 +95,7 @@ public partial struct Irradiation : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Irradiation unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Irradiation? From(QuantityValue? value, IrradiationUnit fromUnit) { return value.HasValue ? new Irradiation((double)value.Value, fromUnit) : default(Irradiation?); diff --git a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.NetFramework.g.cs index a4e19ba8fd..c9d49d1d19 100644 --- a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct KinematicViscosity : IComparable, IComparable /// Get nullable KinematicViscosity from nullable Centistokes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static KinematicViscosity? FromCentistokes(QuantityValue? centistokes) { return centistokes.HasValue ? FromCentistokes(centistokes.Value) : default(KinematicViscosity?); @@ -73,6 +74,7 @@ public partial struct KinematicViscosity : IComparable, IComparable /// Get nullable KinematicViscosity from nullable Decistokes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static KinematicViscosity? FromDecistokes(QuantityValue? decistokes) { return decistokes.HasValue ? FromDecistokes(decistokes.Value) : default(KinematicViscosity?); @@ -81,6 +83,7 @@ public partial struct KinematicViscosity : IComparable, IComparable /// Get nullable KinematicViscosity from nullable Kilostokes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static KinematicViscosity? FromKilostokes(QuantityValue? kilostokes) { return kilostokes.HasValue ? FromKilostokes(kilostokes.Value) : default(KinematicViscosity?); @@ -89,6 +92,7 @@ public partial struct KinematicViscosity : IComparable, IComparable /// Get nullable KinematicViscosity from nullable Microstokes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static KinematicViscosity? FromMicrostokes(QuantityValue? microstokes) { return microstokes.HasValue ? FromMicrostokes(microstokes.Value) : default(KinematicViscosity?); @@ -97,6 +101,7 @@ public partial struct KinematicViscosity : IComparable, IComparable /// Get nullable KinematicViscosity from nullable Millistokes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static KinematicViscosity? FromMillistokes(QuantityValue? millistokes) { return millistokes.HasValue ? FromMillistokes(millistokes.Value) : default(KinematicViscosity?); @@ -105,6 +110,7 @@ public partial struct KinematicViscosity : IComparable, IComparable /// Get nullable KinematicViscosity from nullable Nanostokes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static KinematicViscosity? FromNanostokes(QuantityValue? nanostokes) { return nanostokes.HasValue ? FromNanostokes(nanostokes.Value) : default(KinematicViscosity?); @@ -113,6 +119,7 @@ public partial struct KinematicViscosity : IComparable, IComparable /// Get nullable KinematicViscosity from nullable SquareMetersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static KinematicViscosity? FromSquareMetersPerSecond(QuantityValue? squaremeterspersecond) { return squaremeterspersecond.HasValue ? FromSquareMetersPerSecond(squaremeterspersecond.Value) : default(KinematicViscosity?); @@ -121,6 +128,7 @@ public partial struct KinematicViscosity : IComparable, IComparable /// Get nullable KinematicViscosity from nullable Stokes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static KinematicViscosity? FromStokes(QuantityValue? stokes) { return stokes.HasValue ? FromStokes(stokes.Value) : default(KinematicViscosity?); @@ -132,6 +140,7 @@ public partial struct KinematicViscosity : IComparable, IComparableValue to convert from. /// Unit to convert from. /// KinematicViscosity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static KinematicViscosity? From(QuantityValue? value, KinematicViscosityUnit fromUnit) { return value.HasValue ? new KinematicViscosity((double)value.Value, fromUnit) : default(KinematicViscosity?); diff --git a/UnitsNet/GeneratedCode/Quantities/LapseRate.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/LapseRate.NetFramework.g.cs index 21e1e085e8..1cd3e7621f 100644 --- a/UnitsNet/GeneratedCode/Quantities/LapseRate.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LapseRate.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct LapseRate : IComparable, IComparable /// /// Get nullable LapseRate from nullable DegreesCelciusPerKilometer. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static LapseRate? FromDegreesCelciusPerKilometer(QuantityValue? degreescelciusperkilometer) { return degreescelciusperkilometer.HasValue ? FromDegreesCelciusPerKilometer(degreescelciusperkilometer.Value) : default(LapseRate?); @@ -76,6 +77,7 @@ public partial struct LapseRate : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// LapseRate unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LapseRate? From(QuantityValue? value, LapseRateUnit fromUnit) { return value.HasValue ? new LapseRate((double)value.Value, fromUnit) : default(LapseRate?); diff --git a/UnitsNet/GeneratedCode/Quantities/Length.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Length.NetFramework.g.cs index d50be025ba..f15c49f2f5 100644 --- a/UnitsNet/GeneratedCode/Quantities/Length.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Length.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Centimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromCentimeters(QuantityValue? centimeters) { return centimeters.HasValue ? FromCentimeters(centimeters.Value) : default(Length?); @@ -73,6 +74,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Decimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromDecimeters(QuantityValue? decimeters) { return decimeters.HasValue ? FromDecimeters(decimeters.Value) : default(Length?); @@ -81,6 +83,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable DtpPicas. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromDtpPicas(QuantityValue? dtppicas) { return dtppicas.HasValue ? FromDtpPicas(dtppicas.Value) : default(Length?); @@ -89,6 +92,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable DtpPoints. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromDtpPoints(QuantityValue? dtppoints) { return dtppoints.HasValue ? FromDtpPoints(dtppoints.Value) : default(Length?); @@ -97,6 +101,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Fathoms. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromFathoms(QuantityValue? fathoms) { return fathoms.HasValue ? FromFathoms(fathoms.Value) : default(Length?); @@ -105,6 +110,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Feet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromFeet(QuantityValue? feet) { return feet.HasValue ? FromFeet(feet.Value) : default(Length?); @@ -113,6 +119,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Inches. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromInches(QuantityValue? inches) { return inches.HasValue ? FromInches(inches.Value) : default(Length?); @@ -121,6 +128,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Kilometers. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromKilometers(QuantityValue? kilometers) { return kilometers.HasValue ? FromKilometers(kilometers.Value) : default(Length?); @@ -129,6 +137,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Meters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromMeters(QuantityValue? meters) { return meters.HasValue ? FromMeters(meters.Value) : default(Length?); @@ -137,6 +146,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Microinches. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromMicroinches(QuantityValue? microinches) { return microinches.HasValue ? FromMicroinches(microinches.Value) : default(Length?); @@ -145,6 +155,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Micrometers. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromMicrometers(QuantityValue? micrometers) { return micrometers.HasValue ? FromMicrometers(micrometers.Value) : default(Length?); @@ -153,6 +164,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Mils. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromMils(QuantityValue? mils) { return mils.HasValue ? FromMils(mils.Value) : default(Length?); @@ -161,6 +173,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Miles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromMiles(QuantityValue? miles) { return miles.HasValue ? FromMiles(miles.Value) : default(Length?); @@ -169,6 +182,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Millimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromMillimeters(QuantityValue? millimeters) { return millimeters.HasValue ? FromMillimeters(millimeters.Value) : default(Length?); @@ -177,6 +191,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Nanometers. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromNanometers(QuantityValue? nanometers) { return nanometers.HasValue ? FromNanometers(nanometers.Value) : default(Length?); @@ -185,6 +200,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable NauticalMiles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromNauticalMiles(QuantityValue? nauticalmiles) { return nauticalmiles.HasValue ? FromNauticalMiles(nauticalmiles.Value) : default(Length?); @@ -193,6 +209,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable PrinterPicas. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromPrinterPicas(QuantityValue? printerpicas) { return printerpicas.HasValue ? FromPrinterPicas(printerpicas.Value) : default(Length?); @@ -201,6 +218,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable PrinterPoints. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromPrinterPoints(QuantityValue? printerpoints) { return printerpoints.HasValue ? FromPrinterPoints(printerpoints.Value) : default(Length?); @@ -209,6 +227,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Shackles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromShackles(QuantityValue? shackles) { return shackles.HasValue ? FromShackles(shackles.Value) : default(Length?); @@ -217,6 +236,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Twips. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromTwips(QuantityValue? twips) { return twips.HasValue ? FromTwips(twips.Value) : default(Length?); @@ -225,6 +245,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable UsSurveyFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromUsSurveyFeet(QuantityValue? ussurveyfeet) { return ussurveyfeet.HasValue ? FromUsSurveyFeet(ussurveyfeet.Value) : default(Length?); @@ -233,6 +254,7 @@ public partial struct Length : IComparable, IComparable /// /// Get nullable Length from nullable Yards. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Length? FromYards(QuantityValue? yards) { return yards.HasValue ? FromYards(yards.Value) : default(Length?); @@ -244,6 +266,7 @@ public partial struct Length : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Length unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Length? From(QuantityValue? value, LengthUnit fromUnit) { return value.HasValue ? new Length((double)value.Value, fromUnit) : default(Length?); diff --git a/UnitsNet/GeneratedCode/Quantities/Level.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Level.NetFramework.g.cs index 3298ee21f0..75bab150c4 100644 --- a/UnitsNet/GeneratedCode/Quantities/Level.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Level.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Level : IComparable, IComparable /// /// Get nullable Level from nullable Decibels. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Level? FromDecibels(QuantityValue? decibels) { return decibels.HasValue ? FromDecibels(decibels.Value) : default(Level?); @@ -73,6 +74,7 @@ public partial struct Level : IComparable, IComparable /// /// Get nullable Level from nullable Nepers. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Level? FromNepers(QuantityValue? nepers) { return nepers.HasValue ? FromNepers(nepers.Value) : default(Level?); @@ -84,6 +86,7 @@ public partial struct Level : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Level unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Level? From(QuantityValue? value, LevelUnit fromUnit) { return value.HasValue ? new Level((double)value.Value, fromUnit) : default(Level?); diff --git a/UnitsNet/GeneratedCode/Quantities/LinearDensity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearDensity.NetFramework.g.cs index ea1d2fc709..b2c1100816 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearDensity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearDensity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct LinearDensity : IComparable, IComparable /// /// Get nullable LinearDensity from nullable GramsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static LinearDensity? FromGramsPerMeter(QuantityValue? gramspermeter) { return gramspermeter.HasValue ? FromGramsPerMeter(gramspermeter.Value) : default(LinearDensity?); @@ -73,6 +74,7 @@ public partial struct LinearDensity : IComparable, IComparable /// /// Get nullable LinearDensity from nullable KilogramsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static LinearDensity? FromKilogramsPerMeter(QuantityValue? kilogramspermeter) { return kilogramspermeter.HasValue ? FromKilogramsPerMeter(kilogramspermeter.Value) : default(LinearDensity?); @@ -81,6 +83,7 @@ public partial struct LinearDensity : IComparable, IComparable /// /// Get nullable LinearDensity from nullable PoundsPerFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static LinearDensity? FromPoundsPerFoot(QuantityValue? poundsperfoot) { return poundsperfoot.HasValue ? FromPoundsPerFoot(poundsperfoot.Value) : default(LinearDensity?); @@ -92,6 +95,7 @@ public partial struct LinearDensity : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// LinearDensity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LinearDensity? From(QuantityValue? value, LinearDensityUnit fromUnit) { return value.HasValue ? new LinearDensity((double)value.Value, fromUnit) : default(LinearDensity?); diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.NetFramework.g.cs index d4cfda8827..778aabad6d 100644 --- a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct LuminousFlux : IComparable, IComparable /// /// Get nullable LuminousFlux from nullable Lumens. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static LuminousFlux? FromLumens(QuantityValue? lumens) { return lumens.HasValue ? FromLumens(lumens.Value) : default(LuminousFlux?); @@ -76,6 +77,7 @@ public partial struct LuminousFlux : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// LuminousFlux unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LuminousFlux? From(QuantityValue? value, LuminousFluxUnit fromUnit) { return value.HasValue ? new LuminousFlux((double)value.Value, fromUnit) : default(LuminousFlux?); diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.NetFramework.g.cs index 010b925604..56388d68d1 100644 --- a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct LuminousIntensity : IComparable, IComparable /// Get nullable LuminousIntensity from nullable Candela. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static LuminousIntensity? FromCandela(QuantityValue? candela) { return candela.HasValue ? FromCandela(candela.Value) : default(LuminousIntensity?); @@ -76,6 +77,7 @@ public partial struct LuminousIntensity : IComparable, IComparableValue to convert from. /// Unit to convert from. /// LuminousIntensity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static LuminousIntensity? From(QuantityValue? value, LuminousIntensityUnit fromUnit) { return value.HasValue ? new LuminousIntensity((double)value.Value, fromUnit) : default(LuminousIntensity?); diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticField.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticField.NetFramework.g.cs index 9eb07d8724..636e0610cb 100644 --- a/UnitsNet/GeneratedCode/Quantities/MagneticField.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MagneticField.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct MagneticField : IComparable, IComparable /// /// Get nullable MagneticField from nullable Teslas. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MagneticField? FromTeslas(QuantityValue? teslas) { return teslas.HasValue ? FromTeslas(teslas.Value) : default(MagneticField?); @@ -76,6 +77,7 @@ public partial struct MagneticField : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// MagneticField unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MagneticField? From(QuantityValue? value, MagneticFieldUnit fromUnit) { return value.HasValue ? new MagneticField((double)value.Value, fromUnit) : default(MagneticField?); diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.NetFramework.g.cs index 1f965812a9..f3f3eefdb3 100644 --- a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct MagneticFlux : IComparable, IComparable /// /// Get nullable MagneticFlux from nullable Webers. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MagneticFlux? FromWebers(QuantityValue? webers) { return webers.HasValue ? FromWebers(webers.Value) : default(MagneticFlux?); @@ -76,6 +77,7 @@ public partial struct MagneticFlux : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// MagneticFlux unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MagneticFlux? From(QuantityValue? value, MagneticFluxUnit fromUnit) { return value.HasValue ? new MagneticFlux((double)value.Value, fromUnit) : default(MagneticFlux?); diff --git a/UnitsNet/GeneratedCode/Quantities/Magnetization.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Magnetization.NetFramework.g.cs index 0525620ede..9ee47929f2 100644 --- a/UnitsNet/GeneratedCode/Quantities/Magnetization.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Magnetization.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Magnetization : IComparable, IComparable /// /// Get nullable Magnetization from nullable AmperesPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Magnetization? FromAmperesPerMeter(QuantityValue? amperespermeter) { return amperespermeter.HasValue ? FromAmperesPerMeter(amperespermeter.Value) : default(Magnetization?); @@ -76,6 +77,7 @@ public partial struct Magnetization : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Magnetization unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Magnetization? From(QuantityValue? value, MagnetizationUnit fromUnit) { return value.HasValue ? new Magnetization((double)value.Value, fromUnit) : default(Magnetization?); diff --git a/UnitsNet/GeneratedCode/Quantities/Mass.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Mass.NetFramework.g.cs index e462b93075..a2aff8b53e 100644 --- a/UnitsNet/GeneratedCode/Quantities/Mass.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Mass.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Centigrams. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromCentigrams(QuantityValue? centigrams) { return centigrams.HasValue ? FromCentigrams(centigrams.Value) : default(Mass?); @@ -73,6 +74,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Decagrams. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromDecagrams(QuantityValue? decagrams) { return decagrams.HasValue ? FromDecagrams(decagrams.Value) : default(Mass?); @@ -81,6 +83,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Decigrams. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromDecigrams(QuantityValue? decigrams) { return decigrams.HasValue ? FromDecigrams(decigrams.Value) : default(Mass?); @@ -89,6 +92,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Grams. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromGrams(QuantityValue? grams) { return grams.HasValue ? FromGrams(grams.Value) : default(Mass?); @@ -97,6 +101,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Hectograms. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromHectograms(QuantityValue? hectograms) { return hectograms.HasValue ? FromHectograms(hectograms.Value) : default(Mass?); @@ -105,6 +110,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Kilograms. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromKilograms(QuantityValue? kilograms) { return kilograms.HasValue ? FromKilograms(kilograms.Value) : default(Mass?); @@ -113,6 +119,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Kilopounds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromKilopounds(QuantityValue? kilopounds) { return kilopounds.HasValue ? FromKilopounds(kilopounds.Value) : default(Mass?); @@ -121,6 +128,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Kilotonnes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromKilotonnes(QuantityValue? kilotonnes) { return kilotonnes.HasValue ? FromKilotonnes(kilotonnes.Value) : default(Mass?); @@ -129,6 +137,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable LongHundredweight. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromLongHundredweight(QuantityValue? longhundredweight) { return longhundredweight.HasValue ? FromLongHundredweight(longhundredweight.Value) : default(Mass?); @@ -137,6 +146,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable LongTons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromLongTons(QuantityValue? longtons) { return longtons.HasValue ? FromLongTons(longtons.Value) : default(Mass?); @@ -145,6 +155,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Megapounds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromMegapounds(QuantityValue? megapounds) { return megapounds.HasValue ? FromMegapounds(megapounds.Value) : default(Mass?); @@ -153,6 +164,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Megatonnes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromMegatonnes(QuantityValue? megatonnes) { return megatonnes.HasValue ? FromMegatonnes(megatonnes.Value) : default(Mass?); @@ -161,6 +173,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Micrograms. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromMicrograms(QuantityValue? micrograms) { return micrograms.HasValue ? FromMicrograms(micrograms.Value) : default(Mass?); @@ -169,6 +182,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Milligrams. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromMilligrams(QuantityValue? milligrams) { return milligrams.HasValue ? FromMilligrams(milligrams.Value) : default(Mass?); @@ -177,6 +191,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Nanograms. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromNanograms(QuantityValue? nanograms) { return nanograms.HasValue ? FromNanograms(nanograms.Value) : default(Mass?); @@ -185,6 +200,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Ounces. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromOunces(QuantityValue? ounces) { return ounces.HasValue ? FromOunces(ounces.Value) : default(Mass?); @@ -193,6 +209,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Pounds. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromPounds(QuantityValue? pounds) { return pounds.HasValue ? FromPounds(pounds.Value) : default(Mass?); @@ -201,6 +218,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable ShortHundredweight. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromShortHundredweight(QuantityValue? shorthundredweight) { return shorthundredweight.HasValue ? FromShortHundredweight(shorthundredweight.Value) : default(Mass?); @@ -209,6 +227,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable ShortTons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromShortTons(QuantityValue? shorttons) { return shorttons.HasValue ? FromShortTons(shorttons.Value) : default(Mass?); @@ -217,6 +236,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Stone. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromStone(QuantityValue? stone) { return stone.HasValue ? FromStone(stone.Value) : default(Mass?); @@ -225,6 +245,7 @@ public partial struct Mass : IComparable, IComparable /// /// Get nullable Mass from nullable Tonnes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Mass? FromTonnes(QuantityValue? tonnes) { return tonnes.HasValue ? FromTonnes(tonnes.Value) : default(Mass?); @@ -236,6 +257,7 @@ public partial struct Mass : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Mass unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Mass? From(QuantityValue? value, MassUnit fromUnit) { return value.HasValue ? new Mass((double)value.Value, fromUnit) : default(Mass?); diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlow.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlow.NetFramework.g.cs index 58e729e898..e90181d29f 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlow.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlow.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable CentigramsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromCentigramsPerSecond(QuantityValue? centigramspersecond) { return centigramspersecond.HasValue ? FromCentigramsPerSecond(centigramspersecond.Value) : default(MassFlow?); @@ -73,6 +74,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable DecagramsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromDecagramsPerSecond(QuantityValue? decagramspersecond) { return decagramspersecond.HasValue ? FromDecagramsPerSecond(decagramspersecond.Value) : default(MassFlow?); @@ -81,6 +83,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable DecigramsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromDecigramsPerSecond(QuantityValue? decigramspersecond) { return decigramspersecond.HasValue ? FromDecigramsPerSecond(decigramspersecond.Value) : default(MassFlow?); @@ -89,6 +92,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable GramsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromGramsPerSecond(QuantityValue? gramspersecond) { return gramspersecond.HasValue ? FromGramsPerSecond(gramspersecond.Value) : default(MassFlow?); @@ -97,6 +101,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable HectogramsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromHectogramsPerSecond(QuantityValue? hectogramspersecond) { return hectogramspersecond.HasValue ? FromHectogramsPerSecond(hectogramspersecond.Value) : default(MassFlow?); @@ -105,6 +110,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable KilogramsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromKilogramsPerHour(QuantityValue? kilogramsperhour) { return kilogramsperhour.HasValue ? FromKilogramsPerHour(kilogramsperhour.Value) : default(MassFlow?); @@ -113,6 +119,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable KilogramsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromKilogramsPerSecond(QuantityValue? kilogramspersecond) { return kilogramspersecond.HasValue ? FromKilogramsPerSecond(kilogramspersecond.Value) : default(MassFlow?); @@ -121,6 +128,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable MegapoundsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromMegapoundsPerHour(QuantityValue? megapoundsperhour) { return megapoundsperhour.HasValue ? FromMegapoundsPerHour(megapoundsperhour.Value) : default(MassFlow?); @@ -129,6 +137,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable MicrogramsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromMicrogramsPerSecond(QuantityValue? microgramspersecond) { return microgramspersecond.HasValue ? FromMicrogramsPerSecond(microgramspersecond.Value) : default(MassFlow?); @@ -137,6 +146,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable MilligramsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromMilligramsPerSecond(QuantityValue? milligramspersecond) { return milligramspersecond.HasValue ? FromMilligramsPerSecond(milligramspersecond.Value) : default(MassFlow?); @@ -145,6 +155,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable NanogramsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromNanogramsPerSecond(QuantityValue? nanogramspersecond) { return nanogramspersecond.HasValue ? FromNanogramsPerSecond(nanogramspersecond.Value) : default(MassFlow?); @@ -153,6 +164,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable PoundsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromPoundsPerHour(QuantityValue? poundsperhour) { return poundsperhour.HasValue ? FromPoundsPerHour(poundsperhour.Value) : default(MassFlow?); @@ -161,6 +173,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable ShortTonsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromShortTonsPerHour(QuantityValue? shorttonsperhour) { return shorttonsperhour.HasValue ? FromShortTonsPerHour(shorttonsperhour.Value) : default(MassFlow?); @@ -169,6 +182,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable TonnesPerDay. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromTonnesPerDay(QuantityValue? tonnesperday) { return tonnesperday.HasValue ? FromTonnesPerDay(tonnesperday.Value) : default(MassFlow?); @@ -177,6 +191,7 @@ public partial struct MassFlow : IComparable, IComparable /// /// Get nullable MassFlow from nullable TonnesPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlow? FromTonnesPerHour(QuantityValue? tonnesperhour) { return tonnesperhour.HasValue ? FromTonnesPerHour(tonnesperhour.Value) : default(MassFlow?); @@ -188,6 +203,7 @@ public partial struct MassFlow : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// MassFlow unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlow? From(QuantityValue? value, MassFlowUnit fromUnit) { return value.HasValue ? new MassFlow((double)value.Value, fromUnit) : default(MassFlow?); diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlux.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlux.NetFramework.g.cs index 932f962534..ff966c6ddb 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlux.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlux.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct MassFlux : IComparable, IComparable /// /// Get nullable MassFlux from nullable GramsPerSecondPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlux? FromGramsPerSecondPerSquareMeter(QuantityValue? gramspersecondpersquaremeter) { return gramspersecondpersquaremeter.HasValue ? FromGramsPerSecondPerSquareMeter(gramspersecondpersquaremeter.Value) : default(MassFlux?); @@ -73,6 +74,7 @@ public partial struct MassFlux : IComparable, IComparable /// /// Get nullable MassFlux from nullable KilogramsPerSecondPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassFlux? FromKilogramsPerSecondPerSquareMeter(QuantityValue? kilogramspersecondpersquaremeter) { return kilogramspersecondpersquaremeter.HasValue ? FromKilogramsPerSecondPerSquareMeter(kilogramspersecondpersquaremeter.Value) : default(MassFlux?); @@ -84,6 +86,7 @@ public partial struct MassFlux : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// MassFlux unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassFlux? From(QuantityValue? value, MassFluxUnit fromUnit) { return value.HasValue ? new MassFlux((double)value.Value, fromUnit) : default(MassFlux?); diff --git a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.NetFramework.g.cs index 1d5779da5b..009ea8b31d 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable GramSquareCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromGramSquareCentimeters(QuantityValue? gramsquarecentimeters) { return gramsquarecentimeters.HasValue ? FromGramSquareCentimeters(gramsquarecentimeters.Value) : default(MassMomentOfInertia?); @@ -73,6 +74,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable GramSquareDecimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromGramSquareDecimeters(QuantityValue? gramsquaredecimeters) { return gramsquaredecimeters.HasValue ? FromGramSquareDecimeters(gramsquaredecimeters.Value) : default(MassMomentOfInertia?); @@ -81,6 +83,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable GramSquareMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromGramSquareMeters(QuantityValue? gramsquaremeters) { return gramsquaremeters.HasValue ? FromGramSquareMeters(gramsquaremeters.Value) : default(MassMomentOfInertia?); @@ -89,6 +92,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable GramSquareMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromGramSquareMillimeters(QuantityValue? gramsquaremillimeters) { return gramsquaremillimeters.HasValue ? FromGramSquareMillimeters(gramsquaremillimeters.Value) : default(MassMomentOfInertia?); @@ -97,6 +101,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable KilogramSquareCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromKilogramSquareCentimeters(QuantityValue? kilogramsquarecentimeters) { return kilogramsquarecentimeters.HasValue ? FromKilogramSquareCentimeters(kilogramsquarecentimeters.Value) : default(MassMomentOfInertia?); @@ -105,6 +110,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable KilogramSquareDecimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromKilogramSquareDecimeters(QuantityValue? kilogramsquaredecimeters) { return kilogramsquaredecimeters.HasValue ? FromKilogramSquareDecimeters(kilogramsquaredecimeters.Value) : default(MassMomentOfInertia?); @@ -113,6 +119,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable KilogramSquareMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromKilogramSquareMeters(QuantityValue? kilogramsquaremeters) { return kilogramsquaremeters.HasValue ? FromKilogramSquareMeters(kilogramsquaremeters.Value) : default(MassMomentOfInertia?); @@ -121,6 +128,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable KilogramSquareMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromKilogramSquareMillimeters(QuantityValue? kilogramsquaremillimeters) { return kilogramsquaremillimeters.HasValue ? FromKilogramSquareMillimeters(kilogramsquaremillimeters.Value) : default(MassMomentOfInertia?); @@ -129,6 +137,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable KilotonneSquareCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromKilotonneSquareCentimeters(QuantityValue? kilotonnesquarecentimeters) { return kilotonnesquarecentimeters.HasValue ? FromKilotonneSquareCentimeters(kilotonnesquarecentimeters.Value) : default(MassMomentOfInertia?); @@ -137,6 +146,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable KilotonneSquareDecimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromKilotonneSquareDecimeters(QuantityValue? kilotonnesquaredecimeters) { return kilotonnesquaredecimeters.HasValue ? FromKilotonneSquareDecimeters(kilotonnesquaredecimeters.Value) : default(MassMomentOfInertia?); @@ -145,6 +155,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable KilotonneSquareMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromKilotonneSquareMeters(QuantityValue? kilotonnesquaremeters) { return kilotonnesquaremeters.HasValue ? FromKilotonneSquareMeters(kilotonnesquaremeters.Value) : default(MassMomentOfInertia?); @@ -153,6 +164,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable KilotonneSquareMilimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromKilotonneSquareMilimeters(QuantityValue? kilotonnesquaremilimeters) { return kilotonnesquaremilimeters.HasValue ? FromKilotonneSquareMilimeters(kilotonnesquaremilimeters.Value) : default(MassMomentOfInertia?); @@ -161,6 +173,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable MegatonneSquareCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromMegatonneSquareCentimeters(QuantityValue? megatonnesquarecentimeters) { return megatonnesquarecentimeters.HasValue ? FromMegatonneSquareCentimeters(megatonnesquarecentimeters.Value) : default(MassMomentOfInertia?); @@ -169,6 +182,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable MegatonneSquareDecimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromMegatonneSquareDecimeters(QuantityValue? megatonnesquaredecimeters) { return megatonnesquaredecimeters.HasValue ? FromMegatonneSquareDecimeters(megatonnesquaredecimeters.Value) : default(MassMomentOfInertia?); @@ -177,6 +191,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable MegatonneSquareMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromMegatonneSquareMeters(QuantityValue? megatonnesquaremeters) { return megatonnesquaremeters.HasValue ? FromMegatonneSquareMeters(megatonnesquaremeters.Value) : default(MassMomentOfInertia?); @@ -185,6 +200,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable MegatonneSquareMilimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromMegatonneSquareMilimeters(QuantityValue? megatonnesquaremilimeters) { return megatonnesquaremilimeters.HasValue ? FromMegatonneSquareMilimeters(megatonnesquaremilimeters.Value) : default(MassMomentOfInertia?); @@ -193,6 +209,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable MilligramSquareCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromMilligramSquareCentimeters(QuantityValue? milligramsquarecentimeters) { return milligramsquarecentimeters.HasValue ? FromMilligramSquareCentimeters(milligramsquarecentimeters.Value) : default(MassMomentOfInertia?); @@ -201,6 +218,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable MilligramSquareDecimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromMilligramSquareDecimeters(QuantityValue? milligramsquaredecimeters) { return milligramsquaredecimeters.HasValue ? FromMilligramSquareDecimeters(milligramsquaredecimeters.Value) : default(MassMomentOfInertia?); @@ -209,6 +227,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable MilligramSquareMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromMilligramSquareMeters(QuantityValue? milligramsquaremeters) { return milligramsquaremeters.HasValue ? FromMilligramSquareMeters(milligramsquaremeters.Value) : default(MassMomentOfInertia?); @@ -217,6 +236,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable MilligramSquareMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromMilligramSquareMillimeters(QuantityValue? milligramsquaremillimeters) { return milligramsquaremillimeters.HasValue ? FromMilligramSquareMillimeters(milligramsquaremillimeters.Value) : default(MassMomentOfInertia?); @@ -225,6 +245,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable PoundSquareFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromPoundSquareFeet(QuantityValue? poundsquarefeet) { return poundsquarefeet.HasValue ? FromPoundSquareFeet(poundsquarefeet.Value) : default(MassMomentOfInertia?); @@ -233,6 +254,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable PoundSquareInches. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromPoundSquareInches(QuantityValue? poundsquareinches) { return poundsquareinches.HasValue ? FromPoundSquareInches(poundsquareinches.Value) : default(MassMomentOfInertia?); @@ -241,6 +263,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable TonneSquareCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromTonneSquareCentimeters(QuantityValue? tonnesquarecentimeters) { return tonnesquarecentimeters.HasValue ? FromTonneSquareCentimeters(tonnesquarecentimeters.Value) : default(MassMomentOfInertia?); @@ -249,6 +272,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable TonneSquareDecimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromTonneSquareDecimeters(QuantityValue? tonnesquaredecimeters) { return tonnesquaredecimeters.HasValue ? FromTonneSquareDecimeters(tonnesquaredecimeters.Value) : default(MassMomentOfInertia?); @@ -257,6 +281,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable TonneSquareMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromTonneSquareMeters(QuantityValue? tonnesquaremeters) { return tonnesquaremeters.HasValue ? FromTonneSquareMeters(tonnesquaremeters.Value) : default(MassMomentOfInertia?); @@ -265,6 +290,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparable /// Get nullable MassMomentOfInertia from nullable TonneSquareMilimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MassMomentOfInertia? FromTonneSquareMilimeters(QuantityValue? tonnesquaremilimeters) { return tonnesquaremilimeters.HasValue ? FromTonneSquareMilimeters(tonnesquaremilimeters.Value) : default(MassMomentOfInertia?); @@ -276,6 +302,7 @@ public partial struct MassMomentOfInertia : IComparable, IComparableValue to convert from. /// Unit to convert from. /// MassMomentOfInertia unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MassMomentOfInertia? From(QuantityValue? value, MassMomentOfInertiaUnit fromUnit) { return value.HasValue ? new MassMomentOfInertia((double)value.Value, fromUnit) : default(MassMomentOfInertia?); diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.NetFramework.g.cs index d15b353358..0eedd254a6 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct MolarEnergy : IComparable, IComparable /// /// Get nullable MolarEnergy from nullable JoulesPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarEnergy? FromJoulesPerMole(QuantityValue? joulespermole) { return joulespermole.HasValue ? FromJoulesPerMole(joulespermole.Value) : default(MolarEnergy?); @@ -73,6 +74,7 @@ public partial struct MolarEnergy : IComparable, IComparable /// /// Get nullable MolarEnergy from nullable KilojoulesPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarEnergy? FromKilojoulesPerMole(QuantityValue? kilojoulespermole) { return kilojoulespermole.HasValue ? FromKilojoulesPerMole(kilojoulespermole.Value) : default(MolarEnergy?); @@ -81,6 +83,7 @@ public partial struct MolarEnergy : IComparable, IComparable /// /// Get nullable MolarEnergy from nullable MegajoulesPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarEnergy? FromMegajoulesPerMole(QuantityValue? megajoulespermole) { return megajoulespermole.HasValue ? FromMegajoulesPerMole(megajoulespermole.Value) : default(MolarEnergy?); @@ -92,6 +95,7 @@ public partial struct MolarEnergy : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// MolarEnergy unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarEnergy? From(QuantityValue? value, MolarEnergyUnit fromUnit) { return value.HasValue ? new MolarEnergy((double)value.Value, fromUnit) : default(MolarEnergy?); diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.NetFramework.g.cs index 8763e641b7..854cf36bea 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct MolarEntropy : IComparable, IComparable /// /// Get nullable MolarEntropy from nullable JoulesPerMoleKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarEntropy? FromJoulesPerMoleKelvin(QuantityValue? joulespermolekelvin) { return joulespermolekelvin.HasValue ? FromJoulesPerMoleKelvin(joulespermolekelvin.Value) : default(MolarEntropy?); @@ -73,6 +74,7 @@ public partial struct MolarEntropy : IComparable, IComparable /// /// Get nullable MolarEntropy from nullable KilojoulesPerMoleKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarEntropy? FromKilojoulesPerMoleKelvin(QuantityValue? kilojoulespermolekelvin) { return kilojoulespermolekelvin.HasValue ? FromKilojoulesPerMoleKelvin(kilojoulespermolekelvin.Value) : default(MolarEntropy?); @@ -81,6 +83,7 @@ public partial struct MolarEntropy : IComparable, IComparable /// /// Get nullable MolarEntropy from nullable MegajoulesPerMoleKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarEntropy? FromMegajoulesPerMoleKelvin(QuantityValue? megajoulespermolekelvin) { return megajoulespermolekelvin.HasValue ? FromMegajoulesPerMoleKelvin(megajoulespermolekelvin.Value) : default(MolarEntropy?); @@ -92,6 +95,7 @@ public partial struct MolarEntropy : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// MolarEntropy unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarEntropy? From(QuantityValue? value, MolarEntropyUnit fromUnit) { return value.HasValue ? new MolarEntropy((double)value.Value, fromUnit) : default(MolarEntropy?); diff --git a/UnitsNet/GeneratedCode/Quantities/MolarMass.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarMass.NetFramework.g.cs index 16f444a25d..a04598777e 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarMass.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarMass.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable CentigramsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromCentigramsPerMole(QuantityValue? centigramspermole) { return centigramspermole.HasValue ? FromCentigramsPerMole(centigramspermole.Value) : default(MolarMass?); @@ -73,6 +74,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable DecagramsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromDecagramsPerMole(QuantityValue? decagramspermole) { return decagramspermole.HasValue ? FromDecagramsPerMole(decagramspermole.Value) : default(MolarMass?); @@ -81,6 +83,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable DecigramsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromDecigramsPerMole(QuantityValue? decigramspermole) { return decigramspermole.HasValue ? FromDecigramsPerMole(decigramspermole.Value) : default(MolarMass?); @@ -89,6 +92,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable GramsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromGramsPerMole(QuantityValue? gramspermole) { return gramspermole.HasValue ? FromGramsPerMole(gramspermole.Value) : default(MolarMass?); @@ -97,6 +101,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable HectogramsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromHectogramsPerMole(QuantityValue? hectogramspermole) { return hectogramspermole.HasValue ? FromHectogramsPerMole(hectogramspermole.Value) : default(MolarMass?); @@ -105,6 +110,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable KilogramsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromKilogramsPerMole(QuantityValue? kilogramspermole) { return kilogramspermole.HasValue ? FromKilogramsPerMole(kilogramspermole.Value) : default(MolarMass?); @@ -113,6 +119,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable KilopoundsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromKilopoundsPerMole(QuantityValue? kilopoundspermole) { return kilopoundspermole.HasValue ? FromKilopoundsPerMole(kilopoundspermole.Value) : default(MolarMass?); @@ -121,6 +128,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable MegapoundsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromMegapoundsPerMole(QuantityValue? megapoundspermole) { return megapoundspermole.HasValue ? FromMegapoundsPerMole(megapoundspermole.Value) : default(MolarMass?); @@ -129,6 +137,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable MicrogramsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromMicrogramsPerMole(QuantityValue? microgramspermole) { return microgramspermole.HasValue ? FromMicrogramsPerMole(microgramspermole.Value) : default(MolarMass?); @@ -137,6 +146,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable MilligramsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromMilligramsPerMole(QuantityValue? milligramspermole) { return milligramspermole.HasValue ? FromMilligramsPerMole(milligramspermole.Value) : default(MolarMass?); @@ -145,6 +155,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable NanogramsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromNanogramsPerMole(QuantityValue? nanogramspermole) { return nanogramspermole.HasValue ? FromNanogramsPerMole(nanogramspermole.Value) : default(MolarMass?); @@ -153,6 +164,7 @@ public partial struct MolarMass : IComparable, IComparable /// /// Get nullable MolarMass from nullable PoundsPerMole. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static MolarMass? FromPoundsPerMole(QuantityValue? poundspermole) { return poundspermole.HasValue ? FromPoundsPerMole(poundspermole.Value) : default(MolarMass?); @@ -164,6 +176,7 @@ public partial struct MolarMass : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// MolarMass unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static MolarMass? From(QuantityValue? value, MolarMassUnit fromUnit) { return value.HasValue ? new MolarMass((double)value.Value, fromUnit) : default(MolarMass?); diff --git a/UnitsNet/GeneratedCode/Quantities/Molarity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Molarity.NetFramework.g.cs index a2ebc62adc..c431a9a647 100644 --- a/UnitsNet/GeneratedCode/Quantities/Molarity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Molarity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Molarity : IComparable, IComparable /// /// Get nullable Molarity from nullable CentimolesPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Molarity? FromCentimolesPerLiter(QuantityValue? centimolesperliter) { return centimolesperliter.HasValue ? FromCentimolesPerLiter(centimolesperliter.Value) : default(Molarity?); @@ -73,6 +74,7 @@ public partial struct Molarity : IComparable, IComparable /// /// Get nullable Molarity from nullable DecimolesPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Molarity? FromDecimolesPerLiter(QuantityValue? decimolesperliter) { return decimolesperliter.HasValue ? FromDecimolesPerLiter(decimolesperliter.Value) : default(Molarity?); @@ -81,6 +83,7 @@ public partial struct Molarity : IComparable, IComparable /// /// Get nullable Molarity from nullable MicromolesPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Molarity? FromMicromolesPerLiter(QuantityValue? micromolesperliter) { return micromolesperliter.HasValue ? FromMicromolesPerLiter(micromolesperliter.Value) : default(Molarity?); @@ -89,6 +92,7 @@ public partial struct Molarity : IComparable, IComparable /// /// Get nullable Molarity from nullable MillimolesPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Molarity? FromMillimolesPerLiter(QuantityValue? millimolesperliter) { return millimolesperliter.HasValue ? FromMillimolesPerLiter(millimolesperliter.Value) : default(Molarity?); @@ -97,6 +101,7 @@ public partial struct Molarity : IComparable, IComparable /// /// Get nullable Molarity from nullable MolesPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Molarity? FromMolesPerCubicMeter(QuantityValue? molespercubicmeter) { return molespercubicmeter.HasValue ? FromMolesPerCubicMeter(molespercubicmeter.Value) : default(Molarity?); @@ -105,6 +110,7 @@ public partial struct Molarity : IComparable, IComparable /// /// Get nullable Molarity from nullable MolesPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Molarity? FromMolesPerLiter(QuantityValue? molesperliter) { return molesperliter.HasValue ? FromMolesPerLiter(molesperliter.Value) : default(Molarity?); @@ -113,6 +119,7 @@ public partial struct Molarity : IComparable, IComparable /// /// Get nullable Molarity from nullable NanomolesPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Molarity? FromNanomolesPerLiter(QuantityValue? nanomolesperliter) { return nanomolesperliter.HasValue ? FromNanomolesPerLiter(nanomolesperliter.Value) : default(Molarity?); @@ -121,6 +128,7 @@ public partial struct Molarity : IComparable, IComparable /// /// Get nullable Molarity from nullable PicomolesPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Molarity? FromPicomolesPerLiter(QuantityValue? picomolesperliter) { return picomolesperliter.HasValue ? FromPicomolesPerLiter(picomolesperliter.Value) : default(Molarity?); @@ -132,6 +140,7 @@ public partial struct Molarity : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Molarity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Molarity? From(QuantityValue? value, MolarityUnit fromUnit) { return value.HasValue ? new Molarity((double)value.Value, fromUnit) : default(Molarity?); diff --git a/UnitsNet/GeneratedCode/Quantities/Permeability.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Permeability.NetFramework.g.cs index 027f0b0b82..d767808955 100644 --- a/UnitsNet/GeneratedCode/Quantities/Permeability.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Permeability.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Permeability : IComparable, IComparable /// /// Get nullable Permeability from nullable HenriesPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Permeability? FromHenriesPerMeter(QuantityValue? henriespermeter) { return henriespermeter.HasValue ? FromHenriesPerMeter(henriespermeter.Value) : default(Permeability?); @@ -76,6 +77,7 @@ public partial struct Permeability : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Permeability unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Permeability? From(QuantityValue? value, PermeabilityUnit fromUnit) { return value.HasValue ? new Permeability((double)value.Value, fromUnit) : default(Permeability?); diff --git a/UnitsNet/GeneratedCode/Quantities/Permittivity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Permittivity.NetFramework.g.cs index 393b345dbb..4891ceb3de 100644 --- a/UnitsNet/GeneratedCode/Quantities/Permittivity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Permittivity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Permittivity : IComparable, IComparable /// /// Get nullable Permittivity from nullable FaradsPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Permittivity? FromFaradsPerMeter(QuantityValue? faradspermeter) { return faradspermeter.HasValue ? FromFaradsPerMeter(faradspermeter.Value) : default(Permittivity?); @@ -76,6 +77,7 @@ public partial struct Permittivity : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Permittivity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Permittivity? From(QuantityValue? value, PermittivityUnit fromUnit) { return value.HasValue ? new Permittivity((double)value.Value, fromUnit) : default(Permittivity?); diff --git a/UnitsNet/GeneratedCode/Quantities/Power.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Power.NetFramework.g.cs index 143833cf83..9287d3cbb3 100644 --- a/UnitsNet/GeneratedCode/Quantities/Power.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Power.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable BoilerHorsepower. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromBoilerHorsepower(QuantityValue? boilerhorsepower) { return boilerhorsepower.HasValue ? FromBoilerHorsepower(boilerhorsepower.Value) : default(Power?); @@ -73,6 +74,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable BritishThermalUnitsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromBritishThermalUnitsPerHour(QuantityValue? britishthermalunitsperhour) { return britishthermalunitsperhour.HasValue ? FromBritishThermalUnitsPerHour(britishthermalunitsperhour.Value) : default(Power?); @@ -81,6 +83,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Decawatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromDecawatts(QuantityValue? decawatts) { return decawatts.HasValue ? FromDecawatts(decawatts.Value) : default(Power?); @@ -89,6 +92,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Deciwatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromDeciwatts(QuantityValue? deciwatts) { return deciwatts.HasValue ? FromDeciwatts(deciwatts.Value) : default(Power?); @@ -97,6 +101,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable ElectricalHorsepower. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromElectricalHorsepower(QuantityValue? electricalhorsepower) { return electricalhorsepower.HasValue ? FromElectricalHorsepower(electricalhorsepower.Value) : default(Power?); @@ -105,6 +110,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Femtowatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromFemtowatts(QuantityValue? femtowatts) { return femtowatts.HasValue ? FromFemtowatts(femtowatts.Value) : default(Power?); @@ -113,6 +119,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Gigawatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromGigawatts(QuantityValue? gigawatts) { return gigawatts.HasValue ? FromGigawatts(gigawatts.Value) : default(Power?); @@ -121,6 +128,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable HydraulicHorsepower. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromHydraulicHorsepower(QuantityValue? hydraulichorsepower) { return hydraulichorsepower.HasValue ? FromHydraulicHorsepower(hydraulichorsepower.Value) : default(Power?); @@ -129,6 +137,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable KilobritishThermalUnitsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromKilobritishThermalUnitsPerHour(QuantityValue? kilobritishthermalunitsperhour) { return kilobritishthermalunitsperhour.HasValue ? FromKilobritishThermalUnitsPerHour(kilobritishthermalunitsperhour.Value) : default(Power?); @@ -137,6 +146,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Kilowatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromKilowatts(QuantityValue? kilowatts) { return kilowatts.HasValue ? FromKilowatts(kilowatts.Value) : default(Power?); @@ -145,6 +155,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable MechanicalHorsepower. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromMechanicalHorsepower(QuantityValue? mechanicalhorsepower) { return mechanicalhorsepower.HasValue ? FromMechanicalHorsepower(mechanicalhorsepower.Value) : default(Power?); @@ -153,6 +164,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Megawatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromMegawatts(QuantityValue? megawatts) { return megawatts.HasValue ? FromMegawatts(megawatts.Value) : default(Power?); @@ -161,6 +173,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable MetricHorsepower. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromMetricHorsepower(QuantityValue? metrichorsepower) { return metrichorsepower.HasValue ? FromMetricHorsepower(metrichorsepower.Value) : default(Power?); @@ -169,6 +182,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Microwatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromMicrowatts(QuantityValue? microwatts) { return microwatts.HasValue ? FromMicrowatts(microwatts.Value) : default(Power?); @@ -177,6 +191,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Milliwatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromMilliwatts(QuantityValue? milliwatts) { return milliwatts.HasValue ? FromMilliwatts(milliwatts.Value) : default(Power?); @@ -185,6 +200,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Nanowatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromNanowatts(QuantityValue? nanowatts) { return nanowatts.HasValue ? FromNanowatts(nanowatts.Value) : default(Power?); @@ -193,6 +209,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Petawatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromPetawatts(QuantityValue? petawatts) { return petawatts.HasValue ? FromPetawatts(petawatts.Value) : default(Power?); @@ -201,6 +218,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Picowatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromPicowatts(QuantityValue? picowatts) { return picowatts.HasValue ? FromPicowatts(picowatts.Value) : default(Power?); @@ -209,6 +227,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Terawatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromTerawatts(QuantityValue? terawatts) { return terawatts.HasValue ? FromTerawatts(terawatts.Value) : default(Power?); @@ -217,6 +236,7 @@ public partial struct Power : IComparable, IComparable /// /// Get nullable Power from nullable Watts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Power? FromWatts(QuantityValue? watts) { return watts.HasValue ? FromWatts(watts.Value) : default(Power?); @@ -228,6 +248,7 @@ public partial struct Power : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Power unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Power? From(QuantityValue? value, PowerUnit fromUnit) { return value.HasValue ? new Power((decimal)value.Value, fromUnit) : default(Power?); diff --git a/UnitsNet/GeneratedCode/Quantities/PowerDensity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerDensity.NetFramework.g.cs index b3ad9bb7b5..c1612bea8f 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerDensity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerDensity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable DecawattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromDecawattsPerCubicFoot(QuantityValue? decawattspercubicfoot) { return decawattspercubicfoot.HasValue ? FromDecawattsPerCubicFoot(decawattspercubicfoot.Value) : default(PowerDensity?); @@ -73,6 +74,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable DecawattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromDecawattsPerCubicInch(QuantityValue? decawattspercubicinch) { return decawattspercubicinch.HasValue ? FromDecawattsPerCubicInch(decawattspercubicinch.Value) : default(PowerDensity?); @@ -81,6 +83,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable DecawattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromDecawattsPerCubicMeter(QuantityValue? decawattspercubicmeter) { return decawattspercubicmeter.HasValue ? FromDecawattsPerCubicMeter(decawattspercubicmeter.Value) : default(PowerDensity?); @@ -89,6 +92,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable DecawattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromDecawattsPerLiter(QuantityValue? decawattsperliter) { return decawattsperliter.HasValue ? FromDecawattsPerLiter(decawattsperliter.Value) : default(PowerDensity?); @@ -97,6 +101,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable DeciwattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromDeciwattsPerCubicFoot(QuantityValue? deciwattspercubicfoot) { return deciwattspercubicfoot.HasValue ? FromDeciwattsPerCubicFoot(deciwattspercubicfoot.Value) : default(PowerDensity?); @@ -105,6 +110,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable DeciwattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromDeciwattsPerCubicInch(QuantityValue? deciwattspercubicinch) { return deciwattspercubicinch.HasValue ? FromDeciwattsPerCubicInch(deciwattspercubicinch.Value) : default(PowerDensity?); @@ -113,6 +119,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable DeciwattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromDeciwattsPerCubicMeter(QuantityValue? deciwattspercubicmeter) { return deciwattspercubicmeter.HasValue ? FromDeciwattsPerCubicMeter(deciwattspercubicmeter.Value) : default(PowerDensity?); @@ -121,6 +128,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable DeciwattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromDeciwattsPerLiter(QuantityValue? deciwattsperliter) { return deciwattsperliter.HasValue ? FromDeciwattsPerLiter(deciwattsperliter.Value) : default(PowerDensity?); @@ -129,6 +137,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable GigawattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromGigawattsPerCubicFoot(QuantityValue? gigawattspercubicfoot) { return gigawattspercubicfoot.HasValue ? FromGigawattsPerCubicFoot(gigawattspercubicfoot.Value) : default(PowerDensity?); @@ -137,6 +146,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable GigawattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromGigawattsPerCubicInch(QuantityValue? gigawattspercubicinch) { return gigawattspercubicinch.HasValue ? FromGigawattsPerCubicInch(gigawattspercubicinch.Value) : default(PowerDensity?); @@ -145,6 +155,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable GigawattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromGigawattsPerCubicMeter(QuantityValue? gigawattspercubicmeter) { return gigawattspercubicmeter.HasValue ? FromGigawattsPerCubicMeter(gigawattspercubicmeter.Value) : default(PowerDensity?); @@ -153,6 +164,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable GigawattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromGigawattsPerLiter(QuantityValue? gigawattsperliter) { return gigawattsperliter.HasValue ? FromGigawattsPerLiter(gigawattsperliter.Value) : default(PowerDensity?); @@ -161,6 +173,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable KilowattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromKilowattsPerCubicFoot(QuantityValue? kilowattspercubicfoot) { return kilowattspercubicfoot.HasValue ? FromKilowattsPerCubicFoot(kilowattspercubicfoot.Value) : default(PowerDensity?); @@ -169,6 +182,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable KilowattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromKilowattsPerCubicInch(QuantityValue? kilowattspercubicinch) { return kilowattspercubicinch.HasValue ? FromKilowattsPerCubicInch(kilowattspercubicinch.Value) : default(PowerDensity?); @@ -177,6 +191,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable KilowattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromKilowattsPerCubicMeter(QuantityValue? kilowattspercubicmeter) { return kilowattspercubicmeter.HasValue ? FromKilowattsPerCubicMeter(kilowattspercubicmeter.Value) : default(PowerDensity?); @@ -185,6 +200,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable KilowattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromKilowattsPerLiter(QuantityValue? kilowattsperliter) { return kilowattsperliter.HasValue ? FromKilowattsPerLiter(kilowattsperliter.Value) : default(PowerDensity?); @@ -193,6 +209,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MegawattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMegawattsPerCubicFoot(QuantityValue? megawattspercubicfoot) { return megawattspercubicfoot.HasValue ? FromMegawattsPerCubicFoot(megawattspercubicfoot.Value) : default(PowerDensity?); @@ -201,6 +218,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MegawattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMegawattsPerCubicInch(QuantityValue? megawattspercubicinch) { return megawattspercubicinch.HasValue ? FromMegawattsPerCubicInch(megawattspercubicinch.Value) : default(PowerDensity?); @@ -209,6 +227,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MegawattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMegawattsPerCubicMeter(QuantityValue? megawattspercubicmeter) { return megawattspercubicmeter.HasValue ? FromMegawattsPerCubicMeter(megawattspercubicmeter.Value) : default(PowerDensity?); @@ -217,6 +236,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MegawattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMegawattsPerLiter(QuantityValue? megawattsperliter) { return megawattsperliter.HasValue ? FromMegawattsPerLiter(megawattsperliter.Value) : default(PowerDensity?); @@ -225,6 +245,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MicrowattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMicrowattsPerCubicFoot(QuantityValue? microwattspercubicfoot) { return microwattspercubicfoot.HasValue ? FromMicrowattsPerCubicFoot(microwattspercubicfoot.Value) : default(PowerDensity?); @@ -233,6 +254,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MicrowattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMicrowattsPerCubicInch(QuantityValue? microwattspercubicinch) { return microwattspercubicinch.HasValue ? FromMicrowattsPerCubicInch(microwattspercubicinch.Value) : default(PowerDensity?); @@ -241,6 +263,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MicrowattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMicrowattsPerCubicMeter(QuantityValue? microwattspercubicmeter) { return microwattspercubicmeter.HasValue ? FromMicrowattsPerCubicMeter(microwattspercubicmeter.Value) : default(PowerDensity?); @@ -249,6 +272,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MicrowattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMicrowattsPerLiter(QuantityValue? microwattsperliter) { return microwattsperliter.HasValue ? FromMicrowattsPerLiter(microwattsperliter.Value) : default(PowerDensity?); @@ -257,6 +281,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MilliwattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMilliwattsPerCubicFoot(QuantityValue? milliwattspercubicfoot) { return milliwattspercubicfoot.HasValue ? FromMilliwattsPerCubicFoot(milliwattspercubicfoot.Value) : default(PowerDensity?); @@ -265,6 +290,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MilliwattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMilliwattsPerCubicInch(QuantityValue? milliwattspercubicinch) { return milliwattspercubicinch.HasValue ? FromMilliwattsPerCubicInch(milliwattspercubicinch.Value) : default(PowerDensity?); @@ -273,6 +299,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MilliwattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMilliwattsPerCubicMeter(QuantityValue? milliwattspercubicmeter) { return milliwattspercubicmeter.HasValue ? FromMilliwattsPerCubicMeter(milliwattspercubicmeter.Value) : default(PowerDensity?); @@ -281,6 +308,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable MilliwattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromMilliwattsPerLiter(QuantityValue? milliwattsperliter) { return milliwattsperliter.HasValue ? FromMilliwattsPerLiter(milliwattsperliter.Value) : default(PowerDensity?); @@ -289,6 +317,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable NanowattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromNanowattsPerCubicFoot(QuantityValue? nanowattspercubicfoot) { return nanowattspercubicfoot.HasValue ? FromNanowattsPerCubicFoot(nanowattspercubicfoot.Value) : default(PowerDensity?); @@ -297,6 +326,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable NanowattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromNanowattsPerCubicInch(QuantityValue? nanowattspercubicinch) { return nanowattspercubicinch.HasValue ? FromNanowattsPerCubicInch(nanowattspercubicinch.Value) : default(PowerDensity?); @@ -305,6 +335,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable NanowattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromNanowattsPerCubicMeter(QuantityValue? nanowattspercubicmeter) { return nanowattspercubicmeter.HasValue ? FromNanowattsPerCubicMeter(nanowattspercubicmeter.Value) : default(PowerDensity?); @@ -313,6 +344,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable NanowattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromNanowattsPerLiter(QuantityValue? nanowattsperliter) { return nanowattsperliter.HasValue ? FromNanowattsPerLiter(nanowattsperliter.Value) : default(PowerDensity?); @@ -321,6 +353,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable PicowattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromPicowattsPerCubicFoot(QuantityValue? picowattspercubicfoot) { return picowattspercubicfoot.HasValue ? FromPicowattsPerCubicFoot(picowattspercubicfoot.Value) : default(PowerDensity?); @@ -329,6 +362,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable PicowattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromPicowattsPerCubicInch(QuantityValue? picowattspercubicinch) { return picowattspercubicinch.HasValue ? FromPicowattsPerCubicInch(picowattspercubicinch.Value) : default(PowerDensity?); @@ -337,6 +371,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable PicowattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromPicowattsPerCubicMeter(QuantityValue? picowattspercubicmeter) { return picowattspercubicmeter.HasValue ? FromPicowattsPerCubicMeter(picowattspercubicmeter.Value) : default(PowerDensity?); @@ -345,6 +380,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable PicowattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromPicowattsPerLiter(QuantityValue? picowattsperliter) { return picowattsperliter.HasValue ? FromPicowattsPerLiter(picowattsperliter.Value) : default(PowerDensity?); @@ -353,6 +389,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable TerawattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromTerawattsPerCubicFoot(QuantityValue? terawattspercubicfoot) { return terawattspercubicfoot.HasValue ? FromTerawattsPerCubicFoot(terawattspercubicfoot.Value) : default(PowerDensity?); @@ -361,6 +398,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable TerawattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromTerawattsPerCubicInch(QuantityValue? terawattspercubicinch) { return terawattspercubicinch.HasValue ? FromTerawattsPerCubicInch(terawattspercubicinch.Value) : default(PowerDensity?); @@ -369,6 +407,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable TerawattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromTerawattsPerCubicMeter(QuantityValue? terawattspercubicmeter) { return terawattspercubicmeter.HasValue ? FromTerawattsPerCubicMeter(terawattspercubicmeter.Value) : default(PowerDensity?); @@ -377,6 +416,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable TerawattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromTerawattsPerLiter(QuantityValue? terawattsperliter) { return terawattsperliter.HasValue ? FromTerawattsPerLiter(terawattsperliter.Value) : default(PowerDensity?); @@ -385,6 +425,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable WattsPerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromWattsPerCubicFoot(QuantityValue? wattspercubicfoot) { return wattspercubicfoot.HasValue ? FromWattsPerCubicFoot(wattspercubicfoot.Value) : default(PowerDensity?); @@ -393,6 +434,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable WattsPerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromWattsPerCubicInch(QuantityValue? wattspercubicinch) { return wattspercubicinch.HasValue ? FromWattsPerCubicInch(wattspercubicinch.Value) : default(PowerDensity?); @@ -401,6 +443,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable WattsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromWattsPerCubicMeter(QuantityValue? wattspercubicmeter) { return wattspercubicmeter.HasValue ? FromWattsPerCubicMeter(wattspercubicmeter.Value) : default(PowerDensity?); @@ -409,6 +452,7 @@ public partial struct PowerDensity : IComparable, IComparable /// /// Get nullable PowerDensity from nullable WattsPerLiter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerDensity? FromWattsPerLiter(QuantityValue? wattsperliter) { return wattsperliter.HasValue ? FromWattsPerLiter(wattsperliter.Value) : default(PowerDensity?); @@ -420,6 +464,7 @@ public partial struct PowerDensity : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// PowerDensity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerDensity? From(QuantityValue? value, PowerDensityUnit fromUnit) { return value.HasValue ? new PowerDensity((double)value.Value, fromUnit) : default(PowerDensity?); diff --git a/UnitsNet/GeneratedCode/Quantities/PowerRatio.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerRatio.NetFramework.g.cs index 2d87aa3996..fb8b9b3639 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerRatio.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerRatio.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct PowerRatio : IComparable, IComparable /// /// Get nullable PowerRatio from nullable DecibelMilliwatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerRatio? FromDecibelMilliwatts(QuantityValue? decibelmilliwatts) { return decibelmilliwatts.HasValue ? FromDecibelMilliwatts(decibelmilliwatts.Value) : default(PowerRatio?); @@ -73,6 +74,7 @@ public partial struct PowerRatio : IComparable, IComparable /// /// Get nullable PowerRatio from nullable DecibelWatts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PowerRatio? FromDecibelWatts(QuantityValue? decibelwatts) { return decibelwatts.HasValue ? FromDecibelWatts(decibelwatts.Value) : default(PowerRatio?); @@ -84,6 +86,7 @@ public partial struct PowerRatio : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// PowerRatio unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PowerRatio? From(QuantityValue? value, PowerRatioUnit fromUnit) { return value.HasValue ? new PowerRatio((double)value.Value, fromUnit) : default(PowerRatio?); diff --git a/UnitsNet/GeneratedCode/Quantities/Pressure.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Pressure.NetFramework.g.cs index 7340bfc899..251ae0bce2 100644 --- a/UnitsNet/GeneratedCode/Quantities/Pressure.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Pressure.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Atmospheres. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromAtmospheres(QuantityValue? atmospheres) { return atmospheres.HasValue ? FromAtmospheres(atmospheres.Value) : default(Pressure?); @@ -73,6 +74,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Bars. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromBars(QuantityValue? bars) { return bars.HasValue ? FromBars(bars.Value) : default(Pressure?); @@ -81,6 +83,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Centibars. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromCentibars(QuantityValue? centibars) { return centibars.HasValue ? FromCentibars(centibars.Value) : default(Pressure?); @@ -89,6 +92,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Decapascals. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromDecapascals(QuantityValue? decapascals) { return decapascals.HasValue ? FromDecapascals(decapascals.Value) : default(Pressure?); @@ -97,6 +101,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Decibars. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromDecibars(QuantityValue? decibars) { return decibars.HasValue ? FromDecibars(decibars.Value) : default(Pressure?); @@ -105,6 +110,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable FeetOfHead. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromFeetOfHead(QuantityValue? feetofhead) { return feetofhead.HasValue ? FromFeetOfHead(feetofhead.Value) : default(Pressure?); @@ -113,6 +119,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Gigapascals. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromGigapascals(QuantityValue? gigapascals) { return gigapascals.HasValue ? FromGigapascals(gigapascals.Value) : default(Pressure?); @@ -121,6 +128,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Hectopascals. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromHectopascals(QuantityValue? hectopascals) { return hectopascals.HasValue ? FromHectopascals(hectopascals.Value) : default(Pressure?); @@ -129,6 +137,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable InchesOfMercury. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromInchesOfMercury(QuantityValue? inchesofmercury) { return inchesofmercury.HasValue ? FromInchesOfMercury(inchesofmercury.Value) : default(Pressure?); @@ -137,6 +146,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Kilobars. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilobars(QuantityValue? kilobars) { return kilobars.HasValue ? FromKilobars(kilobars.Value) : default(Pressure?); @@ -145,6 +155,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable KilogramsForcePerSquareCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilogramsForcePerSquareCentimeter(QuantityValue? kilogramsforcepersquarecentimeter) { return kilogramsforcepersquarecentimeter.HasValue ? FromKilogramsForcePerSquareCentimeter(kilogramsforcepersquarecentimeter.Value) : default(Pressure?); @@ -153,6 +164,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable KilogramsForcePerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilogramsForcePerSquareMeter(QuantityValue? kilogramsforcepersquaremeter) { return kilogramsforcepersquaremeter.HasValue ? FromKilogramsForcePerSquareMeter(kilogramsforcepersquaremeter.Value) : default(Pressure?); @@ -161,6 +173,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable KilogramsForcePerSquareMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilogramsForcePerSquareMillimeter(QuantityValue? kilogramsforcepersquaremillimeter) { return kilogramsforcepersquaremillimeter.HasValue ? FromKilogramsForcePerSquareMillimeter(kilogramsforcepersquaremillimeter.Value) : default(Pressure?); @@ -169,6 +182,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable KilonewtonsPerSquareCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilonewtonsPerSquareCentimeter(QuantityValue? kilonewtonspersquarecentimeter) { return kilonewtonspersquarecentimeter.HasValue ? FromKilonewtonsPerSquareCentimeter(kilonewtonspersquarecentimeter.Value) : default(Pressure?); @@ -177,6 +191,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable KilonewtonsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilonewtonsPerSquareMeter(QuantityValue? kilonewtonspersquaremeter) { return kilonewtonspersquaremeter.HasValue ? FromKilonewtonsPerSquareMeter(kilonewtonspersquaremeter.Value) : default(Pressure?); @@ -185,6 +200,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable KilonewtonsPerSquareMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilonewtonsPerSquareMillimeter(QuantityValue? kilonewtonspersquaremillimeter) { return kilonewtonspersquaremillimeter.HasValue ? FromKilonewtonsPerSquareMillimeter(kilonewtonspersquaremillimeter.Value) : default(Pressure?); @@ -193,6 +209,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Kilopascals. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilopascals(QuantityValue? kilopascals) { return kilopascals.HasValue ? FromKilopascals(kilopascals.Value) : default(Pressure?); @@ -201,6 +218,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable KilopoundsForcePerSquareFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilopoundsForcePerSquareFoot(QuantityValue? kilopoundsforcepersquarefoot) { return kilopoundsforcepersquarefoot.HasValue ? FromKilopoundsForcePerSquareFoot(kilopoundsforcepersquarefoot.Value) : default(Pressure?); @@ -209,6 +227,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable KilopoundsForcePerSquareInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromKilopoundsForcePerSquareInch(QuantityValue? kilopoundsforcepersquareinch) { return kilopoundsforcepersquareinch.HasValue ? FromKilopoundsForcePerSquareInch(kilopoundsforcepersquareinch.Value) : default(Pressure?); @@ -217,6 +236,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Megabars. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromMegabars(QuantityValue? megabars) { return megabars.HasValue ? FromMegabars(megabars.Value) : default(Pressure?); @@ -225,6 +245,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable MeganewtonsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromMeganewtonsPerSquareMeter(QuantityValue? meganewtonspersquaremeter) { return meganewtonspersquaremeter.HasValue ? FromMeganewtonsPerSquareMeter(meganewtonspersquaremeter.Value) : default(Pressure?); @@ -233,6 +254,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Megapascals. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromMegapascals(QuantityValue? megapascals) { return megapascals.HasValue ? FromMegapascals(megapascals.Value) : default(Pressure?); @@ -241,6 +263,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable MetersOfHead. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromMetersOfHead(QuantityValue? metersofhead) { return metersofhead.HasValue ? FromMetersOfHead(metersofhead.Value) : default(Pressure?); @@ -249,6 +272,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Micropascals. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromMicropascals(QuantityValue? micropascals) { return micropascals.HasValue ? FromMicropascals(micropascals.Value) : default(Pressure?); @@ -257,6 +281,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Millibars. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromMillibars(QuantityValue? millibars) { return millibars.HasValue ? FromMillibars(millibars.Value) : default(Pressure?); @@ -265,6 +290,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable MillimetersOfMercury. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromMillimetersOfMercury(QuantityValue? millimetersofmercury) { return millimetersofmercury.HasValue ? FromMillimetersOfMercury(millimetersofmercury.Value) : default(Pressure?); @@ -273,6 +299,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable NewtonsPerSquareCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromNewtonsPerSquareCentimeter(QuantityValue? newtonspersquarecentimeter) { return newtonspersquarecentimeter.HasValue ? FromNewtonsPerSquareCentimeter(newtonspersquarecentimeter.Value) : default(Pressure?); @@ -281,6 +308,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable NewtonsPerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromNewtonsPerSquareMeter(QuantityValue? newtonspersquaremeter) { return newtonspersquaremeter.HasValue ? FromNewtonsPerSquareMeter(newtonspersquaremeter.Value) : default(Pressure?); @@ -289,6 +317,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable NewtonsPerSquareMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromNewtonsPerSquareMillimeter(QuantityValue? newtonspersquaremillimeter) { return newtonspersquaremillimeter.HasValue ? FromNewtonsPerSquareMillimeter(newtonspersquaremillimeter.Value) : default(Pressure?); @@ -297,6 +326,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Pascals. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromPascals(QuantityValue? pascals) { return pascals.HasValue ? FromPascals(pascals.Value) : default(Pressure?); @@ -305,6 +335,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable PoundsForcePerSquareFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromPoundsForcePerSquareFoot(QuantityValue? poundsforcepersquarefoot) { return poundsforcepersquarefoot.HasValue ? FromPoundsForcePerSquareFoot(poundsforcepersquarefoot.Value) : default(Pressure?); @@ -313,6 +344,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable PoundsForcePerSquareInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromPoundsForcePerSquareInch(QuantityValue? poundsforcepersquareinch) { return poundsforcepersquareinch.HasValue ? FromPoundsForcePerSquareInch(poundsforcepersquareinch.Value) : default(Pressure?); @@ -321,6 +353,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Psi. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromPsi(QuantityValue? psi) { return psi.HasValue ? FromPsi(psi.Value) : default(Pressure?); @@ -329,6 +362,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable TechnicalAtmospheres. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromTechnicalAtmospheres(QuantityValue? technicalatmospheres) { return technicalatmospheres.HasValue ? FromTechnicalAtmospheres(technicalatmospheres.Value) : default(Pressure?); @@ -337,6 +371,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable TonnesForcePerSquareCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromTonnesForcePerSquareCentimeter(QuantityValue? tonnesforcepersquarecentimeter) { return tonnesforcepersquarecentimeter.HasValue ? FromTonnesForcePerSquareCentimeter(tonnesforcepersquarecentimeter.Value) : default(Pressure?); @@ -345,6 +380,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable TonnesForcePerSquareMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromTonnesForcePerSquareMeter(QuantityValue? tonnesforcepersquaremeter) { return tonnesforcepersquaremeter.HasValue ? FromTonnesForcePerSquareMeter(tonnesforcepersquaremeter.Value) : default(Pressure?); @@ -353,6 +389,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable TonnesForcePerSquareMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromTonnesForcePerSquareMillimeter(QuantityValue? tonnesforcepersquaremillimeter) { return tonnesforcepersquaremillimeter.HasValue ? FromTonnesForcePerSquareMillimeter(tonnesforcepersquaremillimeter.Value) : default(Pressure?); @@ -361,6 +398,7 @@ public partial struct Pressure : IComparable, IComparable /// /// Get nullable Pressure from nullable Torrs. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Pressure? FromTorrs(QuantityValue? torrs) { return torrs.HasValue ? FromTorrs(torrs.Value) : default(Pressure?); @@ -372,6 +410,7 @@ public partial struct Pressure : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Pressure unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Pressure? From(QuantityValue? value, PressureUnit fromUnit) { return value.HasValue ? new Pressure((double)value.Value, fromUnit) : default(Pressure?); diff --git a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.NetFramework.g.cs index da955997d4..e9133a77a8 100644 --- a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct PressureChangeRate : IComparable, IComparable /// Get nullable PressureChangeRate from nullable AtmospheresPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PressureChangeRate? FromAtmospheresPerSecond(QuantityValue? atmospherespersecond) { return atmospherespersecond.HasValue ? FromAtmospheresPerSecond(atmospherespersecond.Value) : default(PressureChangeRate?); @@ -73,6 +74,7 @@ public partial struct PressureChangeRate : IComparable, IComparable /// Get nullable PressureChangeRate from nullable KilopascalsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PressureChangeRate? FromKilopascalsPerSecond(QuantityValue? kilopascalspersecond) { return kilopascalspersecond.HasValue ? FromKilopascalsPerSecond(kilopascalspersecond.Value) : default(PressureChangeRate?); @@ -81,6 +83,7 @@ public partial struct PressureChangeRate : IComparable, IComparable /// Get nullable PressureChangeRate from nullable MegapascalsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PressureChangeRate? FromMegapascalsPerSecond(QuantityValue? megapascalspersecond) { return megapascalspersecond.HasValue ? FromMegapascalsPerSecond(megapascalspersecond.Value) : default(PressureChangeRate?); @@ -89,6 +92,7 @@ public partial struct PressureChangeRate : IComparable, IComparable /// Get nullable PressureChangeRate from nullable PascalsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static PressureChangeRate? FromPascalsPerSecond(QuantityValue? pascalspersecond) { return pascalspersecond.HasValue ? FromPascalsPerSecond(pascalspersecond.Value) : default(PressureChangeRate?); @@ -100,6 +104,7 @@ public partial struct PressureChangeRate : IComparable, IComparableValue to convert from. /// Unit to convert from. /// PressureChangeRate unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static PressureChangeRate? From(QuantityValue? value, PressureChangeRateUnit fromUnit) { return value.HasValue ? new PressureChangeRate((double)value.Value, fromUnit) : default(PressureChangeRate?); diff --git a/UnitsNet/GeneratedCode/Quantities/Ratio.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Ratio.NetFramework.g.cs index 8d0470f412..993c2015d3 100644 --- a/UnitsNet/GeneratedCode/Quantities/Ratio.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Ratio.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Ratio : IComparable, IComparable /// /// Get nullable Ratio from nullable DecimalFractions. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Ratio? FromDecimalFractions(QuantityValue? decimalfractions) { return decimalfractions.HasValue ? FromDecimalFractions(decimalfractions.Value) : default(Ratio?); @@ -73,6 +74,7 @@ public partial struct Ratio : IComparable, IComparable /// /// Get nullable Ratio from nullable PartsPerBillion. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Ratio? FromPartsPerBillion(QuantityValue? partsperbillion) { return partsperbillion.HasValue ? FromPartsPerBillion(partsperbillion.Value) : default(Ratio?); @@ -81,6 +83,7 @@ public partial struct Ratio : IComparable, IComparable /// /// Get nullable Ratio from nullable PartsPerMillion. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Ratio? FromPartsPerMillion(QuantityValue? partspermillion) { return partspermillion.HasValue ? FromPartsPerMillion(partspermillion.Value) : default(Ratio?); @@ -89,6 +92,7 @@ public partial struct Ratio : IComparable, IComparable /// /// Get nullable Ratio from nullable PartsPerThousand. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Ratio? FromPartsPerThousand(QuantityValue? partsperthousand) { return partsperthousand.HasValue ? FromPartsPerThousand(partsperthousand.Value) : default(Ratio?); @@ -97,6 +101,7 @@ public partial struct Ratio : IComparable, IComparable /// /// Get nullable Ratio from nullable PartsPerTrillion. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Ratio? FromPartsPerTrillion(QuantityValue? partspertrillion) { return partspertrillion.HasValue ? FromPartsPerTrillion(partspertrillion.Value) : default(Ratio?); @@ -105,6 +110,7 @@ public partial struct Ratio : IComparable, IComparable /// /// Get nullable Ratio from nullable Percent. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Ratio? FromPercent(QuantityValue? percent) { return percent.HasValue ? FromPercent(percent.Value) : default(Ratio?); @@ -116,6 +122,7 @@ public partial struct Ratio : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Ratio unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Ratio? From(QuantityValue? value, RatioUnit fromUnit) { return value.HasValue ? new Ratio((double)value.Value, fromUnit) : default(Ratio?); diff --git a/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.NetFramework.g.cs index 0ccb6453f5..390183475b 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ReactiveEnergy : IComparable, IComparable /// /// Get nullable ReactiveEnergy from nullable KilovoltampereReactiveHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ReactiveEnergy? FromKilovoltampereReactiveHours(QuantityValue? kilovoltamperereactivehours) { return kilovoltamperereactivehours.HasValue ? FromKilovoltampereReactiveHours(kilovoltamperereactivehours.Value) : default(ReactiveEnergy?); @@ -73,6 +74,7 @@ public partial struct ReactiveEnergy : IComparable, IComparable /// /// Get nullable ReactiveEnergy from nullable MegavoltampereReactiveHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ReactiveEnergy? FromMegavoltampereReactiveHours(QuantityValue? megavoltamperereactivehours) { return megavoltamperereactivehours.HasValue ? FromMegavoltampereReactiveHours(megavoltamperereactivehours.Value) : default(ReactiveEnergy?); @@ -81,6 +83,7 @@ public partial struct ReactiveEnergy : IComparable, IComparable /// /// Get nullable ReactiveEnergy from nullable VoltampereReactiveHours. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ReactiveEnergy? FromVoltampereReactiveHours(QuantityValue? voltamperereactivehours) { return voltamperereactivehours.HasValue ? FromVoltampereReactiveHours(voltamperereactivehours.Value) : default(ReactiveEnergy?); @@ -92,6 +95,7 @@ public partial struct ReactiveEnergy : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// ReactiveEnergy unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ReactiveEnergy? From(QuantityValue? value, ReactiveEnergyUnit fromUnit) { return value.HasValue ? new ReactiveEnergy((double)value.Value, fromUnit) : default(ReactiveEnergy?); diff --git a/UnitsNet/GeneratedCode/Quantities/ReactivePower.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ReactivePower.NetFramework.g.cs index 21e30e32c7..086effb16a 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReactivePower.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReactivePower.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ReactivePower : IComparable, IComparable /// /// Get nullable ReactivePower from nullable GigavoltamperesReactive. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ReactivePower? FromGigavoltamperesReactive(QuantityValue? gigavoltamperesreactive) { return gigavoltamperesreactive.HasValue ? FromGigavoltamperesReactive(gigavoltamperesreactive.Value) : default(ReactivePower?); @@ -73,6 +74,7 @@ public partial struct ReactivePower : IComparable, IComparable /// /// Get nullable ReactivePower from nullable KilovoltamperesReactive. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ReactivePower? FromKilovoltamperesReactive(QuantityValue? kilovoltamperesreactive) { return kilovoltamperesreactive.HasValue ? FromKilovoltamperesReactive(kilovoltamperesreactive.Value) : default(ReactivePower?); @@ -81,6 +83,7 @@ public partial struct ReactivePower : IComparable, IComparable /// /// Get nullable ReactivePower from nullable MegavoltamperesReactive. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ReactivePower? FromMegavoltamperesReactive(QuantityValue? megavoltamperesreactive) { return megavoltamperesreactive.HasValue ? FromMegavoltamperesReactive(megavoltamperesreactive.Value) : default(ReactivePower?); @@ -89,6 +92,7 @@ public partial struct ReactivePower : IComparable, IComparable /// /// Get nullable ReactivePower from nullable VoltamperesReactive. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ReactivePower? FromVoltamperesReactive(QuantityValue? voltamperesreactive) { return voltamperesreactive.HasValue ? FromVoltamperesReactive(voltamperesreactive.Value) : default(ReactivePower?); @@ -100,6 +104,7 @@ public partial struct ReactivePower : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// ReactivePower unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ReactivePower? From(QuantityValue? value, ReactivePowerUnit fromUnit) { return value.HasValue ? new ReactivePower((double)value.Value, fromUnit) : default(ReactivePower?); diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.NetFramework.g.cs index 16403cdcfb..16b0a47185 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct RotationalAcceleration : IComparable, IComparable /// Get nullable RotationalAcceleration from nullable DegreesPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalAcceleration? FromDegreesPerSecondSquared(QuantityValue? degreespersecondsquared) { return degreespersecondsquared.HasValue ? FromDegreesPerSecondSquared(degreespersecondsquared.Value) : default(RotationalAcceleration?); @@ -73,6 +74,7 @@ public partial struct RotationalAcceleration : IComparable, IComparable /// Get nullable RotationalAcceleration from nullable RadiansPerSecondSquared. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalAcceleration? FromRadiansPerSecondSquared(QuantityValue? radianspersecondsquared) { return radianspersecondsquared.HasValue ? FromRadiansPerSecondSquared(radianspersecondsquared.Value) : default(RotationalAcceleration?); @@ -81,6 +83,7 @@ public partial struct RotationalAcceleration : IComparable, IComparable /// Get nullable RotationalAcceleration from nullable RevolutionsPerMinutePerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalAcceleration? FromRevolutionsPerMinutePerSecond(QuantityValue? revolutionsperminutepersecond) { return revolutionsperminutepersecond.HasValue ? FromRevolutionsPerMinutePerSecond(revolutionsperminutepersecond.Value) : default(RotationalAcceleration?); @@ -92,6 +95,7 @@ public partial struct RotationalAcceleration : IComparable, IComparableValue to convert from. /// Unit to convert from. /// RotationalAcceleration unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalAcceleration? From(QuantityValue? value, RotationalAccelerationUnit fromUnit) { return value.HasValue ? new RotationalAcceleration((double)value.Value, fromUnit) : default(RotationalAcceleration?); diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.NetFramework.g.cs index f122077d05..baf25cc9cf 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable CentiradiansPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromCentiradiansPerSecond(QuantityValue? centiradianspersecond) { return centiradianspersecond.HasValue ? FromCentiradiansPerSecond(centiradianspersecond.Value) : default(RotationalSpeed?); @@ -73,6 +74,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable DeciradiansPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromDeciradiansPerSecond(QuantityValue? deciradianspersecond) { return deciradianspersecond.HasValue ? FromDeciradiansPerSecond(deciradianspersecond.Value) : default(RotationalSpeed?); @@ -81,6 +83,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable DegreesPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromDegreesPerMinute(QuantityValue? degreesperminute) { return degreesperminute.HasValue ? FromDegreesPerMinute(degreesperminute.Value) : default(RotationalSpeed?); @@ -89,6 +92,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable DegreesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromDegreesPerSecond(QuantityValue? degreespersecond) { return degreespersecond.HasValue ? FromDegreesPerSecond(degreespersecond.Value) : default(RotationalSpeed?); @@ -97,6 +101,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable MicrodegreesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromMicrodegreesPerSecond(QuantityValue? microdegreespersecond) { return microdegreespersecond.HasValue ? FromMicrodegreesPerSecond(microdegreespersecond.Value) : default(RotationalSpeed?); @@ -105,6 +110,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable MicroradiansPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromMicroradiansPerSecond(QuantityValue? microradianspersecond) { return microradianspersecond.HasValue ? FromMicroradiansPerSecond(microradianspersecond.Value) : default(RotationalSpeed?); @@ -113,6 +119,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable MillidegreesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromMillidegreesPerSecond(QuantityValue? millidegreespersecond) { return millidegreespersecond.HasValue ? FromMillidegreesPerSecond(millidegreespersecond.Value) : default(RotationalSpeed?); @@ -121,6 +128,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable MilliradiansPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromMilliradiansPerSecond(QuantityValue? milliradianspersecond) { return milliradianspersecond.HasValue ? FromMilliradiansPerSecond(milliradianspersecond.Value) : default(RotationalSpeed?); @@ -129,6 +137,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable NanodegreesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromNanodegreesPerSecond(QuantityValue? nanodegreespersecond) { return nanodegreespersecond.HasValue ? FromNanodegreesPerSecond(nanodegreespersecond.Value) : default(RotationalSpeed?); @@ -137,6 +146,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable NanoradiansPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromNanoradiansPerSecond(QuantityValue? nanoradianspersecond) { return nanoradianspersecond.HasValue ? FromNanoradiansPerSecond(nanoradianspersecond.Value) : default(RotationalSpeed?); @@ -145,6 +155,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable RadiansPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromRadiansPerSecond(QuantityValue? radianspersecond) { return radianspersecond.HasValue ? FromRadiansPerSecond(radianspersecond.Value) : default(RotationalSpeed?); @@ -153,6 +164,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable RevolutionsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromRevolutionsPerMinute(QuantityValue? revolutionsperminute) { return revolutionsperminute.HasValue ? FromRevolutionsPerMinute(revolutionsperminute.Value) : default(RotationalSpeed?); @@ -161,6 +173,7 @@ public partial struct RotationalSpeed : IComparable, IComparable /// Get nullable RotationalSpeed from nullable RevolutionsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalSpeed? FromRevolutionsPerSecond(QuantityValue? revolutionspersecond) { return revolutionspersecond.HasValue ? FromRevolutionsPerSecond(revolutionspersecond.Value) : default(RotationalSpeed?); @@ -172,6 +185,7 @@ public partial struct RotationalSpeed : IComparable, IComparableValue to convert from. /// Unit to convert from. /// RotationalSpeed unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalSpeed? From(QuantityValue? value, RotationalSpeedUnit fromUnit) { return value.HasValue ? new RotationalSpeed((double)value.Value, fromUnit) : default(RotationalSpeed?); diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.NetFramework.g.cs index 4663815026..db4b15e846 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct RotationalStiffness : IComparable, IComparable /// Get nullable RotationalStiffness from nullable KilonewtonMetersPerRadian. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalStiffness? FromKilonewtonMetersPerRadian(QuantityValue? kilonewtonmetersperradian) { return kilonewtonmetersperradian.HasValue ? FromKilonewtonMetersPerRadian(kilonewtonmetersperradian.Value) : default(RotationalStiffness?); @@ -73,6 +74,7 @@ public partial struct RotationalStiffness : IComparable, IComparable /// Get nullable RotationalStiffness from nullable MeganewtonMetersPerRadian. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalStiffness? FromMeganewtonMetersPerRadian(QuantityValue? meganewtonmetersperradian) { return meganewtonmetersperradian.HasValue ? FromMeganewtonMetersPerRadian(meganewtonmetersperradian.Value) : default(RotationalStiffness?); @@ -81,6 +83,7 @@ public partial struct RotationalStiffness : IComparable, IComparable /// Get nullable RotationalStiffness from nullable NewtonMetersPerRadian. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalStiffness? FromNewtonMetersPerRadian(QuantityValue? newtonmetersperradian) { return newtonmetersperradian.HasValue ? FromNewtonMetersPerRadian(newtonmetersperradian.Value) : default(RotationalStiffness?); @@ -92,6 +95,7 @@ public partial struct RotationalStiffness : IComparable, IComparableValue to convert from. /// Unit to convert from. /// RotationalStiffness unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalStiffness? From(QuantityValue? value, RotationalStiffnessUnit fromUnit) { return value.HasValue ? new RotationalStiffness((double)value.Value, fromUnit) : default(RotationalStiffness?); diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.NetFramework.g.cs index c01c272e0f..0a41d0fef4 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct RotationalStiffnessPerLength : IComparable, IComparable /// Get nullable RotationalStiffnessPerLength from nullable KilonewtonMetersPerRadianPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalStiffnessPerLength? FromKilonewtonMetersPerRadianPerMeter(QuantityValue? kilonewtonmetersperradianpermeter) { return kilonewtonmetersperradianpermeter.HasValue ? FromKilonewtonMetersPerRadianPerMeter(kilonewtonmetersperradianpermeter.Value) : default(RotationalStiffnessPerLength?); @@ -73,6 +74,7 @@ public partial struct RotationalStiffnessPerLength : IComparable, IComparable /// Get nullable RotationalStiffnessPerLength from nullable MeganewtonMetersPerRadianPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalStiffnessPerLength? FromMeganewtonMetersPerRadianPerMeter(QuantityValue? meganewtonmetersperradianpermeter) { return meganewtonmetersperradianpermeter.HasValue ? FromMeganewtonMetersPerRadianPerMeter(meganewtonmetersperradianpermeter.Value) : default(RotationalStiffnessPerLength?); @@ -81,6 +83,7 @@ public partial struct RotationalStiffnessPerLength : IComparable, IComparable /// Get nullable RotationalStiffnessPerLength from nullable NewtonMetersPerRadianPerMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static RotationalStiffnessPerLength? FromNewtonMetersPerRadianPerMeter(QuantityValue? newtonmetersperradianpermeter) { return newtonmetersperradianpermeter.HasValue ? FromNewtonMetersPerRadianPerMeter(newtonmetersperradianpermeter.Value) : default(RotationalStiffnessPerLength?); @@ -92,6 +95,7 @@ public partial struct RotationalStiffnessPerLength : IComparable, IComparableValue to convert from. /// Unit to convert from. /// RotationalStiffnessPerLength unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static RotationalStiffnessPerLength? From(QuantityValue? value, RotationalStiffnessPerLengthUnit fromUnit) { return value.HasValue ? new RotationalStiffnessPerLength((double)value.Value, fromUnit) : default(RotationalStiffnessPerLength?); diff --git a/UnitsNet/GeneratedCode/Quantities/SolidAngle.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/SolidAngle.NetFramework.g.cs index 321597f406..802e37b63a 100644 --- a/UnitsNet/GeneratedCode/Quantities/SolidAngle.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SolidAngle.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct SolidAngle : IComparable, IComparable /// /// Get nullable SolidAngle from nullable Steradians. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SolidAngle? FromSteradians(QuantityValue? steradians) { return steradians.HasValue ? FromSteradians(steradians.Value) : default(SolidAngle?); @@ -76,6 +77,7 @@ public partial struct SolidAngle : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// SolidAngle unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SolidAngle? From(QuantityValue? value, SolidAngleUnit fromUnit) { return value.HasValue ? new SolidAngle((double)value.Value, fromUnit) : default(SolidAngle?); diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.NetFramework.g.cs index 224488c828..5d6fd503d4 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct SpecificEnergy : IComparable, IComparable /// /// Get nullable SpecificEnergy from nullable CaloriesPerGram. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEnergy? FromCaloriesPerGram(QuantityValue? caloriespergram) { return caloriespergram.HasValue ? FromCaloriesPerGram(caloriespergram.Value) : default(SpecificEnergy?); @@ -73,6 +74,7 @@ public partial struct SpecificEnergy : IComparable, IComparable /// /// Get nullable SpecificEnergy from nullable JoulesPerKilogram. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEnergy? FromJoulesPerKilogram(QuantityValue? joulesperkilogram) { return joulesperkilogram.HasValue ? FromJoulesPerKilogram(joulesperkilogram.Value) : default(SpecificEnergy?); @@ -81,6 +83,7 @@ public partial struct SpecificEnergy : IComparable, IComparable /// /// Get nullable SpecificEnergy from nullable KilocaloriesPerGram. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEnergy? FromKilocaloriesPerGram(QuantityValue? kilocaloriespergram) { return kilocaloriespergram.HasValue ? FromKilocaloriesPerGram(kilocaloriespergram.Value) : default(SpecificEnergy?); @@ -89,6 +92,7 @@ public partial struct SpecificEnergy : IComparable, IComparable /// /// Get nullable SpecificEnergy from nullable KilojoulesPerKilogram. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEnergy? FromKilojoulesPerKilogram(QuantityValue? kilojoulesperkilogram) { return kilojoulesperkilogram.HasValue ? FromKilojoulesPerKilogram(kilojoulesperkilogram.Value) : default(SpecificEnergy?); @@ -97,6 +101,7 @@ public partial struct SpecificEnergy : IComparable, IComparable /// /// Get nullable SpecificEnergy from nullable KilowattHoursPerKilogram. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEnergy? FromKilowattHoursPerKilogram(QuantityValue? kilowatthoursperkilogram) { return kilowatthoursperkilogram.HasValue ? FromKilowattHoursPerKilogram(kilowatthoursperkilogram.Value) : default(SpecificEnergy?); @@ -105,6 +110,7 @@ public partial struct SpecificEnergy : IComparable, IComparable /// /// Get nullable SpecificEnergy from nullable MegajoulesPerKilogram. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEnergy? FromMegajoulesPerKilogram(QuantityValue? megajoulesperkilogram) { return megajoulesperkilogram.HasValue ? FromMegajoulesPerKilogram(megajoulesperkilogram.Value) : default(SpecificEnergy?); @@ -113,6 +119,7 @@ public partial struct SpecificEnergy : IComparable, IComparable /// /// Get nullable SpecificEnergy from nullable MegawattHoursPerKilogram. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEnergy? FromMegawattHoursPerKilogram(QuantityValue? megawatthoursperkilogram) { return megawatthoursperkilogram.HasValue ? FromMegawattHoursPerKilogram(megawatthoursperkilogram.Value) : default(SpecificEnergy?); @@ -121,6 +128,7 @@ public partial struct SpecificEnergy : IComparable, IComparable /// /// Get nullable SpecificEnergy from nullable WattHoursPerKilogram. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEnergy? FromWattHoursPerKilogram(QuantityValue? watthoursperkilogram) { return watthoursperkilogram.HasValue ? FromWattHoursPerKilogram(watthoursperkilogram.Value) : default(SpecificEnergy?); @@ -132,6 +140,7 @@ public partial struct SpecificEnergy : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// SpecificEnergy unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEnergy? From(QuantityValue? value, SpecificEnergyUnit fromUnit) { return value.HasValue ? new SpecificEnergy((double)value.Value, fromUnit) : default(SpecificEnergy?); diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.NetFramework.g.cs index 85250a8e7a..df6ff742b1 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct SpecificEntropy : IComparable, IComparable /// Get nullable SpecificEntropy from nullable CaloriesPerGramKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEntropy? FromCaloriesPerGramKelvin(QuantityValue? caloriespergramkelvin) { return caloriespergramkelvin.HasValue ? FromCaloriesPerGramKelvin(caloriespergramkelvin.Value) : default(SpecificEntropy?); @@ -73,6 +74,7 @@ public partial struct SpecificEntropy : IComparable, IComparable /// Get nullable SpecificEntropy from nullable JoulesPerKilogramDegreeCelsius. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEntropy? FromJoulesPerKilogramDegreeCelsius(QuantityValue? joulesperkilogramdegreecelsius) { return joulesperkilogramdegreecelsius.HasValue ? FromJoulesPerKilogramDegreeCelsius(joulesperkilogramdegreecelsius.Value) : default(SpecificEntropy?); @@ -81,6 +83,7 @@ public partial struct SpecificEntropy : IComparable, IComparable /// Get nullable SpecificEntropy from nullable JoulesPerKilogramKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEntropy? FromJoulesPerKilogramKelvin(QuantityValue? joulesperkilogramkelvin) { return joulesperkilogramkelvin.HasValue ? FromJoulesPerKilogramKelvin(joulesperkilogramkelvin.Value) : default(SpecificEntropy?); @@ -89,6 +92,7 @@ public partial struct SpecificEntropy : IComparable, IComparable /// Get nullable SpecificEntropy from nullable KilocaloriesPerGramKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEntropy? FromKilocaloriesPerGramKelvin(QuantityValue? kilocaloriespergramkelvin) { return kilocaloriespergramkelvin.HasValue ? FromKilocaloriesPerGramKelvin(kilocaloriespergramkelvin.Value) : default(SpecificEntropy?); @@ -97,6 +101,7 @@ public partial struct SpecificEntropy : IComparable, IComparable /// Get nullable SpecificEntropy from nullable KilojoulesPerKilogramDegreeCelsius. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEntropy? FromKilojoulesPerKilogramDegreeCelsius(QuantityValue? kilojoulesperkilogramdegreecelsius) { return kilojoulesperkilogramdegreecelsius.HasValue ? FromKilojoulesPerKilogramDegreeCelsius(kilojoulesperkilogramdegreecelsius.Value) : default(SpecificEntropy?); @@ -105,6 +110,7 @@ public partial struct SpecificEntropy : IComparable, IComparable /// Get nullable SpecificEntropy from nullable KilojoulesPerKilogramKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEntropy? FromKilojoulesPerKilogramKelvin(QuantityValue? kilojoulesperkilogramkelvin) { return kilojoulesperkilogramkelvin.HasValue ? FromKilojoulesPerKilogramKelvin(kilojoulesperkilogramkelvin.Value) : default(SpecificEntropy?); @@ -113,6 +119,7 @@ public partial struct SpecificEntropy : IComparable, IComparable /// Get nullable SpecificEntropy from nullable MegajoulesPerKilogramDegreeCelsius. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEntropy? FromMegajoulesPerKilogramDegreeCelsius(QuantityValue? megajoulesperkilogramdegreecelsius) { return megajoulesperkilogramdegreecelsius.HasValue ? FromMegajoulesPerKilogramDegreeCelsius(megajoulesperkilogramdegreecelsius.Value) : default(SpecificEntropy?); @@ -121,6 +128,7 @@ public partial struct SpecificEntropy : IComparable, IComparable /// Get nullable SpecificEntropy from nullable MegajoulesPerKilogramKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificEntropy? FromMegajoulesPerKilogramKelvin(QuantityValue? megajoulesperkilogramkelvin) { return megajoulesperkilogramkelvin.HasValue ? FromMegajoulesPerKilogramKelvin(megajoulesperkilogramkelvin.Value) : default(SpecificEntropy?); @@ -132,6 +140,7 @@ public partial struct SpecificEntropy : IComparable, IComparableValue to convert from. /// Unit to convert from. /// SpecificEntropy unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificEntropy? From(QuantityValue? value, SpecificEntropyUnit fromUnit) { return value.HasValue ? new SpecificEntropy((double)value.Value, fromUnit) : default(SpecificEntropy?); diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.NetFramework.g.cs index c258b70ae3..1e06b97f10 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct SpecificVolume : IComparable, IComparable /// /// Get nullable SpecificVolume from nullable CubicFeetPerPound. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificVolume? FromCubicFeetPerPound(QuantityValue? cubicfeetperpound) { return cubicfeetperpound.HasValue ? FromCubicFeetPerPound(cubicfeetperpound.Value) : default(SpecificVolume?); @@ -73,6 +74,7 @@ public partial struct SpecificVolume : IComparable, IComparable /// /// Get nullable SpecificVolume from nullable CubicMetersPerKilogram. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificVolume? FromCubicMetersPerKilogram(QuantityValue? cubicmetersperkilogram) { return cubicmetersperkilogram.HasValue ? FromCubicMetersPerKilogram(cubicmetersperkilogram.Value) : default(SpecificVolume?); @@ -84,6 +86,7 @@ public partial struct SpecificVolume : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// SpecificVolume unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificVolume? From(QuantityValue? value, SpecificVolumeUnit fromUnit) { return value.HasValue ? new SpecificVolume((double)value.Value, fromUnit) : default(SpecificVolume?); diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.NetFramework.g.cs index ae4e51221e..417b4170e6 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable KilogramsForcePerCubicCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromKilogramsForcePerCubicCentimeter(QuantityValue? kilogramsforcepercubiccentimeter) { return kilogramsforcepercubiccentimeter.HasValue ? FromKilogramsForcePerCubicCentimeter(kilogramsforcepercubiccentimeter.Value) : default(SpecificWeight?); @@ -73,6 +74,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable KilogramsForcePerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromKilogramsForcePerCubicMeter(QuantityValue? kilogramsforcepercubicmeter) { return kilogramsforcepercubicmeter.HasValue ? FromKilogramsForcePerCubicMeter(kilogramsforcepercubicmeter.Value) : default(SpecificWeight?); @@ -81,6 +83,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable KilogramsForcePerCubicMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromKilogramsForcePerCubicMillimeter(QuantityValue? kilogramsforcepercubicmillimeter) { return kilogramsforcepercubicmillimeter.HasValue ? FromKilogramsForcePerCubicMillimeter(kilogramsforcepercubicmillimeter.Value) : default(SpecificWeight?); @@ -89,6 +92,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable KilonewtonsPerCubicCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromKilonewtonsPerCubicCentimeter(QuantityValue? kilonewtonspercubiccentimeter) { return kilonewtonspercubiccentimeter.HasValue ? FromKilonewtonsPerCubicCentimeter(kilonewtonspercubiccentimeter.Value) : default(SpecificWeight?); @@ -97,6 +101,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable KilonewtonsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromKilonewtonsPerCubicMeter(QuantityValue? kilonewtonspercubicmeter) { return kilonewtonspercubicmeter.HasValue ? FromKilonewtonsPerCubicMeter(kilonewtonspercubicmeter.Value) : default(SpecificWeight?); @@ -105,6 +110,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable KilonewtonsPerCubicMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromKilonewtonsPerCubicMillimeter(QuantityValue? kilonewtonspercubicmillimeter) { return kilonewtonspercubicmillimeter.HasValue ? FromKilonewtonsPerCubicMillimeter(kilonewtonspercubicmillimeter.Value) : default(SpecificWeight?); @@ -113,6 +119,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable KilopoundsForcePerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromKilopoundsForcePerCubicFoot(QuantityValue? kilopoundsforcepercubicfoot) { return kilopoundsforcepercubicfoot.HasValue ? FromKilopoundsForcePerCubicFoot(kilopoundsforcepercubicfoot.Value) : default(SpecificWeight?); @@ -121,6 +128,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable KilopoundsForcePerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromKilopoundsForcePerCubicInch(QuantityValue? kilopoundsforcepercubicinch) { return kilopoundsforcepercubicinch.HasValue ? FromKilopoundsForcePerCubicInch(kilopoundsforcepercubicinch.Value) : default(SpecificWeight?); @@ -129,6 +137,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable MeganewtonsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromMeganewtonsPerCubicMeter(QuantityValue? meganewtonspercubicmeter) { return meganewtonspercubicmeter.HasValue ? FromMeganewtonsPerCubicMeter(meganewtonspercubicmeter.Value) : default(SpecificWeight?); @@ -137,6 +146,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable NewtonsPerCubicCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromNewtonsPerCubicCentimeter(QuantityValue? newtonspercubiccentimeter) { return newtonspercubiccentimeter.HasValue ? FromNewtonsPerCubicCentimeter(newtonspercubiccentimeter.Value) : default(SpecificWeight?); @@ -145,6 +155,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable NewtonsPerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromNewtonsPerCubicMeter(QuantityValue? newtonspercubicmeter) { return newtonspercubicmeter.HasValue ? FromNewtonsPerCubicMeter(newtonspercubicmeter.Value) : default(SpecificWeight?); @@ -153,6 +164,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable NewtonsPerCubicMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromNewtonsPerCubicMillimeter(QuantityValue? newtonspercubicmillimeter) { return newtonspercubicmillimeter.HasValue ? FromNewtonsPerCubicMillimeter(newtonspercubicmillimeter.Value) : default(SpecificWeight?); @@ -161,6 +173,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable PoundsForcePerCubicFoot. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromPoundsForcePerCubicFoot(QuantityValue? poundsforcepercubicfoot) { return poundsforcepercubicfoot.HasValue ? FromPoundsForcePerCubicFoot(poundsforcepercubicfoot.Value) : default(SpecificWeight?); @@ -169,6 +182,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable PoundsForcePerCubicInch. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromPoundsForcePerCubicInch(QuantityValue? poundsforcepercubicinch) { return poundsforcepercubicinch.HasValue ? FromPoundsForcePerCubicInch(poundsforcepercubicinch.Value) : default(SpecificWeight?); @@ -177,6 +191,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable TonnesForcePerCubicCentimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromTonnesForcePerCubicCentimeter(QuantityValue? tonnesforcepercubiccentimeter) { return tonnesforcepercubiccentimeter.HasValue ? FromTonnesForcePerCubicCentimeter(tonnesforcepercubiccentimeter.Value) : default(SpecificWeight?); @@ -185,6 +200,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable TonnesForcePerCubicMeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromTonnesForcePerCubicMeter(QuantityValue? tonnesforcepercubicmeter) { return tonnesforcepercubicmeter.HasValue ? FromTonnesForcePerCubicMeter(tonnesforcepercubicmeter.Value) : default(SpecificWeight?); @@ -193,6 +209,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// /// Get nullable SpecificWeight from nullable TonnesForcePerCubicMillimeter. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static SpecificWeight? FromTonnesForcePerCubicMillimeter(QuantityValue? tonnesforcepercubicmillimeter) { return tonnesforcepercubicmillimeter.HasValue ? FromTonnesForcePerCubicMillimeter(tonnesforcepercubicmillimeter.Value) : default(SpecificWeight?); @@ -204,6 +221,7 @@ public partial struct SpecificWeight : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// SpecificWeight unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static SpecificWeight? From(QuantityValue? value, SpecificWeightUnit fromUnit) { return value.HasValue ? new SpecificWeight((double)value.Value, fromUnit) : default(SpecificWeight?); diff --git a/UnitsNet/GeneratedCode/Quantities/Speed.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Speed.NetFramework.g.cs index 287075934a..daf8ab45d8 100644 --- a/UnitsNet/GeneratedCode/Quantities/Speed.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Speed.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable CentimetersPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromCentimetersPerHour(QuantityValue? centimetersperhour) { return centimetersperhour.HasValue ? FromCentimetersPerHour(centimetersperhour.Value) : default(Speed?); @@ -73,6 +74,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable CentimetersPerMinutes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromCentimetersPerMinutes(QuantityValue? centimetersperminutes) { return centimetersperminutes.HasValue ? FromCentimetersPerMinutes(centimetersperminutes.Value) : default(Speed?); @@ -81,6 +83,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable CentimetersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromCentimetersPerSecond(QuantityValue? centimeterspersecond) { return centimeterspersecond.HasValue ? FromCentimetersPerSecond(centimeterspersecond.Value) : default(Speed?); @@ -89,6 +92,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable DecimetersPerMinutes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromDecimetersPerMinutes(QuantityValue? decimetersperminutes) { return decimetersperminutes.HasValue ? FromDecimetersPerMinutes(decimetersperminutes.Value) : default(Speed?); @@ -97,6 +101,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable DecimetersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromDecimetersPerSecond(QuantityValue? decimeterspersecond) { return decimeterspersecond.HasValue ? FromDecimetersPerSecond(decimeterspersecond.Value) : default(Speed?); @@ -105,6 +110,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable FeetPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromFeetPerHour(QuantityValue? feetperhour) { return feetperhour.HasValue ? FromFeetPerHour(feetperhour.Value) : default(Speed?); @@ -113,6 +119,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable FeetPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromFeetPerMinute(QuantityValue? feetperminute) { return feetperminute.HasValue ? FromFeetPerMinute(feetperminute.Value) : default(Speed?); @@ -121,6 +128,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable FeetPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromFeetPerSecond(QuantityValue? feetpersecond) { return feetpersecond.HasValue ? FromFeetPerSecond(feetpersecond.Value) : default(Speed?); @@ -129,6 +137,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable InchesPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromInchesPerHour(QuantityValue? inchesperhour) { return inchesperhour.HasValue ? FromInchesPerHour(inchesperhour.Value) : default(Speed?); @@ -137,6 +146,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable InchesPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromInchesPerMinute(QuantityValue? inchesperminute) { return inchesperminute.HasValue ? FromInchesPerMinute(inchesperminute.Value) : default(Speed?); @@ -145,6 +155,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable InchesPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromInchesPerSecond(QuantityValue? inchespersecond) { return inchespersecond.HasValue ? FromInchesPerSecond(inchespersecond.Value) : default(Speed?); @@ -153,6 +164,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable KilometersPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromKilometersPerHour(QuantityValue? kilometersperhour) { return kilometersperhour.HasValue ? FromKilometersPerHour(kilometersperhour.Value) : default(Speed?); @@ -161,6 +173,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable KilometersPerMinutes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromKilometersPerMinutes(QuantityValue? kilometersperminutes) { return kilometersperminutes.HasValue ? FromKilometersPerMinutes(kilometersperminutes.Value) : default(Speed?); @@ -169,6 +182,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable KilometersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromKilometersPerSecond(QuantityValue? kilometerspersecond) { return kilometerspersecond.HasValue ? FromKilometersPerSecond(kilometerspersecond.Value) : default(Speed?); @@ -177,6 +191,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable Knots. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromKnots(QuantityValue? knots) { return knots.HasValue ? FromKnots(knots.Value) : default(Speed?); @@ -185,6 +200,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable MetersPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromMetersPerHour(QuantityValue? metersperhour) { return metersperhour.HasValue ? FromMetersPerHour(metersperhour.Value) : default(Speed?); @@ -193,6 +209,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable MetersPerMinutes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromMetersPerMinutes(QuantityValue? metersperminutes) { return metersperminutes.HasValue ? FromMetersPerMinutes(metersperminutes.Value) : default(Speed?); @@ -201,6 +218,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable MetersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromMetersPerSecond(QuantityValue? meterspersecond) { return meterspersecond.HasValue ? FromMetersPerSecond(meterspersecond.Value) : default(Speed?); @@ -209,6 +227,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable MicrometersPerMinutes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromMicrometersPerMinutes(QuantityValue? micrometersperminutes) { return micrometersperminutes.HasValue ? FromMicrometersPerMinutes(micrometersperminutes.Value) : default(Speed?); @@ -217,6 +236,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable MicrometersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromMicrometersPerSecond(QuantityValue? micrometerspersecond) { return micrometerspersecond.HasValue ? FromMicrometersPerSecond(micrometerspersecond.Value) : default(Speed?); @@ -225,6 +245,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable MilesPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromMilesPerHour(QuantityValue? milesperhour) { return milesperhour.HasValue ? FromMilesPerHour(milesperhour.Value) : default(Speed?); @@ -233,6 +254,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable MillimetersPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromMillimetersPerHour(QuantityValue? millimetersperhour) { return millimetersperhour.HasValue ? FromMillimetersPerHour(millimetersperhour.Value) : default(Speed?); @@ -241,6 +263,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable MillimetersPerMinutes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromMillimetersPerMinutes(QuantityValue? millimetersperminutes) { return millimetersperminutes.HasValue ? FromMillimetersPerMinutes(millimetersperminutes.Value) : default(Speed?); @@ -249,6 +272,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable MillimetersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromMillimetersPerSecond(QuantityValue? millimeterspersecond) { return millimeterspersecond.HasValue ? FromMillimetersPerSecond(millimeterspersecond.Value) : default(Speed?); @@ -257,6 +281,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable NanometersPerMinutes. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromNanometersPerMinutes(QuantityValue? nanometersperminutes) { return nanometersperminutes.HasValue ? FromNanometersPerMinutes(nanometersperminutes.Value) : default(Speed?); @@ -265,6 +290,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable NanometersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromNanometersPerSecond(QuantityValue? nanometerspersecond) { return nanometerspersecond.HasValue ? FromNanometersPerSecond(nanometerspersecond.Value) : default(Speed?); @@ -273,6 +299,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable UsSurveyFeetPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromUsSurveyFeetPerHour(QuantityValue? ussurveyfeetperhour) { return ussurveyfeetperhour.HasValue ? FromUsSurveyFeetPerHour(ussurveyfeetperhour.Value) : default(Speed?); @@ -281,6 +308,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable UsSurveyFeetPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromUsSurveyFeetPerMinute(QuantityValue? ussurveyfeetperminute) { return ussurveyfeetperminute.HasValue ? FromUsSurveyFeetPerMinute(ussurveyfeetperminute.Value) : default(Speed?); @@ -289,6 +317,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable UsSurveyFeetPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromUsSurveyFeetPerSecond(QuantityValue? ussurveyfeetpersecond) { return ussurveyfeetpersecond.HasValue ? FromUsSurveyFeetPerSecond(ussurveyfeetpersecond.Value) : default(Speed?); @@ -297,6 +326,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable YardsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromYardsPerHour(QuantityValue? yardsperhour) { return yardsperhour.HasValue ? FromYardsPerHour(yardsperhour.Value) : default(Speed?); @@ -305,6 +335,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable YardsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromYardsPerMinute(QuantityValue? yardsperminute) { return yardsperminute.HasValue ? FromYardsPerMinute(yardsperminute.Value) : default(Speed?); @@ -313,6 +344,7 @@ public partial struct Speed : IComparable, IComparable /// /// Get nullable Speed from nullable YardsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Speed? FromYardsPerSecond(QuantityValue? yardspersecond) { return yardspersecond.HasValue ? FromYardsPerSecond(yardspersecond.Value) : default(Speed?); @@ -324,6 +356,7 @@ public partial struct Speed : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Speed unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Speed? From(QuantityValue? value, SpeedUnit fromUnit) { return value.HasValue ? new Speed((double)value.Value, fromUnit) : default(Speed?); diff --git a/UnitsNet/GeneratedCode/Quantities/Temperature.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Temperature.NetFramework.g.cs index d51ad5a576..920828df1b 100644 --- a/UnitsNet/GeneratedCode/Quantities/Temperature.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Temperature.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Temperature : IComparable, IComparable /// /// Get nullable Temperature from nullable DegreesCelsius. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Temperature? FromDegreesCelsius(QuantityValue? degreescelsius) { return degreescelsius.HasValue ? FromDegreesCelsius(degreescelsius.Value) : default(Temperature?); @@ -73,6 +74,7 @@ public partial struct Temperature : IComparable, IComparable /// /// Get nullable Temperature from nullable DegreesDelisle. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Temperature? FromDegreesDelisle(QuantityValue? degreesdelisle) { return degreesdelisle.HasValue ? FromDegreesDelisle(degreesdelisle.Value) : default(Temperature?); @@ -81,6 +83,7 @@ public partial struct Temperature : IComparable, IComparable /// /// Get nullable Temperature from nullable DegreesFahrenheit. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Temperature? FromDegreesFahrenheit(QuantityValue? degreesfahrenheit) { return degreesfahrenheit.HasValue ? FromDegreesFahrenheit(degreesfahrenheit.Value) : default(Temperature?); @@ -89,6 +92,7 @@ public partial struct Temperature : IComparable, IComparable /// /// Get nullable Temperature from nullable DegreesNewton. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Temperature? FromDegreesNewton(QuantityValue? degreesnewton) { return degreesnewton.HasValue ? FromDegreesNewton(degreesnewton.Value) : default(Temperature?); @@ -97,6 +101,7 @@ public partial struct Temperature : IComparable, IComparable /// /// Get nullable Temperature from nullable DegreesRankine. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Temperature? FromDegreesRankine(QuantityValue? degreesrankine) { return degreesrankine.HasValue ? FromDegreesRankine(degreesrankine.Value) : default(Temperature?); @@ -105,6 +110,7 @@ public partial struct Temperature : IComparable, IComparable /// /// Get nullable Temperature from nullable DegreesReaumur. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Temperature? FromDegreesReaumur(QuantityValue? degreesreaumur) { return degreesreaumur.HasValue ? FromDegreesReaumur(degreesreaumur.Value) : default(Temperature?); @@ -113,6 +119,7 @@ public partial struct Temperature : IComparable, IComparable /// /// Get nullable Temperature from nullable DegreesRoemer. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Temperature? FromDegreesRoemer(QuantityValue? degreesroemer) { return degreesroemer.HasValue ? FromDegreesRoemer(degreesroemer.Value) : default(Temperature?); @@ -121,6 +128,7 @@ public partial struct Temperature : IComparable, IComparable /// /// Get nullable Temperature from nullable Kelvins. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Temperature? FromKelvins(QuantityValue? kelvins) { return kelvins.HasValue ? FromKelvins(kelvins.Value) : default(Temperature?); @@ -132,6 +140,7 @@ public partial struct Temperature : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Temperature unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Temperature? From(QuantityValue? value, TemperatureUnit fromUnit) { return value.HasValue ? new Temperature((double)value.Value, fromUnit) : default(Temperature?); diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.NetFramework.g.cs index d99f0a9328..87c254bb63 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable CentidegreesCelsiusPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromCentidegreesCelsiusPerSecond(QuantityValue? centidegreescelsiuspersecond) { return centidegreescelsiuspersecond.HasValue ? FromCentidegreesCelsiusPerSecond(centidegreescelsiuspersecond.Value) : default(TemperatureChangeRate?); @@ -73,6 +74,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable DecadegreesCelsiusPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromDecadegreesCelsiusPerSecond(QuantityValue? decadegreescelsiuspersecond) { return decadegreescelsiuspersecond.HasValue ? FromDecadegreesCelsiusPerSecond(decadegreescelsiuspersecond.Value) : default(TemperatureChangeRate?); @@ -81,6 +83,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable DecidegreesCelsiusPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromDecidegreesCelsiusPerSecond(QuantityValue? decidegreescelsiuspersecond) { return decidegreescelsiuspersecond.HasValue ? FromDecidegreesCelsiusPerSecond(decidegreescelsiuspersecond.Value) : default(TemperatureChangeRate?); @@ -89,6 +92,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable DegreesCelsiusPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromDegreesCelsiusPerMinute(QuantityValue? degreescelsiusperminute) { return degreescelsiusperminute.HasValue ? FromDegreesCelsiusPerMinute(degreescelsiusperminute.Value) : default(TemperatureChangeRate?); @@ -97,6 +101,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable DegreesCelsiusPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromDegreesCelsiusPerSecond(QuantityValue? degreescelsiuspersecond) { return degreescelsiuspersecond.HasValue ? FromDegreesCelsiusPerSecond(degreescelsiuspersecond.Value) : default(TemperatureChangeRate?); @@ -105,6 +110,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable HectodegreesCelsiusPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromHectodegreesCelsiusPerSecond(QuantityValue? hectodegreescelsiuspersecond) { return hectodegreescelsiuspersecond.HasValue ? FromHectodegreesCelsiusPerSecond(hectodegreescelsiuspersecond.Value) : default(TemperatureChangeRate?); @@ -113,6 +119,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable KilodegreesCelsiusPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromKilodegreesCelsiusPerSecond(QuantityValue? kilodegreescelsiuspersecond) { return kilodegreescelsiuspersecond.HasValue ? FromKilodegreesCelsiusPerSecond(kilodegreescelsiuspersecond.Value) : default(TemperatureChangeRate?); @@ -121,6 +128,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable MicrodegreesCelsiusPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromMicrodegreesCelsiusPerSecond(QuantityValue? microdegreescelsiuspersecond) { return microdegreescelsiuspersecond.HasValue ? FromMicrodegreesCelsiusPerSecond(microdegreescelsiuspersecond.Value) : default(TemperatureChangeRate?); @@ -129,6 +137,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable MillidegreesCelsiusPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromMillidegreesCelsiusPerSecond(QuantityValue? millidegreescelsiuspersecond) { return millidegreescelsiuspersecond.HasValue ? FromMillidegreesCelsiusPerSecond(millidegreescelsiuspersecond.Value) : default(TemperatureChangeRate?); @@ -137,6 +146,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparable /// Get nullable TemperatureChangeRate from nullable NanodegreesCelsiusPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureChangeRate? FromNanodegreesCelsiusPerSecond(QuantityValue? nanodegreescelsiuspersecond) { return nanodegreescelsiuspersecond.HasValue ? FromNanodegreesCelsiusPerSecond(nanodegreescelsiuspersecond.Value) : default(TemperatureChangeRate?); @@ -148,6 +158,7 @@ public partial struct TemperatureChangeRate : IComparable, IComparableValue to convert from. /// Unit to convert from. /// TemperatureChangeRate unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureChangeRate? From(QuantityValue? value, TemperatureChangeRateUnit fromUnit) { return value.HasValue ? new TemperatureChangeRate((double)value.Value, fromUnit) : default(TemperatureChangeRate?); diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.NetFramework.g.cs index 5e5e275909..1a85aa86c7 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesCelsius. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesCelsius(QuantityValue? degreescelsius) { return degreescelsius.HasValue ? FromDegreesCelsius(degreescelsius.Value) : default(TemperatureDelta?); @@ -73,6 +74,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesCelsiusDelta. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesCelsiusDelta(QuantityValue? degreescelsiusdelta) { return degreescelsiusdelta.HasValue ? FromDegreesCelsiusDelta(degreescelsiusdelta.Value) : default(TemperatureDelta?); @@ -81,6 +83,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesDelisle. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesDelisle(QuantityValue? degreesdelisle) { return degreesdelisle.HasValue ? FromDegreesDelisle(degreesdelisle.Value) : default(TemperatureDelta?); @@ -89,6 +92,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesDelisleDelta. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesDelisleDelta(QuantityValue? degreesdelisledelta) { return degreesdelisledelta.HasValue ? FromDegreesDelisleDelta(degreesdelisledelta.Value) : default(TemperatureDelta?); @@ -97,6 +101,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesFahrenheit. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesFahrenheit(QuantityValue? degreesfahrenheit) { return degreesfahrenheit.HasValue ? FromDegreesFahrenheit(degreesfahrenheit.Value) : default(TemperatureDelta?); @@ -105,6 +110,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesFahrenheitDelta. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesFahrenheitDelta(QuantityValue? degreesfahrenheitdelta) { return degreesfahrenheitdelta.HasValue ? FromDegreesFahrenheitDelta(degreesfahrenheitdelta.Value) : default(TemperatureDelta?); @@ -113,6 +119,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesNewton. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesNewton(QuantityValue? degreesnewton) { return degreesnewton.HasValue ? FromDegreesNewton(degreesnewton.Value) : default(TemperatureDelta?); @@ -121,6 +128,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesNewtonDelta. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesNewtonDelta(QuantityValue? degreesnewtondelta) { return degreesnewtondelta.HasValue ? FromDegreesNewtonDelta(degreesnewtondelta.Value) : default(TemperatureDelta?); @@ -129,6 +137,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesRankine. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesRankine(QuantityValue? degreesrankine) { return degreesrankine.HasValue ? FromDegreesRankine(degreesrankine.Value) : default(TemperatureDelta?); @@ -137,6 +146,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesRankineDelta. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesRankineDelta(QuantityValue? degreesrankinedelta) { return degreesrankinedelta.HasValue ? FromDegreesRankineDelta(degreesrankinedelta.Value) : default(TemperatureDelta?); @@ -145,6 +155,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesReaumur. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesReaumur(QuantityValue? degreesreaumur) { return degreesreaumur.HasValue ? FromDegreesReaumur(degreesreaumur.Value) : default(TemperatureDelta?); @@ -153,6 +164,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesReaumurDelta. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesReaumurDelta(QuantityValue? degreesreaumurdelta) { return degreesreaumurdelta.HasValue ? FromDegreesReaumurDelta(degreesreaumurdelta.Value) : default(TemperatureDelta?); @@ -161,6 +173,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesRoemer. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesRoemer(QuantityValue? degreesroemer) { return degreesroemer.HasValue ? FromDegreesRoemer(degreesroemer.Value) : default(TemperatureDelta?); @@ -169,6 +182,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable DegreesRoemerDelta. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromDegreesRoemerDelta(QuantityValue? degreesroemerdelta) { return degreesroemerdelta.HasValue ? FromDegreesRoemerDelta(degreesroemerdelta.Value) : default(TemperatureDelta?); @@ -177,6 +191,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable Kelvins. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromKelvins(QuantityValue? kelvins) { return kelvins.HasValue ? FromKelvins(kelvins.Value) : default(TemperatureDelta?); @@ -185,6 +200,7 @@ public partial struct TemperatureDelta : IComparable, IComparable /// Get nullable TemperatureDelta from nullable KelvinsDelta. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static TemperatureDelta? FromKelvinsDelta(QuantityValue? kelvinsdelta) { return kelvinsdelta.HasValue ? FromKelvinsDelta(kelvinsdelta.Value) : default(TemperatureDelta?); @@ -196,6 +212,7 @@ public partial struct TemperatureDelta : IComparable, IComparableValue to convert from. /// Unit to convert from. /// TemperatureDelta unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static TemperatureDelta? From(QuantityValue? value, TemperatureDeltaUnit fromUnit) { return value.HasValue ? new TemperatureDelta((double)value.Value, fromUnit) : default(TemperatureDelta?); diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.NetFramework.g.cs index cb17b995bb..9d4eb1d11e 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ThermalConductivity : IComparable, IComparable /// Get nullable ThermalConductivity from nullable BtusPerHourFootFahrenheit. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ThermalConductivity? FromBtusPerHourFootFahrenheit(QuantityValue? btusperhourfootfahrenheit) { return btusperhourfootfahrenheit.HasValue ? FromBtusPerHourFootFahrenheit(btusperhourfootfahrenheit.Value) : default(ThermalConductivity?); @@ -73,6 +74,7 @@ public partial struct ThermalConductivity : IComparable, IComparable /// Get nullable ThermalConductivity from nullable WattsPerMeterKelvin. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ThermalConductivity? FromWattsPerMeterKelvin(QuantityValue? wattspermeterkelvin) { return wattspermeterkelvin.HasValue ? FromWattsPerMeterKelvin(wattspermeterkelvin.Value) : default(ThermalConductivity?); @@ -84,6 +86,7 @@ public partial struct ThermalConductivity : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ThermalConductivity unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ThermalConductivity? From(QuantityValue? value, ThermalConductivityUnit fromUnit) { return value.HasValue ? new ThermalConductivity((double)value.Value, fromUnit) : default(ThermalConductivity?); diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.NetFramework.g.cs index 8bfda2eac1..8924ea7ab4 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct ThermalResistance : IComparable, IComparable /// Get nullable ThermalResistance from nullable HourSquareFeetDegreesFahrenheitPerBtu. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ThermalResistance? FromHourSquareFeetDegreesFahrenheitPerBtu(QuantityValue? hoursquarefeetdegreesfahrenheitperbtu) { return hoursquarefeetdegreesfahrenheitperbtu.HasValue ? FromHourSquareFeetDegreesFahrenheitPerBtu(hoursquarefeetdegreesfahrenheitperbtu.Value) : default(ThermalResistance?); @@ -73,6 +74,7 @@ public partial struct ThermalResistance : IComparable, IComparable /// Get nullable ThermalResistance from nullable SquareCentimeterHourDegreesCelsiusPerKilocalorie. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ThermalResistance? FromSquareCentimeterHourDegreesCelsiusPerKilocalorie(QuantityValue? squarecentimeterhourdegreescelsiusperkilocalorie) { return squarecentimeterhourdegreescelsiusperkilocalorie.HasValue ? FromSquareCentimeterHourDegreesCelsiusPerKilocalorie(squarecentimeterhourdegreescelsiusperkilocalorie.Value) : default(ThermalResistance?); @@ -81,6 +83,7 @@ public partial struct ThermalResistance : IComparable, IComparable /// Get nullable ThermalResistance from nullable SquareCentimeterKelvinsPerWatt. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ThermalResistance? FromSquareCentimeterKelvinsPerWatt(QuantityValue? squarecentimeterkelvinsperwatt) { return squarecentimeterkelvinsperwatt.HasValue ? FromSquareCentimeterKelvinsPerWatt(squarecentimeterkelvinsperwatt.Value) : default(ThermalResistance?); @@ -89,6 +92,7 @@ public partial struct ThermalResistance : IComparable, IComparable /// Get nullable ThermalResistance from nullable SquareMeterDegreesCelsiusPerWatt. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ThermalResistance? FromSquareMeterDegreesCelsiusPerWatt(QuantityValue? squaremeterdegreescelsiusperwatt) { return squaremeterdegreescelsiusperwatt.HasValue ? FromSquareMeterDegreesCelsiusPerWatt(squaremeterdegreescelsiusperwatt.Value) : default(ThermalResistance?); @@ -97,6 +101,7 @@ public partial struct ThermalResistance : IComparable, IComparable /// Get nullable ThermalResistance from nullable SquareMeterKelvinsPerKilowatt. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static ThermalResistance? FromSquareMeterKelvinsPerKilowatt(QuantityValue? squaremeterkelvinsperkilowatt) { return squaremeterkelvinsperkilowatt.HasValue ? FromSquareMeterKelvinsPerKilowatt(squaremeterkelvinsperkilowatt.Value) : default(ThermalResistance?); @@ -108,6 +113,7 @@ public partial struct ThermalResistance : IComparable, IComparableValue to convert from. /// Unit to convert from. /// ThermalResistance unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static ThermalResistance? From(QuantityValue? value, ThermalResistanceUnit fromUnit) { return value.HasValue ? new ThermalResistance((double)value.Value, fromUnit) : default(ThermalResistance?); diff --git a/UnitsNet/GeneratedCode/Quantities/Torque.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Torque.NetFramework.g.cs index dad90eb32a..3f03228011 100644 --- a/UnitsNet/GeneratedCode/Quantities/Torque.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Torque.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable KilogramForceCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromKilogramForceCentimeters(QuantityValue? kilogramforcecentimeters) { return kilogramforcecentimeters.HasValue ? FromKilogramForceCentimeters(kilogramforcecentimeters.Value) : default(Torque?); @@ -73,6 +74,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable KilogramForceMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromKilogramForceMeters(QuantityValue? kilogramforcemeters) { return kilogramforcemeters.HasValue ? FromKilogramForceMeters(kilogramforcemeters.Value) : default(Torque?); @@ -81,6 +83,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable KilogramForceMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromKilogramForceMillimeters(QuantityValue? kilogramforcemillimeters) { return kilogramforcemillimeters.HasValue ? FromKilogramForceMillimeters(kilogramforcemillimeters.Value) : default(Torque?); @@ -89,6 +92,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable KilonewtonCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromKilonewtonCentimeters(QuantityValue? kilonewtoncentimeters) { return kilonewtoncentimeters.HasValue ? FromKilonewtonCentimeters(kilonewtoncentimeters.Value) : default(Torque?); @@ -97,6 +101,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable KilonewtonMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromKilonewtonMeters(QuantityValue? kilonewtonmeters) { return kilonewtonmeters.HasValue ? FromKilonewtonMeters(kilonewtonmeters.Value) : default(Torque?); @@ -105,6 +110,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable KilonewtonMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromKilonewtonMillimeters(QuantityValue? kilonewtonmillimeters) { return kilonewtonmillimeters.HasValue ? FromKilonewtonMillimeters(kilonewtonmillimeters.Value) : default(Torque?); @@ -113,6 +119,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable KilopoundForceFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromKilopoundForceFeet(QuantityValue? kilopoundforcefeet) { return kilopoundforcefeet.HasValue ? FromKilopoundForceFeet(kilopoundforcefeet.Value) : default(Torque?); @@ -121,6 +128,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable KilopoundForceInches. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromKilopoundForceInches(QuantityValue? kilopoundforceinches) { return kilopoundforceinches.HasValue ? FromKilopoundForceInches(kilopoundforceinches.Value) : default(Torque?); @@ -129,6 +137,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable MeganewtonCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromMeganewtonCentimeters(QuantityValue? meganewtoncentimeters) { return meganewtoncentimeters.HasValue ? FromMeganewtonCentimeters(meganewtoncentimeters.Value) : default(Torque?); @@ -137,6 +146,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable MeganewtonMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromMeganewtonMeters(QuantityValue? meganewtonmeters) { return meganewtonmeters.HasValue ? FromMeganewtonMeters(meganewtonmeters.Value) : default(Torque?); @@ -145,6 +155,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable MeganewtonMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromMeganewtonMillimeters(QuantityValue? meganewtonmillimeters) { return meganewtonmillimeters.HasValue ? FromMeganewtonMillimeters(meganewtonmillimeters.Value) : default(Torque?); @@ -153,6 +164,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable MegapoundForceFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromMegapoundForceFeet(QuantityValue? megapoundforcefeet) { return megapoundforcefeet.HasValue ? FromMegapoundForceFeet(megapoundforcefeet.Value) : default(Torque?); @@ -161,6 +173,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable MegapoundForceInches. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromMegapoundForceInches(QuantityValue? megapoundforceinches) { return megapoundforceinches.HasValue ? FromMegapoundForceInches(megapoundforceinches.Value) : default(Torque?); @@ -169,6 +182,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable NewtonCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromNewtonCentimeters(QuantityValue? newtoncentimeters) { return newtoncentimeters.HasValue ? FromNewtonCentimeters(newtoncentimeters.Value) : default(Torque?); @@ -177,6 +191,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable NewtonMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromNewtonMeters(QuantityValue? newtonmeters) { return newtonmeters.HasValue ? FromNewtonMeters(newtonmeters.Value) : default(Torque?); @@ -185,6 +200,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable NewtonMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromNewtonMillimeters(QuantityValue? newtonmillimeters) { return newtonmillimeters.HasValue ? FromNewtonMillimeters(newtonmillimeters.Value) : default(Torque?); @@ -193,6 +209,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable PoundForceFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromPoundForceFeet(QuantityValue? poundforcefeet) { return poundforcefeet.HasValue ? FromPoundForceFeet(poundforcefeet.Value) : default(Torque?); @@ -201,6 +218,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable PoundForceInches. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromPoundForceInches(QuantityValue? poundforceinches) { return poundforceinches.HasValue ? FromPoundForceInches(poundforceinches.Value) : default(Torque?); @@ -209,6 +227,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable TonneForceCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromTonneForceCentimeters(QuantityValue? tonneforcecentimeters) { return tonneforcecentimeters.HasValue ? FromTonneForceCentimeters(tonneforcecentimeters.Value) : default(Torque?); @@ -217,6 +236,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable TonneForceMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromTonneForceMeters(QuantityValue? tonneforcemeters) { return tonneforcemeters.HasValue ? FromTonneForceMeters(tonneforcemeters.Value) : default(Torque?); @@ -225,6 +245,7 @@ public partial struct Torque : IComparable, IComparable /// /// Get nullable Torque from nullable TonneForceMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Torque? FromTonneForceMillimeters(QuantityValue? tonneforcemillimeters) { return tonneforcemillimeters.HasValue ? FromTonneForceMillimeters(tonneforcemillimeters.Value) : default(Torque?); @@ -236,6 +257,7 @@ public partial struct Torque : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Torque unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Torque? From(QuantityValue? value, TorqueUnit fromUnit) { return value.HasValue ? new Torque((double)value.Value, fromUnit) : default(Torque?); diff --git a/UnitsNet/GeneratedCode/Quantities/VitaminA.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/VitaminA.NetFramework.g.cs index 3a5ed1d94a..b8ff7ad03b 100644 --- a/UnitsNet/GeneratedCode/Quantities/VitaminA.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VitaminA.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct VitaminA : IComparable, IComparable /// /// Get nullable VitaminA from nullable InternationalUnits. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VitaminA? FromInternationalUnits(QuantityValue? internationalunits) { return internationalunits.HasValue ? FromInternationalUnits(internationalunits.Value) : default(VitaminA?); @@ -76,6 +77,7 @@ public partial struct VitaminA : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// VitaminA unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VitaminA? From(QuantityValue? value, VitaminAUnit fromUnit) { return value.HasValue ? new VitaminA((double)value.Value, fromUnit) : default(VitaminA?); diff --git a/UnitsNet/GeneratedCode/Quantities/Volume.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/Volume.NetFramework.g.cs index de645e4f62..17ec35b34f 100644 --- a/UnitsNet/GeneratedCode/Quantities/Volume.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Volume.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable AuTablespoons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromAuTablespoons(QuantityValue? autablespoons) { return autablespoons.HasValue ? FromAuTablespoons(autablespoons.Value) : default(Volume?); @@ -73,6 +74,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable Centiliters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCentiliters(QuantityValue? centiliters) { return centiliters.HasValue ? FromCentiliters(centiliters.Value) : default(Volume?); @@ -81,6 +83,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicCentimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicCentimeters(QuantityValue? cubiccentimeters) { return cubiccentimeters.HasValue ? FromCubicCentimeters(cubiccentimeters.Value) : default(Volume?); @@ -89,6 +92,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicDecimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicDecimeters(QuantityValue? cubicdecimeters) { return cubicdecimeters.HasValue ? FromCubicDecimeters(cubicdecimeters.Value) : default(Volume?); @@ -97,6 +101,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicFeet(QuantityValue? cubicfeet) { return cubicfeet.HasValue ? FromCubicFeet(cubicfeet.Value) : default(Volume?); @@ -105,6 +110,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicInches. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicInches(QuantityValue? cubicinches) { return cubicinches.HasValue ? FromCubicInches(cubicinches.Value) : default(Volume?); @@ -113,6 +119,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicKilometers. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicKilometers(QuantityValue? cubickilometers) { return cubickilometers.HasValue ? FromCubicKilometers(cubickilometers.Value) : default(Volume?); @@ -121,6 +128,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicMeters(QuantityValue? cubicmeters) { return cubicmeters.HasValue ? FromCubicMeters(cubicmeters.Value) : default(Volume?); @@ -129,6 +137,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicMicrometers. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicMicrometers(QuantityValue? cubicmicrometers) { return cubicmicrometers.HasValue ? FromCubicMicrometers(cubicmicrometers.Value) : default(Volume?); @@ -137,6 +146,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicMiles. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicMiles(QuantityValue? cubicmiles) { return cubicmiles.HasValue ? FromCubicMiles(cubicmiles.Value) : default(Volume?); @@ -145,6 +155,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicMillimeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicMillimeters(QuantityValue? cubicmillimeters) { return cubicmillimeters.HasValue ? FromCubicMillimeters(cubicmillimeters.Value) : default(Volume?); @@ -153,6 +164,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable CubicYards. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromCubicYards(QuantityValue? cubicyards) { return cubicyards.HasValue ? FromCubicYards(cubicyards.Value) : default(Volume?); @@ -161,6 +173,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable Deciliters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromDeciliters(QuantityValue? deciliters) { return deciliters.HasValue ? FromDeciliters(deciliters.Value) : default(Volume?); @@ -169,6 +182,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable HectocubicFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromHectocubicFeet(QuantityValue? hectocubicfeet) { return hectocubicfeet.HasValue ? FromHectocubicFeet(hectocubicfeet.Value) : default(Volume?); @@ -177,6 +191,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable HectocubicMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromHectocubicMeters(QuantityValue? hectocubicmeters) { return hectocubicmeters.HasValue ? FromHectocubicMeters(hectocubicmeters.Value) : default(Volume?); @@ -185,6 +200,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable Hectoliters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromHectoliters(QuantityValue? hectoliters) { return hectoliters.HasValue ? FromHectoliters(hectoliters.Value) : default(Volume?); @@ -193,6 +209,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable ImperialBeerBarrels. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromImperialBeerBarrels(QuantityValue? imperialbeerbarrels) { return imperialbeerbarrels.HasValue ? FromImperialBeerBarrels(imperialbeerbarrels.Value) : default(Volume?); @@ -201,6 +218,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable ImperialGallons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromImperialGallons(QuantityValue? imperialgallons) { return imperialgallons.HasValue ? FromImperialGallons(imperialgallons.Value) : default(Volume?); @@ -209,6 +227,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable ImperialOunces. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromImperialOunces(QuantityValue? imperialounces) { return imperialounces.HasValue ? FromImperialOunces(imperialounces.Value) : default(Volume?); @@ -217,6 +236,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable KilocubicFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromKilocubicFeet(QuantityValue? kilocubicfeet) { return kilocubicfeet.HasValue ? FromKilocubicFeet(kilocubicfeet.Value) : default(Volume?); @@ -225,6 +245,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable KilocubicMeters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromKilocubicMeters(QuantityValue? kilocubicmeters) { return kilocubicmeters.HasValue ? FromKilocubicMeters(kilocubicmeters.Value) : default(Volume?); @@ -233,6 +254,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable KiloimperialGallons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromKiloimperialGallons(QuantityValue? kiloimperialgallons) { return kiloimperialgallons.HasValue ? FromKiloimperialGallons(kiloimperialgallons.Value) : default(Volume?); @@ -241,6 +263,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable KilousGallons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromKilousGallons(QuantityValue? kilousgallons) { return kilousgallons.HasValue ? FromKilousGallons(kilousgallons.Value) : default(Volume?); @@ -249,6 +272,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable Liters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromLiters(QuantityValue? liters) { return liters.HasValue ? FromLiters(liters.Value) : default(Volume?); @@ -257,6 +281,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable MegacubicFeet. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromMegacubicFeet(QuantityValue? megacubicfeet) { return megacubicfeet.HasValue ? FromMegacubicFeet(megacubicfeet.Value) : default(Volume?); @@ -265,6 +290,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable MegaimperialGallons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromMegaimperialGallons(QuantityValue? megaimperialgallons) { return megaimperialgallons.HasValue ? FromMegaimperialGallons(megaimperialgallons.Value) : default(Volume?); @@ -273,6 +299,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable MegausGallons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromMegausGallons(QuantityValue? megausgallons) { return megausgallons.HasValue ? FromMegausGallons(megausgallons.Value) : default(Volume?); @@ -281,6 +308,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable MetricCups. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromMetricCups(QuantityValue? metriccups) { return metriccups.HasValue ? FromMetricCups(metriccups.Value) : default(Volume?); @@ -289,6 +317,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable MetricTeaspoons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromMetricTeaspoons(QuantityValue? metricteaspoons) { return metricteaspoons.HasValue ? FromMetricTeaspoons(metricteaspoons.Value) : default(Volume?); @@ -297,6 +326,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable Microliters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromMicroliters(QuantityValue? microliters) { return microliters.HasValue ? FromMicroliters(microliters.Value) : default(Volume?); @@ -305,6 +335,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable Milliliters. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromMilliliters(QuantityValue? milliliters) { return milliliters.HasValue ? FromMilliliters(milliliters.Value) : default(Volume?); @@ -313,6 +344,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable OilBarrels. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromOilBarrels(QuantityValue? oilbarrels) { return oilbarrels.HasValue ? FromOilBarrels(oilbarrels.Value) : default(Volume?); @@ -321,6 +353,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable Tablespoons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromTablespoons(QuantityValue? tablespoons) { return tablespoons.HasValue ? FromTablespoons(tablespoons.Value) : default(Volume?); @@ -329,6 +362,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable Teaspoons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromTeaspoons(QuantityValue? teaspoons) { return teaspoons.HasValue ? FromTeaspoons(teaspoons.Value) : default(Volume?); @@ -337,6 +371,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UkTablespoons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUkTablespoons(QuantityValue? uktablespoons) { return uktablespoons.HasValue ? FromUkTablespoons(uktablespoons.Value) : default(Volume?); @@ -345,6 +380,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UsBeerBarrels. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUsBeerBarrels(QuantityValue? usbeerbarrels) { return usbeerbarrels.HasValue ? FromUsBeerBarrels(usbeerbarrels.Value) : default(Volume?); @@ -353,6 +389,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UsCustomaryCups. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUsCustomaryCups(QuantityValue? uscustomarycups) { return uscustomarycups.HasValue ? FromUsCustomaryCups(uscustomarycups.Value) : default(Volume?); @@ -361,6 +398,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UsGallons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUsGallons(QuantityValue? usgallons) { return usgallons.HasValue ? FromUsGallons(usgallons.Value) : default(Volume?); @@ -369,6 +407,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UsLegalCups. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUsLegalCups(QuantityValue? uslegalcups) { return uslegalcups.HasValue ? FromUsLegalCups(uslegalcups.Value) : default(Volume?); @@ -377,6 +416,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UsOunces. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUsOunces(QuantityValue? usounces) { return usounces.HasValue ? FromUsOunces(usounces.Value) : default(Volume?); @@ -385,6 +425,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UsPints. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUsPints(QuantityValue? uspints) { return uspints.HasValue ? FromUsPints(uspints.Value) : default(Volume?); @@ -393,6 +434,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UsQuarts. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUsQuarts(QuantityValue? usquarts) { return usquarts.HasValue ? FromUsQuarts(usquarts.Value) : default(Volume?); @@ -401,6 +443,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UsTablespoons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUsTablespoons(QuantityValue? ustablespoons) { return ustablespoons.HasValue ? FromUsTablespoons(ustablespoons.Value) : default(Volume?); @@ -409,6 +452,7 @@ public partial struct Volume : IComparable, IComparable /// /// Get nullable Volume from nullable UsTeaspoons. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static Volume? FromUsTeaspoons(QuantityValue? usteaspoons) { return usteaspoons.HasValue ? FromUsTeaspoons(usteaspoons.Value) : default(Volume?); @@ -420,6 +464,7 @@ public partial struct Volume : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// Volume unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static Volume? From(QuantityValue? value, VolumeUnit fromUnit) { return value.HasValue ? new Volume((double)value.Value, fromUnit) : default(Volume?); diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.NetFramework.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.NetFramework.g.cs index 205569eeae..c4f7944647 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.NetFramework.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.NetFramework.g.cs @@ -65,6 +65,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CentilitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCentilitersPerMinute(QuantityValue? centilitersperminute) { return centilitersperminute.HasValue ? FromCentilitersPerMinute(centilitersperminute.Value) : default(VolumeFlow?); @@ -73,6 +74,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicDecimetersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicDecimetersPerMinute(QuantityValue? cubicdecimetersperminute) { return cubicdecimetersperminute.HasValue ? FromCubicDecimetersPerMinute(cubicdecimetersperminute.Value) : default(VolumeFlow?); @@ -81,6 +83,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicFeetPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicFeetPerHour(QuantityValue? cubicfeetperhour) { return cubicfeetperhour.HasValue ? FromCubicFeetPerHour(cubicfeetperhour.Value) : default(VolumeFlow?); @@ -89,6 +92,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicFeetPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicFeetPerMinute(QuantityValue? cubicfeetperminute) { return cubicfeetperminute.HasValue ? FromCubicFeetPerMinute(cubicfeetperminute.Value) : default(VolumeFlow?); @@ -97,6 +101,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicFeetPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicFeetPerSecond(QuantityValue? cubicfeetpersecond) { return cubicfeetpersecond.HasValue ? FromCubicFeetPerSecond(cubicfeetpersecond.Value) : default(VolumeFlow?); @@ -105,6 +110,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicMetersPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicMetersPerHour(QuantityValue? cubicmetersperhour) { return cubicmetersperhour.HasValue ? FromCubicMetersPerHour(cubicmetersperhour.Value) : default(VolumeFlow?); @@ -113,6 +119,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicMetersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicMetersPerMinute(QuantityValue? cubicmetersperminute) { return cubicmetersperminute.HasValue ? FromCubicMetersPerMinute(cubicmetersperminute.Value) : default(VolumeFlow?); @@ -121,6 +128,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicMetersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicMetersPerSecond(QuantityValue? cubicmeterspersecond) { return cubicmeterspersecond.HasValue ? FromCubicMetersPerSecond(cubicmeterspersecond.Value) : default(VolumeFlow?); @@ -129,6 +137,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicYardsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicYardsPerHour(QuantityValue? cubicyardsperhour) { return cubicyardsperhour.HasValue ? FromCubicYardsPerHour(cubicyardsperhour.Value) : default(VolumeFlow?); @@ -137,6 +146,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicYardsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicYardsPerMinute(QuantityValue? cubicyardsperminute) { return cubicyardsperminute.HasValue ? FromCubicYardsPerMinute(cubicyardsperminute.Value) : default(VolumeFlow?); @@ -145,6 +155,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable CubicYardsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromCubicYardsPerSecond(QuantityValue? cubicyardspersecond) { return cubicyardspersecond.HasValue ? FromCubicYardsPerSecond(cubicyardspersecond.Value) : default(VolumeFlow?); @@ -153,6 +164,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable DecilitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromDecilitersPerMinute(QuantityValue? decilitersperminute) { return decilitersperminute.HasValue ? FromDecilitersPerMinute(decilitersperminute.Value) : default(VolumeFlow?); @@ -161,6 +173,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable KilolitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromKilolitersPerMinute(QuantityValue? kilolitersperminute) { return kilolitersperminute.HasValue ? FromKilolitersPerMinute(kilolitersperminute.Value) : default(VolumeFlow?); @@ -169,6 +182,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable LitersPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromLitersPerHour(QuantityValue? litersperhour) { return litersperhour.HasValue ? FromLitersPerHour(litersperhour.Value) : default(VolumeFlow?); @@ -177,6 +191,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable LitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromLitersPerMinute(QuantityValue? litersperminute) { return litersperminute.HasValue ? FromLitersPerMinute(litersperminute.Value) : default(VolumeFlow?); @@ -185,6 +200,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable LitersPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromLitersPerSecond(QuantityValue? literspersecond) { return literspersecond.HasValue ? FromLitersPerSecond(literspersecond.Value) : default(VolumeFlow?); @@ -193,6 +209,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable MicrolitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromMicrolitersPerMinute(QuantityValue? microlitersperminute) { return microlitersperminute.HasValue ? FromMicrolitersPerMinute(microlitersperminute.Value) : default(VolumeFlow?); @@ -201,6 +218,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable MillilitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromMillilitersPerMinute(QuantityValue? millilitersperminute) { return millilitersperminute.HasValue ? FromMillilitersPerMinute(millilitersperminute.Value) : default(VolumeFlow?); @@ -209,6 +227,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable MillionUsGallonsPerDay. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromMillionUsGallonsPerDay(QuantityValue? millionusgallonsperday) { return millionusgallonsperday.HasValue ? FromMillionUsGallonsPerDay(millionusgallonsperday.Value) : default(VolumeFlow?); @@ -217,6 +236,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable NanolitersPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromNanolitersPerMinute(QuantityValue? nanolitersperminute) { return nanolitersperminute.HasValue ? FromNanolitersPerMinute(nanolitersperminute.Value) : default(VolumeFlow?); @@ -225,6 +245,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable OilBarrelsPerDay. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromOilBarrelsPerDay(QuantityValue? oilbarrelsperday) { return oilbarrelsperday.HasValue ? FromOilBarrelsPerDay(oilbarrelsperday.Value) : default(VolumeFlow?); @@ -233,6 +254,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable OilBarrelsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromOilBarrelsPerHour(QuantityValue? oilbarrelsperhour) { return oilbarrelsperhour.HasValue ? FromOilBarrelsPerHour(oilbarrelsperhour.Value) : default(VolumeFlow?); @@ -241,6 +263,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable OilBarrelsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromOilBarrelsPerMinute(QuantityValue? oilbarrelsperminute) { return oilbarrelsperminute.HasValue ? FromOilBarrelsPerMinute(oilbarrelsperminute.Value) : default(VolumeFlow?); @@ -249,6 +272,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable UsGallonsPerHour. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromUsGallonsPerHour(QuantityValue? usgallonsperhour) { return usgallonsperhour.HasValue ? FromUsGallonsPerHour(usgallonsperhour.Value) : default(VolumeFlow?); @@ -257,6 +281,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable UsGallonsPerMinute. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromUsGallonsPerMinute(QuantityValue? usgallonsperminute) { return usgallonsperminute.HasValue ? FromUsGallonsPerMinute(usgallonsperminute.Value) : default(VolumeFlow?); @@ -265,6 +290,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// /// Get nullable VolumeFlow from nullable UsGallonsPerSecond. /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static VolumeFlow? FromUsGallonsPerSecond(QuantityValue? usgallonspersecond) { return usgallonspersecond.HasValue ? FromUsGallonsPerSecond(usgallonspersecond.Value) : default(VolumeFlow?); @@ -276,6 +302,7 @@ public partial struct VolumeFlow : IComparable, IComparable /// Value to convert from. /// Unit to convert from. /// VolumeFlow unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static VolumeFlow? From(QuantityValue? value, VolumeFlowUnit fromUnit) { return value.HasValue ? new VolumeFlow((double)value.Value, fromUnit) : default(VolumeFlow?); diff --git a/UnitsNet/Scripts/Include-GenerateNumberExtensionsSourceCode.ps1 b/UnitsNet/Scripts/Include-GenerateNumberExtensionsSourceCode.ps1 index d45dd14799..80e2858a2b 100644 --- a/UnitsNet/Scripts/Include-GenerateNumberExtensionsSourceCode.ps1 +++ b/UnitsNet/Scripts/Include-GenerateNumberExtensionsSourceCode.ps1 @@ -60,6 +60,7 @@ namespace UnitsNet.Extensions.NumberTo$quantityName public static $quantityName $($unit.PluralName)(this T value) => $quantityName.From$($unit.PluralName)(Convert.ToDouble(value)); /// + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static $($quantityName)? $($unit.PluralName)(this T? value) where T : struct => $quantityName.From$($unit.PluralName)(value == null ? (double?)null : Convert.ToDouble(value.Value)); #endregion diff --git a/UnitsNet/Scripts/Include-GenerateQuantitySourceCodeNetFramework.ps1 b/UnitsNet/Scripts/Include-GenerateQuantitySourceCodeNetFramework.ps1 index 349911761f..6baf780cb9 100644 --- a/UnitsNet/Scripts/Include-GenerateQuantitySourceCodeNetFramework.ps1 +++ b/UnitsNet/Scripts/Include-GenerateQuantitySourceCodeNetFramework.ps1 @@ -108,6 +108,7 @@ namespace UnitsNet /// /// Get nullable $quantityName from nullable $($unit.PluralName). /// + [Obsolete("Nullable type support is obsolete and will be removed in a future release.")] public static $($quantityName)? From$($unit.PluralName)($($quantityValueType)? $valueParamName) { return $($valueParamName).HasValue ? From$($unit.PluralName)($($valueParamName).Value) : default($($quantityName)?); @@ -120,6 +121,7 @@ namespace UnitsNet /// Value to convert from. /// Unit to convert from. /// $quantityName unit value. + [Obsolete("Nullable type support has been deprecated and will be removed in a future release.")] public static $($quantityName)? From($($quantityValueType)? value, $unitEnumName fromUnit) { return value.HasValue ? new $quantityName(($baseType)value.Value, fromUnit) : default($($quantityName)?);