From 5179332732ee1cee95e3227d29f851a0e46d5fc5 Mon Sep 17 00:00:00 2001 From: Robert Hahn Date: Fri, 20 Sep 2019 10:25:19 +0200 Subject: [PATCH] Rename constructor argument 'numericalValue' to 'value' (#705) * Rename constructor argument 'numericalValue' to 'value' Aligning the name of the constructor argument with the property 'Value' allows MessagePack deserialization of types generated by QuantityGenerator. MessagePack can deserialize immutable types by passing the deserialized values of properties without a setter to an appropriate constructor. * Update generated code --- .../UnitsNetGen/QuantityGenerator.cs | 16 +++++------ .../UnitsNetWrcGen/QuantityGenerator.cs | 8 +++--- .../GeneratedCode/IQuantityTests.g.cs | 4 +++ .../Quantities/Acceleration.g.cs | 10 +++---- .../Quantities/AmountOfSubstance.g.cs | 10 +++---- .../Quantities/AmplitudeRatio.g.cs | 10 +++---- .../GeneratedCode/Quantities/Angle.g.cs | 10 +++---- .../Quantities/ApparentEnergy.g.cs | 10 +++---- .../Quantities/ApparentPower.g.cs | 10 +++---- .../GeneratedCode/Quantities/Area.g.cs | 10 +++---- .../GeneratedCode/Quantities/AreaDensity.g.cs | 10 +++---- .../Quantities/AreaMomentOfInertia.g.cs | 10 +++---- .../GeneratedCode/Quantities/BitRate.g.cs | 10 +++---- .../BrakeSpecificFuelConsumption.g.cs | 10 +++---- .../GeneratedCode/Quantities/Capacitance.g.cs | 10 +++---- .../CoefficientOfThermalExpansion.g.cs | 10 +++---- .../GeneratedCode/Quantities/Density.g.cs | 10 +++---- .../GeneratedCode/Quantities/Duration.g.cs | 10 +++---- .../Quantities/DynamicViscosity.g.cs | 10 +++---- .../Quantities/ElectricAdmittance.g.cs | 10 +++---- .../Quantities/ElectricCharge.g.cs | 10 +++---- .../Quantities/ElectricChargeDensity.g.cs | 10 +++---- .../Quantities/ElectricConductance.g.cs | 10 +++---- .../Quantities/ElectricConductivity.g.cs | 10 +++---- .../Quantities/ElectricCurrent.g.cs | 10 +++---- .../Quantities/ElectricCurrentDensity.g.cs | 10 +++---- .../Quantities/ElectricCurrentGradient.g.cs | 10 +++---- .../Quantities/ElectricField.g.cs | 10 +++---- .../Quantities/ElectricInductance.g.cs | 10 +++---- .../Quantities/ElectricPotential.g.cs | 10 +++---- .../Quantities/ElectricPotentialAc.g.cs | 10 +++---- .../Quantities/ElectricPotentialDc.g.cs | 10 +++---- .../Quantities/ElectricResistance.g.cs | 10 +++---- .../Quantities/ElectricResistivity.g.cs | 10 +++---- .../ElectricSurfaceChargeDensity.g.cs | 10 +++---- .../GeneratedCode/Quantities/Energy.g.cs | 10 +++---- .../GeneratedCode/Quantities/Entropy.g.cs | 10 +++---- .../GeneratedCode/Quantities/Force.g.cs | 10 +++---- .../Quantities/ForceChangeRate.g.cs | 10 +++---- .../Quantities/ForcePerLength.g.cs | 10 +++---- .../GeneratedCode/Quantities/Frequency.g.cs | 10 +++---- .../Quantities/FuelEfficiency.g.cs | 10 +++---- .../GeneratedCode/Quantities/HeatFlux.g.cs | 10 +++---- .../Quantities/HeatTransferCoefficient.g.cs | 10 +++---- .../GeneratedCode/Quantities/Illuminance.g.cs | 10 +++---- .../GeneratedCode/Quantities/Information.g.cs | 10 +++---- .../GeneratedCode/Quantities/Irradiance.g.cs | 10 +++---- .../GeneratedCode/Quantities/Irradiation.g.cs | 10 +++---- .../Quantities/KinematicViscosity.g.cs | 10 +++---- .../GeneratedCode/Quantities/LapseRate.g.cs | 10 +++---- .../GeneratedCode/Quantities/Length.g.cs | 10 +++---- .../GeneratedCode/Quantities/Level.g.cs | 10 +++---- .../Quantities/LinearDensity.g.cs | 10 +++---- .../GeneratedCode/Quantities/Luminosity.g.cs | 10 +++---- .../Quantities/LuminousFlux.g.cs | 10 +++---- .../Quantities/LuminousIntensity.g.cs | 10 +++---- .../Quantities/MagneticField.g.cs | 10 +++---- .../Quantities/MagneticFlux.g.cs | 10 +++---- .../Quantities/Magnetization.g.cs | 10 +++---- .../GeneratedCode/Quantities/Mass.g.cs | 10 +++---- .../Quantities/MassConcentration.g.cs | 10 +++---- .../GeneratedCode/Quantities/MassFlow.g.cs | 10 +++---- .../GeneratedCode/Quantities/MassFlux.g.cs | 10 +++---- .../Quantities/MassFraction.g.cs | 10 +++---- .../Quantities/MassMomentOfInertia.g.cs | 10 +++---- .../GeneratedCode/Quantities/MolarEnergy.g.cs | 10 +++---- .../Quantities/MolarEntropy.g.cs | 10 +++---- .../GeneratedCode/Quantities/MolarMass.g.cs | 10 +++---- .../GeneratedCode/Quantities/Molarity.g.cs | 10 +++---- .../Quantities/Permeability.g.cs | 10 +++---- .../Quantities/Permittivity.g.cs | 10 +++---- .../GeneratedCode/Quantities/Power.g.cs | 10 +++---- .../Quantities/PowerDensity.g.cs | 10 +++---- .../GeneratedCode/Quantities/PowerRatio.g.cs | 10 +++---- .../GeneratedCode/Quantities/Pressure.g.cs | 10 +++---- .../Quantities/PressureChangeRate.g.cs | 10 +++---- .../GeneratedCode/Quantities/Ratio.g.cs | 10 +++---- .../Quantities/RatioChangeRate.g.cs | 10 +++---- .../Quantities/ReactiveEnergy.g.cs | 10 +++---- .../Quantities/ReactivePower.g.cs | 10 +++---- .../Quantities/RotationalAcceleration.g.cs | 10 +++---- .../Quantities/RotationalSpeed.g.cs | 10 +++---- .../Quantities/RotationalStiffness.g.cs | 10 +++---- .../RotationalStiffnessPerLength.g.cs | 10 +++---- .../GeneratedCode/Quantities/SolidAngle.g.cs | 10 +++---- .../Quantities/SpecificEnergy.g.cs | 10 +++---- .../Quantities/SpecificEntropy.g.cs | 10 +++---- .../Quantities/SpecificVolume.g.cs | 10 +++---- .../Quantities/SpecificWeight.g.cs | 10 +++---- .../GeneratedCode/Quantities/Speed.g.cs | 10 +++---- .../GeneratedCode/Quantities/Temperature.g.cs | 10 +++---- .../Quantities/TemperatureChangeRate.g.cs | 10 +++---- .../Quantities/TemperatureDelta.g.cs | 10 +++---- .../Quantities/ThermalConductivity.g.cs | 10 +++---- .../Quantities/ThermalResistance.g.cs | 10 +++---- .../GeneratedCode/Quantities/Torque.g.cs | 10 +++---- .../GeneratedCode/Quantities/VitaminA.g.cs | 10 +++---- .../GeneratedCode/Quantities/Volume.g.cs | 10 +++---- .../Quantities/VolumeConcentration.g.cs | 10 +++---- .../GeneratedCode/Quantities/VolumeFlow.g.cs | 27 +++++++++++++++---- .../Quantities/VolumePerLength.g.cs | 10 +++---- .../GeneratedCode/UnitAbbreviationsCache.g.cs | 9 ++++--- .../Quantities/Acceleration.g.cs | 16 +++++------ .../Quantities/AmountOfSubstance.g.cs | 16 +++++------ .../Quantities/AmplitudeRatio.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Angle.g.cs | 16 +++++------ .../Quantities/ApparentEnergy.g.cs | 16 +++++------ .../Quantities/ApparentPower.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Area.g.cs | 16 +++++------ .../GeneratedCode/Quantities/AreaDensity.g.cs | 16 +++++------ .../Quantities/AreaMomentOfInertia.g.cs | 16 +++++------ .../GeneratedCode/Quantities/BitRate.g.cs | 16 +++++------ .../BrakeSpecificFuelConsumption.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Capacitance.g.cs | 16 +++++------ .../CoefficientOfThermalExpansion.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Density.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Duration.g.cs | 16 +++++------ .../Quantities/DynamicViscosity.g.cs | 16 +++++------ .../Quantities/ElectricAdmittance.g.cs | 16 +++++------ .../Quantities/ElectricCharge.g.cs | 16 +++++------ .../Quantities/ElectricChargeDensity.g.cs | 16 +++++------ .../Quantities/ElectricConductance.g.cs | 16 +++++------ .../Quantities/ElectricConductivity.g.cs | 16 +++++------ .../Quantities/ElectricCurrent.g.cs | 16 +++++------ .../Quantities/ElectricCurrentDensity.g.cs | 16 +++++------ .../Quantities/ElectricCurrentGradient.g.cs | 16 +++++------ .../Quantities/ElectricField.g.cs | 16 +++++------ .../Quantities/ElectricInductance.g.cs | 16 +++++------ .../Quantities/ElectricPotential.g.cs | 16 +++++------ .../Quantities/ElectricPotentialAc.g.cs | 16 +++++------ .../Quantities/ElectricPotentialDc.g.cs | 16 +++++------ .../Quantities/ElectricResistance.g.cs | 16 +++++------ .../Quantities/ElectricResistivity.g.cs | 16 +++++------ .../ElectricSurfaceChargeDensity.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Energy.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Entropy.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Force.g.cs | 16 +++++------ .../Quantities/ForceChangeRate.g.cs | 16 +++++------ .../Quantities/ForcePerLength.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Frequency.g.cs | 16 +++++------ .../Quantities/FuelEfficiency.g.cs | 16 +++++------ .../GeneratedCode/Quantities/HeatFlux.g.cs | 16 +++++------ .../Quantities/HeatTransferCoefficient.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Illuminance.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Information.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Irradiance.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Irradiation.g.cs | 16 +++++------ .../Quantities/KinematicViscosity.g.cs | 16 +++++------ .../GeneratedCode/Quantities/LapseRate.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Length.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Level.g.cs | 16 +++++------ .../Quantities/LinearDensity.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Luminosity.g.cs | 16 +++++------ .../Quantities/LuminousFlux.g.cs | 16 +++++------ .../Quantities/LuminousIntensity.g.cs | 16 +++++------ .../Quantities/MagneticField.g.cs | 16 +++++------ .../Quantities/MagneticFlux.g.cs | 16 +++++------ .../Quantities/Magnetization.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Mass.g.cs | 16 +++++------ .../Quantities/MassConcentration.g.cs | 16 +++++------ .../GeneratedCode/Quantities/MassFlow.g.cs | 16 +++++------ .../GeneratedCode/Quantities/MassFlux.g.cs | 16 +++++------ .../Quantities/MassFraction.g.cs | 16 +++++------ .../Quantities/MassMomentOfInertia.g.cs | 16 +++++------ .../GeneratedCode/Quantities/MolarEnergy.g.cs | 16 +++++------ .../Quantities/MolarEntropy.g.cs | 16 +++++------ .../GeneratedCode/Quantities/MolarMass.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Molarity.g.cs | 16 +++++------ .../Quantities/Permeability.g.cs | 16 +++++------ .../Quantities/Permittivity.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Power.g.cs | 16 +++++------ .../Quantities/PowerDensity.g.cs | 16 +++++------ .../GeneratedCode/Quantities/PowerRatio.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Pressure.g.cs | 16 +++++------ .../Quantities/PressureChangeRate.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Ratio.g.cs | 16 +++++------ .../Quantities/RatioChangeRate.g.cs | 16 +++++------ .../Quantities/ReactiveEnergy.g.cs | 16 +++++------ .../Quantities/ReactivePower.g.cs | 16 +++++------ .../Quantities/RotationalAcceleration.g.cs | 16 +++++------ .../Quantities/RotationalSpeed.g.cs | 16 +++++------ .../Quantities/RotationalStiffness.g.cs | 16 +++++------ .../RotationalStiffnessPerLength.g.cs | 16 +++++------ .../GeneratedCode/Quantities/SolidAngle.g.cs | 16 +++++------ .../Quantities/SpecificEnergy.g.cs | 16 +++++------ .../Quantities/SpecificEntropy.g.cs | 16 +++++------ .../Quantities/SpecificVolume.g.cs | 16 +++++------ .../Quantities/SpecificWeight.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Speed.g.cs | 16 +++++------ .../GeneratedCode/Quantities/Temperature.g.cs | 16 +++++------ .../Quantities/TemperatureChangeRate.g.cs | 16 +++++------ .../Quantities/TemperatureDelta.g.cs | 16 +++++------ .../Quantities/ThermalConductivity.g.cs | 16 +++++------ .../Quantities/ThermalResistance.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Torque.g.cs | 16 +++++------ .../GeneratedCode/Quantities/VitaminA.g.cs | 16 +++++------ UnitsNet/GeneratedCode/Quantities/Volume.g.cs | 16 +++++------ .../Quantities/VolumeConcentration.g.cs | 16 +++++------ .../GeneratedCode/Quantities/VolumeFlow.g.cs | 16 +++++------ .../Quantities/VolumePerLength.g.cs | 16 +++++------ .../GeneratedCode/UnitAbbreviationsCache.g.cs | 10 +++---- 201 files changed, 1317 insertions(+), 1295 deletions(-) diff --git a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs index b60edee353..caff760f4a 100644 --- a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs +++ b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs @@ -158,10 +158,10 @@ private void GenerateInstanceConstructors() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to construct this quantity with. + /// The numeric value to construct this quantity with. /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public {_quantity.Name}({_quantity.BaseType} numericValue, {_unitEnumName} unit) + public {_quantity.Name}({_quantity.BaseType} value, {_unitEnumName} unit) {{ if(unit == {_unitEnumName}.Undefined) throw new ArgumentException(""The quantity can not be created with an undefined unit."", nameof(unit)); @@ -169,9 +169,9 @@ private void GenerateInstanceConstructors() Writer.WL(_quantity.BaseType == "double" ? @" - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue));" + _value = Guard.EnsureValidNumber(value, nameof(value));" : @" - _value = numericValue;"); + _value = value;"); Writer.WL($@" _unit = unit; }} @@ -180,11 +180,11 @@ private void GenerateInstanceConstructors() /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to construct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public {_quantity.Name}({_valueType} numericValue, UnitSystem unitSystem) + public {_quantity.Name}({_valueType} value, UnitSystem unitSystem) {{ if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); @@ -194,9 +194,9 @@ private void GenerateInstanceConstructors() Writer.WL(_quantity.BaseType == "double" ? @" - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue));" + _value = Guard.EnsureValidNumber(value, nameof(value));" : @" - _value = numericValue;"); + _value = value;"); Writer.WL(@" _unit = firstUnitInfo?.Value ?? throw new ArgumentException(""No units were found for the given UnitSystem."", nameof(unitSystem)); } diff --git a/CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs b/CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs index e3a980a5c4..fc3507efa9 100644 --- a/CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs +++ b/CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs @@ -140,11 +140,11 @@ private void GenerateInstanceConstructors() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to construct this quantity with. + /// The numeric value to construct this quantity with. /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private {_quantity.Name}({_quantity.BaseType} numericValue, {_unitEnumName} unit) + private {_quantity.Name}({_quantity.BaseType} value, {_unitEnumName} unit) {{ if(unit == {_unitEnumName}.Undefined) throw new ArgumentException(""The quantity can not be created with an undefined unit."", nameof(unit)); @@ -152,9 +152,9 @@ private void GenerateInstanceConstructors() Writer.WL(_quantity.BaseType == "double" ? @" - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue));" + _value = Guard.EnsureValidNumber(value, nameof(value));" : @" - _value = numericValue;"); + _value = value;"); Writer.WL($@" _unit = unit; }} diff --git a/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs b/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs index a99d650a17..732634d1de 100644 --- a/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs +++ b/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs @@ -72,6 +72,7 @@ void Assertion(int expectedValue, Enum expectedUnit, IQuantity quantity) Assertion(3, ForceChangeRateUnit.NewtonPerSecond, Quantity.From(3, ForceChangeRateUnit.NewtonPerSecond)); Assertion(3, ForcePerLengthUnit.PoundForcePerYard, Quantity.From(3, ForcePerLengthUnit.PoundForcePerYard)); Assertion(3, FrequencyUnit.Terahertz, Quantity.From(3, FrequencyUnit.Terahertz)); + Assertion(3, FuelEfficiencyUnit.MilePerUsGallon, Quantity.From(3, FuelEfficiencyUnit.MilePerUsGallon)); Assertion(3, HeatFluxUnit.WattPerSquareMeter, Quantity.From(3, HeatFluxUnit.WattPerSquareMeter)); Assertion(3, HeatTransferCoefficientUnit.WattPerSquareMeterKelvin, Quantity.From(3, HeatTransferCoefficientUnit.WattPerSquareMeterKelvin)); Assertion(3, IlluminanceUnit.Millilux, Quantity.From(3, IlluminanceUnit.Millilux)); @@ -176,6 +177,7 @@ public void QuantityInfo_IsSameAsStaticInfoProperty() Assertion(ForceChangeRate.Info, ForceChangeRate.Zero); Assertion(ForcePerLength.Info, ForcePerLength.Zero); Assertion(Frequency.Info, Frequency.Zero); + Assertion(FuelEfficiency.Info, FuelEfficiency.Zero); Assertion(HeatFlux.Info, HeatFlux.Zero); Assertion(HeatTransferCoefficient.Info, HeatTransferCoefficient.Zero); Assertion(Illuminance.Info, Illuminance.Zero); @@ -280,6 +282,7 @@ public void Type_EqualsStaticQuantityTypeProperty() Assertion(ForceChangeRate.QuantityType, ForceChangeRate.Zero); Assertion(ForcePerLength.QuantityType, ForcePerLength.Zero); Assertion(Frequency.QuantityType, Frequency.Zero); + Assertion(FuelEfficiency.QuantityType, FuelEfficiency.Zero); Assertion(HeatFlux.QuantityType, HeatFlux.Zero); Assertion(HeatTransferCoefficient.QuantityType, HeatTransferCoefficient.Zero); Assertion(Illuminance.QuantityType, Illuminance.Zero); @@ -384,6 +387,7 @@ public void Dimensions_IsSameAsStaticBaseDimensions() Assertion(ForceChangeRate.BaseDimensions, ForceChangeRate.Zero); Assertion(ForcePerLength.BaseDimensions, ForcePerLength.Zero); Assertion(Frequency.BaseDimensions, Frequency.Zero); + Assertion(FuelEfficiency.BaseDimensions, FuelEfficiency.Zero); Assertion(HeatFlux.BaseDimensions, HeatFlux.Zero); Assertion(HeatTransferCoefficient.BaseDimensions, HeatTransferCoefficient.Zero); Assertion(Illuminance.BaseDimensions, Illuminance.Zero); diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Acceleration.g.cs index a39885645e..1eeb6f3446 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Acceleration.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Acceleration.g.cs @@ -67,16 +67,16 @@ public Acceleration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Acceleration(double numericValue, AccelerationUnit unit) + private Acceleration(double value, AccelerationUnit unit) { if(unit == AccelerationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -758,7 +758,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmountOfSubstance.g.cs index cc54ccf2c4..5d22cb1c1a 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmountOfSubstance.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmountOfSubstance.g.cs @@ -67,16 +67,16 @@ public AmountOfSubstance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private AmountOfSubstance(double numericValue, AmountOfSubstanceUnit unit) + private AmountOfSubstance(double value, AmountOfSubstanceUnit unit) { if(unit == AmountOfSubstanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -792,7 +792,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmplitudeRatio.g.cs index efde9d336f..a82ff876ac 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmplitudeRatio.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AmplitudeRatio.g.cs @@ -67,16 +67,16 @@ public AmplitudeRatio() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private AmplitudeRatio(double numericValue, AmplitudeRatioUnit unit) + private AmplitudeRatio(double value, AmplitudeRatioUnit unit) { if(unit == AmplitudeRatioUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -605,7 +605,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Angle.g.cs index 6971a2a3f2..2b3998ddf7 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Angle.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Angle.g.cs @@ -67,16 +67,16 @@ public Angle() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Angle(double numericValue, AngleUnit unit) + private Angle(double value, AngleUnit unit) { if(unit == AngleUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -775,7 +775,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentEnergy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentEnergy.g.cs index a41a0eb13e..f5e40a9420 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentEnergy.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentEnergy.g.cs @@ -67,16 +67,16 @@ public ApparentEnergy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ApparentEnergy(double numericValue, ApparentEnergyUnit unit) + private ApparentEnergy(double value, ApparentEnergyUnit unit) { if(unit == ApparentEnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentPower.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentPower.g.cs index 4c0507caa4..895693862f 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentPower.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ApparentPower.g.cs @@ -67,16 +67,16 @@ public ApparentPower() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ApparentPower(double numericValue, ApparentPowerUnit unit) + private ApparentPower(double value, ApparentPowerUnit unit) { if(unit == ApparentPowerUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -605,7 +605,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Area.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Area.g.cs index bb5c83e4ca..5aa5ae28a4 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Area.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Area.g.cs @@ -67,16 +67,16 @@ public Area() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Area(double numericValue, AreaUnit unit) + private Area(double value, AreaUnit unit) { if(unit == AreaUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -775,7 +775,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaDensity.g.cs index 3fcad9f34b..e6abbdac88 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaDensity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaDensity.g.cs @@ -67,16 +67,16 @@ public AreaDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private AreaDensity(double numericValue, AreaDensityUnit unit) + private AreaDensity(double value, AreaDensityUnit unit) { if(unit == AreaDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -554,7 +554,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs index 7ff49554de..afd0dab1f4 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs @@ -67,16 +67,16 @@ public AreaMomentOfInertia() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private AreaMomentOfInertia(double numericValue, AreaMomentOfInertiaUnit unit) + private AreaMomentOfInertia(double value, AreaMomentOfInertiaUnit unit) { if(unit == AreaMomentOfInertiaUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -639,7 +639,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BitRate.g.cs index 2d9265b536..544a42ca12 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BitRate.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BitRate.g.cs @@ -70,16 +70,16 @@ public BitRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private BitRate(decimal numericValue, BitRateUnit unit) + private BitRate(decimal value, BitRateUnit unit) { if(unit == BitRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = numericValue; + _value = value; _unit = unit; } @@ -982,7 +982,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs index b08af94193..7a0dcd3d3a 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs @@ -67,16 +67,16 @@ public BrakeSpecificFuelConsumption() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private BrakeSpecificFuelConsumption(double numericValue, BrakeSpecificFuelConsumptionUnit unit) + private BrakeSpecificFuelConsumption(double value, BrakeSpecificFuelConsumptionUnit unit) { if(unit == BrakeSpecificFuelConsumptionUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Capacitance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Capacitance.g.cs index 9262486c89..35d52ee17e 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Capacitance.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Capacitance.g.cs @@ -70,16 +70,16 @@ public Capacitance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Capacitance(double numericValue, CapacitanceUnit unit) + private Capacitance(double value, CapacitanceUnit unit) { if(unit == CapacitanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -659,7 +659,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs index b7b985bc87..e2075aad71 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs @@ -67,16 +67,16 @@ public CoefficientOfThermalExpansion() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private CoefficientOfThermalExpansion(double numericValue, CoefficientOfThermalExpansionUnit unit) + private CoefficientOfThermalExpansion(double value, CoefficientOfThermalExpansionUnit unit) { if(unit == CoefficientOfThermalExpansionUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Density.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Density.g.cs index ec7ef50056..6eee56d18a 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Density.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Density.g.cs @@ -70,16 +70,16 @@ public Density() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Density(double numericValue, DensityUnit unit) + private Density(double value, DensityUnit unit) { if(unit == DensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -1220,7 +1220,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Duration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Duration.g.cs index 1e8b626091..5c0ffbf037 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Duration.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Duration.g.cs @@ -67,16 +67,16 @@ public Duration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Duration(double numericValue, DurationUnit unit) + private Duration(double value, DurationUnit unit) { if(unit == DurationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -707,7 +707,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/DynamicViscosity.g.cs index 0c8b4b178d..4dd9479d91 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/DynamicViscosity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/DynamicViscosity.g.cs @@ -70,16 +70,16 @@ public DynamicViscosity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private DynamicViscosity(double numericValue, DynamicViscosityUnit unit) + private DynamicViscosity(double value, DynamicViscosityUnit unit) { if(unit == DynamicViscosityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -693,7 +693,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricAdmittance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricAdmittance.g.cs index 61ba1d70ff..ac6648e529 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricAdmittance.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricAdmittance.g.cs @@ -67,16 +67,16 @@ public ElectricAdmittance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricAdmittance(double numericValue, ElectricAdmittanceUnit unit) + private ElectricAdmittance(double value, ElectricAdmittanceUnit unit) { if(unit == ElectricAdmittanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -605,7 +605,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCharge.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCharge.g.cs index c91b668e3c..8ea72e1dfe 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCharge.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCharge.g.cs @@ -70,16 +70,16 @@ public ElectricCharge() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricCharge(double numericValue, ElectricChargeUnit unit) + private ElectricCharge(double value, ElectricChargeUnit unit) { if(unit == ElectricChargeUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricChargeDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricChargeDensity.g.cs index 25a52f04aa..de0a2f7e73 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricChargeDensity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricChargeDensity.g.cs @@ -70,16 +70,16 @@ public ElectricChargeDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricChargeDensity(double numericValue, ElectricChargeDensityUnit unit) + private ElectricChargeDensity(double value, ElectricChargeDensityUnit unit) { if(unit == ElectricChargeDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductance.g.cs index 6b69e525ad..60b8c8972f 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductance.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductance.g.cs @@ -70,16 +70,16 @@ public ElectricConductance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricConductance(double numericValue, ElectricConductanceUnit unit) + private ElectricConductance(double value, ElectricConductanceUnit unit) { if(unit == ElectricConductanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -591,7 +591,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductivity.g.cs index d736f758af..0bea1d145b 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductivity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricConductivity.g.cs @@ -70,16 +70,16 @@ public ElectricConductivity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricConductivity(double numericValue, ElectricConductivityUnit unit) + private ElectricConductivity(double value, ElectricConductivityUnit unit) { if(unit == ElectricConductivityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -591,7 +591,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrent.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrent.g.cs index c3942cfd94..b136b2f71f 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrent.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrent.g.cs @@ -67,16 +67,16 @@ public ElectricCurrent() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricCurrent(double numericValue, ElectricCurrentUnit unit) + private ElectricCurrent(double value, ElectricCurrentUnit unit) { if(unit == ElectricCurrentUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -673,7 +673,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs index 5da20eef5f..9918c63f85 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs @@ -70,16 +70,16 @@ public ElectricCurrentDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricCurrentDensity(double numericValue, ElectricCurrentDensityUnit unit) + private ElectricCurrentDensity(double value, ElectricCurrentDensityUnit unit) { if(unit == ElectricCurrentDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -591,7 +591,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs index bf737f1a9a..f312c8b02f 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs @@ -67,16 +67,16 @@ public ElectricCurrentGradient() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricCurrentGradient(double numericValue, ElectricCurrentGradientUnit unit) + private ElectricCurrentGradient(double value, ElectricCurrentGradientUnit unit) { if(unit == ElectricCurrentGradientUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -554,7 +554,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricField.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricField.g.cs index 9d47e64b4c..e3cdb6f850 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricField.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricField.g.cs @@ -70,16 +70,16 @@ public ElectricField() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricField(double numericValue, ElectricFieldUnit unit) + private ElectricField(double value, ElectricFieldUnit unit) { if(unit == ElectricFieldUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricInductance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricInductance.g.cs index f5dcfca08b..ba0e7b3f93 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricInductance.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricInductance.g.cs @@ -70,16 +70,16 @@ public ElectricInductance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricInductance(double numericValue, ElectricInductanceUnit unit) + private ElectricInductance(double value, ElectricInductanceUnit unit) { if(unit == ElectricInductanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -608,7 +608,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotential.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotential.g.cs index 322a5cd991..45c1a82058 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotential.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotential.g.cs @@ -67,16 +67,16 @@ public ElectricPotential() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricPotential(double numericValue, ElectricPotentialUnit unit) + private ElectricPotential(double value, ElectricPotentialUnit unit) { if(unit == ElectricPotentialUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -622,7 +622,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialAc.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialAc.g.cs index fe94378863..37438f1429 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialAc.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialAc.g.cs @@ -67,16 +67,16 @@ public ElectricPotentialAc() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricPotentialAc(double numericValue, ElectricPotentialAcUnit unit) + private ElectricPotentialAc(double value, ElectricPotentialAcUnit unit) { if(unit == ElectricPotentialAcUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -622,7 +622,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialDc.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialDc.g.cs index b21916cfee..be6121f4d9 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialDc.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricPotentialDc.g.cs @@ -67,16 +67,16 @@ public ElectricPotentialDc() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricPotentialDc(double numericValue, ElectricPotentialDcUnit unit) + private ElectricPotentialDc(double value, ElectricPotentialDcUnit unit) { if(unit == ElectricPotentialDcUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -622,7 +622,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistance.g.cs index 87d9b1e9af..5b4dca169b 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistance.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistance.g.cs @@ -67,16 +67,16 @@ public ElectricResistance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricResistance(double numericValue, ElectricResistanceUnit unit) + private ElectricResistance(double value, ElectricResistanceUnit unit) { if(unit == ElectricResistanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -622,7 +622,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistivity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistivity.g.cs index 08d904943b..445cef9d6e 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistivity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistivity.g.cs @@ -70,16 +70,16 @@ public ElectricResistivity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricResistivity(double numericValue, ElectricResistivityUnit unit) + private ElectricResistivity(double value, ElectricResistivityUnit unit) { if(unit == ElectricResistivityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -778,7 +778,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs index 9119523da5..2b7f576dae 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs @@ -70,16 +70,16 @@ public ElectricSurfaceChargeDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ElectricSurfaceChargeDensity(double numericValue, ElectricSurfaceChargeDensityUnit unit) + private ElectricSurfaceChargeDensity(double value, ElectricSurfaceChargeDensityUnit unit) { if(unit == ElectricSurfaceChargeDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -591,7 +591,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Energy.g.cs index 775749972a..8b9980b964 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Energy.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Energy.g.cs @@ -67,16 +67,16 @@ public Energy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Energy(double numericValue, EnergyUnit unit) + private Energy(double value, EnergyUnit unit) { if(unit == EnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -928,7 +928,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Entropy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Entropy.g.cs index 1b00be4485..5f06c82f6e 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Entropy.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Entropy.g.cs @@ -67,16 +67,16 @@ public Entropy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Entropy(double numericValue, EntropyUnit unit) + private Entropy(double value, EntropyUnit unit) { if(unit == EntropyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -656,7 +656,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Force.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Force.g.cs index 4e133274ea..fa1e543a55 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Force.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Force.g.cs @@ -67,16 +67,16 @@ public Force() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Force(double numericValue, ForceUnit unit) + private Force(double value, ForceUnit unit) { if(unit == ForceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -758,7 +758,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForceChangeRate.g.cs index 4a363de8a0..479b9ae48c 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForceChangeRate.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForceChangeRate.g.cs @@ -67,16 +67,16 @@ public ForceChangeRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ForceChangeRate(double numericValue, ForceChangeRateUnit unit) + private ForceChangeRate(double value, ForceChangeRateUnit unit) { if(unit == ForceChangeRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -724,7 +724,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForcePerLength.g.cs index 4d1388a976..288d48be59 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForcePerLength.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ForcePerLength.g.cs @@ -67,16 +67,16 @@ public ForcePerLength() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ForcePerLength(double numericValue, ForcePerLengthUnit unit) + private ForcePerLength(double value, ForcePerLengthUnit unit) { if(unit == ForcePerLengthUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -741,7 +741,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Frequency.g.cs index fa2e7baefa..4f89f48ee3 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Frequency.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Frequency.g.cs @@ -67,16 +67,16 @@ public Frequency() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Frequency(double numericValue, FrequencyUnit unit) + private Frequency(double value, FrequencyUnit unit) { if(unit == FrequencyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -690,7 +690,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/FuelEfficiency.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/FuelEfficiency.g.cs index 89d517c3b3..5d1d57457e 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/FuelEfficiency.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/FuelEfficiency.g.cs @@ -70,16 +70,16 @@ public FuelEfficiency() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private FuelEfficiency(double numericValue, FuelEfficiencyUnit unit) + private FuelEfficiency(double value, FuelEfficiencyUnit unit) { if(unit == FuelEfficiencyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -608,7 +608,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatFlux.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatFlux.g.cs index 20508b363a..5cc8c6c38e 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatFlux.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatFlux.g.cs @@ -67,16 +67,16 @@ public HeatFlux() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private HeatFlux(double numericValue, HeatFluxUnit unit) + private HeatFlux(double value, HeatFluxUnit unit) { if(unit == HeatFluxUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -843,7 +843,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs index 966f4c6103..62ab4c41e6 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs @@ -67,16 +67,16 @@ public HeatTransferCoefficient() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private HeatTransferCoefficient(double numericValue, HeatTransferCoefficientUnit unit) + private HeatTransferCoefficient(double value, HeatTransferCoefficientUnit unit) { if(unit == HeatTransferCoefficientUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Illuminance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Illuminance.g.cs index 928a1070d3..412f0e056a 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Illuminance.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Illuminance.g.cs @@ -70,16 +70,16 @@ public Illuminance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Illuminance(double numericValue, IlluminanceUnit unit) + private Illuminance(double value, IlluminanceUnit unit) { if(unit == IlluminanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -608,7 +608,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.g.cs index d0b6310c91..da89fc6fce 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Information.g.cs @@ -67,16 +67,16 @@ public Information() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Information(decimal numericValue, InformationUnit unit) + private Information(decimal value, InformationUnit unit) { if(unit == InformationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = numericValue; + _value = value; _unit = unit; } @@ -979,7 +979,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiance.g.cs index 94b1820f9f..e4c1be427f 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiance.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiance.g.cs @@ -67,16 +67,16 @@ public Irradiance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Irradiance(double numericValue, IrradianceUnit unit) + private Irradiance(double value, IrradianceUnit unit) { if(unit == IrradianceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -775,7 +775,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiation.g.cs index caf1d3a4c0..580a2f1fd1 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiation.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiation.g.cs @@ -70,16 +70,16 @@ public Irradiation() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Irradiation(double numericValue, IrradiationUnit unit) + private Irradiation(double value, IrradiationUnit unit) { if(unit == IrradiationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -659,7 +659,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/KinematicViscosity.g.cs index 724fbdbfe2..40a5de9644 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/KinematicViscosity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/KinematicViscosity.g.cs @@ -70,16 +70,16 @@ public KinematicViscosity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private KinematicViscosity(double numericValue, KinematicViscosityUnit unit) + private KinematicViscosity(double value, KinematicViscosityUnit unit) { if(unit == KinematicViscosityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -676,7 +676,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LapseRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LapseRate.g.cs index 038c872e4b..60c0127b2c 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LapseRate.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LapseRate.g.cs @@ -67,16 +67,16 @@ public LapseRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private LapseRate(double numericValue, LapseRateUnit unit) + private LapseRate(double value, LapseRateUnit unit) { if(unit == LapseRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -554,7 +554,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.g.cs index bfbe4caee5..c5a800e823 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Length.g.cs @@ -67,16 +67,16 @@ public Length() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Length(double numericValue, LengthUnit unit) + private Length(double value, LengthUnit unit) { if(unit == LengthUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -1081,7 +1081,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.g.cs index 0aff70b087..d5893c90fe 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Level.g.cs @@ -67,16 +67,16 @@ public Level() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Level(double numericValue, LevelUnit unit) + private Level(double value, LevelUnit unit) { if(unit == LevelUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -571,7 +571,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearDensity.g.cs index f1b25cdf46..d412a35d22 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearDensity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LinearDensity.g.cs @@ -70,16 +70,16 @@ public LinearDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private LinearDensity(double numericValue, LinearDensityUnit unit) + private LinearDensity(double value, LinearDensityUnit unit) { if(unit == LinearDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -591,7 +591,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Luminosity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Luminosity.g.cs index ae4ae5285c..5c7661e6d6 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Luminosity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Luminosity.g.cs @@ -70,16 +70,16 @@ public Luminosity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Luminosity(double numericValue, LuminosityUnit unit) + private Luminosity(double value, LuminosityUnit unit) { if(unit == LuminosityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -778,7 +778,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousFlux.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousFlux.g.cs index 17952c2770..939a8c8638 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousFlux.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousFlux.g.cs @@ -70,16 +70,16 @@ public LuminousFlux() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private LuminousFlux(double numericValue, LuminousFluxUnit unit) + private LuminousFlux(double value, LuminousFluxUnit unit) { if(unit == LuminousFluxUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousIntensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousIntensity.g.cs index fcf92152cd..6b57c5f208 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousIntensity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/LuminousIntensity.g.cs @@ -70,16 +70,16 @@ public LuminousIntensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private LuminousIntensity(double numericValue, LuminousIntensityUnit unit) + private LuminousIntensity(double value, LuminousIntensityUnit unit) { if(unit == LuminousIntensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticField.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticField.g.cs index 9731045117..6b523172a0 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticField.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticField.g.cs @@ -70,16 +70,16 @@ public MagneticField() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MagneticField(double numericValue, MagneticFieldUnit unit) + private MagneticField(double value, MagneticFieldUnit unit) { if(unit == MagneticFieldUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -608,7 +608,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticFlux.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticFlux.g.cs index 64c939572a..27732cbedb 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticFlux.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MagneticFlux.g.cs @@ -70,16 +70,16 @@ public MagneticFlux() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MagneticFlux(double numericValue, MagneticFluxUnit unit) + private MagneticFlux(double value, MagneticFluxUnit unit) { if(unit == MagneticFluxUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Magnetization.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Magnetization.g.cs index 088b566787..58c782b3be 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Magnetization.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Magnetization.g.cs @@ -70,16 +70,16 @@ public Magnetization() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Magnetization(double numericValue, MagnetizationUnit unit) + private Magnetization(double value, MagnetizationUnit unit) { if(unit == MagnetizationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Mass.g.cs index b22f693205..ede692a345 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Mass.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Mass.g.cs @@ -67,16 +67,16 @@ public Mass() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Mass(double numericValue, MassUnit unit) + private Mass(double value, MassUnit unit) { if(unit == MassUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -962,7 +962,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassConcentration.g.cs index b0cc59b8db..3e5cab5ae7 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassConcentration.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassConcentration.g.cs @@ -70,16 +70,16 @@ public MassConcentration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MassConcentration(double numericValue, MassConcentrationUnit unit) + private MassConcentration(double value, MassConcentrationUnit unit) { if(unit == MassConcentrationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -1220,7 +1220,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlow.g.cs index e5a4333348..f083c17cea 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlow.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlow.g.cs @@ -67,16 +67,16 @@ public MassFlow() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MassFlow(double numericValue, MassFlowUnit unit) + private MassFlow(double value, MassFlowUnit unit) { if(unit == MassFlowUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -1098,7 +1098,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlux.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlux.g.cs index b31e5ceee0..96c5383064 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlux.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFlux.g.cs @@ -67,16 +67,16 @@ public MassFlux() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MassFlux(double numericValue, MassFluxUnit unit) + private MassFlux(double value, MassFluxUnit unit) { if(unit == MassFluxUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -571,7 +571,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFraction.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFraction.g.cs index 2c2665b7fe..9e250bebf9 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFraction.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassFraction.g.cs @@ -70,16 +70,16 @@ public MassFraction() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MassFraction(double numericValue, MassFractionUnit unit) + private MassFraction(double value, MassFractionUnit unit) { if(unit == MassFractionUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -948,7 +948,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassMomentOfInertia.g.cs index 3252318bfd..828e96496d 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MassMomentOfInertia.g.cs @@ -67,16 +67,16 @@ public MassMomentOfInertia() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MassMomentOfInertia(double numericValue, MassMomentOfInertiaUnit unit) + private MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit) { if(unit == MassMomentOfInertiaUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -1013,7 +1013,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEnergy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEnergy.g.cs index 5fec57f480..1045d73bda 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEnergy.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEnergy.g.cs @@ -67,16 +67,16 @@ public MolarEnergy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MolarEnergy(double numericValue, MolarEnergyUnit unit) + private MolarEnergy(double value, MolarEnergyUnit unit) { if(unit == MolarEnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEntropy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEntropy.g.cs index cc40fad008..2e27533d17 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEntropy.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarEntropy.g.cs @@ -67,16 +67,16 @@ public MolarEntropy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MolarEntropy(double numericValue, MolarEntropyUnit unit) + private MolarEntropy(double value, MolarEntropyUnit unit) { if(unit == MolarEntropyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarMass.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarMass.g.cs index e29ecea17a..2e5675ee4e 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarMass.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/MolarMass.g.cs @@ -67,16 +67,16 @@ public MolarMass() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private MolarMass(double numericValue, MolarMassUnit unit) + private MolarMass(double value, MolarMassUnit unit) { if(unit == MolarMassUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -741,7 +741,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Molarity.g.cs index 3fa75e3c27..7234327d00 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Molarity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Molarity.g.cs @@ -70,16 +70,16 @@ public Molarity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Molarity(double numericValue, MolarityUnit unit) + private Molarity(double value, MolarityUnit unit) { if(unit == MolarityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -676,7 +676,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permeability.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permeability.g.cs index 253607c2a5..dc1b5886d7 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permeability.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permeability.g.cs @@ -70,16 +70,16 @@ public Permeability() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Permeability(double numericValue, PermeabilityUnit unit) + private Permeability(double value, PermeabilityUnit unit) { if(unit == PermeabilityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permittivity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permittivity.g.cs index 93a800b243..15c3384a77 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permittivity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Permittivity.g.cs @@ -70,16 +70,16 @@ public Permittivity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Permittivity(double numericValue, PermittivityUnit unit) + private Permittivity(double value, PermittivityUnit unit) { if(unit == PermittivityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Power.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Power.g.cs index dd461151b5..9477e524ea 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Power.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Power.g.cs @@ -67,16 +67,16 @@ public Power() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Power(decimal numericValue, PowerUnit unit) + private Power(decimal value, PowerUnit unit) { if(unit == PowerUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = numericValue; + _value = value; _unit = unit; } @@ -877,7 +877,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerDensity.g.cs index 6240715319..7926184c0a 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerDensity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerDensity.g.cs @@ -67,16 +67,16 @@ public PowerDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private PowerDensity(double numericValue, PowerDensityUnit unit) + private PowerDensity(double value, PowerDensityUnit unit) { if(unit == PowerDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -1285,7 +1285,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerRatio.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerRatio.g.cs index 518f025364..24aa77fd38 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerRatio.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PowerRatio.g.cs @@ -67,16 +67,16 @@ public PowerRatio() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private PowerRatio(double numericValue, PowerRatioUnit unit) + private PowerRatio(double value, PowerRatioUnit unit) { if(unit == PowerRatioUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -571,7 +571,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Pressure.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Pressure.g.cs index 8043d43a32..b08bf2ba68 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Pressure.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Pressure.g.cs @@ -67,16 +67,16 @@ public Pressure() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Pressure(double numericValue, PressureUnit unit) + private Pressure(double value, PressureUnit unit) { if(unit == PressureUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -1251,7 +1251,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PressureChangeRate.g.cs index 07e7ec6e12..28fe37c190 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PressureChangeRate.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/PressureChangeRate.g.cs @@ -67,16 +67,16 @@ public PressureChangeRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private PressureChangeRate(double numericValue, PressureChangeRateUnit unit) + private PressureChangeRate(double value, PressureChangeRateUnit unit) { if(unit == PressureChangeRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -656,7 +656,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Ratio.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Ratio.g.cs index 2a191186fb..5579f00abe 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Ratio.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Ratio.g.cs @@ -67,16 +67,16 @@ public Ratio() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Ratio(double numericValue, RatioUnit unit) + private Ratio(double value, RatioUnit unit) { if(unit == RatioUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -639,7 +639,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RatioChangeRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RatioChangeRate.g.cs index c20ea7725c..c716212da4 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RatioChangeRate.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RatioChangeRate.g.cs @@ -67,16 +67,16 @@ public RatioChangeRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private RatioChangeRate(double numericValue, RatioChangeRateUnit unit) + private RatioChangeRate(double value, RatioChangeRateUnit unit) { if(unit == RatioChangeRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -571,7 +571,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactiveEnergy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactiveEnergy.g.cs index 29445336f6..413b5fe10a 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactiveEnergy.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactiveEnergy.g.cs @@ -67,16 +67,16 @@ public ReactiveEnergy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ReactiveEnergy(double numericValue, ReactiveEnergyUnit unit) + private ReactiveEnergy(double value, ReactiveEnergyUnit unit) { if(unit == ReactiveEnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactivePower.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactivePower.g.cs index a889f45b8c..90df064c5d 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactivePower.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ReactivePower.g.cs @@ -67,16 +67,16 @@ public ReactivePower() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ReactivePower(double numericValue, ReactivePowerUnit unit) + private ReactivePower(double value, ReactivePowerUnit unit) { if(unit == ReactivePowerUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -605,7 +605,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalAcceleration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalAcceleration.g.cs index 831efa6b75..bb7412cff7 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalAcceleration.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalAcceleration.g.cs @@ -67,16 +67,16 @@ public RotationalAcceleration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private RotationalAcceleration(double numericValue, RotationalAccelerationUnit unit) + private RotationalAcceleration(double value, RotationalAccelerationUnit unit) { if(unit == RotationalAccelerationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -605,7 +605,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalSpeed.g.cs index 5a39e327d8..6f4f82a61f 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalSpeed.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalSpeed.g.cs @@ -67,16 +67,16 @@ public RotationalSpeed() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private RotationalSpeed(double numericValue, RotationalSpeedUnit unit) + private RotationalSpeed(double value, RotationalSpeedUnit unit) { if(unit == RotationalSpeedUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -758,7 +758,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffness.g.cs index 4affe583b3..bb1ac04874 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffness.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffness.g.cs @@ -67,16 +67,16 @@ public RotationalStiffness() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private RotationalStiffness(double numericValue, RotationalStiffnessUnit unit) + private RotationalStiffness(double value, RotationalStiffnessUnit unit) { if(unit == RotationalStiffnessUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs index 6cf4fe19c8..cc01137894 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs @@ -67,16 +67,16 @@ public RotationalStiffnessPerLength() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private RotationalStiffnessPerLength(double numericValue, RotationalStiffnessPerLengthUnit unit) + private RotationalStiffnessPerLength(double value, RotationalStiffnessPerLengthUnit unit) { if(unit == RotationalStiffnessPerLengthUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SolidAngle.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SolidAngle.g.cs index 8be374771e..6a0302f3c1 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SolidAngle.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SolidAngle.g.cs @@ -70,16 +70,16 @@ public SolidAngle() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private SolidAngle(double numericValue, SolidAngleUnit unit) + private SolidAngle(double value, SolidAngleUnit unit) { if(unit == SolidAngleUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -557,7 +557,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEnergy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEnergy.g.cs index d1fe94c76a..edb6d899a3 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEnergy.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEnergy.g.cs @@ -70,16 +70,16 @@ public SpecificEnergy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private SpecificEnergy(double numericValue, SpecificEnergyUnit unit) + private SpecificEnergy(double value, SpecificEnergyUnit unit) { if(unit == SpecificEnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -693,7 +693,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEntropy.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEntropy.g.cs index f0002be885..401f61fa68 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEntropy.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificEntropy.g.cs @@ -67,16 +67,16 @@ public SpecificEntropy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private SpecificEntropy(double numericValue, SpecificEntropyUnit unit) + private SpecificEntropy(double value, SpecificEntropyUnit unit) { if(unit == SpecificEntropyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -690,7 +690,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificVolume.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificVolume.g.cs index 1fbcef6c8f..46f1a1d249 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificVolume.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificVolume.g.cs @@ -67,16 +67,16 @@ public SpecificVolume() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private SpecificVolume(double numericValue, SpecificVolumeUnit unit) + private SpecificVolume(double value, SpecificVolumeUnit unit) { if(unit == SpecificVolumeUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificWeight.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificWeight.g.cs index 434c2aa05e..03e2108e39 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificWeight.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/SpecificWeight.g.cs @@ -70,16 +70,16 @@ public SpecificWeight() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private SpecificWeight(double numericValue, SpecificWeightUnit unit) + private SpecificWeight(double value, SpecificWeightUnit unit) { if(unit == SpecificWeightUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -829,7 +829,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Speed.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Speed.g.cs index 1436f170c5..e74803567b 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Speed.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Speed.g.cs @@ -67,16 +67,16 @@ public Speed() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Speed(double numericValue, SpeedUnit unit) + private Speed(double value, SpeedUnit unit) { if(unit == SpeedUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -1081,7 +1081,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Temperature.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Temperature.g.cs index 4a911930d7..a1d3e4a299 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Temperature.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Temperature.g.cs @@ -67,16 +67,16 @@ public Temperature() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Temperature(double numericValue, TemperatureUnit unit) + private Temperature(double value, TemperatureUnit unit) { if(unit == TemperatureUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -690,7 +690,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureChangeRate.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureChangeRate.g.cs index af9024641b..a662a7cd5a 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureChangeRate.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureChangeRate.g.cs @@ -67,16 +67,16 @@ public TemperatureChangeRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private TemperatureChangeRate(double numericValue, TemperatureChangeRateUnit unit) + private TemperatureChangeRate(double value, TemperatureChangeRateUnit unit) { if(unit == TemperatureChangeRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -707,7 +707,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureDelta.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureDelta.g.cs index c590d9d0f5..968bba1082 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureDelta.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/TemperatureDelta.g.cs @@ -67,16 +67,16 @@ public TemperatureDelta() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private TemperatureDelta(double numericValue, TemperatureDeltaUnit unit) + private TemperatureDelta(double value, TemperatureDeltaUnit unit) { if(unit == TemperatureDeltaUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -673,7 +673,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalConductivity.g.cs index c6639699b7..04bfef26e4 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalConductivity.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalConductivity.g.cs @@ -70,16 +70,16 @@ public ThermalConductivity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ThermalConductivity(double numericValue, ThermalConductivityUnit unit) + private ThermalConductivity(double value, ThermalConductivityUnit unit) { if(unit == ThermalConductivityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -574,7 +574,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalResistance.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalResistance.g.cs index 356d57f401..e8f54cb339 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalResistance.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ThermalResistance.g.cs @@ -67,16 +67,16 @@ public ThermalResistance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private ThermalResistance(double numericValue, ThermalResistanceUnit unit) + private ThermalResistance(double value, ThermalResistanceUnit unit) { if(unit == ThermalResistanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -622,7 +622,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Torque.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Torque.g.cs index d89fb77625..4e83ec5965 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Torque.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Torque.g.cs @@ -67,16 +67,16 @@ public Torque() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Torque(double numericValue, TorqueUnit unit) + private Torque(double value, TorqueUnit unit) { if(unit == TorqueUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -894,7 +894,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VitaminA.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VitaminA.g.cs index 22bdb5ce58..ef1924e04f 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VitaminA.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VitaminA.g.cs @@ -67,16 +67,16 @@ public VitaminA() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private VitaminA(double numericValue, VitaminAUnit unit) + private VitaminA(double value, VitaminAUnit unit) { if(unit == VitaminAUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -554,7 +554,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Volume.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Volume.g.cs index d8bb4837c6..5ab6d276cf 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Volume.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Volume.g.cs @@ -67,16 +67,16 @@ public Volume() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private Volume(double numericValue, VolumeUnit unit) + private Volume(double value, VolumeUnit unit) { if(unit == VolumeUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -1336,7 +1336,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeConcentration.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeConcentration.g.cs index 2589f1830e..55ba813dc8 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeConcentration.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeConcentration.g.cs @@ -70,16 +70,16 @@ public VolumeConcentration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private VolumeConcentration(double numericValue, VolumeConcentrationUnit unit) + private VolumeConcentration(double value, VolumeConcentrationUnit unit) { if(unit == VolumeConcentrationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -880,7 +880,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlow.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlow.g.cs index fde0cc4346..1308744fea 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlow.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumeFlow.g.cs @@ -67,16 +67,16 @@ public VolumeFlow() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private VolumeFlow(double numericValue, VolumeFlowUnit unit) + private VolumeFlow(double value, VolumeFlowUnit unit) { if(unit == VolumeFlowUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -365,6 +365,11 @@ private VolumeFlow(double numericValue, VolumeFlowUnit unit) /// public double UkGallonsPerDay => As(VolumeFlowUnit.UkGallonPerDay); + /// + /// Get VolumeFlow in UkGallonsPerHour. + /// + public double UkGallonsPerHour => As(VolumeFlowUnit.UkGallonPerHour); + /// /// Get VolumeFlow in UkGallonsPerMinute. /// @@ -846,6 +851,16 @@ public static VolumeFlow FromUkGallonsPerDay(double ukgallonsperday) return new VolumeFlow(value, VolumeFlowUnit.UkGallonPerDay); } /// + /// Get VolumeFlow from UkGallonsPerHour. + /// + /// If value is NaN or Infinity. + [Windows.Foundation.Metadata.DefaultOverload] + public static VolumeFlow FromUkGallonsPerHour(double ukgallonsperhour) + { + double value = (double) ukgallonsperhour; + return new VolumeFlow(value, VolumeFlowUnit.UkGallonPerHour); + } + /// /// Get VolumeFlow from UkGallonsPerMinute. /// /// If value is NaN or Infinity. @@ -1238,6 +1253,7 @@ private double AsBaseUnit() case VolumeFlowUnit.OilBarrelPerMinute: return _value*2.64978825e-3; case VolumeFlowUnit.OilBarrelPerSecond: return _value/6.28981; case VolumeFlowUnit.UkGallonPerDay: return _value/19005304; + case VolumeFlowUnit.UkGallonPerHour: return _value/791887.667; case VolumeFlowUnit.UkGallonPerMinute: return _value/13198.2; case VolumeFlowUnit.UkGallonPerSecond: return _value/219.969; case VolumeFlowUnit.UsGallonPerDay: return _value/22824465.227; @@ -1300,6 +1316,7 @@ private double AsBaseNumericType(VolumeFlowUnit unit) case VolumeFlowUnit.OilBarrelPerMinute: return baseUnitValue/2.64978825e-3; case VolumeFlowUnit.OilBarrelPerSecond: return baseUnitValue*6.28981; case VolumeFlowUnit.UkGallonPerDay: return baseUnitValue*19005304; + case VolumeFlowUnit.UkGallonPerHour: return baseUnitValue*791887.667; case VolumeFlowUnit.UkGallonPerMinute: return baseUnitValue*13198.2; case VolumeFlowUnit.UkGallonPerSecond: return baseUnitValue*219.969; case VolumeFlowUnit.UsGallonPerDay: return baseUnitValue*22824465.227; @@ -1353,7 +1370,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumePerLength.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumePerLength.g.cs index 8e56b9d497..c87f6d5cc5 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumePerLength.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/VolumePerLength.g.cs @@ -67,16 +67,16 @@ public VolumePerLength() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component. /// If value is NaN or Infinity. - private VolumePerLength(double numericValue, VolumePerLengthUnit unit) + private VolumePerLength(double value, VolumePerLengthUnit unit) { if(unit == VolumePerLengthUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -588,7 +588,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix) /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Name of culture (ex: "en-US") to use for localization and number formatting. Defaults to if null. public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args) diff --git a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/UnitAbbreviationsCache.g.cs b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/UnitAbbreviationsCache.g.cs index 5ff08e9881..ceaa76c88e 100644 --- a/UnitsNet.WindowsRuntimeComponent/GeneratedCode/UnitAbbreviationsCache.g.cs +++ b/UnitsNet.WindowsRuntimeComponent/GeneratedCode/UnitAbbreviationsCache.g.cs @@ -407,10 +407,10 @@ private static readonly (string CultureName, Type UnitType, int UnitValue, strin ("en-US", typeof(FrequencyUnit), (int)FrequencyUnit.Megahertz, new string[]{"MHz"}), ("en-US", typeof(FrequencyUnit), (int)FrequencyUnit.RadianPerSecond, new string[]{"rad/s"}), ("en-US", typeof(FrequencyUnit), (int)FrequencyUnit.Terahertz, new string[]{"THz"}), - ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.KilometerPerLiter, new string[]{"km/l"}), - ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.LiterPer100Kilometers, new string[]{"l/100km"}), - ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.MilePerUkGallon, new string[]{"mpg (imp)"}), - ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.MilePerUsGallon, new string[]{"mpg (US)"}), + ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.KilometerPerLiter, new string[]{"km/L"}), + ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.LiterPer100Kilometers, new string[]{"L/100km"}), + ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.MilePerUkGallon, new string[]{"mpg (imp.)"}), + ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.MilePerUsGallon, new string[]{"mpg (U.S.)"}), ("en-US", typeof(HeatFluxUnit), (int)HeatFluxUnit.BtuPerHourSquareFoot, new string[]{"BTU/h·ft²"}), ("en-US", typeof(HeatFluxUnit), (int)HeatFluxUnit.BtuPerMinuteSquareFoot, new string[]{"BTU/min·ft²"}), ("en-US", typeof(HeatFluxUnit), (int)HeatFluxUnit.BtuPerSecondSquareFoot, new string[]{"BTU/s·ft²"}), @@ -1275,6 +1275,7 @@ private static readonly (string CultureName, Type UnitType, int UnitValue, strin ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.OilBarrelPerMinute, new string[]{"bbl/min", "bpm"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.OilBarrelPerSecond, new string[]{"bbl/s"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UkGallonPerDay, new string[]{"gal (U. K.)/d"}), + ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UkGallonPerHour, new string[]{"gal (imp.)/h"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UkGallonPerMinute, new string[]{"gal (imp.)/min"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UkGallonPerSecond, new string[]{"gal (imp.)/s"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UsGallonPerDay, new string[]{"gpd", "gal/d"}), diff --git a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs index 6d563a3c4f..39e69008d1 100644 --- a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs @@ -70,15 +70,15 @@ static Acceleration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Acceleration(double numericValue, AccelerationUnit unit) + public Acceleration(double value, AccelerationUnit unit) { if(unit == AccelerationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -86,18 +86,18 @@ public Acceleration(double numericValue, AccelerationUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Acceleration(double numericValue, UnitSystem unitSystem) + public Acceleration(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -912,7 +912,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs index 458e171092..18abeba8bd 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs @@ -72,15 +72,15 @@ static AmountOfSubstance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public AmountOfSubstance(double numericValue, AmountOfSubstanceUnit unit) + public AmountOfSubstance(double value, AmountOfSubstanceUnit unit) { if(unit == AmountOfSubstanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -88,18 +88,18 @@ public AmountOfSubstance(double numericValue, AmountOfSubstanceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public AmountOfSubstance(double numericValue, UnitSystem unitSystem) + public AmountOfSubstance(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -946,7 +946,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs index 7565cb2258..f0a38498f0 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs @@ -61,15 +61,15 @@ static AmplitudeRatio() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public AmplitudeRatio(double numericValue, AmplitudeRatioUnit unit) + public AmplitudeRatio(double value, AmplitudeRatioUnit unit) { if(unit == AmplitudeRatioUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public AmplitudeRatio(double numericValue, AmplitudeRatioUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public AmplitudeRatio(double numericValue, UnitSystem unitSystem) + public AmplitudeRatio(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -767,7 +767,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs index 5d2d8405e6..64efe5550d 100644 --- a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs @@ -71,15 +71,15 @@ static Angle() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Angle(double numericValue, AngleUnit unit) + public Angle(double value, AngleUnit unit) { if(unit == AngleUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -87,18 +87,18 @@ public Angle(double numericValue, AngleUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Angle(double numericValue, UnitSystem unitSystem) + public Angle(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -929,7 +929,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs index 806c382bb3..9cee071934 100644 --- a/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ApparentEnergy.g.cs @@ -60,15 +60,15 @@ static ApparentEnergy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ApparentEnergy(double numericValue, ApparentEnergyUnit unit) + public ApparentEnergy(double value, ApparentEnergyUnit unit) { if(unit == ApparentEnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public ApparentEnergy(double numericValue, ApparentEnergyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ApparentEnergy(double numericValue, UnitSystem unitSystem) + public ApparentEnergy(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs b/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs index b157326f24..951f5b4370 100644 --- a/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ApparentPower.g.cs @@ -61,15 +61,15 @@ static ApparentPower() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ApparentPower(double numericValue, ApparentPowerUnit unit) + public ApparentPower(double value, ApparentPowerUnit unit) { if(unit == ApparentPowerUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public ApparentPower(double numericValue, ApparentPowerUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ApparentPower(double numericValue, UnitSystem unitSystem) + public ApparentPower(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -759,7 +759,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Area.g.cs b/UnitsNet/GeneratedCode/Quantities/Area.g.cs index c356193dd6..07241d5540 100644 --- a/UnitsNet/GeneratedCode/Quantities/Area.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Area.g.cs @@ -71,15 +71,15 @@ static Area() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Area(double numericValue, AreaUnit unit) + public Area(double value, AreaUnit unit) { if(unit == AreaUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -87,18 +87,18 @@ public Area(double numericValue, AreaUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Area(double numericValue, UnitSystem unitSystem) + public Area(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -929,7 +929,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs index e973f431e1..b4e3655c0d 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs @@ -58,15 +58,15 @@ static AreaDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public AreaDensity(double numericValue, AreaDensityUnit unit) + public AreaDensity(double value, AreaDensityUnit unit) { if(unit == AreaDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -74,18 +74,18 @@ public AreaDensity(double numericValue, AreaDensityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public AreaDensity(double numericValue, UnitSystem unitSystem) + public AreaDensity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -708,7 +708,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs index d5e01ca2db..1d4d806463 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs @@ -63,15 +63,15 @@ static AreaMomentOfInertia() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public AreaMomentOfInertia(double numericValue, AreaMomentOfInertiaUnit unit) + public AreaMomentOfInertia(double value, AreaMomentOfInertiaUnit unit) { if(unit == AreaMomentOfInertiaUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -79,18 +79,18 @@ public AreaMomentOfInertia(double numericValue, AreaMomentOfInertiaUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public AreaMomentOfInertia(double numericValue, UnitSystem unitSystem) + public AreaMomentOfInertia(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -793,7 +793,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs index d2bb355738..c3539d1999 100644 --- a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs @@ -86,15 +86,15 @@ static BitRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public BitRate(decimal numericValue, BitRateUnit unit) + public BitRate(decimal value, BitRateUnit unit) { if(unit == BitRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = numericValue; + _value = value; _unit = unit; } @@ -102,18 +102,18 @@ public BitRate(decimal numericValue, BitRateUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public BitRate(decimal numericValue, UnitSystem unitSystem) + public BitRate(decimal value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = numericValue; + _value = value; _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1138,7 +1138,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs index eefed47bfd..13c1919e53 100644 --- a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs @@ -60,15 +60,15 @@ static BrakeSpecificFuelConsumption() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public BrakeSpecificFuelConsumption(double numericValue, BrakeSpecificFuelConsumptionUnit unit) + public BrakeSpecificFuelConsumption(double value, BrakeSpecificFuelConsumptionUnit unit) { if(unit == BrakeSpecificFuelConsumptionUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public BrakeSpecificFuelConsumption(double numericValue, BrakeSpecificFuelConsum /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public BrakeSpecificFuelConsumption(double numericValue, UnitSystem unitSystem) + public BrakeSpecificFuelConsumption(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs b/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs index cb326bda0a..d3f61dfd10 100644 --- a/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Capacitance.g.cs @@ -67,15 +67,15 @@ static Capacitance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Capacitance(double numericValue, CapacitanceUnit unit) + public Capacitance(double value, CapacitanceUnit unit) { if(unit == CapacitanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -83,18 +83,18 @@ public Capacitance(double numericValue, CapacitanceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Capacitance(double numericValue, UnitSystem unitSystem) + public Capacitance(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -813,7 +813,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs index 2a279d0327..46a7fac2af 100644 --- a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs @@ -60,15 +60,15 @@ static CoefficientOfThermalExpansion() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public CoefficientOfThermalExpansion(double numericValue, CoefficientOfThermalExpansionUnit unit) + public CoefficientOfThermalExpansion(double value, CoefficientOfThermalExpansionUnit unit) { if(unit == CoefficientOfThermalExpansionUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public CoefficientOfThermalExpansion(double numericValue, CoefficientOfThermalEx /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public CoefficientOfThermalExpansion(double numericValue, UnitSystem unitSystem) + public CoefficientOfThermalExpansion(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Density.g.cs b/UnitsNet/GeneratedCode/Quantities/Density.g.cs index 132be68371..c22b5734eb 100644 --- a/UnitsNet/GeneratedCode/Quantities/Density.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Density.g.cs @@ -100,15 +100,15 @@ static Density() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Density(double numericValue, DensityUnit unit) + public Density(double value, DensityUnit unit) { if(unit == DensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -116,18 +116,18 @@ public Density(double numericValue, DensityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Density(double numericValue, UnitSystem unitSystem) + public Density(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1374,7 +1374,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs index 6b4d2af92e..334f988875 100644 --- a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs @@ -67,15 +67,15 @@ static Duration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Duration(double numericValue, DurationUnit unit) + public Duration(double value, DurationUnit unit) { if(unit == DurationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -83,18 +83,18 @@ public Duration(double numericValue, DurationUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Duration(double numericValue, UnitSystem unitSystem) + public Duration(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -861,7 +861,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs index 520ffe552b..4c734b5014 100644 --- a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs @@ -69,15 +69,15 @@ static DynamicViscosity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public DynamicViscosity(double numericValue, DynamicViscosityUnit unit) + public DynamicViscosity(double value, DynamicViscosityUnit unit) { if(unit == DynamicViscosityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -85,18 +85,18 @@ public DynamicViscosity(double numericValue, DynamicViscosityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public DynamicViscosity(double numericValue, UnitSystem unitSystem) + public DynamicViscosity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -847,7 +847,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs index e199a3b1ef..7fea23f989 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs @@ -61,15 +61,15 @@ static ElectricAdmittance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricAdmittance(double numericValue, ElectricAdmittanceUnit unit) + public ElectricAdmittance(double value, ElectricAdmittanceUnit unit) { if(unit == ElectricAdmittanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public ElectricAdmittance(double numericValue, ElectricAdmittanceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricAdmittance(double numericValue, UnitSystem unitSystem) + public ElectricAdmittance(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -759,7 +759,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs index ea0f853cca..a9d68c5d08 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs @@ -61,15 +61,15 @@ static ElectricCharge() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricCharge(double numericValue, ElectricChargeUnit unit) + public ElectricCharge(double value, ElectricChargeUnit unit) { if(unit == ElectricChargeUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public ElectricCharge(double numericValue, ElectricChargeUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricCharge(double numericValue, UnitSystem unitSystem) + public ElectricCharge(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs index 9e0f141a61..84babf87b7 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs @@ -61,15 +61,15 @@ static ElectricChargeDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricChargeDensity(double numericValue, ElectricChargeDensityUnit unit) + public ElectricChargeDensity(double value, ElectricChargeDensityUnit unit) { if(unit == ElectricChargeDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public ElectricChargeDensity(double numericValue, ElectricChargeDensityUnit unit /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricChargeDensity(double numericValue, UnitSystem unitSystem) + public ElectricChargeDensity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs index e5fba00a48..0dffcbc32b 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs @@ -63,15 +63,15 @@ static ElectricConductance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricConductance(double numericValue, ElectricConductanceUnit unit) + public ElectricConductance(double value, ElectricConductanceUnit unit) { if(unit == ElectricConductanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -79,18 +79,18 @@ public ElectricConductance(double numericValue, ElectricConductanceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricConductance(double numericValue, UnitSystem unitSystem) + public ElectricConductance(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -745,7 +745,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs index dac578000e..c3ed929ce6 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs @@ -63,15 +63,15 @@ static ElectricConductivity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricConductivity(double numericValue, ElectricConductivityUnit unit) + public ElectricConductivity(double value, ElectricConductivityUnit unit) { if(unit == ElectricConductivityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -79,18 +79,18 @@ public ElectricConductivity(double numericValue, ElectricConductivityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricConductivity(double numericValue, UnitSystem unitSystem) + public ElectricConductivity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -745,7 +745,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs index d3f1f07a68..13726a1360 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs @@ -65,15 +65,15 @@ static ElectricCurrent() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricCurrent(double numericValue, ElectricCurrentUnit unit) + public ElectricCurrent(double value, ElectricCurrentUnit unit) { if(unit == ElectricCurrentUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -81,18 +81,18 @@ public ElectricCurrent(double numericValue, ElectricCurrentUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricCurrent(double numericValue, UnitSystem unitSystem) + public ElectricCurrent(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -827,7 +827,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs index 0b3e248efc..40b235fe08 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs @@ -63,15 +63,15 @@ static ElectricCurrentDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricCurrentDensity(double numericValue, ElectricCurrentDensityUnit unit) + public ElectricCurrentDensity(double value, ElectricCurrentDensityUnit unit) { if(unit == ElectricCurrentDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -79,18 +79,18 @@ public ElectricCurrentDensity(double numericValue, ElectricCurrentDensityUnit un /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricCurrentDensity(double numericValue, UnitSystem unitSystem) + public ElectricCurrentDensity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -745,7 +745,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs index e787dc128c..c5366cb423 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs @@ -58,15 +58,15 @@ static ElectricCurrentGradient() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricCurrentGradient(double numericValue, ElectricCurrentGradientUnit unit) + public ElectricCurrentGradient(double value, ElectricCurrentGradientUnit unit) { if(unit == ElectricCurrentGradientUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -74,18 +74,18 @@ public ElectricCurrentGradient(double numericValue, ElectricCurrentGradientUnit /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricCurrentGradient(double numericValue, UnitSystem unitSystem) + public ElectricCurrentGradient(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -708,7 +708,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs index 045e39a023..0a388a3fbc 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs @@ -61,15 +61,15 @@ static ElectricField() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricField(double numericValue, ElectricFieldUnit unit) + public ElectricField(double value, ElectricFieldUnit unit) { if(unit == ElectricFieldUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public ElectricField(double numericValue, ElectricFieldUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricField(double numericValue, UnitSystem unitSystem) + public ElectricField(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs index c8faee28eb..47282ca714 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs @@ -64,15 +64,15 @@ static ElectricInductance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricInductance(double numericValue, ElectricInductanceUnit unit) + public ElectricInductance(double value, ElectricInductanceUnit unit) { if(unit == ElectricInductanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -80,18 +80,18 @@ public ElectricInductance(double numericValue, ElectricInductanceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricInductance(double numericValue, UnitSystem unitSystem) + public ElectricInductance(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -762,7 +762,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs index 1a9f766d9d..e1a6cccc54 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs @@ -62,15 +62,15 @@ static ElectricPotential() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricPotential(double numericValue, ElectricPotentialUnit unit) + public ElectricPotential(double value, ElectricPotentialUnit unit) { if(unit == ElectricPotentialUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -78,18 +78,18 @@ public ElectricPotential(double numericValue, ElectricPotentialUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricPotential(double numericValue, UnitSystem unitSystem) + public ElectricPotential(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -776,7 +776,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs index 6b6c36acec..37892c41ef 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialAc.g.cs @@ -62,15 +62,15 @@ static ElectricPotentialAc() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricPotentialAc(double numericValue, ElectricPotentialAcUnit unit) + public ElectricPotentialAc(double value, ElectricPotentialAcUnit unit) { if(unit == ElectricPotentialAcUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -78,18 +78,18 @@ public ElectricPotentialAc(double numericValue, ElectricPotentialAcUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricPotentialAc(double numericValue, UnitSystem unitSystem) + public ElectricPotentialAc(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -776,7 +776,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs index eafccfbb5c..dedbe936b8 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialDc.g.cs @@ -62,15 +62,15 @@ static ElectricPotentialDc() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricPotentialDc(double numericValue, ElectricPotentialDcUnit unit) + public ElectricPotentialDc(double value, ElectricPotentialDcUnit unit) { if(unit == ElectricPotentialDcUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -78,18 +78,18 @@ public ElectricPotentialDc(double numericValue, ElectricPotentialDcUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricPotentialDc(double numericValue, UnitSystem unitSystem) + public ElectricPotentialDc(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -776,7 +776,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs index 435992e99b..8c96c4745e 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs @@ -62,15 +62,15 @@ static ElectricResistance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricResistance(double numericValue, ElectricResistanceUnit unit) + public ElectricResistance(double value, ElectricResistanceUnit unit) { if(unit == ElectricResistanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -78,18 +78,18 @@ public ElectricResistance(double numericValue, ElectricResistanceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricResistance(double numericValue, UnitSystem unitSystem) + public ElectricResistance(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -776,7 +776,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs index 58d95cce8f..b6a6f1427f 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs @@ -74,15 +74,15 @@ static ElectricResistivity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricResistivity(double numericValue, ElectricResistivityUnit unit) + public ElectricResistivity(double value, ElectricResistivityUnit unit) { if(unit == ElectricResistivityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -90,18 +90,18 @@ public ElectricResistivity(double numericValue, ElectricResistivityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricResistivity(double numericValue, UnitSystem unitSystem) + public ElectricResistivity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -932,7 +932,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs index a0ab2ba5f0..d8332d038a 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs @@ -63,15 +63,15 @@ static ElectricSurfaceChargeDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ElectricSurfaceChargeDensity(double numericValue, ElectricSurfaceChargeDensityUnit unit) + public ElectricSurfaceChargeDensity(double value, ElectricSurfaceChargeDensityUnit unit) { if(unit == ElectricSurfaceChargeDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -79,18 +79,18 @@ public ElectricSurfaceChargeDensity(double numericValue, ElectricSurfaceChargeDe /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ElectricSurfaceChargeDensity(double numericValue, UnitSystem unitSystem) + public ElectricSurfaceChargeDensity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -745,7 +745,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs index 9b1331ab32..0ec7cb32c5 100644 --- a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs @@ -80,15 +80,15 @@ static Energy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Energy(double numericValue, EnergyUnit unit) + public Energy(double value, EnergyUnit unit) { if(unit == EnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -96,18 +96,18 @@ public Energy(double numericValue, EnergyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Energy(double numericValue, UnitSystem unitSystem) + public Energy(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1082,7 +1082,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs index 7555d017ec..c787d63860 100644 --- a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs @@ -64,15 +64,15 @@ static Entropy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Entropy(double numericValue, EntropyUnit unit) + public Entropy(double value, EntropyUnit unit) { if(unit == EntropyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -80,18 +80,18 @@ public Entropy(double numericValue, EntropyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Entropy(double numericValue, UnitSystem unitSystem) + public Entropy(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -810,7 +810,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Force.g.cs b/UnitsNet/GeneratedCode/Quantities/Force.g.cs index 6a684c7c0e..b3b6a0bd3d 100644 --- a/UnitsNet/GeneratedCode/Quantities/Force.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Force.g.cs @@ -70,15 +70,15 @@ static Force() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Force(double numericValue, ForceUnit unit) + public Force(double value, ForceUnit unit) { if(unit == ForceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -86,18 +86,18 @@ public Force(double numericValue, ForceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Force(double numericValue, UnitSystem unitSystem) + public Force(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -912,7 +912,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs index da42ca9d87..1d5bf52173 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs @@ -68,15 +68,15 @@ static ForceChangeRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ForceChangeRate(double numericValue, ForceChangeRateUnit unit) + public ForceChangeRate(double value, ForceChangeRateUnit unit) { if(unit == ForceChangeRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -84,18 +84,18 @@ public ForceChangeRate(double numericValue, ForceChangeRateUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ForceChangeRate(double numericValue, UnitSystem unitSystem) + public ForceChangeRate(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -878,7 +878,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs index f94475e9c6..56afd9cd6b 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs @@ -69,15 +69,15 @@ static ForcePerLength() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ForcePerLength(double numericValue, ForcePerLengthUnit unit) + public ForcePerLength(double value, ForcePerLengthUnit unit) { if(unit == ForcePerLengthUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -85,18 +85,18 @@ public ForcePerLength(double numericValue, ForcePerLengthUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ForcePerLength(double numericValue, UnitSystem unitSystem) + public ForcePerLength(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -895,7 +895,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs index 2a4972b353..eaba02d254 100644 --- a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs @@ -66,15 +66,15 @@ static Frequency() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Frequency(double numericValue, FrequencyUnit unit) + public Frequency(double value, FrequencyUnit unit) { if(unit == FrequencyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -82,18 +82,18 @@ public Frequency(double numericValue, FrequencyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Frequency(double numericValue, UnitSystem unitSystem) + public Frequency(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -844,7 +844,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs index d7beaef9e6..28e511767e 100644 --- a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs @@ -64,15 +64,15 @@ static FuelEfficiency() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public FuelEfficiency(double numericValue, FuelEfficiencyUnit unit) + public FuelEfficiency(double value, FuelEfficiencyUnit unit) { if(unit == FuelEfficiencyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -80,18 +80,18 @@ public FuelEfficiency(double numericValue, FuelEfficiencyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public FuelEfficiency(double numericValue, UnitSystem unitSystem) + public FuelEfficiency(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -762,7 +762,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs index 0d1d28921b..4ec5cdac79 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs @@ -75,15 +75,15 @@ static HeatFlux() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public HeatFlux(double numericValue, HeatFluxUnit unit) + public HeatFlux(double value, HeatFluxUnit unit) { if(unit == HeatFluxUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -91,18 +91,18 @@ public HeatFlux(double numericValue, HeatFluxUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public HeatFlux(double numericValue, UnitSystem unitSystem) + public HeatFlux(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -997,7 +997,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs index eba2ff052b..ebd5b931f1 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs @@ -60,15 +60,15 @@ static HeatTransferCoefficient() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public HeatTransferCoefficient(double numericValue, HeatTransferCoefficientUnit unit) + public HeatTransferCoefficient(double value, HeatTransferCoefficientUnit unit) { if(unit == HeatTransferCoefficientUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public HeatTransferCoefficient(double numericValue, HeatTransferCoefficientUnit /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public HeatTransferCoefficient(double numericValue, UnitSystem unitSystem) + public HeatTransferCoefficient(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs index 50b4776094..f07f5051ba 100644 --- a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs @@ -64,15 +64,15 @@ static Illuminance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Illuminance(double numericValue, IlluminanceUnit unit) + public Illuminance(double value, IlluminanceUnit unit) { if(unit == IlluminanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -80,18 +80,18 @@ public Illuminance(double numericValue, IlluminanceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Illuminance(double numericValue, UnitSystem unitSystem) + public Illuminance(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -762,7 +762,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Information.g.cs b/UnitsNet/GeneratedCode/Quantities/Information.g.cs index 8c6cc74d4d..88e5dea32a 100644 --- a/UnitsNet/GeneratedCode/Quantities/Information.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Information.g.cs @@ -83,15 +83,15 @@ static Information() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Information(decimal numericValue, InformationUnit unit) + public Information(decimal value, InformationUnit unit) { if(unit == InformationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = numericValue; + _value = value; _unit = unit; } @@ -99,18 +99,18 @@ public Information(decimal numericValue, InformationUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Information(decimal numericValue, UnitSystem unitSystem) + public Information(decimal value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = numericValue; + _value = value; _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1135,7 +1135,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs index f6a088b47b..c091096522 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs @@ -71,15 +71,15 @@ static Irradiance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Irradiance(double numericValue, IrradianceUnit unit) + public Irradiance(double value, IrradianceUnit unit) { if(unit == IrradianceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -87,18 +87,18 @@ public Irradiance(double numericValue, IrradianceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Irradiance(double numericValue, UnitSystem unitSystem) + public Irradiance(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -929,7 +929,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs index 6a94eb5d9d..4bc0411db9 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs @@ -67,15 +67,15 @@ static Irradiation() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Irradiation(double numericValue, IrradiationUnit unit) + public Irradiation(double value, IrradiationUnit unit) { if(unit == IrradiationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -83,18 +83,18 @@ public Irradiation(double numericValue, IrradiationUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Irradiation(double numericValue, UnitSystem unitSystem) + public Irradiation(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -813,7 +813,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs index 731315895b..dea04acfbc 100644 --- a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs @@ -68,15 +68,15 @@ static KinematicViscosity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public KinematicViscosity(double numericValue, KinematicViscosityUnit unit) + public KinematicViscosity(double value, KinematicViscosityUnit unit) { if(unit == KinematicViscosityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -84,18 +84,18 @@ public KinematicViscosity(double numericValue, KinematicViscosityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public KinematicViscosity(double numericValue, UnitSystem unitSystem) + public KinematicViscosity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -830,7 +830,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/LapseRate.g.cs b/UnitsNet/GeneratedCode/Quantities/LapseRate.g.cs index 6e58c72efc..87a837abf3 100644 --- a/UnitsNet/GeneratedCode/Quantities/LapseRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LapseRate.g.cs @@ -58,15 +58,15 @@ static LapseRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public LapseRate(double numericValue, LapseRateUnit unit) + public LapseRate(double value, LapseRateUnit unit) { if(unit == LapseRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -74,18 +74,18 @@ public LapseRate(double numericValue, LapseRateUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public LapseRate(double numericValue, UnitSystem unitSystem) + public LapseRate(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -708,7 +708,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Length.g.cs b/UnitsNet/GeneratedCode/Quantities/Length.g.cs index 9d8fc92a6c..ad84dda024 100644 --- a/UnitsNet/GeneratedCode/Quantities/Length.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Length.g.cs @@ -89,15 +89,15 @@ static Length() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Length(double numericValue, LengthUnit unit) + public Length(double value, LengthUnit unit) { if(unit == LengthUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -105,18 +105,18 @@ public Length(double numericValue, LengthUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Length(double numericValue, UnitSystem unitSystem) + public Length(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1235,7 +1235,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Level.g.cs b/UnitsNet/GeneratedCode/Quantities/Level.g.cs index d0138be0e7..3bae838ac1 100644 --- a/UnitsNet/GeneratedCode/Quantities/Level.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Level.g.cs @@ -59,15 +59,15 @@ static Level() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Level(double numericValue, LevelUnit unit) + public Level(double value, LevelUnit unit) { if(unit == LevelUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -75,18 +75,18 @@ public Level(double numericValue, LevelUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Level(double numericValue, UnitSystem unitSystem) + public Level(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -733,7 +733,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs index e095468257..a8cf2b155f 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs @@ -63,15 +63,15 @@ static LinearDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public LinearDensity(double numericValue, LinearDensityUnit unit) + public LinearDensity(double value, LinearDensityUnit unit) { if(unit == LinearDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -79,18 +79,18 @@ public LinearDensity(double numericValue, LinearDensityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public LinearDensity(double numericValue, UnitSystem unitSystem) + public LinearDensity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -745,7 +745,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs index f750ee05cb..7c37d993eb 100644 --- a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs @@ -74,15 +74,15 @@ static Luminosity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Luminosity(double numericValue, LuminosityUnit unit) + public Luminosity(double value, LuminosityUnit unit) { if(unit == LuminosityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -90,18 +90,18 @@ public Luminosity(double numericValue, LuminosityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Luminosity(double numericValue, UnitSystem unitSystem) + public Luminosity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -932,7 +932,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs index 748d7d1551..4c81e7d098 100644 --- a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs @@ -61,15 +61,15 @@ static LuminousFlux() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public LuminousFlux(double numericValue, LuminousFluxUnit unit) + public LuminousFlux(double value, LuminousFluxUnit unit) { if(unit == LuminousFluxUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public LuminousFlux(double numericValue, LuminousFluxUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public LuminousFlux(double numericValue, UnitSystem unitSystem) + public LuminousFlux(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs index e74493a562..c63e99ab0c 100644 --- a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs @@ -61,15 +61,15 @@ static LuminousIntensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public LuminousIntensity(double numericValue, LuminousIntensityUnit unit) + public LuminousIntensity(double value, LuminousIntensityUnit unit) { if(unit == LuminousIntensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public LuminousIntensity(double numericValue, LuminousIntensityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public LuminousIntensity(double numericValue, UnitSystem unitSystem) + public LuminousIntensity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs index 04956ec55a..daa00c37db 100644 --- a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs @@ -64,15 +64,15 @@ static MagneticField() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MagneticField(double numericValue, MagneticFieldUnit unit) + public MagneticField(double value, MagneticFieldUnit unit) { if(unit == MagneticFieldUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -80,18 +80,18 @@ public MagneticField(double numericValue, MagneticFieldUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MagneticField(double numericValue, UnitSystem unitSystem) + public MagneticField(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -762,7 +762,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs index 9b9bd42d81..4543262443 100644 --- a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs @@ -61,15 +61,15 @@ static MagneticFlux() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MagneticFlux(double numericValue, MagneticFluxUnit unit) + public MagneticFlux(double value, MagneticFluxUnit unit) { if(unit == MagneticFluxUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public MagneticFlux(double numericValue, MagneticFluxUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MagneticFlux(double numericValue, UnitSystem unitSystem) + public MagneticFlux(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs index 1c9f9d7152..8c1351ebaf 100644 --- a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs @@ -61,15 +61,15 @@ static Magnetization() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Magnetization(double numericValue, MagnetizationUnit unit) + public Magnetization(double value, MagnetizationUnit unit) { if(unit == MagnetizationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public Magnetization(double numericValue, MagnetizationUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Magnetization(double numericValue, UnitSystem unitSystem) + public Magnetization(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs index 90d1a13ffa..e6c35f10fa 100644 --- a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs @@ -82,15 +82,15 @@ static Mass() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Mass(double numericValue, MassUnit unit) + public Mass(double value, MassUnit unit) { if(unit == MassUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -98,18 +98,18 @@ public Mass(double numericValue, MassUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Mass(double numericValue, UnitSystem unitSystem) + public Mass(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1116,7 +1116,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs index 9c10e8c342..f0961eb4ad 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs @@ -100,15 +100,15 @@ static MassConcentration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MassConcentration(double numericValue, MassConcentrationUnit unit) + public MassConcentration(double value, MassConcentrationUnit unit) { if(unit == MassConcentrationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -116,18 +116,18 @@ public MassConcentration(double numericValue, MassConcentrationUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MassConcentration(double numericValue, UnitSystem unitSystem) + public MassConcentration(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1374,7 +1374,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs index b59a138fa8..6819d6a96a 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs @@ -90,15 +90,15 @@ static MassFlow() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MassFlow(double numericValue, MassFlowUnit unit) + public MassFlow(double value, MassFlowUnit unit) { if(unit == MassFlowUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -106,18 +106,18 @@ public MassFlow(double numericValue, MassFlowUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MassFlow(double numericValue, UnitSystem unitSystem) + public MassFlow(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1252,7 +1252,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs index 13a50f3f9e..3b7bd4c264 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs @@ -59,15 +59,15 @@ static MassFlux() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MassFlux(double numericValue, MassFluxUnit unit) + public MassFlux(double value, MassFluxUnit unit) { if(unit == MassFluxUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -75,18 +75,18 @@ public MassFlux(double numericValue, MassFluxUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MassFlux(double numericValue, UnitSystem unitSystem) + public MassFlux(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -725,7 +725,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs index 0c45ff2a4a..22ab031331 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs @@ -84,15 +84,15 @@ static MassFraction() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MassFraction(double numericValue, MassFractionUnit unit) + public MassFraction(double value, MassFractionUnit unit) { if(unit == MassFractionUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -100,18 +100,18 @@ public MassFraction(double numericValue, MassFractionUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MassFraction(double numericValue, UnitSystem unitSystem) + public MassFraction(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1102,7 +1102,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs index a823d22adc..c5964e13bf 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs @@ -85,15 +85,15 @@ static MassMomentOfInertia() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MassMomentOfInertia(double numericValue, MassMomentOfInertiaUnit unit) + public MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit) { if(unit == MassMomentOfInertiaUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -101,18 +101,18 @@ public MassMomentOfInertia(double numericValue, MassMomentOfInertiaUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MassMomentOfInertia(double numericValue, UnitSystem unitSystem) + public MassMomentOfInertia(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1167,7 +1167,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs index b3c21d7b88..edbcbbc65d 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs @@ -60,15 +60,15 @@ static MolarEnergy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MolarEnergy(double numericValue, MolarEnergyUnit unit) + public MolarEnergy(double value, MolarEnergyUnit unit) { if(unit == MolarEnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public MolarEnergy(double numericValue, MolarEnergyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MolarEnergy(double numericValue, UnitSystem unitSystem) + public MolarEnergy(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs index 12312f3bf7..754ece1c49 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs @@ -60,15 +60,15 @@ static MolarEntropy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MolarEntropy(double numericValue, MolarEntropyUnit unit) + public MolarEntropy(double value, MolarEntropyUnit unit) { if(unit == MolarEntropyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public MolarEntropy(double numericValue, MolarEntropyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MolarEntropy(double numericValue, UnitSystem unitSystem) + public MolarEntropy(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs index 45a217671c..87bc5d163f 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs @@ -69,15 +69,15 @@ static MolarMass() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public MolarMass(double numericValue, MolarMassUnit unit) + public MolarMass(double value, MolarMassUnit unit) { if(unit == MolarMassUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -85,18 +85,18 @@ public MolarMass(double numericValue, MolarMassUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public MolarMass(double numericValue, UnitSystem unitSystem) + public MolarMass(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -895,7 +895,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs index d79adee90c..c9e315b909 100644 --- a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs @@ -68,15 +68,15 @@ static Molarity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Molarity(double numericValue, MolarityUnit unit) + public Molarity(double value, MolarityUnit unit) { if(unit == MolarityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -84,18 +84,18 @@ public Molarity(double numericValue, MolarityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Molarity(double numericValue, UnitSystem unitSystem) + public Molarity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -830,7 +830,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs index 3c1fd2cfa5..f75792d221 100644 --- a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs @@ -61,15 +61,15 @@ static Permeability() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Permeability(double numericValue, PermeabilityUnit unit) + public Permeability(double value, PermeabilityUnit unit) { if(unit == PermeabilityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public Permeability(double numericValue, PermeabilityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Permeability(double numericValue, UnitSystem unitSystem) + public Permeability(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs index 795176b6ce..d1637927b8 100644 --- a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs @@ -61,15 +61,15 @@ static Permittivity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Permittivity(double numericValue, PermittivityUnit unit) + public Permittivity(double value, PermittivityUnit unit) { if(unit == PermittivityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public Permittivity(double numericValue, PermittivityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Permittivity(double numericValue, UnitSystem unitSystem) + public Permittivity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Power.g.cs b/UnitsNet/GeneratedCode/Quantities/Power.g.cs index 1dfd7929c6..78401e90c4 100644 --- a/UnitsNet/GeneratedCode/Quantities/Power.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Power.g.cs @@ -77,15 +77,15 @@ static Power() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Power(decimal numericValue, PowerUnit unit) + public Power(decimal value, PowerUnit unit) { if(unit == PowerUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = numericValue; + _value = value; _unit = unit; } @@ -93,18 +93,18 @@ public Power(decimal numericValue, PowerUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Power(decimal numericValue, UnitSystem unitSystem) + public Power(decimal value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = numericValue; + _value = value; _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1033,7 +1033,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs index 818be4568d..e714622d6a 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs @@ -101,15 +101,15 @@ static PowerDensity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public PowerDensity(double numericValue, PowerDensityUnit unit) + public PowerDensity(double value, PowerDensityUnit unit) { if(unit == PowerDensityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -117,18 +117,18 @@ public PowerDensity(double numericValue, PowerDensityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public PowerDensity(double numericValue, UnitSystem unitSystem) + public PowerDensity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1439,7 +1439,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs index d4a6b55e9a..c8acd1662d 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs @@ -59,15 +59,15 @@ static PowerRatio() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public PowerRatio(double numericValue, PowerRatioUnit unit) + public PowerRatio(double value, PowerRatioUnit unit) { if(unit == PowerRatioUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -75,18 +75,18 @@ public PowerRatio(double numericValue, PowerRatioUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public PowerRatio(double numericValue, UnitSystem unitSystem) + public PowerRatio(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -733,7 +733,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs index 90b94642a2..2b23dacf30 100644 --- a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs @@ -99,15 +99,15 @@ static Pressure() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Pressure(double numericValue, PressureUnit unit) + public Pressure(double value, PressureUnit unit) { if(unit == PressureUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -115,18 +115,18 @@ public Pressure(double numericValue, PressureUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Pressure(double numericValue, UnitSystem unitSystem) + public Pressure(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1405,7 +1405,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs index fa42619770..d141c4dd0a 100644 --- a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs @@ -64,15 +64,15 @@ static PressureChangeRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public PressureChangeRate(double numericValue, PressureChangeRateUnit unit) + public PressureChangeRate(double value, PressureChangeRateUnit unit) { if(unit == PressureChangeRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -80,18 +80,18 @@ public PressureChangeRate(double numericValue, PressureChangeRateUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public PressureChangeRate(double numericValue, UnitSystem unitSystem) + public PressureChangeRate(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -810,7 +810,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs index 094ef4962d..8f950a9b2c 100644 --- a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs @@ -63,15 +63,15 @@ static Ratio() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Ratio(double numericValue, RatioUnit unit) + public Ratio(double value, RatioUnit unit) { if(unit == RatioUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -79,18 +79,18 @@ public Ratio(double numericValue, RatioUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Ratio(double numericValue, UnitSystem unitSystem) + public Ratio(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -793,7 +793,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs index 45609502be..1659c660f9 100644 --- a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs @@ -59,15 +59,15 @@ static RatioChangeRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public RatioChangeRate(double numericValue, RatioChangeRateUnit unit) + public RatioChangeRate(double value, RatioChangeRateUnit unit) { if(unit == RatioChangeRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -75,18 +75,18 @@ public RatioChangeRate(double numericValue, RatioChangeRateUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public RatioChangeRate(double numericValue, UnitSystem unitSystem) + public RatioChangeRate(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -725,7 +725,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs index a88360eac2..1fb9e9125d 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReactiveEnergy.g.cs @@ -60,15 +60,15 @@ static ReactiveEnergy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ReactiveEnergy(double numericValue, ReactiveEnergyUnit unit) + public ReactiveEnergy(double value, ReactiveEnergyUnit unit) { if(unit == ReactiveEnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public ReactiveEnergy(double numericValue, ReactiveEnergyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ReactiveEnergy(double numericValue, UnitSystem unitSystem) + public ReactiveEnergy(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ReactivePower.g.cs b/UnitsNet/GeneratedCode/Quantities/ReactivePower.g.cs index 94a58d3e54..ac71aca660 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReactivePower.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReactivePower.g.cs @@ -61,15 +61,15 @@ static ReactivePower() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ReactivePower(double numericValue, ReactivePowerUnit unit) + public ReactivePower(double value, ReactivePowerUnit unit) { if(unit == ReactivePowerUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public ReactivePower(double numericValue, ReactivePowerUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ReactivePower(double numericValue, UnitSystem unitSystem) + public ReactivePower(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -759,7 +759,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs index 301858cc89..0e67b0ad9f 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs @@ -61,15 +61,15 @@ static RotationalAcceleration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public RotationalAcceleration(double numericValue, RotationalAccelerationUnit unit) + public RotationalAcceleration(double value, RotationalAccelerationUnit unit) { if(unit == RotationalAccelerationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public RotationalAcceleration(double numericValue, RotationalAccelerationUnit un /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public RotationalAcceleration(double numericValue, UnitSystem unitSystem) + public RotationalAcceleration(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -759,7 +759,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs index 8cf9ec5a18..bd301b10b7 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs @@ -70,15 +70,15 @@ static RotationalSpeed() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public RotationalSpeed(double numericValue, RotationalSpeedUnit unit) + public RotationalSpeed(double value, RotationalSpeedUnit unit) { if(unit == RotationalSpeedUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -86,18 +86,18 @@ public RotationalSpeed(double numericValue, RotationalSpeedUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public RotationalSpeed(double numericValue, UnitSystem unitSystem) + public RotationalSpeed(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -912,7 +912,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs index 55432d8d5c..8f9e30e94c 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs @@ -60,15 +60,15 @@ static RotationalStiffness() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public RotationalStiffness(double numericValue, RotationalStiffnessUnit unit) + public RotationalStiffness(double value, RotationalStiffnessUnit unit) { if(unit == RotationalStiffnessUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public RotationalStiffness(double numericValue, RotationalStiffnessUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public RotationalStiffness(double numericValue, UnitSystem unitSystem) + public RotationalStiffness(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs index b1a971e457..9d7509b9f1 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs @@ -60,15 +60,15 @@ static RotationalStiffnessPerLength() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public RotationalStiffnessPerLength(double numericValue, RotationalStiffnessPerLengthUnit unit) + public RotationalStiffnessPerLength(double value, RotationalStiffnessPerLengthUnit unit) { if(unit == RotationalStiffnessPerLengthUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public RotationalStiffnessPerLength(double numericValue, RotationalStiffnessPerL /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public RotationalStiffnessPerLength(double numericValue, UnitSystem unitSystem) + public RotationalStiffnessPerLength(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs b/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs index 316ae78d9b..04b227eef1 100644 --- a/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs @@ -61,15 +61,15 @@ static SolidAngle() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public SolidAngle(double numericValue, SolidAngleUnit unit) + public SolidAngle(double value, SolidAngleUnit unit) { if(unit == SolidAngleUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -77,18 +77,18 @@ public SolidAngle(double numericValue, SolidAngleUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public SolidAngle(double numericValue, UnitSystem unitSystem) + public SolidAngle(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -711,7 +711,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs index 8a6f78957f..a6ba9a3e25 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs @@ -69,15 +69,15 @@ static SpecificEnergy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public SpecificEnergy(double numericValue, SpecificEnergyUnit unit) + public SpecificEnergy(double value, SpecificEnergyUnit unit) { if(unit == SpecificEnergyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -85,18 +85,18 @@ public SpecificEnergy(double numericValue, SpecificEnergyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public SpecificEnergy(double numericValue, UnitSystem unitSystem) + public SpecificEnergy(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -847,7 +847,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs index 35fcb150f5..09b8255e69 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs @@ -66,15 +66,15 @@ static SpecificEntropy() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public SpecificEntropy(double numericValue, SpecificEntropyUnit unit) + public SpecificEntropy(double value, SpecificEntropyUnit unit) { if(unit == SpecificEntropyUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -82,18 +82,18 @@ public SpecificEntropy(double numericValue, SpecificEntropyUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public SpecificEntropy(double numericValue, UnitSystem unitSystem) + public SpecificEntropy(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -844,7 +844,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs index cfc670531e..b9dae762c0 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs @@ -60,15 +60,15 @@ static SpecificVolume() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public SpecificVolume(double numericValue, SpecificVolumeUnit unit) + public SpecificVolume(double value, SpecificVolumeUnit unit) { if(unit == SpecificVolumeUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public SpecificVolume(double numericValue, SpecificVolumeUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public SpecificVolume(double numericValue, UnitSystem unitSystem) + public SpecificVolume(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs index db20e30887..bdc517521b 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs @@ -77,15 +77,15 @@ static SpecificWeight() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public SpecificWeight(double numericValue, SpecificWeightUnit unit) + public SpecificWeight(double value, SpecificWeightUnit unit) { if(unit == SpecificWeightUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -93,18 +93,18 @@ public SpecificWeight(double numericValue, SpecificWeightUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public SpecificWeight(double numericValue, UnitSystem unitSystem) + public SpecificWeight(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -983,7 +983,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Speed.g.cs b/UnitsNet/GeneratedCode/Quantities/Speed.g.cs index 725dbb05c1..5016235775 100644 --- a/UnitsNet/GeneratedCode/Quantities/Speed.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Speed.g.cs @@ -89,15 +89,15 @@ static Speed() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Speed(double numericValue, SpeedUnit unit) + public Speed(double value, SpeedUnit unit) { if(unit == SpeedUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -105,18 +105,18 @@ public Speed(double numericValue, SpeedUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Speed(double numericValue, UnitSystem unitSystem) + public Speed(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1235,7 +1235,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs b/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs index 65532151e1..748579c88e 100644 --- a/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs @@ -66,15 +66,15 @@ static Temperature() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Temperature(double numericValue, TemperatureUnit unit) + public Temperature(double value, TemperatureUnit unit) { if(unit == TemperatureUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -82,18 +82,18 @@ public Temperature(double numericValue, TemperatureUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Temperature(double numericValue, UnitSystem unitSystem) + public Temperature(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -798,7 +798,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs index 55f00609e6..ef6a2f6b47 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs @@ -67,15 +67,15 @@ static TemperatureChangeRate() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public TemperatureChangeRate(double numericValue, TemperatureChangeRateUnit unit) + public TemperatureChangeRate(double value, TemperatureChangeRateUnit unit) { if(unit == TemperatureChangeRateUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -83,18 +83,18 @@ public TemperatureChangeRate(double numericValue, TemperatureChangeRateUnit unit /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public TemperatureChangeRate(double numericValue, UnitSystem unitSystem) + public TemperatureChangeRate(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -861,7 +861,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs index 5584738c69..8cbe90dd65 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs @@ -65,15 +65,15 @@ static TemperatureDelta() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public TemperatureDelta(double numericValue, TemperatureDeltaUnit unit) + public TemperatureDelta(double value, TemperatureDeltaUnit unit) { if(unit == TemperatureDeltaUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -81,18 +81,18 @@ public TemperatureDelta(double numericValue, TemperatureDeltaUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public TemperatureDelta(double numericValue, UnitSystem unitSystem) + public TemperatureDelta(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -827,7 +827,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs index 9b9c1f1711..d253dc1eb7 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs @@ -62,15 +62,15 @@ static ThermalConductivity() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ThermalConductivity(double numericValue, ThermalConductivityUnit unit) + public ThermalConductivity(double value, ThermalConductivityUnit unit) { if(unit == ThermalConductivityUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -78,18 +78,18 @@ public ThermalConductivity(double numericValue, ThermalConductivityUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ThermalConductivity(double numericValue, UnitSystem unitSystem) + public ThermalConductivity(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -728,7 +728,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs index 925eb31587..e86109f59d 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs @@ -62,15 +62,15 @@ static ThermalResistance() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public ThermalResistance(double numericValue, ThermalResistanceUnit unit) + public ThermalResistance(double value, ThermalResistanceUnit unit) { if(unit == ThermalResistanceUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -78,18 +78,18 @@ public ThermalResistance(double numericValue, ThermalResistanceUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public ThermalResistance(double numericValue, UnitSystem unitSystem) + public ThermalResistance(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -776,7 +776,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs index 850b0a30b5..46e15adb3a 100644 --- a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs @@ -78,15 +78,15 @@ static Torque() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Torque(double numericValue, TorqueUnit unit) + public Torque(double value, TorqueUnit unit) { if(unit == TorqueUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -94,18 +94,18 @@ public Torque(double numericValue, TorqueUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Torque(double numericValue, UnitSystem unitSystem) + public Torque(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1048,7 +1048,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs b/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs index 9010b1c070..a6e2a5e142 100644 --- a/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs @@ -58,15 +58,15 @@ static VitaminA() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public VitaminA(double numericValue, VitaminAUnit unit) + public VitaminA(double value, VitaminAUnit unit) { if(unit == VitaminAUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -74,18 +74,18 @@ public VitaminA(double numericValue, VitaminAUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public VitaminA(double numericValue, UnitSystem unitSystem) + public VitaminA(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -708,7 +708,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs index b6e584c6a6..d3a12dceaa 100644 --- a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs @@ -104,15 +104,15 @@ static Volume() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public Volume(double numericValue, VolumeUnit unit) + public Volume(double value, VolumeUnit unit) { if(unit == VolumeUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -120,18 +120,18 @@ public Volume(double numericValue, VolumeUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public Volume(double numericValue, UnitSystem unitSystem) + public Volume(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1490,7 +1490,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs index 318191f297..ba2b5cf025 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs @@ -80,15 +80,15 @@ static VolumeConcentration() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public VolumeConcentration(double numericValue, VolumeConcentrationUnit unit) + public VolumeConcentration(double value, VolumeConcentrationUnit unit) { if(unit == VolumeConcentrationUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -96,18 +96,18 @@ public VolumeConcentration(double numericValue, VolumeConcentrationUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public VolumeConcentration(double numericValue, UnitSystem unitSystem) + public VolumeConcentration(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1034,7 +1034,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs index 602d224fc5..920d10fcfa 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs @@ -106,15 +106,15 @@ static VolumeFlow() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public VolumeFlow(double numericValue, VolumeFlowUnit unit) + public VolumeFlow(double value, VolumeFlowUnit unit) { if(unit == VolumeFlowUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -122,18 +122,18 @@ public VolumeFlow(double numericValue, VolumeFlowUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public VolumeFlow(double numericValue, UnitSystem unitSystem) + public VolumeFlow(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -1524,7 +1524,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs index 6712317313..f172de4651 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs @@ -60,15 +60,15 @@ static VolumePerLength() /// /// Creates the quantity with the given numeric value and unit. /// - /// The numeric value to contruct this quantity with. - /// The unit representation to contruct this quantity with. + /// The numeric value to construct this quantity with. + /// The unit representation to construct this quantity with. /// If value is NaN or Infinity. - public VolumePerLength(double numericValue, VolumePerLengthUnit unit) + public VolumePerLength(double value, VolumePerLengthUnit unit) { if(unit == VolumePerLengthUnit.Undefined) throw new ArgumentException("The quantity can not be created with an undefined unit.", nameof(unit)); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = unit; } @@ -76,18 +76,18 @@ public VolumePerLength(double numericValue, VolumePerLengthUnit unit) /// Creates an instance of the quantity with the given numeric value in units compatible with the given . /// If multiple compatible units were found, the first match is used. /// - /// The numeric value to contruct this quantity with. + /// The numeric value to construct this quantity with. /// The unit system to create the quantity with. /// The given is null. /// No unit was found for the given . - public VolumePerLength(double numericValue, UnitSystem unitSystem) + public VolumePerLength(double value, UnitSystem unitSystem) { if(unitSystem == null) throw new ArgumentNullException(nameof(unitSystem)); var unitInfos = Info.GetUnitInfosFor(unitSystem.BaseUnits); var firstUnitInfo = unitInfos.FirstOrDefault(); - _value = Guard.EnsureValidNumber(numericValue, nameof(numericValue)); + _value = Guard.EnsureValidNumber(value, nameof(value)); _unit = firstUnitInfo?.Value ?? throw new ArgumentException("No units were found for the given UnitSystem.", nameof(unitSystem)); } @@ -742,7 +742,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi /// Get string representation of value and unit. /// /// String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively." - /// Arguments for string format. Value and unit are implictly included as arguments 0 and 1. + /// Arguments for string format. Value and unit are implicitly included as arguments 0 and 1. /// String representation. /// Format to use for localization and number formatting. Defaults to if null. [Obsolete("This method is deprecated and will be removed at a future release. Please use string.Format().")] diff --git a/UnitsNet/GeneratedCode/UnitAbbreviationsCache.g.cs b/UnitsNet/GeneratedCode/UnitAbbreviationsCache.g.cs index 17e785c67e..dd61074559 100644 --- a/UnitsNet/GeneratedCode/UnitAbbreviationsCache.g.cs +++ b/UnitsNet/GeneratedCode/UnitAbbreviationsCache.g.cs @@ -407,10 +407,10 @@ private static readonly (string CultureName, Type UnitType, int UnitValue, strin ("en-US", typeof(FrequencyUnit), (int)FrequencyUnit.Megahertz, new string[]{"MHz"}), ("en-US", typeof(FrequencyUnit), (int)FrequencyUnit.RadianPerSecond, new string[]{"rad/s"}), ("en-US", typeof(FrequencyUnit), (int)FrequencyUnit.Terahertz, new string[]{"THz"}), - ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.KilometerPerLiter, new string[]{"km/l"}), - ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.LiterPer100Kilometers, new string[]{"l/100km"}), - ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.MilePerUkGallon, new string[]{"mpg (imp)"}), - ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.MilePerUsGallon, new string[]{"mpg (US)"}), + ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.KilometerPerLiter, new string[]{"km/L"}), + ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.LiterPer100Kilometers, new string[]{"L/100km"}), + ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.MilePerUkGallon, new string[]{"mpg (imp.)"}), + ("en-US", typeof(FuelEfficiencyUnit), (int)FuelEfficiencyUnit.MilePerUsGallon, new string[]{"mpg (U.S.)"}), ("en-US", typeof(HeatFluxUnit), (int)HeatFluxUnit.BtuPerHourSquareFoot, new string[]{"BTU/h·ft²"}), ("en-US", typeof(HeatFluxUnit), (int)HeatFluxUnit.BtuPerMinuteSquareFoot, new string[]{"BTU/min·ft²"}), ("en-US", typeof(HeatFluxUnit), (int)HeatFluxUnit.BtuPerSecondSquareFoot, new string[]{"BTU/s·ft²"}), @@ -1275,7 +1275,7 @@ private static readonly (string CultureName, Type UnitType, int UnitValue, strin ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.OilBarrelPerMinute, new string[]{"bbl/min", "bpm"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.OilBarrelPerSecond, new string[]{"bbl/s"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UkGallonPerDay, new string[]{"gal (U. K.)/d"}), - ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UkGallonPerHour, new string[]{"gal (imp.)/hour"}), + ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UkGallonPerHour, new string[]{"gal (imp.)/h"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UkGallonPerMinute, new string[]{"gal (imp.)/min"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UkGallonPerSecond, new string[]{"gal (imp.)/s"}), ("en-US", typeof(VolumeFlowUnit), (int)VolumeFlowUnit.UsGallonPerDay, new string[]{"gpd", "gal/d"}),