From 2709f86454d8264b090ddcc9a15b0529ae9cfdf2 Mon Sep 17 00:00:00 2001 From: Tristan Milnthorp <5693174+tmilnthorp@users.noreply.github.com> Date: Tue, 6 Oct 2026 11:21:30 -0400 Subject: [PATCH 1/8] Generate GetDefaultMappings as an array instead of an iterator Each yield-return method compiles to a hidden iterator class. Returning an array removes 129 of those classes (-194 KB in the net10.0 DLL) and lets QuantityInfo size its unit array up front. The return type is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012XKhDsyHDc5BHrmibxScqG --- .../UnitsNetGen/QuantityGenerator.cs | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs index 985a8f5ebb..d31bf06fba 100644 --- a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs +++ b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs @@ -227,7 +227,9 @@ public sealed class {quantityInfoClassName}: QuantityInfo<{_quantity.Name}, {_un /// /// An of representing the default unit mappings for {_quantity.Name}. public static IEnumerable> GetDefaultMappings() - {{"); + {{ + return new UnitDefinition<{_unitEnumName}>[] + {{"); foreach (Unit unit in _quantity.Units) { @@ -259,7 +261,7 @@ public sealed class {quantityInfoClassName}: QuantityInfo<{_quantity.Name}, {_un if (unit.SingularName == _quantity.BaseUnit) { Writer.WL($@" - yield return new ({_unitEnumName}.{unit.SingularName}, ""{unit.SingularName}"", ""{unit.PluralName}"", {baseUnitsFormat});"); + new ({_unitEnumName}.{unit.SingularName}, ""{unit.SingularName}"", ""{unit.PluralName}"", {baseUnitsFormat}),"); } else { @@ -268,22 +270,23 @@ public sealed class {quantityInfoClassName}: QuantityInfo<{_quantity.Name}, {_un if (expressionFromBaseToUnit.Terms.Count == 1 && expressionFromBaseToUnit.Degree == Fraction.One) { Writer.WL($@" - yield return new ({_unitEnumName}.{unit.SingularName}, ""{unit.SingularName}"", ""{unit.PluralName}"", {baseUnitsFormat}, - {expressionFromBaseToUnit.GetConversionExpressionFormat()} - );"); + new ({_unitEnumName}.{unit.SingularName}, ""{unit.SingularName}"", ""{unit.PluralName}"", {baseUnitsFormat}, + {expressionFromBaseToUnit.GetConversionExpressionFormat()} + ),"); } else { Writer.WL($@" - yield return new ({_unitEnumName}.{unit.SingularName}, ""{unit.SingularName}"", ""{unit.PluralName}"", {baseUnitsFormat}, - {expressionFromBaseToUnit.GetConversionExpressionFormat()}, - {unit.GetUnitToBaseConversionExpressionFormat()} - );"); + new ({_unitEnumName}.{unit.SingularName}, ""{unit.SingularName}"", ""{unit.PluralName}"", {baseUnitsFormat}, + {expressionFromBaseToUnit.GetConversionExpressionFormat()}, + {unit.GetUnitToBaseConversionExpressionFormat()} + ),"); } } } Writer.WL($@" + }}; }} }} "); From 6927559073919b77fa82f09ad6ab5d07611feb8b Mon Sep 17 00:00:00 2001 From: Tristan Milnthorp <5693174+tmilnthorp@users.noreply.github.com> Date: Tue, 6 Oct 2026 11:21:30 -0400 Subject: [PATCH 2/8] Regenerate code Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012XKhDsyHDc5BHrmibxScqG --- .../AbsorbedDoseOfIonizingRadiation.g.cs | 101 ++-- .../Quantities/Acceleration.g.cs | 83 ++-- .../Quantities/AmountOfSubstance.g.cs | 101 ++-- .../Quantities/AmplitudeRatio.g.cs | 29 +- UnitsNet/GeneratedCode/Quantities/Angle.g.cs | 89 ++-- UnitsNet/GeneratedCode/Quantities/Area.g.cs | 83 ++-- .../GeneratedCode/Quantities/AreaDensity.g.cs | 29 +- .../Quantities/AreaMomentOfInertia.g.cs | 35 +- .../Quantities/AreaPerLength.g.cs | 35 +- .../GeneratedCode/Quantities/BitRate.g.cs | 233 ++++----- .../BrakeSpecificFuelConsumption.g.cs | 17 +- .../CoefficientOfThermalExpansion.g.cs | 35 +- .../Quantities/Compressibility.g.cs | 41 +- .../GeneratedCode/Quantities/Density.g.cs | 335 ++++++------- .../Quantities/DoseAreaProduct.g.cs | 149 +++--- .../GeneratedCode/Quantities/Duration.g.cs | 77 +-- .../Quantities/DynamicViscosity.g.cs | 59 +-- .../Quantities/ElectricAdmittance.g.cs | 95 ++-- .../Quantities/ElectricApparentEnergy.g.cs | 17 +- .../Quantities/ElectricApparentPower.g.cs | 35 +- .../Quantities/ElectricCapacitance.g.cs | 41 +- .../Quantities/ElectricCharge.g.cs | 65 +-- .../Quantities/ElectricChargeDensity.g.cs | 5 +- .../Quantities/ElectricConductance.g.cs | 95 ++-- .../Quantities/ElectricConductivity.g.cs | 35 +- .../Quantities/ElectricCurrent.g.cs | 53 +- .../Quantities/ElectricCurrentDensity.g.cs | 17 +- .../Quantities/ElectricCurrentGradient.g.cs | 41 +- .../Quantities/ElectricField.g.cs | 5 +- .../Quantities/ElectricImpedance.g.cs | 47 +- .../Quantities/ElectricInductance.g.cs | 29 +- .../Quantities/ElectricPotential.g.cs | 35 +- .../ElectricPotentialChangeRate.g.cs | 119 ++--- .../Quantities/ElectricReactance.g.cs | 47 +- .../Quantities/ElectricReactiveEnergy.g.cs | 17 +- .../Quantities/ElectricReactivePower.g.cs | 23 +- .../Quantities/ElectricResistance.g.cs | 47 +- .../Quantities/ElectricResistivity.g.cs | 83 ++-- .../ElectricSurfaceChargeDensity.g.cs | 17 +- .../Quantities/ElectricSusceptance.g.cs | 95 ++-- UnitsNet/GeneratedCode/Quantities/Energy.g.cs | 239 ++++----- .../Quantities/EnergyDensity.g.cs | 71 +-- .../GeneratedCode/Quantities/Entropy.g.cs | 41 +- .../Quantities/FluidResistance.g.cs | 113 ++--- UnitsNet/GeneratedCode/Quantities/Force.g.cs | 95 ++-- .../Quantities/ForceChangeRate.g.cs | 89 ++-- .../Quantities/ForcePerLength.g.cs | 227 ++++----- .../GeneratedCode/Quantities/Frequency.g.cs | 71 +-- .../Quantities/FuelEfficiency.g.cs | 25 +- .../GeneratedCode/Quantities/HeatFlux.g.cs | 149 +++--- .../Quantities/HeatTransferCoefficient.g.cs | 35 +- .../GeneratedCode/Quantities/Illuminance.g.cs | 23 +- .../GeneratedCode/Quantities/Impulse.g.cs | 77 +-- .../GeneratedCode/Quantities/Information.g.cs | 233 ++++----- .../GeneratedCode/Quantities/Irradiance.g.cs | 83 ++-- .../GeneratedCode/Quantities/Irradiation.g.cs | 53 +- UnitsNet/GeneratedCode/Quantities/Jerk.g.cs | 65 +-- .../Quantities/KinematicViscosity.g.cs | 53 +- .../GeneratedCode/Quantities/LeakRate.g.cs | 23 +- UnitsNet/GeneratedCode/Quantities/Length.g.cs | 251 +++++----- UnitsNet/GeneratedCode/Quantities/Level.g.cs | 11 +- .../Quantities/LinearDensity.g.cs | 107 ++-- .../Quantities/LinearPowerDensity.g.cs | 149 +++--- .../GeneratedCode/Quantities/Luminance.g.cs | 59 +-- .../GeneratedCode/Quantities/Luminosity.g.cs | 83 ++-- .../Quantities/LuminousFlux.g.cs | 5 +- .../Quantities/LuminousIntensity.g.cs | 5 +- .../Quantities/MagneticField.g.cs | 35 +- .../Quantities/MagneticFlux.g.cs | 5 +- .../Quantities/Magnetization.g.cs | 5 +- UnitsNet/GeneratedCode/Quantities/Mass.g.cs | 185 +++---- .../Quantities/MassConcentration.g.cs | 293 +++++------ .../GeneratedCode/Quantities/MassFlow.g.cs | 197 ++++---- .../GeneratedCode/Quantities/MassFlux.g.cs | 71 +-- .../Quantities/MassFraction.g.cs | 143 +++--- .../Quantities/MassMomentOfInertia.g.cs | 167 ++++--- .../GeneratedCode/Quantities/Molality.g.cs | 17 +- .../GeneratedCode/Quantities/MolarEnergy.g.cs | 17 +- .../Quantities/MolarEntropy.g.cs | 17 +- .../GeneratedCode/Quantities/MolarFlow.g.cs | 53 +- .../GeneratedCode/Quantities/MolarMass.g.cs | 83 ++-- .../GeneratedCode/Quantities/Molarity.g.cs | 65 +-- .../Quantities/Permeability.g.cs | 5 +- .../Quantities/Permittivity.g.cs | 5 +- .../Quantities/PorousMediumPermeability.g.cs | 29 +- UnitsNet/GeneratedCode/Quantities/Power.g.cs | 161 +++--- .../Quantities/PowerDensity.g.cs | 275 ++++++----- .../GeneratedCode/Quantities/PowerRatio.g.cs | 13 +- .../GeneratedCode/Quantities/Pressure.g.cs | 299 +++++------ .../Quantities/PressureChangeRate.g.cs | 107 ++-- .../Quantities/RadiationEquivalentDose.g.cs | 35 +- .../RadiationEquivalentDoseRate.g.cs | 59 +-- .../Quantities/RadiationExposure.g.cs | 47 +- .../Quantities/Radioactivity.g.cs | 173 +++---- UnitsNet/GeneratedCode/Quantities/Ratio.g.cs | 35 +- .../Quantities/RatioChangeRate.g.cs | 11 +- .../Quantities/ReciprocalArea.g.cs | 65 +-- .../Quantities/ReciprocalLength.g.cs | 59 +-- .../Quantities/RelativeHumidity.g.cs | 5 +- .../Quantities/RotationalAcceleration.g.cs | 23 +- .../Quantities/RotationalSpeed.g.cs | 77 +-- .../Quantities/RotationalStiffness.g.cs | 203 ++++---- .../RotationalStiffnessPerLength.g.cs | 29 +- UnitsNet/GeneratedCode/Quantities/Scalar.g.cs | 5 +- .../GeneratedCode/Quantities/SolidAngle.g.cs | 5 +- .../Quantities/SpecificEnergy.g.cs | 179 +++---- .../Quantities/SpecificEntropy.g.cs | 53 +- .../Quantities/SpecificFuelConsumption.g.cs | 23 +- .../Quantities/SpecificVolume.g.cs | 17 +- .../Quantities/SpecificWeight.g.cs | 101 ++-- UnitsNet/GeneratedCode/Quantities/Speed.g.cs | 197 ++++---- .../Quantities/StandardVolumeFlow.g.cs | 53 +- .../GeneratedCode/Quantities/Temperature.g.cs | 73 +-- .../Quantities/TemperatureChangeRate.g.cs | 101 ++-- .../Quantities/TemperatureDelta.g.cs | 53 +- .../Quantities/TemperatureGradient.g.cs | 23 +- .../Quantities/ThermalConductivity.g.cs | 17 +- .../Quantities/ThermalInsulance.g.cs | 41 +- .../Quantities/ThermalResistance.g.cs | 11 +- UnitsNet/GeneratedCode/Quantities/Torque.g.cs | 161 +++--- .../GeneratedCode/Quantities/Turbidity.g.cs | 5 +- .../GeneratedCode/Quantities/VitaminA.g.cs | 5 +- UnitsNet/GeneratedCode/Quantities/Volume.g.cs | 323 ++++++------ .../Quantities/VolumeConcentration.g.cs | 119 ++--- .../GeneratedCode/Quantities/VolumeFlow.g.cs | 467 +++++++++--------- .../Quantities/VolumeFlowPerArea.g.cs | 11 +- .../Quantities/VolumePerLength.g.cs | 53 +- .../Quantities/VolumetricHeatCapacity.g.cs | 53 +- .../Quantities/WarpingMomentOfInertia.g.cs | 35 +- 129 files changed, 5334 insertions(+), 4947 deletions(-) diff --git a/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs b/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs index f4fd3d7330..7ec479a792 100644 --- a/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs @@ -120,55 +120,58 @@ public static AbsorbedDoseOfIonizingRadiationInfo CreateDefault(FuncAn of representing the default unit mappings for AbsorbedDoseOfIonizingRadiation. public static IEnumerable> GetDefaultMappings() { - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Centigray, "Centigray", "Centigrays", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), - 100 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Decigray, "Decigray", "Decigrays", BaseUnits.Undefined, - 10 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Femtogray, "Femtogray", "Femtograys", BaseUnits.Undefined, - 1000000000000000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Gigagray, "Gigagray", "Gigagrays", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Gray, "Gray", "Grays", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Kilogray, "Kilogray", "Kilograys", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Kilorad, "Kilorad", "Kilorads", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Megagray, "Megagray", "Megagrays", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Megarad, "Megarad", "Megarads", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Microgray, "Microgray", "Micrograys", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Milligray, "Milligray", "Milligrays", BaseUnits.Undefined, - 1000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Millirad, "Millirad", "Millirads", BaseUnits.Undefined, - 100000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Nanogray, "Nanogray", "Nanograys", BaseUnits.Undefined, - 1000000000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Petagray, "Petagray", "Petagrays", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Picogray, "Picogray", "Picograys", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Rad, "Rad", "Rads", BaseUnits.Undefined, - 100 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Teragray, "Teragray", "Teragrays", new BaseUnits(length: LengthUnit.Megameter, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (AbsorbedDoseOfIonizingRadiationUnit.Centigray, "Centigray", "Centigrays", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), + 100 + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Decigray, "Decigray", "Decigrays", BaseUnits.Undefined, + 10 + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Femtogray, "Femtogray", "Femtograys", BaseUnits.Undefined, + 1000000000000000 + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Gigagray, "Gigagray", "Gigagrays", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Gray, "Gray", "Grays", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (AbsorbedDoseOfIonizingRadiationUnit.Kilogray, "Kilogray", "Kilograys", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Kilorad, "Kilorad", "Kilorads", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Megagray, "Megagray", "Megagrays", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Megarad, "Megarad", "Megarads", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Microgray, "Microgray", "Micrograys", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), + 1000000 + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Milligray, "Milligray", "Milligrays", BaseUnits.Undefined, + 1000 + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Millirad, "Millirad", "Millirads", BaseUnits.Undefined, + 100000 + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Nanogray, "Nanogray", "Nanograys", BaseUnits.Undefined, + 1000000000 + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Petagray, "Petagray", "Petagrays", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000) + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Picogray, "Picogray", "Picograys", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), + 1000000000000 + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Rad, "Rad", "Rads", BaseUnits.Undefined, + 100 + ), + new (AbsorbedDoseOfIonizingRadiationUnit.Teragray, "Teragray", "Teragrays", new BaseUnits(length: LengthUnit.Megameter, time: DurationUnit.Second), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs index debceb5f65..8175e671b7 100644 --- a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs @@ -123,46 +123,49 @@ public static AccelerationInfo CreateDefault(FuncAn of representing the default unit mappings for Acceleration. public static IEnumerable> GetDefaultMappings() { - yield return new (AccelerationUnit.CentimeterPerSecondSquared, "CentimeterPerSecondSquared", "CentimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), - 100 - ); - yield return new (AccelerationUnit.DecimeterPerSecondSquared, "DecimeterPerSecondSquared", "DecimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), - 10 - ); - yield return new (AccelerationUnit.FootPerSecondSquared, "FootPerSecondSquared", "FeetPerSecondSquared", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1250, 381) - ); - yield return new (AccelerationUnit.InchPerSecondSquared, "InchPerSecondSquared", "InchesPerSecondSquared", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), - new QuantityValue(5000, 127) - ); - yield return new (AccelerationUnit.KilometerPerSecondSquared, "KilometerPerSecondSquared", "KilometersPerSecondSquared", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (AccelerationUnit.KnotPerHour, "KnotPerHour", "KnotsPerHour", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Hour), - new QuantityValue(3240000, 463) - ); - yield return new (AccelerationUnit.KnotPerMinute, "KnotPerMinute", "KnotsPerMinute", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Minute), - new QuantityValue(54000, 463) - ); - yield return new (AccelerationUnit.KnotPerSecond, "KnotPerSecond", "KnotsPerSecond", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Second), - new QuantityValue(900, 463) - ); - yield return new (AccelerationUnit.MeterPerSecondSquared, "MeterPerSecondSquared", "MetersPerSecondSquared", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (AccelerationUnit.MicrometerPerSecondSquared, "MicrometerPerSecondSquared", "MicrometersPerSecondSquared", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), - 1000000 - ); - yield return new (AccelerationUnit.MillimeterPerSecondSquared, "MillimeterPerSecondSquared", "MillimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000 - ); - yield return new (AccelerationUnit.MillistandardGravity, "MillistandardGravity", "MillistandardGravity", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (AccelerationUnit.NanometerPerSecondSquared, "NanometerPerSecondSquared", "NanometersPerSecondSquared", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), - 1000000000 - ); - yield return new (AccelerationUnit.StandardGravity, "StandardGravity", "StandardGravity", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); + return new UnitDefinition[] + { + new (AccelerationUnit.CentimeterPerSecondSquared, "CentimeterPerSecondSquared", "CentimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), + 100 + ), + new (AccelerationUnit.DecimeterPerSecondSquared, "DecimeterPerSecondSquared", "DecimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), + 10 + ), + new (AccelerationUnit.FootPerSecondSquared, "FootPerSecondSquared", "FeetPerSecondSquared", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), + new QuantityValue(1250, 381) + ), + new (AccelerationUnit.InchPerSecondSquared, "InchPerSecondSquared", "InchesPerSecondSquared", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), + new QuantityValue(5000, 127) + ), + new (AccelerationUnit.KilometerPerSecondSquared, "KilometerPerSecondSquared", "KilometersPerSecondSquared", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (AccelerationUnit.KnotPerHour, "KnotPerHour", "KnotsPerHour", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Hour), + new QuantityValue(3240000, 463) + ), + new (AccelerationUnit.KnotPerMinute, "KnotPerMinute", "KnotsPerMinute", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Minute), + new QuantityValue(54000, 463) + ), + new (AccelerationUnit.KnotPerSecond, "KnotPerSecond", "KnotsPerSecond", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Second), + new QuantityValue(900, 463) + ), + new (AccelerationUnit.MeterPerSecondSquared, "MeterPerSecondSquared", "MetersPerSecondSquared", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (AccelerationUnit.MicrometerPerSecondSquared, "MicrometerPerSecondSquared", "MicrometersPerSecondSquared", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), + 1000000 + ), + new (AccelerationUnit.MillimeterPerSecondSquared, "MillimeterPerSecondSquared", "MillimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), + 1000 + ), + new (AccelerationUnit.MillistandardGravity, "MillistandardGravity", "MillistandardGravity", BaseUnits.Undefined, + new QuantityValue(20000000, 196133) + ), + new (AccelerationUnit.NanometerPerSecondSquared, "NanometerPerSecondSquared", "NanometersPerSecondSquared", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), + 1000000000 + ), + new (AccelerationUnit.StandardGravity, "StandardGravity", "StandardGravity", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs index 11f278d0af..0f7e39c480 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs @@ -122,55 +122,58 @@ public static AmountOfSubstanceInfo CreateDefault(FuncAn of representing the default unit mappings for AmountOfSubstance. public static IEnumerable> GetDefaultMappings() { - yield return new (AmountOfSubstanceUnit.Centimole, "Centimole", "Centimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Centimole), - 100 - ); - yield return new (AmountOfSubstanceUnit.CentipoundMole, "CentipoundMole", "CentipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.CentipoundMole), - new QuantityValue(10000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Decimole, "Decimole", "Decimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Decimole), - 10 - ); - yield return new (AmountOfSubstanceUnit.DecipoundMole, "DecipoundMole", "DecipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.DecipoundMole), - new QuantityValue(1000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Femtomole, "Femtomole", "Femtomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Femtomole), - 1000000000000000 - ); - yield return new (AmountOfSubstanceUnit.Kilomole, "Kilomole", "Kilomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(1, 1000) - ); - yield return new (AmountOfSubstanceUnit.KilopoundMole, "KilopoundMole", "KilopoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.KilopoundMole), - new QuantityValue(100, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Megamole, "Megamole", "Megamoles", new BaseUnits(amount: AmountOfSubstanceUnit.Megamole), - new QuantityValue(1, 1000000) - ); - yield return new (AmountOfSubstanceUnit.Micromole, "Micromole", "Micromoles", new BaseUnits(amount: AmountOfSubstanceUnit.Micromole), - 1000000 - ); - yield return new (AmountOfSubstanceUnit.MicropoundMole, "MicropoundMole", "MicropoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.MicropoundMole), - new QuantityValue(100000000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Millimole, "Millimole", "Millimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Millimole), - 1000 - ); - yield return new (AmountOfSubstanceUnit.MillipoundMole, "MillipoundMole", "MillipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.MillipoundMole), - new QuantityValue(100000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Mole, "Mole", "Moles", new BaseUnits(amount: AmountOfSubstanceUnit.Mole)); - yield return new (AmountOfSubstanceUnit.Nanomole, "Nanomole", "Nanomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Nanomole), - 1000000000 - ); - yield return new (AmountOfSubstanceUnit.NanopoundMole, "NanopoundMole", "NanopoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.NanopoundMole), - new QuantityValue(100000000000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Picomole, "Picomole", "Picomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Picomole), - 1000000000000 - ); - yield return new (AmountOfSubstanceUnit.PoundMole, "PoundMole", "PoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(100000, 45359237) - ); + return new UnitDefinition[] + { + new (AmountOfSubstanceUnit.Centimole, "Centimole", "Centimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Centimole), + 100 + ), + new (AmountOfSubstanceUnit.CentipoundMole, "CentipoundMole", "CentipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.CentipoundMole), + new QuantityValue(10000000, 45359237) + ), + new (AmountOfSubstanceUnit.Decimole, "Decimole", "Decimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Decimole), + 10 + ), + new (AmountOfSubstanceUnit.DecipoundMole, "DecipoundMole", "DecipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.DecipoundMole), + new QuantityValue(1000000, 45359237) + ), + new (AmountOfSubstanceUnit.Femtomole, "Femtomole", "Femtomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Femtomole), + 1000000000000000 + ), + new (AmountOfSubstanceUnit.Kilomole, "Kilomole", "Kilomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Kilomole), + new QuantityValue(1, 1000) + ), + new (AmountOfSubstanceUnit.KilopoundMole, "KilopoundMole", "KilopoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.KilopoundMole), + new QuantityValue(100, 45359237) + ), + new (AmountOfSubstanceUnit.Megamole, "Megamole", "Megamoles", new BaseUnits(amount: AmountOfSubstanceUnit.Megamole), + new QuantityValue(1, 1000000) + ), + new (AmountOfSubstanceUnit.Micromole, "Micromole", "Micromoles", new BaseUnits(amount: AmountOfSubstanceUnit.Micromole), + 1000000 + ), + new (AmountOfSubstanceUnit.MicropoundMole, "MicropoundMole", "MicropoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.MicropoundMole), + new QuantityValue(100000000000, 45359237) + ), + new (AmountOfSubstanceUnit.Millimole, "Millimole", "Millimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Millimole), + 1000 + ), + new (AmountOfSubstanceUnit.MillipoundMole, "MillipoundMole", "MillipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.MillipoundMole), + new QuantityValue(100000000, 45359237) + ), + new (AmountOfSubstanceUnit.Mole, "Mole", "Moles", new BaseUnits(amount: AmountOfSubstanceUnit.Mole)), + new (AmountOfSubstanceUnit.Nanomole, "Nanomole", "Nanomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Nanomole), + 1000000000 + ), + new (AmountOfSubstanceUnit.NanopoundMole, "NanopoundMole", "NanopoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.NanopoundMole), + new QuantityValue(100000000000000, 45359237) + ), + new (AmountOfSubstanceUnit.Picomole, "Picomole", "Picomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Picomole), + 1000000000000 + ), + new (AmountOfSubstanceUnit.PoundMole, "PoundMole", "PoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.PoundMole), + new QuantityValue(100000, 45359237) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs index 285feba890..7604a50848 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs @@ -116,19 +116,22 @@ public static AmplitudeRatioInfo CreateDefault(FuncAn of representing the default unit mappings for AmplitudeRatio. public static IEnumerable> GetDefaultMappings() { - yield return new (AmplitudeRatioUnit.DecibelMicrovolt, "DecibelMicrovolt", "DecibelMicrovolts", BaseUnits.Undefined, - new ConversionExpression(coefficient: 1, constantTerm: 120), - new ConversionExpression(coefficient: 1, constantTerm: -120) - ); - yield return new (AmplitudeRatioUnit.DecibelMillivolt, "DecibelMillivolt", "DecibelMillivolts", BaseUnits.Undefined, - new ConversionExpression(coefficient: 1, constantTerm: 60), - new ConversionExpression(coefficient: 1, constantTerm: -60) - ); - yield return new (AmplitudeRatioUnit.DecibelUnloaded, "DecibelUnloaded", "DecibelsUnloaded", BaseUnits.Undefined, - new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(2218487499, 1000000000)), - new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(-2218487499, 1000000000)) - ); - yield return new (AmplitudeRatioUnit.DecibelVolt, "DecibelVolt", "DecibelVolts", BaseUnits.Undefined); + return new UnitDefinition[] + { + new (AmplitudeRatioUnit.DecibelMicrovolt, "DecibelMicrovolt", "DecibelMicrovolts", BaseUnits.Undefined, + new ConversionExpression(coefficient: 1, constantTerm: 120), + new ConversionExpression(coefficient: 1, constantTerm: -120) + ), + new (AmplitudeRatioUnit.DecibelMillivolt, "DecibelMillivolt", "DecibelMillivolts", BaseUnits.Undefined, + new ConversionExpression(coefficient: 1, constantTerm: 60), + new ConversionExpression(coefficient: 1, constantTerm: -60) + ), + new (AmplitudeRatioUnit.DecibelUnloaded, "DecibelUnloaded", "DecibelsUnloaded", BaseUnits.Undefined, + new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(2218487499, 1000000000)), + new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(-2218487499, 1000000000)) + ), + new (AmplitudeRatioUnit.DecibelVolt, "DecibelVolt", "DecibelVolts", BaseUnits.Undefined), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs index f41544faa7..d7e7d60f2a 100644 --- a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs @@ -119,49 +119,52 @@ public static AngleInfo CreateDefault(Func /// An of representing the default unit mappings for Angle. public static IEnumerable> GetDefaultMappings() { - yield return new (AngleUnit.Arcminute, "Arcminute", "Arcminutes", BaseUnits.Undefined, - new QuantityValue(new BigInteger(108) * QuantityValue.PowerOfTen(17), 3141592653589793) - ); - yield return new (AngleUnit.Arcsecond, "Arcsecond", "Arcseconds", BaseUnits.Undefined, - new QuantityValue(new BigInteger(648) * QuantityValue.PowerOfTen(18), 3141592653589793) - ); - yield return new (AngleUnit.Centiradian, "Centiradian", "Centiradians", BaseUnits.Undefined, - 100 - ); - yield return new (AngleUnit.Deciradian, "Deciradian", "Deciradians", BaseUnits.Undefined, - 10 - ); - yield return new (AngleUnit.Degree, "Degree", "Degrees", BaseUnits.Undefined, - new QuantityValue(180000000000000000, 3141592653589793) - ); - yield return new (AngleUnit.Gradian, "Gradian", "Gradians", BaseUnits.Undefined, - new QuantityValue(200000000000000000, 3141592653589793) - ); - yield return new (AngleUnit.Microdegree, "Microdegree", "Microdegrees", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(22), 3141592653589793) - ); - yield return new (AngleUnit.Microradian, "Microradian", "Microradians", BaseUnits.Undefined, - 1000000 - ); - yield return new (AngleUnit.Millidegree, "Millidegree", "Millidegrees", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(19), 3141592653589793) - ); - yield return new (AngleUnit.Milliradian, "Milliradian", "Milliradians", BaseUnits.Undefined, - 1000 - ); - yield return new (AngleUnit.Nanodegree, "Nanodegree", "Nanodegrees", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(25), 3141592653589793) - ); - yield return new (AngleUnit.Nanoradian, "Nanoradian", "Nanoradians", BaseUnits.Undefined, - 1000000000 - ); - yield return new (AngleUnit.NatoMil, "NatoMil", "NatoMils", BaseUnits.Undefined, - new QuantityValue(3200000000000000000, 3141592653589793) - ); - yield return new (AngleUnit.Radian, "Radian", "Radians", BaseUnits.Undefined); - yield return new (AngleUnit.Revolution, "Revolution", "Revolutions", BaseUnits.Undefined, - new QuantityValue(500000000000000, 3141592653589793) - ); + return new UnitDefinition[] + { + new (AngleUnit.Arcminute, "Arcminute", "Arcminutes", BaseUnits.Undefined, + new QuantityValue(new BigInteger(108) * QuantityValue.PowerOfTen(17), 3141592653589793) + ), + new (AngleUnit.Arcsecond, "Arcsecond", "Arcseconds", BaseUnits.Undefined, + new QuantityValue(new BigInteger(648) * QuantityValue.PowerOfTen(18), 3141592653589793) + ), + new (AngleUnit.Centiradian, "Centiradian", "Centiradians", BaseUnits.Undefined, + 100 + ), + new (AngleUnit.Deciradian, "Deciradian", "Deciradians", BaseUnits.Undefined, + 10 + ), + new (AngleUnit.Degree, "Degree", "Degrees", BaseUnits.Undefined, + new QuantityValue(180000000000000000, 3141592653589793) + ), + new (AngleUnit.Gradian, "Gradian", "Gradians", BaseUnits.Undefined, + new QuantityValue(200000000000000000, 3141592653589793) + ), + new (AngleUnit.Microdegree, "Microdegree", "Microdegrees", BaseUnits.Undefined, + new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(22), 3141592653589793) + ), + new (AngleUnit.Microradian, "Microradian", "Microradians", BaseUnits.Undefined, + 1000000 + ), + new (AngleUnit.Millidegree, "Millidegree", "Millidegrees", BaseUnits.Undefined, + new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(19), 3141592653589793) + ), + new (AngleUnit.Milliradian, "Milliradian", "Milliradians", BaseUnits.Undefined, + 1000 + ), + new (AngleUnit.Nanodegree, "Nanodegree", "Nanodegrees", BaseUnits.Undefined, + new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(25), 3141592653589793) + ), + new (AngleUnit.Nanoradian, "Nanoradian", "Nanoradians", BaseUnits.Undefined, + 1000000000 + ), + new (AngleUnit.NatoMil, "NatoMil", "NatoMils", BaseUnits.Undefined, + new QuantityValue(3200000000000000000, 3141592653589793) + ), + new (AngleUnit.Radian, "Radian", "Radians", BaseUnits.Undefined), + new (AngleUnit.Revolution, "Revolution", "Revolutions", BaseUnits.Undefined, + new QuantityValue(500000000000000, 3141592653589793) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Area.g.cs b/UnitsNet/GeneratedCode/Quantities/Area.g.cs index 0db6e3a84a..416d44a4fb 100644 --- a/UnitsNet/GeneratedCode/Quantities/Area.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Area.g.cs @@ -138,46 +138,49 @@ public static AreaInfo CreateDefault(Func>, /// An of representing the default unit mappings for Area. public static IEnumerable> GetDefaultMappings() { - yield return new (AreaUnit.Acre, "Acre", "Acres", BaseUnits.Undefined, - new QuantityValue(78125, 316160658) - ); - yield return new (AreaUnit.Hectare, "Hectare", "Hectares", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (AreaUnit.SquareCentimeter, "SquareCentimeter", "SquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - 10000 - ); - yield return new (AreaUnit.SquareDecimeter, "SquareDecimeter", "SquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter), - 100 - ); - yield return new (AreaUnit.SquareFoot, "SquareFoot", "SquareFeet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(1562500, 145161) - ); - yield return new (AreaUnit.SquareInch, "SquareInch", "SquareInches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(25000000, 16129) - ); - yield return new (AreaUnit.SquareKilometer, "SquareKilometer", "SquareKilometers", new BaseUnits(length: LengthUnit.Kilometer), - new QuantityValue(1, 1000000) - ); - yield return new (AreaUnit.SquareMeter, "SquareMeter", "SquareMeters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (AreaUnit.SquareMicrometer, "SquareMicrometer", "SquareMicrometers", new BaseUnits(length: LengthUnit.Micrometer), - 1000000000000 - ); - yield return new (AreaUnit.SquareMile, "SquareMile", "SquareMiles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(15625, 40468564224) - ); - yield return new (AreaUnit.SquareMillimeter, "SquareMillimeter", "SquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter), - 1000000 - ); - yield return new (AreaUnit.SquareNauticalMile, "SquareNauticalMile", "SquareNauticalMiles", BaseUnits.Undefined, - new QuantityValue(1, 3429904) - ); - yield return new (AreaUnit.SquareYard, "SquareYard", "SquareYards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1562500, 1306449) - ); - yield return new (AreaUnit.UsSurveySquareFoot, "UsSurveySquareFoot", "UsSurveySquareFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), - new QuantityValue(15499969, 1440000) - ); + return new UnitDefinition[] + { + new (AreaUnit.Acre, "Acre", "Acres", BaseUnits.Undefined, + new QuantityValue(78125, 316160658) + ), + new (AreaUnit.Hectare, "Hectare", "Hectares", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (AreaUnit.SquareCentimeter, "SquareCentimeter", "SquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), + 10000 + ), + new (AreaUnit.SquareDecimeter, "SquareDecimeter", "SquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter), + 100 + ), + new (AreaUnit.SquareFoot, "SquareFoot", "SquareFeet", new BaseUnits(length: LengthUnit.Foot), + new QuantityValue(1562500, 145161) + ), + new (AreaUnit.SquareInch, "SquareInch", "SquareInches", new BaseUnits(length: LengthUnit.Inch), + new QuantityValue(25000000, 16129) + ), + new (AreaUnit.SquareKilometer, "SquareKilometer", "SquareKilometers", new BaseUnits(length: LengthUnit.Kilometer), + new QuantityValue(1, 1000000) + ), + new (AreaUnit.SquareMeter, "SquareMeter", "SquareMeters", new BaseUnits(length: LengthUnit.Meter)), + new (AreaUnit.SquareMicrometer, "SquareMicrometer", "SquareMicrometers", new BaseUnits(length: LengthUnit.Micrometer), + 1000000000000 + ), + new (AreaUnit.SquareMile, "SquareMile", "SquareMiles", new BaseUnits(length: LengthUnit.Mile), + new QuantityValue(15625, 40468564224) + ), + new (AreaUnit.SquareMillimeter, "SquareMillimeter", "SquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter), + 1000000 + ), + new (AreaUnit.SquareNauticalMile, "SquareNauticalMile", "SquareNauticalMiles", BaseUnits.Undefined, + new QuantityValue(1, 3429904) + ), + new (AreaUnit.SquareYard, "SquareYard", "SquareYards", new BaseUnits(length: LengthUnit.Yard), + new QuantityValue(1562500, 1306449) + ), + new (AreaUnit.UsSurveySquareFoot, "UsSurveySquareFoot", "UsSurveySquareFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), + new QuantityValue(15499969, 1440000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs index 5e304a5a93..037f5791a2 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs @@ -121,19 +121,22 @@ public static AreaDensityInfo CreateDefault(FuncAn of representing the default unit mappings for AreaDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (AreaDensityUnit.GramPerSquareMeter, "GramPerSquareMeter", "GramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (AreaDensityUnit.KilogramPerSquareMeter, "KilogramPerSquareMeter", "KilogramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (AreaDensityUnit.MilligramPerSquareMeter, "MilligramPerSquareMeter", "MilligramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (AreaDensityUnit.PoundPerSquareFoot, "PoundPerSquareFoot", "PoundsPerSquareFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(9290304, 45359237) - ); - yield return new (AreaDensityUnit.PoundPerThousandSquareFeet, "PoundPerThousandSquareFeet", "PoundsPerThousandSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(9290304000, 45359237) - ); + return new UnitDefinition[] + { + new (AreaDensityUnit.GramPerSquareMeter, "GramPerSquareMeter", "GramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), + 1000 + ), + new (AreaDensityUnit.KilogramPerSquareMeter, "KilogramPerSquareMeter", "KilogramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)), + new (AreaDensityUnit.MilligramPerSquareMeter, "MilligramPerSquareMeter", "MilligramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), + 1000000 + ), + new (AreaDensityUnit.PoundPerSquareFoot, "PoundPerSquareFoot", "PoundsPerSquareFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), + new QuantityValue(9290304, 45359237) + ), + new (AreaDensityUnit.PoundPerThousandSquareFeet, "PoundPerThousandSquareFeet", "PoundsPerThousandSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), + new QuantityValue(9290304000, 45359237) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs index 9d040c557d..004d887fd9 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs @@ -119,22 +119,25 @@ public static AreaMomentOfInertiaInfo CreateDefault(FuncAn of representing the default unit mappings for AreaMomentOfInertia. public static IEnumerable> GetDefaultMappings() { - yield return new (AreaMomentOfInertiaUnit.CentimeterToTheFourth, "CentimeterToTheFourth", "CentimetersToTheFourth", new BaseUnits(length: LengthUnit.Centimeter), - 100000000 - ); - yield return new (AreaMomentOfInertiaUnit.DecimeterToTheFourth, "DecimeterToTheFourth", "DecimetersToTheFourth", new BaseUnits(length: LengthUnit.Decimeter), - 10000 - ); - yield return new (AreaMomentOfInertiaUnit.FootToTheFourth, "FootToTheFourth", "FeetToTheFourth", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(2441406250000, 21071715921) - ); - yield return new (AreaMomentOfInertiaUnit.InchToTheFourth, "InchToTheFourth", "InchesToTheFourth", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(625000000000000, 260144641) - ); - yield return new (AreaMomentOfInertiaUnit.MeterToTheFourth, "MeterToTheFourth", "MetersToTheFourth", new BaseUnits(length: LengthUnit.Meter)); - yield return new (AreaMomentOfInertiaUnit.MillimeterToTheFourth, "MillimeterToTheFourth", "MillimetersToTheFourth", new BaseUnits(length: LengthUnit.Millimeter), - 1000000000000 - ); + return new UnitDefinition[] + { + new (AreaMomentOfInertiaUnit.CentimeterToTheFourth, "CentimeterToTheFourth", "CentimetersToTheFourth", new BaseUnits(length: LengthUnit.Centimeter), + 100000000 + ), + new (AreaMomentOfInertiaUnit.DecimeterToTheFourth, "DecimeterToTheFourth", "DecimetersToTheFourth", new BaseUnits(length: LengthUnit.Decimeter), + 10000 + ), + new (AreaMomentOfInertiaUnit.FootToTheFourth, "FootToTheFourth", "FeetToTheFourth", new BaseUnits(length: LengthUnit.Foot), + new QuantityValue(2441406250000, 21071715921) + ), + new (AreaMomentOfInertiaUnit.InchToTheFourth, "InchToTheFourth", "InchesToTheFourth", new BaseUnits(length: LengthUnit.Inch), + new QuantityValue(625000000000000, 260144641) + ), + new (AreaMomentOfInertiaUnit.MeterToTheFourth, "MeterToTheFourth", "MetersToTheFourth", new BaseUnits(length: LengthUnit.Meter)), + new (AreaMomentOfInertiaUnit.MillimeterToTheFourth, "MillimeterToTheFourth", "MillimetersToTheFourth", new BaseUnits(length: LengthUnit.Millimeter), + 1000000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs index cab8674135..e476419c6f 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs @@ -117,22 +117,25 @@ public static AreaPerLengthInfo CreateDefault(FuncAn of representing the default unit mappings for AreaPerLength. public static IEnumerable> GetDefaultMappings() { - yield return new (AreaPerLengthUnit.SquareCentimeterPerMeter, "SquareCentimeterPerMeter", "SquareCentimetersPerMeter", BaseUnits.Undefined, - 10000 - ); - yield return new (AreaPerLengthUnit.SquareFootPerFoot, "SquareFootPerFoot", "SquareFeetPerFoot", BaseUnits.Undefined, - new QuantityValue(1250, 381) - ); - yield return new (AreaPerLengthUnit.SquareInchPerFoot, "SquareInchPerFoot", "SquareInchesPerFoot", BaseUnits.Undefined, - new QuantityValue(60000, 127) - ); - yield return new (AreaPerLengthUnit.SquareInchPerInch, "SquareInchPerInch", "SquareInchesPerInch", BaseUnits.Undefined, - new QuantityValue(5000, 127) - ); - yield return new (AreaPerLengthUnit.SquareMeterPerMeter, "SquareMeterPerMeter", "SquareMetersPerMeter", new BaseUnits(length: LengthUnit.Meter)); - yield return new (AreaPerLengthUnit.SquareMillimeterPerMeter, "SquareMillimeterPerMeter", "SquareMillimetersPerMeter", BaseUnits.Undefined, - 1000000 - ); + return new UnitDefinition[] + { + new (AreaPerLengthUnit.SquareCentimeterPerMeter, "SquareCentimeterPerMeter", "SquareCentimetersPerMeter", BaseUnits.Undefined, + 10000 + ), + new (AreaPerLengthUnit.SquareFootPerFoot, "SquareFootPerFoot", "SquareFeetPerFoot", BaseUnits.Undefined, + new QuantityValue(1250, 381) + ), + new (AreaPerLengthUnit.SquareInchPerFoot, "SquareInchPerFoot", "SquareInchesPerFoot", BaseUnits.Undefined, + new QuantityValue(60000, 127) + ), + new (AreaPerLengthUnit.SquareInchPerInch, "SquareInchPerInch", "SquareInchesPerInch", BaseUnits.Undefined, + new QuantityValue(5000, 127) + ), + new (AreaPerLengthUnit.SquareMeterPerMeter, "SquareMeterPerMeter", "SquareMetersPerMeter", new BaseUnits(length: LengthUnit.Meter)), + new (AreaPerLengthUnit.SquareMillimeterPerMeter, "SquareMillimeterPerMeter", "SquareMillimetersPerMeter", BaseUnits.Undefined, + 1000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs index c94befb97b..380f56f7d6 100644 --- a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs @@ -122,121 +122,124 @@ public static BitRateInfo CreateDefault(FuncAn of representing the default unit mappings for BitRate. public static IEnumerable> GetDefaultMappings() { - yield return new (BitRateUnit.BitPerSecond, "BitPerSecond", "BitsPerSecond", new BaseUnits(time: DurationUnit.Second)); - yield return new (BitRateUnit.BytePerSecond, "BytePerSecond", "BytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8) - ); - yield return new (BitRateUnit.ExabitPerSecond, "ExabitPerSecond", "ExabitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000000) - ); - yield return new (BitRateUnit.ExabytePerSecond, "ExabytePerSecond", "ExabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000000) - ); - yield return new (BitRateUnit.ExaoctetPerSecond, "ExaoctetPerSecond", "ExaoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000000) - ); - yield return new (BitRateUnit.ExbibitPerSecond, "ExbibitPerSecond", "ExbibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1152921504606846976) - ); - yield return new (BitRateUnit.ExbibytePerSecond, "ExbibytePerSecond", "ExbibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, BigInteger.Pow(2, 63)) - ); - yield return new (BitRateUnit.ExbioctetPerSecond, "ExbioctetPerSecond", "ExbioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, BigInteger.Pow(2, 63)) - ); - yield return new (BitRateUnit.GibibitPerSecond, "GibibitPerSecond", "GibibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1073741824) - ); - yield return new (BitRateUnit.GibibytePerSecond, "GibibytePerSecond", "GibibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8589934592) - ); - yield return new (BitRateUnit.GibioctetPerSecond, "GibioctetPerSecond", "GibioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8589934592) - ); - yield return new (BitRateUnit.GigabitPerSecond, "GigabitPerSecond", "GigabitsPerSecond", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, 1000000000) - ); - yield return new (BitRateUnit.GigabytePerSecond, "GigabytePerSecond", "GigabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000) - ); - yield return new (BitRateUnit.GigaoctetPerSecond, "GigaoctetPerSecond", "GigaoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000) - ); - yield return new (BitRateUnit.KibibitPerSecond, "KibibitPerSecond", "KibibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1024) - ); - yield return new (BitRateUnit.KibibytePerSecond, "KibibytePerSecond", "KibibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8192) - ); - yield return new (BitRateUnit.KibioctetPerSecond, "KibioctetPerSecond", "KibioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8192) - ); - yield return new (BitRateUnit.KilobitPerSecond, "KilobitPerSecond", "KilobitsPerSecond", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 1000) - ); - yield return new (BitRateUnit.KilobytePerSecond, "KilobytePerSecond", "KilobytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000) - ); - yield return new (BitRateUnit.KilooctetPerSecond, "KilooctetPerSecond", "KilooctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000) - ); - yield return new (BitRateUnit.MebibitPerSecond, "MebibitPerSecond", "MebibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1048576) - ); - yield return new (BitRateUnit.MebibytePerSecond, "MebibytePerSecond", "MebibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8388608) - ); - yield return new (BitRateUnit.MebioctetPerSecond, "MebioctetPerSecond", "MebioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8388608) - ); - yield return new (BitRateUnit.MegabitPerSecond, "MegabitPerSecond", "MegabitsPerSecond", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000) - ); - yield return new (BitRateUnit.MegabytePerSecond, "MegabytePerSecond", "MegabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000) - ); - yield return new (BitRateUnit.MegaoctetPerSecond, "MegaoctetPerSecond", "MegaoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000) - ); - yield return new (BitRateUnit.OctetPerSecond, "OctetPerSecond", "OctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8) - ); - yield return new (BitRateUnit.PebibitPerSecond, "PebibitPerSecond", "PebibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1125899906842624) - ); - yield return new (BitRateUnit.PebibytePerSecond, "PebibytePerSecond", "PebibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 9007199254740992) - ); - yield return new (BitRateUnit.PebioctetPerSecond, "PebioctetPerSecond", "PebioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 9007199254740992) - ); - yield return new (BitRateUnit.PetabitPerSecond, "PetabitPerSecond", "PetabitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (BitRateUnit.PetabytePerSecond, "PetabytePerSecond", "PetabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000) - ); - yield return new (BitRateUnit.PetaoctetPerSecond, "PetaoctetPerSecond", "PetaoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000) - ); - yield return new (BitRateUnit.TebibitPerSecond, "TebibitPerSecond", "TebibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1099511627776) - ); - yield return new (BitRateUnit.TebibytePerSecond, "TebibytePerSecond", "TebibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8796093022208) - ); - yield return new (BitRateUnit.TebioctetPerSecond, "TebioctetPerSecond", "TebioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8796093022208) - ); - yield return new (BitRateUnit.TerabitPerSecond, "TerabitPerSecond", "TerabitsPerSecond", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, 1000000000000) - ); - yield return new (BitRateUnit.TerabytePerSecond, "TerabytePerSecond", "TerabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000) - ); - yield return new (BitRateUnit.TeraoctetPerSecond, "TeraoctetPerSecond", "TeraoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000) - ); + return new UnitDefinition[] + { + new (BitRateUnit.BitPerSecond, "BitPerSecond", "BitsPerSecond", new BaseUnits(time: DurationUnit.Second)), + new (BitRateUnit.BytePerSecond, "BytePerSecond", "BytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8) + ), + new (BitRateUnit.ExabitPerSecond, "ExabitPerSecond", "ExabitsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000000) + ), + new (BitRateUnit.ExabytePerSecond, "ExabytePerSecond", "ExabytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000000000) + ), + new (BitRateUnit.ExaoctetPerSecond, "ExaoctetPerSecond", "ExaoctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000000000) + ), + new (BitRateUnit.ExbibitPerSecond, "ExbibitPerSecond", "ExbibitsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 1152921504606846976) + ), + new (BitRateUnit.ExbibytePerSecond, "ExbibytePerSecond", "ExbibytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, BigInteger.Pow(2, 63)) + ), + new (BitRateUnit.ExbioctetPerSecond, "ExbioctetPerSecond", "ExbioctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, BigInteger.Pow(2, 63)) + ), + new (BitRateUnit.GibibitPerSecond, "GibibitPerSecond", "GibibitsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 1073741824) + ), + new (BitRateUnit.GibibytePerSecond, "GibibytePerSecond", "GibibytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8589934592) + ), + new (BitRateUnit.GibioctetPerSecond, "GibioctetPerSecond", "GibioctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8589934592) + ), + new (BitRateUnit.GigabitPerSecond, "GigabitPerSecond", "GigabitsPerSecond", new BaseUnits(time: DurationUnit.Nanosecond), + new QuantityValue(1, 1000000000) + ), + new (BitRateUnit.GigabytePerSecond, "GigabytePerSecond", "GigabytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000000) + ), + new (BitRateUnit.GigaoctetPerSecond, "GigaoctetPerSecond", "GigaoctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000000) + ), + new (BitRateUnit.KibibitPerSecond, "KibibitPerSecond", "KibibitsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 1024) + ), + new (BitRateUnit.KibibytePerSecond, "KibibytePerSecond", "KibibytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8192) + ), + new (BitRateUnit.KibioctetPerSecond, "KibioctetPerSecond", "KibioctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8192) + ), + new (BitRateUnit.KilobitPerSecond, "KilobitPerSecond", "KilobitsPerSecond", new BaseUnits(time: DurationUnit.Millisecond), + new QuantityValue(1, 1000) + ), + new (BitRateUnit.KilobytePerSecond, "KilobytePerSecond", "KilobytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000) + ), + new (BitRateUnit.KilooctetPerSecond, "KilooctetPerSecond", "KilooctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000) + ), + new (BitRateUnit.MebibitPerSecond, "MebibitPerSecond", "MebibitsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 1048576) + ), + new (BitRateUnit.MebibytePerSecond, "MebibytePerSecond", "MebibytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8388608) + ), + new (BitRateUnit.MebioctetPerSecond, "MebioctetPerSecond", "MebioctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8388608) + ), + new (BitRateUnit.MegabitPerSecond, "MegabitPerSecond", "MegabitsPerSecond", new BaseUnits(time: DurationUnit.Microsecond), + new QuantityValue(1, 1000000) + ), + new (BitRateUnit.MegabytePerSecond, "MegabytePerSecond", "MegabytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000) + ), + new (BitRateUnit.MegaoctetPerSecond, "MegaoctetPerSecond", "MegaoctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000) + ), + new (BitRateUnit.OctetPerSecond, "OctetPerSecond", "OctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8) + ), + new (BitRateUnit.PebibitPerSecond, "PebibitPerSecond", "PebibitsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 1125899906842624) + ), + new (BitRateUnit.PebibytePerSecond, "PebibytePerSecond", "PebibytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 9007199254740992) + ), + new (BitRateUnit.PebioctetPerSecond, "PebioctetPerSecond", "PebioctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 9007199254740992) + ), + new (BitRateUnit.PetabitPerSecond, "PetabitPerSecond", "PetabitsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000) + ), + new (BitRateUnit.PetabytePerSecond, "PetabytePerSecond", "PetabytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000000) + ), + new (BitRateUnit.PetaoctetPerSecond, "PetaoctetPerSecond", "PetaoctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000000) + ), + new (BitRateUnit.TebibitPerSecond, "TebibitPerSecond", "TebibitsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 1099511627776) + ), + new (BitRateUnit.TebibytePerSecond, "TebibytePerSecond", "TebibytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8796093022208) + ), + new (BitRateUnit.TebioctetPerSecond, "TebioctetPerSecond", "TebioctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8796093022208) + ), + new (BitRateUnit.TerabitPerSecond, "TerabitPerSecond", "TerabitsPerSecond", new BaseUnits(time: DurationUnit.Picosecond), + new QuantityValue(1, 1000000000000) + ), + new (BitRateUnit.TerabytePerSecond, "TerabytePerSecond", "TerabytesPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000) + ), + new (BitRateUnit.TeraoctetPerSecond, "TeraoctetPerSecond", "TeraoctetsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs index c50c4dc245..4faf4915b1 100644 --- a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs @@ -118,13 +118,16 @@ public static BrakeSpecificFuelConsumptionInfo CreateDefault(FuncAn of representing the default unit mappings for BrakeSpecificFuelConsumption. public static IEnumerable> GetDefaultMappings() { - yield return new (BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour, "GramPerKiloWattHour", "GramsPerKiloWattHour", BaseUnits.Undefined, - 3600000000 - ); - yield return new (BrakeSpecificFuelConsumptionUnit.KilogramPerJoule, "KilogramPerJoule", "KilogramsPerJoule", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour, "PoundPerMechanicalHorsepowerHour", "PoundsPerMechanicalHorsepowerHour", BaseUnits.Undefined, - new QuantityValue(191751395532579, 32399455) - ); + return new UnitDefinition[] + { + new (BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour, "GramPerKiloWattHour", "GramsPerKiloWattHour", BaseUnits.Undefined, + 3600000000 + ), + new (BrakeSpecificFuelConsumptionUnit.KilogramPerJoule, "KilogramPerJoule", "KilogramsPerJoule", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour, "PoundPerMechanicalHorsepowerHour", "PoundsPerMechanicalHorsepowerHour", BaseUnits.Undefined, + new QuantityValue(191751395532579, 32399455) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs index f9f8add9d4..111775369f 100644 --- a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs @@ -117,22 +117,25 @@ public static CoefficientOfThermalExpansionInfo CreateDefault(FuncAn of representing the default unit mappings for CoefficientOfThermalExpansion. public static IEnumerable> GetDefaultMappings() { - yield return new (CoefficientOfThermalExpansionUnit.PerDegreeCelsius, "PerDegreeCelsius", "PerDegreeCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (CoefficientOfThermalExpansionUnit.PerDegreeFahrenheit, "PerDegreeFahrenheit", "PerDegreeFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), - new QuantityValue(5, 9) - ); - yield return new (CoefficientOfThermalExpansionUnit.PerKelvin, "PerKelvin", "PerKelvin", new BaseUnits(temperature: TemperatureUnit.Kelvin)); - yield return new (CoefficientOfThermalExpansionUnit.PpmPerDegreeCelsius, "PpmPerDegreeCelsius", "PpmPerDegreeCelsius", BaseUnits.Undefined, - 1000000 - ); - yield return new (CoefficientOfThermalExpansionUnit.PpmPerDegreeFahrenheit, "PpmPerDegreeFahrenheit", "PpmPerDegreeFahrenheit", BaseUnits.Undefined, - new QuantityValue(5000000, 9) - ); - yield return new (CoefficientOfThermalExpansionUnit.PpmPerKelvin, "PpmPerKelvin", "PpmPerKelvin", BaseUnits.Undefined, - 1000000 - ); + return new UnitDefinition[] + { + new (CoefficientOfThermalExpansionUnit.PerDegreeCelsius, "PerDegreeCelsius", "PerDegreeCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), + 1 + ), + new (CoefficientOfThermalExpansionUnit.PerDegreeFahrenheit, "PerDegreeFahrenheit", "PerDegreeFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), + new QuantityValue(5, 9) + ), + new (CoefficientOfThermalExpansionUnit.PerKelvin, "PerKelvin", "PerKelvin", new BaseUnits(temperature: TemperatureUnit.Kelvin)), + new (CoefficientOfThermalExpansionUnit.PpmPerDegreeCelsius, "PpmPerDegreeCelsius", "PpmPerDegreeCelsius", BaseUnits.Undefined, + 1000000 + ), + new (CoefficientOfThermalExpansionUnit.PpmPerDegreeFahrenheit, "PpmPerDegreeFahrenheit", "PpmPerDegreeFahrenheit", BaseUnits.Undefined, + new QuantityValue(5000000, 9) + ), + new (CoefficientOfThermalExpansionUnit.PpmPerKelvin, "PpmPerKelvin", "PpmPerKelvin", BaseUnits.Undefined, + 1000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs b/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs index 2a24174364..f2d3df743f 100644 --- a/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs @@ -117,25 +117,28 @@ public static CompressibilityInfo CreateDefault(FuncAn of representing the default unit mappings for Compressibility. public static IEnumerable> GetDefaultMappings() { - yield return new (CompressibilityUnit.InverseAtmosphere, "InverseAtmosphere", "InverseAtmospheres", BaseUnits.Undefined, - 101325 - ); - yield return new (CompressibilityUnit.InverseBar, "InverseBar", "InverseBars", BaseUnits.Undefined, - 100000 - ); - yield return new (CompressibilityUnit.InverseKilopascal, "InverseKilopascal", "InverseKilopascals", BaseUnits.Undefined, - 1000 - ); - yield return new (CompressibilityUnit.InverseMegapascal, "InverseMegapascal", "InverseMegapascals", BaseUnits.Undefined, - 1000000 - ); - yield return new (CompressibilityUnit.InverseMillibar, "InverseMillibar", "InverseMillibars", BaseUnits.Undefined, - 100 - ); - yield return new (CompressibilityUnit.InversePascal, "InversePascal", "InversePascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (CompressibilityUnit.InversePoundForcePerSquareInch, "InversePoundForcePerSquareInch", "InversePoundsForcePerSquareInch", BaseUnits.Undefined, - new QuantityValue(6894757293168361, 1000000000000) - ); + return new UnitDefinition[] + { + new (CompressibilityUnit.InverseAtmosphere, "InverseAtmosphere", "InverseAtmospheres", BaseUnits.Undefined, + 101325 + ), + new (CompressibilityUnit.InverseBar, "InverseBar", "InverseBars", BaseUnits.Undefined, + 100000 + ), + new (CompressibilityUnit.InverseKilopascal, "InverseKilopascal", "InverseKilopascals", BaseUnits.Undefined, + 1000 + ), + new (CompressibilityUnit.InverseMegapascal, "InverseMegapascal", "InverseMegapascals", BaseUnits.Undefined, + 1000000 + ), + new (CompressibilityUnit.InverseMillibar, "InverseMillibar", "InverseMillibars", BaseUnits.Undefined, + 100 + ), + new (CompressibilityUnit.InversePascal, "InversePascal", "InversePascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (CompressibilityUnit.InversePoundForcePerSquareInch, "InversePoundForcePerSquareInch", "InversePoundsForcePerSquareInch", BaseUnits.Undefined, + new QuantityValue(6894757293168361, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Density.g.cs b/UnitsNet/GeneratedCode/Quantities/Density.g.cs index c934fdc2d3..091bf11650 100644 --- a/UnitsNet/GeneratedCode/Quantities/Density.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Density.g.cs @@ -127,172 +127,175 @@ public static DensityInfo CreateDefault(FuncAn of representing the default unit mappings for Density. public static IEnumerable> GetDefaultMappings() { - yield return new (DensityUnit.CentigramPerDeciliter, "CentigramPerDeciliter", "CentigramsPerDeciliter", BaseUnits.Undefined, - 10 - ); - yield return new (DensityUnit.CentigramPerLiter, "CentigramPerLiter", "CentigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Centigram), - 100 - ); - yield return new (DensityUnit.CentigramPerMilliliter, "CentigramPerMilliliter", "CentigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Centigram), - new QuantityValue(1, 10) - ); - yield return new (DensityUnit.DecigramPerDeciliter, "DecigramPerDeciliter", "DecigramsPerDeciliter", BaseUnits.Undefined, - 1 - ); - yield return new (DensityUnit.DecigramPerLiter, "DecigramPerLiter", "DecigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Decigram), - 10 - ); - yield return new (DensityUnit.DecigramPerMilliliter, "DecigramPerMilliliter", "DecigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Decigram), - new QuantityValue(1, 100) - ); - yield return new (DensityUnit.FemtogramPerDeciliter, "FemtogramPerDeciliter", "FemtogramsPerDeciliter", BaseUnits.Undefined, - 100000000000000 - ); - yield return new (DensityUnit.FemtogramPerLiter, "FemtogramPerLiter", "FemtogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Femtogram), - 1000000000000000 - ); - yield return new (DensityUnit.FemtogramPerMilliliter, "FemtogramPerMilliliter", "FemtogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Femtogram), - 1000000000000 - ); - yield return new (DensityUnit.GramPerCubicCentimeter, "GramPerCubicCentimeter", "GramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000) - ); - yield return new (DensityUnit.GramPerCubicFoot, "GramPerCubicFoot", "GramsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Gram), - new QuantityValue(55306341, 1953125) - ); - yield return new (DensityUnit.GramPerCubicInch, "GramPerCubicInch", "GramsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Gram), - new QuantityValue(2048383, 125000000) - ); - yield return new (DensityUnit.GramPerCubicMeter, "GramPerCubicMeter", "GramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (DensityUnit.GramPerCubicMillimeter, "GramPerCubicMillimeter", "GramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000000) - ); - yield return new (DensityUnit.GramPerDeciliter, "GramPerDeciliter", "GramsPerDeciliter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (DensityUnit.GramPerLiter, "GramPerLiter", "GramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), - 1 - ); - yield return new (DensityUnit.GramPerMilliliter, "GramPerMilliliter", "GramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000) - ); - yield return new (DensityUnit.KilogramPerCubicCentimeter, "KilogramPerCubicCentimeter", "KilogramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000000) - ); - yield return new (DensityUnit.KilogramPerCubicMeter, "KilogramPerCubicMeter", "KilogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (DensityUnit.KilogramPerCubicMillimeter, "KilogramPerCubicMillimeter", "KilogramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000000000) - ); - yield return new (DensityUnit.KilogramPerLiter, "KilogramPerLiter", "KilogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000) - ); - yield return new (DensityUnit.KilopoundPerCubicFoot, "KilopoundPerCubicFoot", "KilopoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilopound), - new QuantityValue(221225364, 3543690390625) - ); - yield return new (DensityUnit.KilopoundPerCubicInch, "KilopoundPerCubicInch", "KilopoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound), - new QuantityValue(2048383, 56699046250000) - ); - yield return new (DensityUnit.KilopoundPerCubicYard, "KilopoundPerCubicYard", "KilopoundsPerCubicYard", new BaseUnits(length: LengthUnit.Yard, mass: MassUnit.Kilopound), - new QuantityValue(5973084828, 3543690390625) - ); - yield return new (DensityUnit.MicrogramPerCubicMeter, "MicrogramPerCubicMeter", "MicrogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), - 1000000000 - ); - yield return new (DensityUnit.MicrogramPerDeciliter, "MicrogramPerDeciliter", "MicrogramsPerDeciliter", BaseUnits.Undefined, - 100000 - ); - yield return new (DensityUnit.MicrogramPerLiter, "MicrogramPerLiter", "MicrogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Microgram), - 1000000 - ); - yield return new (DensityUnit.MicrogramPerMilliliter, "MicrogramPerMilliliter", "MicrogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), - 1000 - ); - yield return new (DensityUnit.MilligramPerCubicMeter, "MilligramPerCubicMeter", "MilligramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (DensityUnit.MilligramPerDeciliter, "MilligramPerDeciliter", "MilligramsPerDeciliter", BaseUnits.Undefined, - 100 - ); - yield return new (DensityUnit.MilligramPerLiter, "MilligramPerLiter", "MilligramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), - 1000 - ); - yield return new (DensityUnit.MilligramPerMilliliter, "MilligramPerMilliliter", "MilligramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), - 1 - ); - yield return new (DensityUnit.NanogramPerDeciliter, "NanogramPerDeciliter", "NanogramsPerDeciliter", BaseUnits.Undefined, - 100000000 - ); - yield return new (DensityUnit.NanogramPerLiter, "NanogramPerLiter", "NanogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Nanogram), - 1000000000 - ); - yield return new (DensityUnit.NanogramPerMilliliter, "NanogramPerMilliliter", "NanogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Nanogram), - 1000000 - ); - yield return new (DensityUnit.PicogramPerDeciliter, "PicogramPerDeciliter", "PicogramsPerDeciliter", BaseUnits.Undefined, - 100000000000 - ); - yield return new (DensityUnit.PicogramPerLiter, "PicogramPerLiter", "PicogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Picogram), - 1000000000000 - ); - yield return new (DensityUnit.PicogramPerMilliliter, "PicogramPerMilliliter", "PicogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Picogram), - 1000000000 - ); - yield return new (DensityUnit.PoundPerCubicCentimeter, "PoundPerCubicCentimeter", "PoundsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Pound), - new QuantityValue(100, 45359237) - ); - yield return new (DensityUnit.PoundPerCubicFoot, "PoundPerCubicFoot", "PoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(1769802912, 28349523125) - ); - yield return new (DensityUnit.PoundPerCubicInch, "PoundPerCubicInch", "PoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), - new QuantityValue(2048383, 56699046250) - ); - yield return new (DensityUnit.PoundPerCubicMeter, "PoundPerCubicMeter", "PoundsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Pound), - new QuantityValue(100000000, 45359237) - ); - yield return new (DensityUnit.PoundPerCubicMillimeter, "PoundPerCubicMillimeter", "PoundsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Pound), - new QuantityValue(1, 453592370) - ); - yield return new (DensityUnit.PoundPerCubicYard, "PoundPerCubicYard", "PoundsPerCubicYard", new BaseUnits(length: LengthUnit.Yard, mass: MassUnit.Pound), - new QuantityValue(47784678624, 28349523125) - ); - yield return new (DensityUnit.PoundPerImperialGallon, "PoundPerImperialGallon", "PoundsPerImperialGallon", BaseUnits.Undefined, - new QuantityValue(454609, 45359237) - ); - yield return new (DensityUnit.PoundPerUSGallon, "PoundPerUSGallon", "PoundsPerUSGallon", BaseUnits.Undefined, - new QuantityValue(6145149, 736351250) - ); - yield return new (DensityUnit.SlugPerCubicCentimeter, "SlugPerCubicCentimeter", "SlugsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Slug), - new QuantityValue(609600, 8896443230521) - ); - yield return new (DensityUnit.SlugPerCubicFoot, "SlugPerCubicFoot", "SlugsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), - new QuantityValue(10788718551552, 5560277019075625) - ); - yield return new (DensityUnit.SlugPerCubicInch, "SlugPerCubicInch", "SlugsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Slug), - new QuantityValue(6243471384, 5560277019075625) - ); - yield return new (DensityUnit.SlugPerCubicMeter, "SlugPerCubicMeter", "SlugsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Slug), - new QuantityValue(609600000000, 8896443230521) - ); - yield return new (DensityUnit.SlugPerCubicMillimeter, "SlugPerCubicMillimeter", "SlugsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Slug), - new QuantityValue(3048, 44482216152605) - ); - yield return new (DensityUnit.TonnePerCubicCentimeter, "TonnePerCubicCentimeter", "TonnesPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000000000) - ); - yield return new (DensityUnit.TonnePerCubicFoot, "TonnePerCubicFoot", "TonnesPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Tonne), - new QuantityValue(55306341, 1953125000000) - ); - yield return new (DensityUnit.TonnePerCubicInch, "TonnePerCubicInch", "TonnesPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Tonne), - new QuantityValue(2048383, 125000000000000) - ); - yield return new (DensityUnit.TonnePerCubicMeter, "TonnePerCubicMeter", "TonnesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000) - ); - yield return new (DensityUnit.TonnePerCubicMillimeter, "TonnePerCubicMillimeter", "TonnesPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (DensityUnit.CentigramPerDeciliter, "CentigramPerDeciliter", "CentigramsPerDeciliter", BaseUnits.Undefined, + 10 + ), + new (DensityUnit.CentigramPerLiter, "CentigramPerLiter", "CentigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Centigram), + 100 + ), + new (DensityUnit.CentigramPerMilliliter, "CentigramPerMilliliter", "CentigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Centigram), + new QuantityValue(1, 10) + ), + new (DensityUnit.DecigramPerDeciliter, "DecigramPerDeciliter", "DecigramsPerDeciliter", BaseUnits.Undefined, + 1 + ), + new (DensityUnit.DecigramPerLiter, "DecigramPerLiter", "DecigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Decigram), + 10 + ), + new (DensityUnit.DecigramPerMilliliter, "DecigramPerMilliliter", "DecigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Decigram), + new QuantityValue(1, 100) + ), + new (DensityUnit.FemtogramPerDeciliter, "FemtogramPerDeciliter", "FemtogramsPerDeciliter", BaseUnits.Undefined, + 100000000000000 + ), + new (DensityUnit.FemtogramPerLiter, "FemtogramPerLiter", "FemtogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Femtogram), + 1000000000000000 + ), + new (DensityUnit.FemtogramPerMilliliter, "FemtogramPerMilliliter", "FemtogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Femtogram), + 1000000000000 + ), + new (DensityUnit.GramPerCubicCentimeter, "GramPerCubicCentimeter", "GramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), + new QuantityValue(1, 1000) + ), + new (DensityUnit.GramPerCubicFoot, "GramPerCubicFoot", "GramsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Gram), + new QuantityValue(55306341, 1953125) + ), + new (DensityUnit.GramPerCubicInch, "GramPerCubicInch", "GramsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Gram), + new QuantityValue(2048383, 125000000) + ), + new (DensityUnit.GramPerCubicMeter, "GramPerCubicMeter", "GramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), + 1000 + ), + new (DensityUnit.GramPerCubicMillimeter, "GramPerCubicMillimeter", "GramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), + new QuantityValue(1, 1000000) + ), + new (DensityUnit.GramPerDeciliter, "GramPerDeciliter", "GramsPerDeciliter", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (DensityUnit.GramPerLiter, "GramPerLiter", "GramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), + 1 + ), + new (DensityUnit.GramPerMilliliter, "GramPerMilliliter", "GramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), + new QuantityValue(1, 1000) + ), + new (DensityUnit.KilogramPerCubicCentimeter, "KilogramPerCubicCentimeter", "KilogramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), + new QuantityValue(1, 1000000) + ), + new (DensityUnit.KilogramPerCubicMeter, "KilogramPerCubicMeter", "KilogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)), + new (DensityUnit.KilogramPerCubicMillimeter, "KilogramPerCubicMillimeter", "KilogramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), + new QuantityValue(1, 1000000000) + ), + new (DensityUnit.KilogramPerLiter, "KilogramPerLiter", "KilogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), + new QuantityValue(1, 1000) + ), + new (DensityUnit.KilopoundPerCubicFoot, "KilopoundPerCubicFoot", "KilopoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilopound), + new QuantityValue(221225364, 3543690390625) + ), + new (DensityUnit.KilopoundPerCubicInch, "KilopoundPerCubicInch", "KilopoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound), + new QuantityValue(2048383, 56699046250000) + ), + new (DensityUnit.KilopoundPerCubicYard, "KilopoundPerCubicYard", "KilopoundsPerCubicYard", new BaseUnits(length: LengthUnit.Yard, mass: MassUnit.Kilopound), + new QuantityValue(5973084828, 3543690390625) + ), + new (DensityUnit.MicrogramPerCubicMeter, "MicrogramPerCubicMeter", "MicrogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), + 1000000000 + ), + new (DensityUnit.MicrogramPerDeciliter, "MicrogramPerDeciliter", "MicrogramsPerDeciliter", BaseUnits.Undefined, + 100000 + ), + new (DensityUnit.MicrogramPerLiter, "MicrogramPerLiter", "MicrogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Microgram), + 1000000 + ), + new (DensityUnit.MicrogramPerMilliliter, "MicrogramPerMilliliter", "MicrogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), + 1000 + ), + new (DensityUnit.MilligramPerCubicMeter, "MilligramPerCubicMeter", "MilligramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), + 1000000 + ), + new (DensityUnit.MilligramPerDeciliter, "MilligramPerDeciliter", "MilligramsPerDeciliter", BaseUnits.Undefined, + 100 + ), + new (DensityUnit.MilligramPerLiter, "MilligramPerLiter", "MilligramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), + 1000 + ), + new (DensityUnit.MilligramPerMilliliter, "MilligramPerMilliliter", "MilligramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), + 1 + ), + new (DensityUnit.NanogramPerDeciliter, "NanogramPerDeciliter", "NanogramsPerDeciliter", BaseUnits.Undefined, + 100000000 + ), + new (DensityUnit.NanogramPerLiter, "NanogramPerLiter", "NanogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Nanogram), + 1000000000 + ), + new (DensityUnit.NanogramPerMilliliter, "NanogramPerMilliliter", "NanogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Nanogram), + 1000000 + ), + new (DensityUnit.PicogramPerDeciliter, "PicogramPerDeciliter", "PicogramsPerDeciliter", BaseUnits.Undefined, + 100000000000 + ), + new (DensityUnit.PicogramPerLiter, "PicogramPerLiter", "PicogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Picogram), + 1000000000000 + ), + new (DensityUnit.PicogramPerMilliliter, "PicogramPerMilliliter", "PicogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Picogram), + 1000000000 + ), + new (DensityUnit.PoundPerCubicCentimeter, "PoundPerCubicCentimeter", "PoundsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Pound), + new QuantityValue(100, 45359237) + ), + new (DensityUnit.PoundPerCubicFoot, "PoundPerCubicFoot", "PoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), + new QuantityValue(1769802912, 28349523125) + ), + new (DensityUnit.PoundPerCubicInch, "PoundPerCubicInch", "PoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), + new QuantityValue(2048383, 56699046250) + ), + new (DensityUnit.PoundPerCubicMeter, "PoundPerCubicMeter", "PoundsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Pound), + new QuantityValue(100000000, 45359237) + ), + new (DensityUnit.PoundPerCubicMillimeter, "PoundPerCubicMillimeter", "PoundsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Pound), + new QuantityValue(1, 453592370) + ), + new (DensityUnit.PoundPerCubicYard, "PoundPerCubicYard", "PoundsPerCubicYard", new BaseUnits(length: LengthUnit.Yard, mass: MassUnit.Pound), + new QuantityValue(47784678624, 28349523125) + ), + new (DensityUnit.PoundPerImperialGallon, "PoundPerImperialGallon", "PoundsPerImperialGallon", BaseUnits.Undefined, + new QuantityValue(454609, 45359237) + ), + new (DensityUnit.PoundPerUSGallon, "PoundPerUSGallon", "PoundsPerUSGallon", BaseUnits.Undefined, + new QuantityValue(6145149, 736351250) + ), + new (DensityUnit.SlugPerCubicCentimeter, "SlugPerCubicCentimeter", "SlugsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Slug), + new QuantityValue(609600, 8896443230521) + ), + new (DensityUnit.SlugPerCubicFoot, "SlugPerCubicFoot", "SlugsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), + new QuantityValue(10788718551552, 5560277019075625) + ), + new (DensityUnit.SlugPerCubicInch, "SlugPerCubicInch", "SlugsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Slug), + new QuantityValue(6243471384, 5560277019075625) + ), + new (DensityUnit.SlugPerCubicMeter, "SlugPerCubicMeter", "SlugsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Slug), + new QuantityValue(609600000000, 8896443230521) + ), + new (DensityUnit.SlugPerCubicMillimeter, "SlugPerCubicMillimeter", "SlugsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Slug), + new QuantityValue(3048, 44482216152605) + ), + new (DensityUnit.TonnePerCubicCentimeter, "TonnePerCubicCentimeter", "TonnesPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), + new QuantityValue(1, 1000000000) + ), + new (DensityUnit.TonnePerCubicFoot, "TonnePerCubicFoot", "TonnesPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Tonne), + new QuantityValue(55306341, 1953125000000) + ), + new (DensityUnit.TonnePerCubicInch, "TonnePerCubicInch", "TonnesPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Tonne), + new QuantityValue(2048383, 125000000000000) + ), + new (DensityUnit.TonnePerCubicMeter, "TonnePerCubicMeter", "TonnesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), + new QuantityValue(1, 1000) + ), + new (DensityUnit.TonnePerCubicMillimeter, "TonnePerCubicMillimeter", "TonnesPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs b/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs index 21ced4f1b9..75621f84f0 100644 --- a/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs @@ -121,79 +121,82 @@ public static DoseAreaProductInfo CreateDefault(FuncAn of representing the default unit mappings for DoseAreaProduct. public static IEnumerable> GetDefaultMappings() { - yield return new (DoseAreaProductUnit.CentigraySquareCentimeter, "CentigraySquareCentimeter", "CentigraySquareCentimeters", BaseUnits.Undefined, - 1000000 - ); - yield return new (DoseAreaProductUnit.CentigraySquareDecimeter, "CentigraySquareDecimeter", "CentigraySquareDecimeters", BaseUnits.Undefined, - 10000 - ); - yield return new (DoseAreaProductUnit.CentigraySquareMeter, "CentigraySquareMeter", "CentigraySquareMeters", BaseUnits.Undefined, - 100 - ); - yield return new (DoseAreaProductUnit.CentigraySquareMicrometer, "CentigraySquareMicrometer", "CentigraySquareMicrometers", BaseUnits.Undefined, - 100000000000000 - ); - yield return new (DoseAreaProductUnit.CentigraySquareMillimeter, "CentigraySquareMillimeter", "CentigraySquareMillimeters", BaseUnits.Undefined, - 100000000 - ); - yield return new (DoseAreaProductUnit.DecigraySquareCentimeter, "DecigraySquareCentimeter", "DecigraySquareCentimeters", BaseUnits.Undefined, - 100000 - ); - yield return new (DoseAreaProductUnit.DecigraySquareDecimeter, "DecigraySquareDecimeter", "DecigraySquareDecimeters", BaseUnits.Undefined, - 1000 - ); - yield return new (DoseAreaProductUnit.DecigraySquareMeter, "DecigraySquareMeter", "DecigraySquareMeters", BaseUnits.Undefined, - 10 - ); - yield return new (DoseAreaProductUnit.DecigraySquareMicrometer, "DecigraySquareMicrometer", "DecigraySquareMicrometers", BaseUnits.Undefined, - 10000000000000 - ); - yield return new (DoseAreaProductUnit.DecigraySquareMillimeter, "DecigraySquareMillimeter", "DecigraySquareMillimeters", BaseUnits.Undefined, - 10000000 - ); - yield return new (DoseAreaProductUnit.GraySquareCentimeter, "GraySquareCentimeter", "GraySquareCentimeters", BaseUnits.Undefined, - 10000 - ); - yield return new (DoseAreaProductUnit.GraySquareDecimeter, "GraySquareDecimeter", "GraySquareDecimeters", BaseUnits.Undefined, - 100 - ); - yield return new (DoseAreaProductUnit.GraySquareMeter, "GraySquareMeter", "GraySquareMeters", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (DoseAreaProductUnit.GraySquareMicrometer, "GraySquareMicrometer", "GraySquareMicrometers", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (DoseAreaProductUnit.GraySquareMillimeter, "GraySquareMillimeter", "GraySquareMillimeters", BaseUnits.Undefined, - 1000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareCentimeter, "MicrograySquareCentimeter", "MicrograySquareCentimeters", BaseUnits.Undefined, - 10000000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareDecimeter, "MicrograySquareDecimeter", "MicrograySquareDecimeters", BaseUnits.Undefined, - 100000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareMeter, "MicrograySquareMeter", "MicrograySquareMeters", BaseUnits.Undefined, - 1000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareMicrometer, "MicrograySquareMicrometer", "MicrograySquareMicrometers", BaseUnits.Undefined, - 1000000000000000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareMillimeter, "MicrograySquareMillimeter", "MicrograySquareMillimeters", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareCentimeter, "MilligraySquareCentimeter", "MilligraySquareCentimeters", BaseUnits.Undefined, - 10000000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareDecimeter, "MilligraySquareDecimeter", "MilligraySquareDecimeters", BaseUnits.Undefined, - 100000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareMeter, "MilligraySquareMeter", "MilligraySquareMeters", BaseUnits.Undefined, - 1000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareMicrometer, "MilligraySquareMicrometer", "MilligraySquareMicrometers", BaseUnits.Undefined, - 1000000000000000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareMillimeter, "MilligraySquareMillimeter", "MilligraySquareMillimeters", BaseUnits.Undefined, - 1000000000 - ); + return new UnitDefinition[] + { + new (DoseAreaProductUnit.CentigraySquareCentimeter, "CentigraySquareCentimeter", "CentigraySquareCentimeters", BaseUnits.Undefined, + 1000000 + ), + new (DoseAreaProductUnit.CentigraySquareDecimeter, "CentigraySquareDecimeter", "CentigraySquareDecimeters", BaseUnits.Undefined, + 10000 + ), + new (DoseAreaProductUnit.CentigraySquareMeter, "CentigraySquareMeter", "CentigraySquareMeters", BaseUnits.Undefined, + 100 + ), + new (DoseAreaProductUnit.CentigraySquareMicrometer, "CentigraySquareMicrometer", "CentigraySquareMicrometers", BaseUnits.Undefined, + 100000000000000 + ), + new (DoseAreaProductUnit.CentigraySquareMillimeter, "CentigraySquareMillimeter", "CentigraySquareMillimeters", BaseUnits.Undefined, + 100000000 + ), + new (DoseAreaProductUnit.DecigraySquareCentimeter, "DecigraySquareCentimeter", "DecigraySquareCentimeters", BaseUnits.Undefined, + 100000 + ), + new (DoseAreaProductUnit.DecigraySquareDecimeter, "DecigraySquareDecimeter", "DecigraySquareDecimeters", BaseUnits.Undefined, + 1000 + ), + new (DoseAreaProductUnit.DecigraySquareMeter, "DecigraySquareMeter", "DecigraySquareMeters", BaseUnits.Undefined, + 10 + ), + new (DoseAreaProductUnit.DecigraySquareMicrometer, "DecigraySquareMicrometer", "DecigraySquareMicrometers", BaseUnits.Undefined, + 10000000000000 + ), + new (DoseAreaProductUnit.DecigraySquareMillimeter, "DecigraySquareMillimeter", "DecigraySquareMillimeters", BaseUnits.Undefined, + 10000000 + ), + new (DoseAreaProductUnit.GraySquareCentimeter, "GraySquareCentimeter", "GraySquareCentimeters", BaseUnits.Undefined, + 10000 + ), + new (DoseAreaProductUnit.GraySquareDecimeter, "GraySquareDecimeter", "GraySquareDecimeters", BaseUnits.Undefined, + 100 + ), + new (DoseAreaProductUnit.GraySquareMeter, "GraySquareMeter", "GraySquareMeters", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (DoseAreaProductUnit.GraySquareMicrometer, "GraySquareMicrometer", "GraySquareMicrometers", BaseUnits.Undefined, + 1000000000000 + ), + new (DoseAreaProductUnit.GraySquareMillimeter, "GraySquareMillimeter", "GraySquareMillimeters", BaseUnits.Undefined, + 1000000 + ), + new (DoseAreaProductUnit.MicrograySquareCentimeter, "MicrograySquareCentimeter", "MicrograySquareCentimeters", BaseUnits.Undefined, + 10000000000 + ), + new (DoseAreaProductUnit.MicrograySquareDecimeter, "MicrograySquareDecimeter", "MicrograySquareDecimeters", BaseUnits.Undefined, + 100000000 + ), + new (DoseAreaProductUnit.MicrograySquareMeter, "MicrograySquareMeter", "MicrograySquareMeters", BaseUnits.Undefined, + 1000000 + ), + new (DoseAreaProductUnit.MicrograySquareMicrometer, "MicrograySquareMicrometer", "MicrograySquareMicrometers", BaseUnits.Undefined, + 1000000000000000000 + ), + new (DoseAreaProductUnit.MicrograySquareMillimeter, "MicrograySquareMillimeter", "MicrograySquareMillimeters", BaseUnits.Undefined, + 1000000000000 + ), + new (DoseAreaProductUnit.MilligraySquareCentimeter, "MilligraySquareCentimeter", "MilligraySquareCentimeters", BaseUnits.Undefined, + 10000000 + ), + new (DoseAreaProductUnit.MilligraySquareDecimeter, "MilligraySquareDecimeter", "MilligraySquareDecimeters", BaseUnits.Undefined, + 100000 + ), + new (DoseAreaProductUnit.MilligraySquareMeter, "MilligraySquareMeter", "MilligraySquareMeters", BaseUnits.Undefined, + 1000 + ), + new (DoseAreaProductUnit.MilligraySquareMicrometer, "MilligraySquareMicrometer", "MilligraySquareMicrometers", BaseUnits.Undefined, + 1000000000000000 + ), + new (DoseAreaProductUnit.MilligraySquareMillimeter, "MilligraySquareMillimeter", "MilligraySquareMillimeters", BaseUnits.Undefined, + 1000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs index 5a1dee5c57..f27541aa1a 100644 --- a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs @@ -139,43 +139,46 @@ public static DurationInfo CreateDefault(FuncAn of representing the default unit mappings for Duration. public static IEnumerable> GetDefaultMappings() { - yield return new (DurationUnit.Day, "Day", "Days", new BaseUnits(time: DurationUnit.Day), - new QuantityValue(1, 86400) - ); - yield return new (DurationUnit.Hour, "Hour", "Hours", new BaseUnits(time: DurationUnit.Hour), - new QuantityValue(1, 3600) - ); - yield return new (DurationUnit.JulianYear, "JulianYear", "JulianYears", new BaseUnits(time: DurationUnit.JulianYear), - new QuantityValue(1, 31557600) - ); - yield return new (DurationUnit.Microsecond, "Microsecond", "Microseconds", new BaseUnits(time: DurationUnit.Microsecond), - 1000000 - ); - yield return new (DurationUnit.Millisecond, "Millisecond", "Milliseconds", new BaseUnits(time: DurationUnit.Millisecond), - 1000 - ); - yield return new (DurationUnit.Minute, "Minute", "Minutes", new BaseUnits(time: DurationUnit.Minute), - new QuantityValue(1, 60) - ); - yield return new (DurationUnit.Month30, "Month30", "Months30", new BaseUnits(time: DurationUnit.Month30), - new QuantityValue(1, 2592000) - ); - yield return new (DurationUnit.Nanosecond, "Nanosecond", "Nanoseconds", new BaseUnits(time: DurationUnit.Nanosecond), - 1000000000 - ); - yield return new (DurationUnit.Picosecond, "Picosecond", "Picoseconds", new BaseUnits(time: DurationUnit.Picosecond), - 1000000000000 - ); - yield return new (DurationUnit.Second, "Second", "Seconds", new BaseUnits(time: DurationUnit.Second)); - yield return new (DurationUnit.Sol, "Sol", "Sols", new BaseUnits(time: DurationUnit.Sol), - new QuantityValue(250, 22193811) - ); - yield return new (DurationUnit.Week, "Week", "Weeks", new BaseUnits(time: DurationUnit.Week), - new QuantityValue(1, 604800) - ); - yield return new (DurationUnit.Year365, "Year365", "Years365", new BaseUnits(time: DurationUnit.Year365), - new QuantityValue(1, 31536000) - ); + return new UnitDefinition[] + { + new (DurationUnit.Day, "Day", "Days", new BaseUnits(time: DurationUnit.Day), + new QuantityValue(1, 86400) + ), + new (DurationUnit.Hour, "Hour", "Hours", new BaseUnits(time: DurationUnit.Hour), + new QuantityValue(1, 3600) + ), + new (DurationUnit.JulianYear, "JulianYear", "JulianYears", new BaseUnits(time: DurationUnit.JulianYear), + new QuantityValue(1, 31557600) + ), + new (DurationUnit.Microsecond, "Microsecond", "Microseconds", new BaseUnits(time: DurationUnit.Microsecond), + 1000000 + ), + new (DurationUnit.Millisecond, "Millisecond", "Milliseconds", new BaseUnits(time: DurationUnit.Millisecond), + 1000 + ), + new (DurationUnit.Minute, "Minute", "Minutes", new BaseUnits(time: DurationUnit.Minute), + new QuantityValue(1, 60) + ), + new (DurationUnit.Month30, "Month30", "Months30", new BaseUnits(time: DurationUnit.Month30), + new QuantityValue(1, 2592000) + ), + new (DurationUnit.Nanosecond, "Nanosecond", "Nanoseconds", new BaseUnits(time: DurationUnit.Nanosecond), + 1000000000 + ), + new (DurationUnit.Picosecond, "Picosecond", "Picoseconds", new BaseUnits(time: DurationUnit.Picosecond), + 1000000000000 + ), + new (DurationUnit.Second, "Second", "Seconds", new BaseUnits(time: DurationUnit.Second)), + new (DurationUnit.Sol, "Sol", "Sols", new BaseUnits(time: DurationUnit.Sol), + new QuantityValue(250, 22193811) + ), + new (DurationUnit.Week, "Week", "Weeks", new BaseUnits(time: DurationUnit.Week), + new QuantityValue(1, 604800) + ), + new (DurationUnit.Year365, "Year365", "Years365", new BaseUnits(time: DurationUnit.Year365), + new QuantityValue(1, 31536000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs index dde593ef6f..4b132120b0 100644 --- a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs @@ -121,34 +121,37 @@ public static DynamicViscosityInfo CreateDefault(FuncAn of representing the default unit mappings for DynamicViscosity. public static IEnumerable> GetDefaultMappings() { - yield return new (DynamicViscosityUnit.Centipoise, "Centipoise", "Centipoise", BaseUnits.Undefined, - 1000 - ); - yield return new (DynamicViscosityUnit.MicropascalSecond, "MicropascalSecond", "MicropascalSeconds", BaseUnits.Undefined, - 1000000 - ); - yield return new (DynamicViscosityUnit.MillipascalSecond, "MillipascalSecond", "MillipascalSeconds", BaseUnits.Undefined, - 1000 - ); - yield return new (DynamicViscosityUnit.NewtonSecondPerMeterSquared, "NewtonSecondPerMeterSquared", "NewtonSecondsPerMeterSquared", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (DynamicViscosityUnit.PascalSecond, "PascalSecond", "PascalSeconds", BaseUnits.Undefined, - 1 - ); - yield return new (DynamicViscosityUnit.Poise, "Poise", "Poise", BaseUnits.Undefined, - 10 - ); - yield return new (DynamicViscosityUnit.PoundForceSecondPerSquareFoot, "PoundForceSecondPerSquareFoot", "PoundsForceSecondPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(185806080000, 8896443230521) - ); - yield return new (DynamicViscosityUnit.PoundForceSecondPerSquareInch, "PoundForceSecondPerSquareInch", "PoundsForceSecondPerSquareInch", BaseUnits.Undefined, - new QuantityValue(1290320000, 8896443230521) - ); - yield return new (DynamicViscosityUnit.PoundPerFootSecond, "PoundPerFootSecond", "PoundsPerFootSecond", BaseUnits.Undefined, - new QuantityValue(30480000, 45359237) - ); - yield return new (DynamicViscosityUnit.Reyn, "Reyn", "Reyns", BaseUnits.Undefined, - new QuantityValue(1290320000, 8896443230521) - ); + return new UnitDefinition[] + { + new (DynamicViscosityUnit.Centipoise, "Centipoise", "Centipoise", BaseUnits.Undefined, + 1000 + ), + new (DynamicViscosityUnit.MicropascalSecond, "MicropascalSecond", "MicropascalSeconds", BaseUnits.Undefined, + 1000000 + ), + new (DynamicViscosityUnit.MillipascalSecond, "MillipascalSecond", "MillipascalSeconds", BaseUnits.Undefined, + 1000 + ), + new (DynamicViscosityUnit.NewtonSecondPerMeterSquared, "NewtonSecondPerMeterSquared", "NewtonSecondsPerMeterSquared", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (DynamicViscosityUnit.PascalSecond, "PascalSecond", "PascalSeconds", BaseUnits.Undefined, + 1 + ), + new (DynamicViscosityUnit.Poise, "Poise", "Poise", BaseUnits.Undefined, + 10 + ), + new (DynamicViscosityUnit.PoundForceSecondPerSquareFoot, "PoundForceSecondPerSquareFoot", "PoundsForceSecondPerSquareFoot", BaseUnits.Undefined, + new QuantityValue(185806080000, 8896443230521) + ), + new (DynamicViscosityUnit.PoundForceSecondPerSquareInch, "PoundForceSecondPerSquareInch", "PoundsForceSecondPerSquareInch", BaseUnits.Undefined, + new QuantityValue(1290320000, 8896443230521) + ), + new (DynamicViscosityUnit.PoundPerFootSecond, "PoundPerFootSecond", "PoundsPerFootSecond", BaseUnits.Undefined, + new QuantityValue(30480000, 45359237) + ), + new (DynamicViscosityUnit.Reyn, "Reyn", "Reyns", BaseUnits.Undefined, + new QuantityValue(1290320000, 8896443230521) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs index 778fcfcbb9..e8423d5d83 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs @@ -120,52 +120,55 @@ public static ElectricAdmittanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricAdmittance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricAdmittanceUnit.Gigamho, "Gigamho", "Gigamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricAdmittanceUnit.Gigasiemens, "Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricAdmittanceUnit.Kilomho, "Kilomho", "Kilomhos", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricAdmittanceUnit.Kilosiemens, "Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricAdmittanceUnit.Megamho, "Megamho", "Megamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricAdmittanceUnit.Megasiemens, "Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricAdmittanceUnit.Mho, "Mho", "Mhos", BaseUnits.Undefined, - 1 - ); - yield return new (ElectricAdmittanceUnit.Micromho, "Micromho", "Micromhos", BaseUnits.Undefined, - 1000000 - ); - yield return new (ElectricAdmittanceUnit.Microsiemens, "Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000000 - ); - yield return new (ElectricAdmittanceUnit.Millimho, "Millimho", "Millimhos", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricAdmittanceUnit.Millisiemens, "Millisiemens", "Millisiemens", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricAdmittanceUnit.Nanomho, "Nanomho", "Nanomhos", BaseUnits.Undefined, - 1000000000 - ); - yield return new (ElectricAdmittanceUnit.Nanosiemens, "Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricAdmittanceUnit.Siemens, "Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricAdmittanceUnit.Teramho, "Teramho", "Teramhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (ElectricAdmittanceUnit.Terasiemens, "Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (ElectricAdmittanceUnit.Gigamho, "Gigamho", "Gigamhos", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (ElectricAdmittanceUnit.Gigasiemens, "Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000) + ), + new (ElectricAdmittanceUnit.Kilomho, "Kilomho", "Kilomhos", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricAdmittanceUnit.Kilosiemens, "Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000) + ), + new (ElectricAdmittanceUnit.Megamho, "Megamho", "Megamhos", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (ElectricAdmittanceUnit.Megasiemens, "Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000) + ), + new (ElectricAdmittanceUnit.Mho, "Mho", "Mhos", BaseUnits.Undefined, + 1 + ), + new (ElectricAdmittanceUnit.Micromho, "Micromho", "Micromhos", BaseUnits.Undefined, + 1000000 + ), + new (ElectricAdmittanceUnit.Microsiemens, "Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + 1000000 + ), + new (ElectricAdmittanceUnit.Millimho, "Millimho", "Millimhos", BaseUnits.Undefined, + 1000 + ), + new (ElectricAdmittanceUnit.Millisiemens, "Millisiemens", "Millisiemens", BaseUnits.Undefined, + 1000 + ), + new (ElectricAdmittanceUnit.Nanomho, "Nanomho", "Nanomhos", BaseUnits.Undefined, + 1000000000 + ), + new (ElectricAdmittanceUnit.Nanosiemens, "Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (ElectricAdmittanceUnit.Siemens, "Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricAdmittanceUnit.Teramho, "Teramho", "Teramhos", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000) + ), + new (ElectricAdmittanceUnit.Terasiemens, "Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs index b74b86ae15..043ba22aa2 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs @@ -118,13 +118,16 @@ public static ElectricApparentEnergyInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricApparentEnergy. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricApparentEnergyUnit.KilovoltampereHour, "KilovoltampereHour", "KilovoltampereHours", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricApparentEnergyUnit.MegavoltampereHour, "MegavoltampereHour", "MegavoltampereHours", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricApparentEnergyUnit.VoltampereHour, "VoltampereHour", "VoltampereHours", BaseUnits.Undefined); + return new UnitDefinition[] + { + new (ElectricApparentEnergyUnit.KilovoltampereHour, "KilovoltampereHour", "KilovoltampereHours", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricApparentEnergyUnit.MegavoltampereHour, "MegavoltampereHour", "MegavoltampereHours", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (ElectricApparentEnergyUnit.VoltampereHour, "VoltampereHour", "VoltampereHours", BaseUnits.Undefined), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs index cc39059cae..e4d825e98e 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs @@ -120,22 +120,25 @@ public static ElectricApparentPowerInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricApparentPower. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricApparentPowerUnit.Gigavoltampere, "Gigavoltampere", "Gigavoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricApparentPowerUnit.Kilovoltampere, "Kilovoltampere", "Kilovoltamperes", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricApparentPowerUnit.Megavoltampere, "Megavoltampere", "Megavoltamperes", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricApparentPowerUnit.Microvoltampere, "Microvoltampere", "Microvoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ElectricApparentPowerUnit.Millivoltampere, "Millivoltampere", "Millivoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (ElectricApparentPowerUnit.Voltampere, "Voltampere", "Voltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); + return new UnitDefinition[] + { + new (ElectricApparentPowerUnit.Gigavoltampere, "Gigavoltampere", "Gigavoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), + new QuantityValue(1, 1000000000) + ), + new (ElectricApparentPowerUnit.Kilovoltampere, "Kilovoltampere", "Kilovoltamperes", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricApparentPowerUnit.Megavoltampere, "Megavoltampere", "Megavoltamperes", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (ElectricApparentPowerUnit.Microvoltampere, "Microvoltampere", "Microvoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000000 + ), + new (ElectricApparentPowerUnit.Millivoltampere, "Millivoltampere", "Millivoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (ElectricApparentPowerUnit.Voltampere, "Voltampere", "Voltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs index a639eddcae..02eb87f0bb 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs @@ -120,25 +120,28 @@ public static ElectricCapacitanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCapacitance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricCapacitanceUnit.Farad, "Farad", "Farads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricCapacitanceUnit.Kilofarad, "Kilofarad", "Kilofarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricCapacitanceUnit.Megafarad, "Megafarad", "Megafarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricCapacitanceUnit.Microfarad, "Microfarad", "Microfarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000000 - ); - yield return new (ElectricCapacitanceUnit.Millifarad, "Millifarad", "Millifarads", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricCapacitanceUnit.Nanofarad, "Nanofarad", "Nanofarads", BaseUnits.Undefined, - 1000000000 - ); - yield return new (ElectricCapacitanceUnit.Picofarad, "Picofarad", "Picofarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - 1000000000000 - ); + return new UnitDefinition[] + { + new (ElectricCapacitanceUnit.Farad, "Farad", "Farads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricCapacitanceUnit.Kilofarad, "Kilofarad", "Kilofarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000) + ), + new (ElectricCapacitanceUnit.Megafarad, "Megafarad", "Megafarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000) + ), + new (ElectricCapacitanceUnit.Microfarad, "Microfarad", "Microfarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + 1000000 + ), + new (ElectricCapacitanceUnit.Millifarad, "Millifarad", "Millifarads", BaseUnits.Undefined, + 1000 + ), + new (ElectricCapacitanceUnit.Nanofarad, "Nanofarad", "Nanofarads", BaseUnits.Undefined, + 1000000000 + ), + new (ElectricCapacitanceUnit.Picofarad, "Picofarad", "Picofarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), + 1000000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs index c3af99af9e..7ab689c07a 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs @@ -128,37 +128,40 @@ public static ElectricChargeInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCharge. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricChargeUnit.AmpereHour, "AmpereHour", "AmpereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 3600) - ); - yield return new (ElectricChargeUnit.Coulomb, "Coulomb", "Coulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricChargeUnit.KiloampereHour, "KiloampereHour", "KiloampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Kiloampere), - new QuantityValue(1, 3600000) - ); - yield return new (ElectricChargeUnit.Kilocoulomb, "Kilocoulomb", "Kilocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Kiloampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricChargeUnit.MegaampereHour, "MegaampereHour", "MegaampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Megaampere), - new QuantityValue(1, 3600000000) - ); - yield return new (ElectricChargeUnit.Megacoulomb, "Megacoulomb", "Megacoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Megaampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricChargeUnit.Microcoulomb, "Microcoulomb", "Microcoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - 1000000 - ); - yield return new (ElectricChargeUnit.MilliampereHour, "MilliampereHour", "MilliampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(5, 18) - ); - yield return new (ElectricChargeUnit.Millicoulomb, "Millicoulomb", "Millicoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000 - ); - yield return new (ElectricChargeUnit.Nanocoulomb, "Nanocoulomb", "Nanocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Nanoampere), - 1000000000 - ); - yield return new (ElectricChargeUnit.Picocoulomb, "Picocoulomb", "Picocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Picoampere), - 1000000000000 - ); + return new UnitDefinition[] + { + new (ElectricChargeUnit.AmpereHour, "AmpereHour", "AmpereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 3600) + ), + new (ElectricChargeUnit.Coulomb, "Coulomb", "Coulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricChargeUnit.KiloampereHour, "KiloampereHour", "KiloampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Kiloampere), + new QuantityValue(1, 3600000) + ), + new (ElectricChargeUnit.Kilocoulomb, "Kilocoulomb", "Kilocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Kiloampere), + new QuantityValue(1, 1000) + ), + new (ElectricChargeUnit.MegaampereHour, "MegaampereHour", "MegaampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Megaampere), + new QuantityValue(1, 3600000000) + ), + new (ElectricChargeUnit.Megacoulomb, "Megacoulomb", "Megacoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Megaampere), + new QuantityValue(1, 1000000) + ), + new (ElectricChargeUnit.Microcoulomb, "Microcoulomb", "Microcoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), + 1000000 + ), + new (ElectricChargeUnit.MilliampereHour, "MilliampereHour", "MilliampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Milliampere), + new QuantityValue(5, 18) + ), + new (ElectricChargeUnit.Millicoulomb, "Millicoulomb", "Millicoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + 1000 + ), + new (ElectricChargeUnit.Nanocoulomb, "Nanocoulomb", "Nanocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Nanoampere), + 1000000000 + ), + new (ElectricChargeUnit.Picocoulomb, "Picocoulomb", "Picocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Picoampere), + 1000000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs index ff23698f29..e0b763bea2 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs @@ -120,7 +120,10 @@ public static ElectricChargeDensityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricChargeDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricChargeDensityUnit.CoulombPerCubicMeter, "CoulombPerCubicMeter", "CoulombsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (ElectricChargeDensityUnit.CoulombPerCubicMeter, "CoulombPerCubicMeter", "CoulombsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs index 9b34f2e776..1342933a04 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs @@ -120,52 +120,55 @@ public static ElectricConductanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricConductance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricConductanceUnit.Gigamho, "Gigamho", "Gigamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricConductanceUnit.Gigasiemens, "Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricConductanceUnit.Kilomho, "Kilomho", "Kilomhos", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricConductanceUnit.Kilosiemens, "Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricConductanceUnit.Megamho, "Megamho", "Megamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricConductanceUnit.Megasiemens, "Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricConductanceUnit.Mho, "Mho", "Mhos", BaseUnits.Undefined, - 1 - ); - yield return new (ElectricConductanceUnit.Micromho, "Micromho", "Micromhos", BaseUnits.Undefined, - 1000000 - ); - yield return new (ElectricConductanceUnit.Microsiemens, "Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000000 - ); - yield return new (ElectricConductanceUnit.Millimho, "Millimho", "Millimhos", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricConductanceUnit.Millisiemens, "Millisiemens", "Millisiemens", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricConductanceUnit.Nanomho, "Nanomho", "Nanomhos", BaseUnits.Undefined, - 1000000000 - ); - yield return new (ElectricConductanceUnit.Nanosiemens, "Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricConductanceUnit.Siemens, "Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricConductanceUnit.Teramho, "Teramho", "Teramhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (ElectricConductanceUnit.Terasiemens, "Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (ElectricConductanceUnit.Gigamho, "Gigamho", "Gigamhos", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (ElectricConductanceUnit.Gigasiemens, "Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000) + ), + new (ElectricConductanceUnit.Kilomho, "Kilomho", "Kilomhos", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricConductanceUnit.Kilosiemens, "Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000) + ), + new (ElectricConductanceUnit.Megamho, "Megamho", "Megamhos", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (ElectricConductanceUnit.Megasiemens, "Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000) + ), + new (ElectricConductanceUnit.Mho, "Mho", "Mhos", BaseUnits.Undefined, + 1 + ), + new (ElectricConductanceUnit.Micromho, "Micromho", "Micromhos", BaseUnits.Undefined, + 1000000 + ), + new (ElectricConductanceUnit.Microsiemens, "Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + 1000000 + ), + new (ElectricConductanceUnit.Millimho, "Millimho", "Millimhos", BaseUnits.Undefined, + 1000 + ), + new (ElectricConductanceUnit.Millisiemens, "Millisiemens", "Millisiemens", BaseUnits.Undefined, + 1000 + ), + new (ElectricConductanceUnit.Nanomho, "Nanomho", "Nanomhos", BaseUnits.Undefined, + 1000000000 + ), + new (ElectricConductanceUnit.Nanosiemens, "Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (ElectricConductanceUnit.Siemens, "Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricConductanceUnit.Teramho, "Teramho", "Teramhos", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000) + ), + new (ElectricConductanceUnit.Terasiemens, "Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs index 491d5de364..c8f7644658 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs @@ -119,22 +119,25 @@ public static ElectricConductivityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricConductivity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricConductivityUnit.MicrosiemensPerCentimeter, "MicrosiemensPerCentimeter", "MicrosiemensPerCentimeter", BaseUnits.Undefined, - 10000 - ); - yield return new (ElectricConductivityUnit.MillisiemensPerCentimeter, "MillisiemensPerCentimeter", "MillisiemensPerCentimeter", BaseUnits.Undefined, - 10 - ); - yield return new (ElectricConductivityUnit.SiemensPerCentimeter, "SiemensPerCentimeter", "SiemensPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (ElectricConductivityUnit.SiemensPerFoot, "SiemensPerFoot", "SiemensPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250) - ); - yield return new (ElectricConductivityUnit.SiemensPerInch, "SiemensPerInch", "SiemensPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000) - ); - yield return new (ElectricConductivityUnit.SiemensPerMeter, "SiemensPerMeter", "SiemensPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (ElectricConductivityUnit.MicrosiemensPerCentimeter, "MicrosiemensPerCentimeter", "MicrosiemensPerCentimeter", BaseUnits.Undefined, + 10000 + ), + new (ElectricConductivityUnit.MillisiemensPerCentimeter, "MillisiemensPerCentimeter", "MillisiemensPerCentimeter", BaseUnits.Undefined, + 10 + ), + new (ElectricConductivityUnit.SiemensPerCentimeter, "SiemensPerCentimeter", "SiemensPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (ElectricConductivityUnit.SiemensPerFoot, "SiemensPerFoot", "SiemensPerFoot", BaseUnits.Undefined, + new QuantityValue(381, 1250) + ), + new (ElectricConductivityUnit.SiemensPerInch, "SiemensPerInch", "SiemensPerInch", BaseUnits.Undefined, + new QuantityValue(127, 5000) + ), + new (ElectricConductivityUnit.SiemensPerMeter, "SiemensPerMeter", "SiemensPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs index 29db343b7d..211c2bb6db 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs @@ -128,31 +128,34 @@ public static ElectricCurrentInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCurrent. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricCurrentUnit.Ampere, "Ampere", "Amperes", new BaseUnits(current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricCurrentUnit.Centiampere, "Centiampere", "Centiamperes", new BaseUnits(current: ElectricCurrentUnit.Centiampere), - 100 - ); - yield return new (ElectricCurrentUnit.Femtoampere, "Femtoampere", "Femtoamperes", new BaseUnits(current: ElectricCurrentUnit.Femtoampere), - 1000000000000000 - ); - yield return new (ElectricCurrentUnit.Kiloampere, "Kiloampere", "Kiloamperes", new BaseUnits(current: ElectricCurrentUnit.Kiloampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricCurrentUnit.Megaampere, "Megaampere", "Megaamperes", new BaseUnits(current: ElectricCurrentUnit.Megaampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricCurrentUnit.Microampere, "Microampere", "Microamperes", new BaseUnits(current: ElectricCurrentUnit.Microampere), - 1000000 - ); - yield return new (ElectricCurrentUnit.Milliampere, "Milliampere", "Milliamperes", new BaseUnits(current: ElectricCurrentUnit.Milliampere), - 1000 - ); - yield return new (ElectricCurrentUnit.Nanoampere, "Nanoampere", "Nanoamperes", new BaseUnits(current: ElectricCurrentUnit.Nanoampere), - 1000000000 - ); - yield return new (ElectricCurrentUnit.Picoampere, "Picoampere", "Picoamperes", new BaseUnits(current: ElectricCurrentUnit.Picoampere), - 1000000000000 - ); + return new UnitDefinition[] + { + new (ElectricCurrentUnit.Ampere, "Ampere", "Amperes", new BaseUnits(current: ElectricCurrentUnit.Ampere)), + new (ElectricCurrentUnit.Centiampere, "Centiampere", "Centiamperes", new BaseUnits(current: ElectricCurrentUnit.Centiampere), + 100 + ), + new (ElectricCurrentUnit.Femtoampere, "Femtoampere", "Femtoamperes", new BaseUnits(current: ElectricCurrentUnit.Femtoampere), + 1000000000000000 + ), + new (ElectricCurrentUnit.Kiloampere, "Kiloampere", "Kiloamperes", new BaseUnits(current: ElectricCurrentUnit.Kiloampere), + new QuantityValue(1, 1000) + ), + new (ElectricCurrentUnit.Megaampere, "Megaampere", "Megaamperes", new BaseUnits(current: ElectricCurrentUnit.Megaampere), + new QuantityValue(1, 1000000) + ), + new (ElectricCurrentUnit.Microampere, "Microampere", "Microamperes", new BaseUnits(current: ElectricCurrentUnit.Microampere), + 1000000 + ), + new (ElectricCurrentUnit.Milliampere, "Milliampere", "Milliamperes", new BaseUnits(current: ElectricCurrentUnit.Milliampere), + 1000 + ), + new (ElectricCurrentUnit.Nanoampere, "Nanoampere", "Nanoamperes", new BaseUnits(current: ElectricCurrentUnit.Nanoampere), + 1000000000 + ), + new (ElectricCurrentUnit.Picoampere, "Picoampere", "Picoamperes", new BaseUnits(current: ElectricCurrentUnit.Picoampere), + 1000000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs index c20bdef8e4..2f1724602d 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs @@ -120,13 +120,16 @@ public static ElectricCurrentDensityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCurrentDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricCurrentDensityUnit.AmperePerSquareFoot, "AmperePerSquareFoot", "AmperesPerSquareFoot", new BaseUnits(length: LengthUnit.Foot, current: ElectricCurrentUnit.Ampere), - new QuantityValue(145161, 1562500) - ); - yield return new (ElectricCurrentDensityUnit.AmperePerSquareInch, "AmperePerSquareInch", "AmperesPerSquareInch", new BaseUnits(length: LengthUnit.Inch, current: ElectricCurrentUnit.Ampere), - new QuantityValue(16129, 25000000) - ); - yield return new (ElectricCurrentDensityUnit.AmperePerSquareMeter, "AmperePerSquareMeter", "AmperesPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (ElectricCurrentDensityUnit.AmperePerSquareFoot, "AmperePerSquareFoot", "AmperesPerSquareFoot", new BaseUnits(length: LengthUnit.Foot, current: ElectricCurrentUnit.Ampere), + new QuantityValue(145161, 1562500) + ), + new (ElectricCurrentDensityUnit.AmperePerSquareInch, "AmperePerSquareInch", "AmperesPerSquareInch", new BaseUnits(length: LengthUnit.Inch, current: ElectricCurrentUnit.Ampere), + new QuantityValue(16129, 25000000) + ), + new (ElectricCurrentDensityUnit.AmperePerSquareMeter, "AmperePerSquareMeter", "AmperesPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs index d218226373..921b72ca5a 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs @@ -117,25 +117,28 @@ public static ElectricCurrentGradientInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCurrentGradient. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricCurrentGradientUnit.AmperePerMicrosecond, "AmperePerMicrosecond", "AmperesPerMicrosecond", new BaseUnits(time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricCurrentGradientUnit.AmperePerMillisecond, "AmperePerMillisecond", "AmperesPerMillisecond", new BaseUnits(time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricCurrentGradientUnit.AmperePerMinute, "AmperePerMinute", "AmperesPerMinute", new BaseUnits(time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), - 60 - ); - yield return new (ElectricCurrentGradientUnit.AmperePerNanosecond, "AmperePerNanosecond", "AmperesPerNanosecond", new BaseUnits(time: DurationUnit.Nanosecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricCurrentGradientUnit.AmperePerSecond, "AmperePerSecond", "AmperesPerSecond", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricCurrentGradientUnit.MilliamperePerMinute, "MilliamperePerMinute", "MilliamperesPerMinute", new BaseUnits(time: DurationUnit.Minute, current: ElectricCurrentUnit.Milliampere), - 60000 - ); - yield return new (ElectricCurrentGradientUnit.MilliamperePerSecond, "MilliamperePerSecond", "MilliamperesPerSecond", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000 - ); + return new UnitDefinition[] + { + new (ElectricCurrentGradientUnit.AmperePerMicrosecond, "AmperePerMicrosecond", "AmperesPerMicrosecond", new BaseUnits(time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000) + ), + new (ElectricCurrentGradientUnit.AmperePerMillisecond, "AmperePerMillisecond", "AmperesPerMillisecond", new BaseUnits(time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000) + ), + new (ElectricCurrentGradientUnit.AmperePerMinute, "AmperePerMinute", "AmperesPerMinute", new BaseUnits(time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), + 60 + ), + new (ElectricCurrentGradientUnit.AmperePerNanosecond, "AmperePerNanosecond", "AmperesPerNanosecond", new BaseUnits(time: DurationUnit.Nanosecond, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000) + ), + new (ElectricCurrentGradientUnit.AmperePerSecond, "AmperePerSecond", "AmperesPerSecond", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricCurrentGradientUnit.MilliamperePerMinute, "MilliamperePerMinute", "MilliamperesPerMinute", new BaseUnits(time: DurationUnit.Minute, current: ElectricCurrentUnit.Milliampere), + 60000 + ), + new (ElectricCurrentGradientUnit.MilliamperePerSecond, "MilliamperePerSecond", "MilliamperesPerSecond", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + 1000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs index efb660104d..d3fc0777f3 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs @@ -120,7 +120,10 @@ public static ElectricFieldInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricField. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricFieldUnit.VoltPerMeter, "VoltPerMeter", "VoltsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (ElectricFieldUnit.VoltPerMeter, "VoltPerMeter", "VoltsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs index 71835b09c7..6dfb9e0cb4 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs @@ -120,28 +120,31 @@ public static ElectricImpedanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricImpedance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricImpedanceUnit.Gigaohm, "Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricImpedanceUnit.Kiloohm, "Kiloohm", "Kiloohms", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricImpedanceUnit.Megaohm, "Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricImpedanceUnit.Microohm, "Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricImpedanceUnit.Milliohm, "Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricImpedanceUnit.Nanoohm, "Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricImpedanceUnit.Ohm, "Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricImpedanceUnit.Teraohm, "Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (ElectricImpedanceUnit.Gigaohm, "Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000) + ), + new (ElectricImpedanceUnit.Kiloohm, "Kiloohm", "Kiloohms", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricImpedanceUnit.Megaohm, "Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000) + ), + new (ElectricImpedanceUnit.Microohm, "Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000 + ), + new (ElectricImpedanceUnit.Milliohm, "Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000 + ), + new (ElectricImpedanceUnit.Nanoohm, "Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (ElectricImpedanceUnit.Ohm, "Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricImpedanceUnit.Teraohm, "Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs index 0ed85fa627..554d9cf8cb 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs @@ -119,19 +119,22 @@ public static ElectricInductanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricInductance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricInductanceUnit.Henry, "Henry", "Henries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricInductanceUnit.Microhenry, "Microhenry", "Microhenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricInductanceUnit.Millihenry, "Millihenry", "Millihenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricInductanceUnit.Nanohenry, "Nanohenry", "Nanohenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricInductanceUnit.Picohenry, "Picohenry", "Picohenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000000 - ); + return new UnitDefinition[] + { + new (ElectricInductanceUnit.Henry, "Henry", "Henries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricInductanceUnit.Microhenry, "Microhenry", "Microhenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000 + ), + new (ElectricInductanceUnit.Millihenry, "Millihenry", "Millihenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000 + ), + new (ElectricInductanceUnit.Nanohenry, "Nanohenry", "Nanohenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (ElectricInductanceUnit.Picohenry, "Picohenry", "Picohenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs index f849778462..c93a49a2bb 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs @@ -129,22 +129,25 @@ public static ElectricPotentialInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricPotential. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricPotentialUnit.Kilovolt, "Kilovolt", "Kilovolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricPotentialUnit.Megavolt, "Megavolt", "Megavolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricPotentialUnit.Microvolt, "Microvolt", "Microvolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricPotentialUnit.Millivolt, "Millivolt", "Millivolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricPotentialUnit.Nanovolt, "Nanovolt", "Nanovolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricPotentialUnit.Volt, "Volt", "Volts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (ElectricPotentialUnit.Kilovolt, "Kilovolt", "Kilovolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + new QuantityValue(1, 1000) + ), + new (ElectricPotentialUnit.Megavolt, "Megavolt", "Megavolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), + new QuantityValue(1, 1000000) + ), + new (ElectricPotentialUnit.Microvolt, "Microvolt", "Microvolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000 + ), + new (ElectricPotentialUnit.Millivolt, "Millivolt", "Millivolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000 + ), + new (ElectricPotentialUnit.Nanovolt, "Nanovolt", "Nanovolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (ElectricPotentialUnit.Volt, "Volt", "Volts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs index e175d42d45..983f5b8e99 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs @@ -117,64 +117,67 @@ public static ElectricPotentialChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricPotentialChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricPotentialChangeRateUnit.KilovoltPerHour, "KilovoltPerHour", "KilovoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(18, 5) - ); - yield return new (ElectricPotentialChangeRateUnit.KilovoltPerMicrosecond, "KilovoltPerMicrosecond", "KilovoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricPotentialChangeRateUnit.KilovoltPerMinute, "KilovoltPerMinute", "KilovoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(3, 50) - ); - yield return new (ElectricPotentialChangeRateUnit.KilovoltPerSecond, "KilovoltPerSecond", "KilovoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricPotentialChangeRateUnit.MegavoltPerHour, "MegavoltPerHour", "MegavoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Microampere), - new QuantityValue(9, 2500) - ); - yield return new (ElectricPotentialChangeRateUnit.MegavoltPerMicrosecond, "MegavoltPerMicrosecond", "MegavoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Microampere), - new QuantityValue(1, 1000000000000) - ); - yield return new (ElectricPotentialChangeRateUnit.MegavoltPerMinute, "MegavoltPerMinute", "MegavoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Microampere), - new QuantityValue(3, 50000) - ); - yield return new (ElectricPotentialChangeRateUnit.MegavoltPerSecond, "MegavoltPerSecond", "MegavoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerHour, "MicrovoltPerHour", "MicrovoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), - 3600000000 - ); - yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerMicrosecond, "MicrovoltPerMicrosecond", "MicrovoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), - 1 - ); - yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerMinute, "MicrovoltPerMinute", "MicrovoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), - 60000000 - ); - yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerSecond, "MicrovoltPerSecond", "MicrovoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricPotentialChangeRateUnit.MillivoltPerHour, "MillivoltPerHour", "MillivoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), - 3600000 - ); - yield return new (ElectricPotentialChangeRateUnit.MillivoltPerMicrosecond, "MillivoltPerMicrosecond", "MillivoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricPotentialChangeRateUnit.MillivoltPerMinute, "MillivoltPerMinute", "MillivoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), - 60000 - ); - yield return new (ElectricPotentialChangeRateUnit.MillivoltPerSecond, "MillivoltPerSecond", "MillivoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricPotentialChangeRateUnit.VoltPerHour, "VoltPerHour", "VoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), - 3600 - ); - yield return new (ElectricPotentialChangeRateUnit.VoltPerMicrosecond, "VoltPerMicrosecond", "VoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricPotentialChangeRateUnit.VoltPerMinute, "VoltPerMinute", "VoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), - 60 - ); - yield return new (ElectricPotentialChangeRateUnit.VoltPerSecond, "VoltPerSecond", "VoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (ElectricPotentialChangeRateUnit.KilovoltPerHour, "KilovoltPerHour", "KilovoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Milliampere), + new QuantityValue(18, 5) + ), + new (ElectricPotentialChangeRateUnit.KilovoltPerMicrosecond, "KilovoltPerMicrosecond", "KilovoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Milliampere), + new QuantityValue(1, 1000000000) + ), + new (ElectricPotentialChangeRateUnit.KilovoltPerMinute, "KilovoltPerMinute", "KilovoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Milliampere), + new QuantityValue(3, 50) + ), + new (ElectricPotentialChangeRateUnit.KilovoltPerSecond, "KilovoltPerSecond", "KilovoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + new QuantityValue(1, 1000) + ), + new (ElectricPotentialChangeRateUnit.MegavoltPerHour, "MegavoltPerHour", "MegavoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Microampere), + new QuantityValue(9, 2500) + ), + new (ElectricPotentialChangeRateUnit.MegavoltPerMicrosecond, "MegavoltPerMicrosecond", "MegavoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Microampere), + new QuantityValue(1, 1000000000000) + ), + new (ElectricPotentialChangeRateUnit.MegavoltPerMinute, "MegavoltPerMinute", "MegavoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Microampere), + new QuantityValue(3, 50000) + ), + new (ElectricPotentialChangeRateUnit.MegavoltPerSecond, "MegavoltPerSecond", "MegavoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), + new QuantityValue(1, 1000000) + ), + new (ElectricPotentialChangeRateUnit.MicrovoltPerHour, "MicrovoltPerHour", "MicrovoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), + 3600000000 + ), + new (ElectricPotentialChangeRateUnit.MicrovoltPerMicrosecond, "MicrovoltPerMicrosecond", "MicrovoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), + 1 + ), + new (ElectricPotentialChangeRateUnit.MicrovoltPerMinute, "MicrovoltPerMinute", "MicrovoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), + 60000000 + ), + new (ElectricPotentialChangeRateUnit.MicrovoltPerSecond, "MicrovoltPerSecond", "MicrovoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000 + ), + new (ElectricPotentialChangeRateUnit.MillivoltPerHour, "MillivoltPerHour", "MillivoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), + 3600000 + ), + new (ElectricPotentialChangeRateUnit.MillivoltPerMicrosecond, "MillivoltPerMicrosecond", "MillivoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000) + ), + new (ElectricPotentialChangeRateUnit.MillivoltPerMinute, "MillivoltPerMinute", "MillivoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), + 60000 + ), + new (ElectricPotentialChangeRateUnit.MillivoltPerSecond, "MillivoltPerSecond", "MillivoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000 + ), + new (ElectricPotentialChangeRateUnit.VoltPerHour, "VoltPerHour", "VoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), + 3600 + ), + new (ElectricPotentialChangeRateUnit.VoltPerMicrosecond, "VoltPerMicrosecond", "VoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000) + ), + new (ElectricPotentialChangeRateUnit.VoltPerMinute, "VoltPerMinute", "VoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), + 60 + ), + new (ElectricPotentialChangeRateUnit.VoltPerSecond, "VoltPerSecond", "VoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs index 3559d695f0..914bea18b9 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs @@ -119,28 +119,31 @@ public static ElectricReactanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricReactance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricReactanceUnit.Gigaohm, "Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricReactanceUnit.Kiloohm, "Kiloohm", "Kiloohms", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricReactanceUnit.Megaohm, "Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricReactanceUnit.Microohm, "Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricReactanceUnit.Milliohm, "Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricReactanceUnit.Nanoohm, "Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricReactanceUnit.Ohm, "Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricReactanceUnit.Teraohm, "Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (ElectricReactanceUnit.Gigaohm, "Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000) + ), + new (ElectricReactanceUnit.Kiloohm, "Kiloohm", "Kiloohms", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricReactanceUnit.Megaohm, "Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000) + ), + new (ElectricReactanceUnit.Microohm, "Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000 + ), + new (ElectricReactanceUnit.Milliohm, "Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000 + ), + new (ElectricReactanceUnit.Nanoohm, "Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (ElectricReactanceUnit.Ohm, "Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricReactanceUnit.Teraohm, "Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs index 23a644d3f1..b0633d6bdb 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs @@ -118,13 +118,16 @@ public static ElectricReactiveEnergyInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricReactiveEnergy. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricReactiveEnergyUnit.KilovoltampereReactiveHour, "KilovoltampereReactiveHour", "KilovoltampereReactiveHours", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricReactiveEnergyUnit.MegavoltampereReactiveHour, "MegavoltampereReactiveHour", "MegavoltampereReactiveHours", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricReactiveEnergyUnit.VoltampereReactiveHour, "VoltampereReactiveHour", "VoltampereReactiveHours", BaseUnits.Undefined); + return new UnitDefinition[] + { + new (ElectricReactiveEnergyUnit.KilovoltampereReactiveHour, "KilovoltampereReactiveHour", "KilovoltampereReactiveHours", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricReactiveEnergyUnit.MegavoltampereReactiveHour, "MegavoltampereReactiveHour", "MegavoltampereReactiveHours", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (ElectricReactiveEnergyUnit.VoltampereReactiveHour, "VoltampereReactiveHour", "VoltampereReactiveHours", BaseUnits.Undefined), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs index c21c011153..7366bbb0a6 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs @@ -120,16 +120,19 @@ public static ElectricReactivePowerInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricReactivePower. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricReactivePowerUnit.GigavoltampereReactive, "GigavoltampereReactive", "GigavoltamperesReactive", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricReactivePowerUnit.KilovoltampereReactive, "KilovoltampereReactive", "KilovoltamperesReactive", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricReactivePowerUnit.MegavoltampereReactive, "MegavoltampereReactive", "MegavoltamperesReactive", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricReactivePowerUnit.VoltampereReactive, "VoltampereReactive", "VoltamperesReactive", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); + return new UnitDefinition[] + { + new (ElectricReactivePowerUnit.GigavoltampereReactive, "GigavoltampereReactive", "GigavoltamperesReactive", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), + new QuantityValue(1, 1000000000) + ), + new (ElectricReactivePowerUnit.KilovoltampereReactive, "KilovoltampereReactive", "KilovoltamperesReactive", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricReactivePowerUnit.MegavoltampereReactive, "MegavoltampereReactive", "MegavoltamperesReactive", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (ElectricReactivePowerUnit.VoltampereReactive, "VoltampereReactive", "VoltamperesReactive", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs index 0ff74bacd3..b13e1cd42b 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs @@ -120,28 +120,31 @@ public static ElectricResistanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricResistance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricResistanceUnit.Gigaohm, "Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricResistanceUnit.Kiloohm, "Kiloohm", "Kiloohms", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricResistanceUnit.Megaohm, "Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricResistanceUnit.Microohm, "Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricResistanceUnit.Milliohm, "Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricResistanceUnit.Nanoohm, "Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricResistanceUnit.Ohm, "Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricResistanceUnit.Teraohm, "Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (ElectricResistanceUnit.Gigaohm, "Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000) + ), + new (ElectricResistanceUnit.Kiloohm, "Kiloohm", "Kiloohms", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricResistanceUnit.Megaohm, "Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000) + ), + new (ElectricResistanceUnit.Microohm, "Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000 + ), + new (ElectricResistanceUnit.Milliohm, "Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000 + ), + new (ElectricResistanceUnit.Nanoohm, "Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (ElectricResistanceUnit.Ohm, "Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricResistanceUnit.Teraohm, "Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs index 109518382d..f5757b454c 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs @@ -119,46 +119,49 @@ public static ElectricResistivityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricResistivity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricResistivityUnit.KiloohmCentimeter, "KiloohmCentimeter", "KiloohmsCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (ElectricResistivityUnit.KiloohmMeter, "KiloohmMeter", "KiloohmMeters", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricResistivityUnit.MegaohmCentimeter, "MegaohmCentimeter", "MegaohmsCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (ElectricResistivityUnit.MegaohmMeter, "MegaohmMeter", "MegaohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricResistivityUnit.MicroohmCentimeter, "MicroohmCentimeter", "MicroohmsCentimeter", BaseUnits.Undefined, - 100000000 - ); - yield return new (ElectricResistivityUnit.MicroohmMeter, "MicroohmMeter", "MicroohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricResistivityUnit.MilliohmCentimeter, "MilliohmCentimeter", "MilliohmsCentimeter", BaseUnits.Undefined, - 100000 - ); - yield return new (ElectricResistivityUnit.MilliohmMeter, "MilliohmMeter", "MilliohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricResistivityUnit.NanoohmCentimeter, "NanoohmCentimeter", "NanoohmsCentimeter", BaseUnits.Undefined, - 100000000000 - ); - yield return new (ElectricResistivityUnit.NanoohmMeter, "NanoohmMeter", "NanoohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricResistivityUnit.OhmCentimeter, "OhmCentimeter", "OhmsCentimeter", BaseUnits.Undefined, - 100 - ); - yield return new (ElectricResistivityUnit.OhmMeter, "OhmMeter", "OhmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricResistivityUnit.PicoohmCentimeter, "PicoohmCentimeter", "PicoohmsCentimeter", BaseUnits.Undefined, - 100000000000000 - ); - yield return new (ElectricResistivityUnit.PicoohmMeter, "PicoohmMeter", "PicoohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000000 - ); + return new UnitDefinition[] + { + new (ElectricResistivityUnit.KiloohmCentimeter, "KiloohmCentimeter", "KiloohmsCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (ElectricResistivityUnit.KiloohmMeter, "KiloohmMeter", "KiloohmMeters", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000) + ), + new (ElectricResistivityUnit.MegaohmCentimeter, "MegaohmCentimeter", "MegaohmsCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (ElectricResistivityUnit.MegaohmMeter, "MegaohmMeter", "MegaohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + new QuantityValue(1, 1000000) + ), + new (ElectricResistivityUnit.MicroohmCentimeter, "MicroohmCentimeter", "MicroohmsCentimeter", BaseUnits.Undefined, + 100000000 + ), + new (ElectricResistivityUnit.MicroohmMeter, "MicroohmMeter", "MicroohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000 + ), + new (ElectricResistivityUnit.MilliohmCentimeter, "MilliohmCentimeter", "MilliohmsCentimeter", BaseUnits.Undefined, + 100000 + ), + new (ElectricResistivityUnit.MilliohmMeter, "MilliohmMeter", "MilliohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000 + ), + new (ElectricResistivityUnit.NanoohmCentimeter, "NanoohmCentimeter", "NanoohmsCentimeter", BaseUnits.Undefined, + 100000000000 + ), + new (ElectricResistivityUnit.NanoohmMeter, "NanoohmMeter", "NanoohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (ElectricResistivityUnit.OhmCentimeter, "OhmCentimeter", "OhmsCentimeter", BaseUnits.Undefined, + 100 + ), + new (ElectricResistivityUnit.OhmMeter, "OhmMeter", "OhmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricResistivityUnit.PicoohmCentimeter, "PicoohmCentimeter", "PicoohmsCentimeter", BaseUnits.Undefined, + 100000000000000 + ), + new (ElectricResistivityUnit.PicoohmMeter, "PicoohmMeter", "PicoohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + 1000000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs index c7c8efd3e7..df844a31b8 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs @@ -120,13 +120,16 @@ public static ElectricSurfaceChargeDensityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricSurfaceChargeDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter, "CoulombPerSquareCentimeter", "CoulombsPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 10000) - ); - yield return new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch, "CoulombPerSquareInch", "CoulombsPerSquareInch", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(16129, 25000000) - ); - yield return new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter, "CoulombPerSquareMeter", "CoulombsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter, "CoulombPerSquareCentimeter", "CoulombsPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 10000) + ), + new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch, "CoulombPerSquareInch", "CoulombsPerSquareInch", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(16129, 25000000) + ), + new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter, "CoulombPerSquareMeter", "CoulombsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs index 07c01295e5..668809575b 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs @@ -119,52 +119,55 @@ public static ElectricSusceptanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricSusceptance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricSusceptanceUnit.Gigamho, "Gigamho", "Gigamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricSusceptanceUnit.Gigasiemens, "Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricSusceptanceUnit.Kilomho, "Kilomho", "Kilomhos", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricSusceptanceUnit.Kilosiemens, "Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricSusceptanceUnit.Megamho, "Megamho", "Megamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricSusceptanceUnit.Megasiemens, "Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricSusceptanceUnit.Mho, "Mho", "Mhos", BaseUnits.Undefined, - 1 - ); - yield return new (ElectricSusceptanceUnit.Micromho, "Micromho", "Micromhos", BaseUnits.Undefined, - 1000000 - ); - yield return new (ElectricSusceptanceUnit.Microsiemens, "Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000000 - ); - yield return new (ElectricSusceptanceUnit.Millimho, "Millimho", "Millimhos", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricSusceptanceUnit.Millisiemens, "Millisiemens", "Millisiemens", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricSusceptanceUnit.Nanomho, "Nanomho", "Nanomhos", BaseUnits.Undefined, - 1000000000 - ); - yield return new (ElectricSusceptanceUnit.Nanosiemens, "Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricSusceptanceUnit.Siemens, "Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricSusceptanceUnit.Teramho, "Teramho", "Teramhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (ElectricSusceptanceUnit.Terasiemens, "Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (ElectricSusceptanceUnit.Gigamho, "Gigamho", "Gigamhos", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (ElectricSusceptanceUnit.Gigasiemens, "Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000) + ), + new (ElectricSusceptanceUnit.Kilomho, "Kilomho", "Kilomhos", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ElectricSusceptanceUnit.Kilosiemens, "Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000) + ), + new (ElectricSusceptanceUnit.Megamho, "Megamho", "Megamhos", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (ElectricSusceptanceUnit.Megasiemens, "Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000) + ), + new (ElectricSusceptanceUnit.Mho, "Mho", "Mhos", BaseUnits.Undefined, + 1 + ), + new (ElectricSusceptanceUnit.Micromho, "Micromho", "Micromhos", BaseUnits.Undefined, + 1000000 + ), + new (ElectricSusceptanceUnit.Microsiemens, "Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + 1000000 + ), + new (ElectricSusceptanceUnit.Millimho, "Millimho", "Millimhos", BaseUnits.Undefined, + 1000 + ), + new (ElectricSusceptanceUnit.Millisiemens, "Millisiemens", "Millisiemens", BaseUnits.Undefined, + 1000 + ), + new (ElectricSusceptanceUnit.Nanomho, "Nanomho", "Nanomhos", BaseUnits.Undefined, + 1000000000 + ), + new (ElectricSusceptanceUnit.Nanosiemens, "Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (ElectricSusceptanceUnit.Siemens, "Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (ElectricSusceptanceUnit.Teramho, "Teramho", "Teramhos", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000) + ), + new (ElectricSusceptanceUnit.Terasiemens, "Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs index 5b6c1e1d60..ed2999ce77 100644 --- a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs @@ -129,124 +129,127 @@ public static EnergyInfo CreateDefault(FuncAn of representing the default unit mappings for Energy. public static IEnumerable> GetDefaultMappings() { - yield return new (EnergyUnit.BritishThermalUnit, "BritishThermalUnit", "BritishThermalUnits", BaseUnits.Undefined, - new QuantityValue(50000000, 52752792631) - ); - yield return new (EnergyUnit.Calorie, "Calorie", "Calories", BaseUnits.Undefined, - new QuantityValue(125, 523) - ); - yield return new (EnergyUnit.DecathermEc, "DecathermEc", "DecathermsEc", BaseUnits.Undefined, - new QuantityValue(50, 52752792631) - ); - yield return new (EnergyUnit.DecathermImperial, "DecathermImperial", "DecathermsImperial", BaseUnits.Undefined, - new QuantityValue(25000, 26376396314337) - ); - yield return new (EnergyUnit.DecathermUs, "DecathermUs", "DecathermsUs", BaseUnits.Undefined, - new QuantityValue(1, 1054804000) - ); - yield return new (EnergyUnit.ElectronVolt, "ElectronVolt", "ElectronVolts", BaseUnits.Undefined, - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(27), 801088317) - ); - yield return new (EnergyUnit.Erg, "Erg", "Ergs", BaseUnits.Undefined, - 10000000 - ); - yield return new (EnergyUnit.FootPound, "FootPound", "FootPounds", BaseUnits.Undefined, - new QuantityValue(2500000000000000, 3389544870828501) - ); - yield return new (EnergyUnit.GigabritishThermalUnit, "GigabritishThermalUnit", "GigabritishThermalUnits", BaseUnits.Undefined, - new QuantityValue(1, 1055055852620) - ); - yield return new (EnergyUnit.GigaelectronVolt, "GigaelectronVolt", "GigaelectronVolts", BaseUnits.Undefined, - new QuantityValue(5000000000000000000, 801088317) - ); - yield return new (EnergyUnit.Gigajoule, "Gigajoule", "Gigajoules", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (EnergyUnit.GigawattDay, "GigawattDay", "GigawattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000) - ); - yield return new (EnergyUnit.GigawattHour, "GigawattHour", "GigawattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000) - ); - yield return new (EnergyUnit.HorsepowerHour, "HorsepowerHour", "HorsepowerHours", BaseUnits.Undefined, - new QuantityValue(500000000, 1342259768728053) - ); - yield return new (EnergyUnit.Joule, "Joule", "Joules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (EnergyUnit.KilobritishThermalUnit, "KilobritishThermalUnit", "KilobritishThermalUnits", BaseUnits.Undefined, - new QuantityValue(50000, 52752792631) - ); - yield return new (EnergyUnit.Kilocalorie, "Kilocalorie", "Kilocalories", BaseUnits.Undefined, - new QuantityValue(1, 4184) - ); - yield return new (EnergyUnit.KiloelectronVolt, "KiloelectronVolt", "KiloelectronVolts", BaseUnits.Undefined, - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(24), 801088317) - ); - yield return new (EnergyUnit.Kilojoule, "Kilojoule", "Kilojoules", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (EnergyUnit.KilowattDay, "KilowattDay", "KilowattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400000) - ); - yield return new (EnergyUnit.KilowattHour, "KilowattHour", "KilowattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600000) - ); - yield return new (EnergyUnit.MegabritishThermalUnit, "MegabritishThermalUnit", "MegabritishThermalUnits", BaseUnits.Undefined, - new QuantityValue(50, 52752792631) - ); - yield return new (EnergyUnit.Megacalorie, "Megacalorie", "Megacalories", BaseUnits.Undefined, - new QuantityValue(1, 4184000) - ); - yield return new (EnergyUnit.MegaelectronVolt, "MegaelectronVolt", "MegaelectronVolts", BaseUnits.Undefined, - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(21), 801088317) - ); - yield return new (EnergyUnit.Megajoule, "Megajoule", "Megajoules", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (EnergyUnit.MegawattDay, "MegawattDay", "MegawattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400000000) - ); - yield return new (EnergyUnit.MegawattHour, "MegawattHour", "MegawattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600000000) - ); - yield return new (EnergyUnit.Microjoule, "Microjoule", "Microjoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (EnergyUnit.Millijoule, "Millijoule", "Millijoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (EnergyUnit.Nanojoule, "Nanojoule", "Nanojoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (EnergyUnit.Petajoule, "Petajoule", "Petajoules", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (EnergyUnit.TeraelectronVolt, "TeraelectronVolt", "TeraelectronVolts", BaseUnits.Undefined, - new QuantityValue(5000000000000000, 801088317) - ); - yield return new (EnergyUnit.Terajoule, "Terajoule", "Terajoules", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (EnergyUnit.TerawattDay, "TerawattDay", "TerawattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000000) - ); - yield return new (EnergyUnit.TerawattHour, "TerawattHour", "TerawattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000000) - ); - yield return new (EnergyUnit.ThermEc, "ThermEc", "ThermsEc", BaseUnits.Undefined, - new QuantityValue(500, 52752792631) - ); - yield return new (EnergyUnit.ThermImperial, "ThermImperial", "ThermsImperial", BaseUnits.Undefined, - new QuantityValue(250000, 26376396314337) - ); - yield return new (EnergyUnit.ThermUs, "ThermUs", "ThermsUs", BaseUnits.Undefined, - new QuantityValue(1, 105480400) - ); - yield return new (EnergyUnit.WattDay, "WattDay", "WattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400) - ); - yield return new (EnergyUnit.WattHour, "WattHour", "WattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600) - ); + return new UnitDefinition[] + { + new (EnergyUnit.BritishThermalUnit, "BritishThermalUnit", "BritishThermalUnits", BaseUnits.Undefined, + new QuantityValue(50000000, 52752792631) + ), + new (EnergyUnit.Calorie, "Calorie", "Calories", BaseUnits.Undefined, + new QuantityValue(125, 523) + ), + new (EnergyUnit.DecathermEc, "DecathermEc", "DecathermsEc", BaseUnits.Undefined, + new QuantityValue(50, 52752792631) + ), + new (EnergyUnit.DecathermImperial, "DecathermImperial", "DecathermsImperial", BaseUnits.Undefined, + new QuantityValue(25000, 26376396314337) + ), + new (EnergyUnit.DecathermUs, "DecathermUs", "DecathermsUs", BaseUnits.Undefined, + new QuantityValue(1, 1054804000) + ), + new (EnergyUnit.ElectronVolt, "ElectronVolt", "ElectronVolts", BaseUnits.Undefined, + new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(27), 801088317) + ), + new (EnergyUnit.Erg, "Erg", "Ergs", BaseUnits.Undefined, + 10000000 + ), + new (EnergyUnit.FootPound, "FootPound", "FootPounds", BaseUnits.Undefined, + new QuantityValue(2500000000000000, 3389544870828501) + ), + new (EnergyUnit.GigabritishThermalUnit, "GigabritishThermalUnit", "GigabritishThermalUnits", BaseUnits.Undefined, + new QuantityValue(1, 1055055852620) + ), + new (EnergyUnit.GigaelectronVolt, "GigaelectronVolt", "GigaelectronVolts", BaseUnits.Undefined, + new QuantityValue(5000000000000000000, 801088317) + ), + new (EnergyUnit.Gigajoule, "Gigajoule", "Gigajoules", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (EnergyUnit.GigawattDay, "GigawattDay", "GigawattDays", BaseUnits.Undefined, + new QuantityValue(1, 86400000000000) + ), + new (EnergyUnit.GigawattHour, "GigawattHour", "GigawattHours", BaseUnits.Undefined, + new QuantityValue(1, 3600000000000) + ), + new (EnergyUnit.HorsepowerHour, "HorsepowerHour", "HorsepowerHours", BaseUnits.Undefined, + new QuantityValue(500000000, 1342259768728053) + ), + new (EnergyUnit.Joule, "Joule", "Joules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (EnergyUnit.KilobritishThermalUnit, "KilobritishThermalUnit", "KilobritishThermalUnits", BaseUnits.Undefined, + new QuantityValue(50000, 52752792631) + ), + new (EnergyUnit.Kilocalorie, "Kilocalorie", "Kilocalories", BaseUnits.Undefined, + new QuantityValue(1, 4184) + ), + new (EnergyUnit.KiloelectronVolt, "KiloelectronVolt", "KiloelectronVolts", BaseUnits.Undefined, + new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(24), 801088317) + ), + new (EnergyUnit.Kilojoule, "Kilojoule", "Kilojoules", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (EnergyUnit.KilowattDay, "KilowattDay", "KilowattDays", BaseUnits.Undefined, + new QuantityValue(1, 86400000) + ), + new (EnergyUnit.KilowattHour, "KilowattHour", "KilowattHours", BaseUnits.Undefined, + new QuantityValue(1, 3600000) + ), + new (EnergyUnit.MegabritishThermalUnit, "MegabritishThermalUnit", "MegabritishThermalUnits", BaseUnits.Undefined, + new QuantityValue(50, 52752792631) + ), + new (EnergyUnit.Megacalorie, "Megacalorie", "Megacalories", BaseUnits.Undefined, + new QuantityValue(1, 4184000) + ), + new (EnergyUnit.MegaelectronVolt, "MegaelectronVolt", "MegaelectronVolts", BaseUnits.Undefined, + new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(21), 801088317) + ), + new (EnergyUnit.Megajoule, "Megajoule", "Megajoules", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (EnergyUnit.MegawattDay, "MegawattDay", "MegawattDays", BaseUnits.Undefined, + new QuantityValue(1, 86400000000) + ), + new (EnergyUnit.MegawattHour, "MegawattHour", "MegawattHours", BaseUnits.Undefined, + new QuantityValue(1, 3600000000) + ), + new (EnergyUnit.Microjoule, "Microjoule", "Microjoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000000 + ), + new (EnergyUnit.Millijoule, "Millijoule", "Millijoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (EnergyUnit.Nanojoule, "Nanojoule", "Nanojoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), + 1000000000 + ), + new (EnergyUnit.Petajoule, "Petajoule", "Petajoules", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000) + ), + new (EnergyUnit.TeraelectronVolt, "TeraelectronVolt", "TeraelectronVolts", BaseUnits.Undefined, + new QuantityValue(5000000000000000, 801088317) + ), + new (EnergyUnit.Terajoule, "Terajoule", "Terajoules", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000000) + ), + new (EnergyUnit.TerawattDay, "TerawattDay", "TerawattDays", BaseUnits.Undefined, + new QuantityValue(1, 86400000000000000) + ), + new (EnergyUnit.TerawattHour, "TerawattHour", "TerawattHours", BaseUnits.Undefined, + new QuantityValue(1, 3600000000000000) + ), + new (EnergyUnit.ThermEc, "ThermEc", "ThermsEc", BaseUnits.Undefined, + new QuantityValue(500, 52752792631) + ), + new (EnergyUnit.ThermImperial, "ThermImperial", "ThermsImperial", BaseUnits.Undefined, + new QuantityValue(250000, 26376396314337) + ), + new (EnergyUnit.ThermUs, "ThermUs", "ThermsUs", BaseUnits.Undefined, + new QuantityValue(1, 105480400) + ), + new (EnergyUnit.WattDay, "WattDay", "WattDays", BaseUnits.Undefined, + new QuantityValue(1, 86400) + ), + new (EnergyUnit.WattHour, "WattHour", "WattHours", BaseUnits.Undefined, + new QuantityValue(1, 3600) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs index 02684511b4..0e013c454b 100644 --- a/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs @@ -119,40 +119,43 @@ public static EnergyDensityInfo CreateDefault(FuncAn of representing the default unit mappings for EnergyDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (EnergyDensityUnit.GigajoulePerCubicMeter, "GigajoulePerCubicMeter", "GigajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000) - ); - yield return new (EnergyDensityUnit.GigawattHourPerCubicMeter, "GigawattHourPerCubicMeter", "GigawattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000) - ); - yield return new (EnergyDensityUnit.JoulePerCubicMeter, "JoulePerCubicMeter", "JoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (EnergyDensityUnit.KilojoulePerCubicMeter, "KilojoulePerCubicMeter", "KilojoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (EnergyDensityUnit.KilowattHourPerCubicMeter, "KilowattHourPerCubicMeter", "KilowattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000) - ); - yield return new (EnergyDensityUnit.MegajoulePerCubicMeter, "MegajoulePerCubicMeter", "MegajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (EnergyDensityUnit.MegawattHourPerCubicMeter, "MegawattHourPerCubicMeter", "MegawattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000000) - ); - yield return new (EnergyDensityUnit.PetajoulePerCubicMeter, "PetajoulePerCubicMeter", "PetajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Femtometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000000) - ); - yield return new (EnergyDensityUnit.PetawattHourPerCubicMeter, "PetawattHourPerCubicMeter", "PetawattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000000000) - ); - yield return new (EnergyDensityUnit.TerajoulePerCubicMeter, "TerajoulePerCubicMeter", "TerajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Picometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (EnergyDensityUnit.TerawattHourPerCubicMeter, "TerawattHourPerCubicMeter", "TerawattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000000) - ); - yield return new (EnergyDensityUnit.WattHourPerCubicMeter, "WattHourPerCubicMeter", "WattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600) - ); + return new UnitDefinition[] + { + new (EnergyDensityUnit.GigajoulePerCubicMeter, "GigajoulePerCubicMeter", "GigajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000) + ), + new (EnergyDensityUnit.GigawattHourPerCubicMeter, "GigawattHourPerCubicMeter", "GigawattHoursPerCubicMeter", BaseUnits.Undefined, + new QuantityValue(1, 3600000000000) + ), + new (EnergyDensityUnit.JoulePerCubicMeter, "JoulePerCubicMeter", "JoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (EnergyDensityUnit.KilojoulePerCubicMeter, "KilojoulePerCubicMeter", "KilojoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (EnergyDensityUnit.KilowattHourPerCubicMeter, "KilowattHourPerCubicMeter", "KilowattHoursPerCubicMeter", BaseUnits.Undefined, + new QuantityValue(1, 3600000) + ), + new (EnergyDensityUnit.MegajoulePerCubicMeter, "MegajoulePerCubicMeter", "MegajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (EnergyDensityUnit.MegawattHourPerCubicMeter, "MegawattHourPerCubicMeter", "MegawattHoursPerCubicMeter", BaseUnits.Undefined, + new QuantityValue(1, 3600000000) + ), + new (EnergyDensityUnit.PetajoulePerCubicMeter, "PetajoulePerCubicMeter", "PetajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Femtometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000000000) + ), + new (EnergyDensityUnit.PetawattHourPerCubicMeter, "PetawattHourPerCubicMeter", "PetawattHoursPerCubicMeter", BaseUnits.Undefined, + new QuantityValue(1, 3600000000000000000) + ), + new (EnergyDensityUnit.TerajoulePerCubicMeter, "TerajoulePerCubicMeter", "TerajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Picometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000000) + ), + new (EnergyDensityUnit.TerawattHourPerCubicMeter, "TerawattHourPerCubicMeter", "TerawattHoursPerCubicMeter", BaseUnits.Undefined, + new QuantityValue(1, 3600000000000000) + ), + new (EnergyDensityUnit.WattHourPerCubicMeter, "WattHourPerCubicMeter", "WattHoursPerCubicMeter", BaseUnits.Undefined, + new QuantityValue(1, 3600) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs index 94a156cf60..ac11a7d86a 100644 --- a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs @@ -119,25 +119,28 @@ public static EntropyInfo CreateDefault(FuncAn of representing the default unit mappings for Entropy. public static IEnumerable> GetDefaultMappings() { - yield return new (EntropyUnit.CaloriePerKelvin, "CaloriePerKelvin", "CaloriesPerKelvin", BaseUnits.Undefined, - new QuantityValue(125, 523) - ); - yield return new (EntropyUnit.JoulePerDegreeCelsius, "JoulePerDegreeCelsius", "JoulesPerDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (EntropyUnit.JoulePerKelvin, "JoulePerKelvin", "JoulesPerKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); - yield return new (EntropyUnit.KilocaloriePerKelvin, "KilocaloriePerKelvin", "KilocaloriesPerKelvin", BaseUnits.Undefined, - new QuantityValue(1, 4184) - ); - yield return new (EntropyUnit.KilojoulePerDegreeCelsius, "KilojoulePerDegreeCelsius", "KilojoulesPerDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (EntropyUnit.KilojoulePerKelvin, "KilojoulePerKelvin", "KilojoulesPerKelvin", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (EntropyUnit.MegajoulePerKelvin, "MegajoulePerKelvin", "MegajoulesPerKelvin", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000000) - ); + return new UnitDefinition[] + { + new (EntropyUnit.CaloriePerKelvin, "CaloriePerKelvin", "CaloriesPerKelvin", BaseUnits.Undefined, + new QuantityValue(125, 523) + ), + new (EntropyUnit.JoulePerDegreeCelsius, "JoulePerDegreeCelsius", "JoulesPerDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), + 1 + ), + new (EntropyUnit.JoulePerKelvin, "JoulePerKelvin", "JoulesPerKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)), + new (EntropyUnit.KilocaloriePerKelvin, "KilocaloriePerKelvin", "KilocaloriesPerKelvin", BaseUnits.Undefined, + new QuantityValue(1, 4184) + ), + new (EntropyUnit.KilojoulePerDegreeCelsius, "KilojoulePerDegreeCelsius", "KilojoulesPerDegreeCelsius", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (EntropyUnit.KilojoulePerKelvin, "KilojoulePerKelvin", "KilojoulesPerKelvin", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (EntropyUnit.MegajoulePerKelvin, "MegajoulePerKelvin", "MegajoulesPerKelvin", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), + new QuantityValue(1, 1000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs index ba5ba97aea..5c15b02d51 100644 --- a/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs @@ -120,61 +120,64 @@ public static FluidResistanceInfo CreateDefault(FuncAn of representing the default unit mappings for FluidResistance. public static IEnumerable> GetDefaultMappings() { - yield return new (FluidResistanceUnit.DyneSecondPerCentimeterToTheFifth, "DyneSecondPerCentimeterToTheFifth", "DyneSecondsPerCentimeterToTheFifth", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (FluidResistanceUnit.MegapascalSecondPerCubicMeter, "MegapascalSecondPerCubicMeter", "MegapascalSecondsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000) - ); - yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicCentimeter, "MillimeterMercuryMinutePerCubicCentimeter", "MillimeterMercuryMinutesPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 7999342080) - ); - yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicMeter, "MillimeterMercuryMinutePerCubicMeter", "MillimeterMercuryMinutesPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(3125, 24997944) - ); - yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerLiter, "MillimeterMercuryMinutePerLiter", "MillimeterMercuryMinutesPerLiter", BaseUnits.Undefined, - new QuantityValue(25, 199983552) - ); - yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerMilliliter, "MillimeterMercuryMinutePerMilliliter", "MillimeterMercuryMinutesPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 7999342080) - ); - yield return new (FluidResistanceUnit.MillimeterMercurySecondPerCubicCentimeter, "MillimeterMercurySecondPerCubicCentimeter", "MillimeterMercurySecondsPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 133322368) - ); - yield return new (FluidResistanceUnit.MillimeterMercurySecondPerCubicMeter, "MillimeterMercurySecondPerCubicMeter", "MillimeterMercurySecondsPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(15625, 2083162) - ); - yield return new (FluidResistanceUnit.MillimeterMercurySecondPerLiter, "MillimeterMercurySecondPerLiter", "MillimeterMercurySecondsPerLiter", BaseUnits.Undefined, - new QuantityValue(125, 16665296) - ); - yield return new (FluidResistanceUnit.MillimeterMercurySecondPerMilliliter, "MillimeterMercurySecondPerMilliliter", "MillimeterMercurySecondsPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 133322368) - ); - yield return new (FluidResistanceUnit.PascalMinutePerCubicCentimeter, "PascalMinutePerCubicCentimeter", "PascalMinutesPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 60000000) - ); - yield return new (FluidResistanceUnit.PascalMinutePerCubicMeter, "PascalMinutePerCubicMeter", "PascalMinutesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(1, 60) - ); - yield return new (FluidResistanceUnit.PascalMinutePerLiter, "PascalMinutePerLiter", "PascalMinutesPerLiter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(1, 60000) - ); - yield return new (FluidResistanceUnit.PascalMinutePerMilliliter, "PascalMinutePerMilliliter", "PascalMinutesPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 60000000) - ); - yield return new (FluidResistanceUnit.PascalSecondPerCubicCentimeter, "PascalSecondPerCubicCentimeter", "PascalSecondsPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (FluidResistanceUnit.PascalSecondPerCubicMeter, "PascalSecondPerCubicMeter", "PascalSecondsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (FluidResistanceUnit.PascalSecondPerLiter, "PascalSecondPerLiter", "PascalSecondsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (FluidResistanceUnit.PascalSecondPerMilliliter, "PascalSecondPerMilliliter", "PascalSecondsPerMilliliter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (FluidResistanceUnit.WoodUnit, "WoodUnit", "WoodUnits", BaseUnits.Undefined, - new QuantityValue(25, 199983552) - ); + return new UnitDefinition[] + { + new (FluidResistanceUnit.DyneSecondPerCentimeterToTheFifth, "DyneSecondPerCentimeterToTheFifth", "DyneSecondsPerCentimeterToTheFifth", BaseUnits.Undefined, + new QuantityValue(1, 100000) + ), + new (FluidResistanceUnit.MegapascalSecondPerCubicMeter, "MegapascalSecondPerCubicMeter", "MegapascalSecondsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond), + new QuantityValue(1, 1000000) + ), + new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicCentimeter, "MillimeterMercuryMinutePerCubicCentimeter", "MillimeterMercuryMinutesPerCubicCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 7999342080) + ), + new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicMeter, "MillimeterMercuryMinutePerCubicMeter", "MillimeterMercuryMinutesPerCubicMeter", BaseUnits.Undefined, + new QuantityValue(3125, 24997944) + ), + new (FluidResistanceUnit.MillimeterMercuryMinutePerLiter, "MillimeterMercuryMinutePerLiter", "MillimeterMercuryMinutesPerLiter", BaseUnits.Undefined, + new QuantityValue(25, 199983552) + ), + new (FluidResistanceUnit.MillimeterMercuryMinutePerMilliliter, "MillimeterMercuryMinutePerMilliliter", "MillimeterMercuryMinutesPerMilliliter", BaseUnits.Undefined, + new QuantityValue(1, 7999342080) + ), + new (FluidResistanceUnit.MillimeterMercurySecondPerCubicCentimeter, "MillimeterMercurySecondPerCubicCentimeter", "MillimeterMercurySecondsPerCubicCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 133322368) + ), + new (FluidResistanceUnit.MillimeterMercurySecondPerCubicMeter, "MillimeterMercurySecondPerCubicMeter", "MillimeterMercurySecondsPerCubicMeter", BaseUnits.Undefined, + new QuantityValue(15625, 2083162) + ), + new (FluidResistanceUnit.MillimeterMercurySecondPerLiter, "MillimeterMercurySecondPerLiter", "MillimeterMercurySecondsPerLiter", BaseUnits.Undefined, + new QuantityValue(125, 16665296) + ), + new (FluidResistanceUnit.MillimeterMercurySecondPerMilliliter, "MillimeterMercurySecondPerMilliliter", "MillimeterMercurySecondsPerMilliliter", BaseUnits.Undefined, + new QuantityValue(1, 133322368) + ), + new (FluidResistanceUnit.PascalMinutePerCubicCentimeter, "PascalMinutePerCubicCentimeter", "PascalMinutesPerCubicCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 60000000) + ), + new (FluidResistanceUnit.PascalMinutePerCubicMeter, "PascalMinutePerCubicMeter", "PascalMinutesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), + new QuantityValue(1, 60) + ), + new (FluidResistanceUnit.PascalMinutePerLiter, "PascalMinutePerLiter", "PascalMinutesPerLiter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), + new QuantityValue(1, 60000) + ), + new (FluidResistanceUnit.PascalMinutePerMilliliter, "PascalMinutePerMilliliter", "PascalMinutesPerMilliliter", BaseUnits.Undefined, + new QuantityValue(1, 60000000) + ), + new (FluidResistanceUnit.PascalSecondPerCubicCentimeter, "PascalSecondPerCubicCentimeter", "PascalSecondsPerCubicCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (FluidResistanceUnit.PascalSecondPerCubicMeter, "PascalSecondPerCubicMeter", "PascalSecondsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (FluidResistanceUnit.PascalSecondPerLiter, "PascalSecondPerLiter", "PascalSecondsPerLiter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (FluidResistanceUnit.PascalSecondPerMilliliter, "PascalSecondPerMilliliter", "PascalSecondsPerMilliliter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (FluidResistanceUnit.WoodUnit, "WoodUnit", "WoodUnits", BaseUnits.Undefined, + new QuantityValue(25, 199983552) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Force.g.cs b/UnitsNet/GeneratedCode/Quantities/Force.g.cs index 4ca9de716c..e22040e9a4 100644 --- a/UnitsNet/GeneratedCode/Quantities/Force.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Force.g.cs @@ -131,52 +131,55 @@ public static ForceInfo CreateDefault(Func /// An of representing the default unit mappings for Force. public static IEnumerable> GetDefaultMappings() { - yield return new (ForceUnit.Decanewton, "Decanewton", "Decanewtons", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (ForceUnit.Dyn, "Dyn", "Dyne", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Second), - 100000 - ); - yield return new (ForceUnit.GramForce, "GramForce", "GramsForce", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (ForceUnit.KilogramForce, "KilogramForce", "KilogramsForce", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (ForceUnit.Kilonewton, "Kilonewton", "Kilonewtons", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (ForceUnit.Kilopond, "Kilopond", "Kiloponds", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (ForceUnit.KilopoundForce, "KilopoundForce", "KilopoundsForce", BaseUnits.Undefined, - new QuantityValue(2000000000, 8896443230521) - ); - yield return new (ForceUnit.Meganewton, "Meganewton", "Meganewtons", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (ForceUnit.Micronewton, "Micronewton", "Micronewtons", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ForceUnit.Millinewton, "Millinewton", "Millinewtons", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000 - ); - yield return new (ForceUnit.Newton, "Newton", "Newtons", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (ForceUnit.OunceForce, "OunceForce", "OunceForce", BaseUnits.Undefined, - new QuantityValue(32000000000000, 8896443230521) - ); - yield return new (ForceUnit.Poundal, "Poundal", "Poundals", BaseUnits.Undefined, - new QuantityValue(125000000000, 17281869297) - ); - yield return new (ForceUnit.PoundForce, "PoundForce", "PoundsForce", BaseUnits.Undefined, - new QuantityValue(2000000000000, 8896443230521) - ); - yield return new (ForceUnit.ShortTonForce, "ShortTonForce", "ShortTonsForce", BaseUnits.Undefined, - new QuantityValue(1000000000, 8896443230521) - ); - yield return new (ForceUnit.TonneForce, "TonneForce", "TonnesForce", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); + return new UnitDefinition[] + { + new (ForceUnit.Decanewton, "Decanewton", "Decanewtons", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 10) + ), + new (ForceUnit.Dyn, "Dyn", "Dyne", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Second), + 100000 + ), + new (ForceUnit.GramForce, "GramForce", "GramsForce", BaseUnits.Undefined, + new QuantityValue(20000000, 196133) + ), + new (ForceUnit.KilogramForce, "KilogramForce", "KilogramsForce", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + new (ForceUnit.Kilonewton, "Kilonewton", "Kilonewtons", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (ForceUnit.Kilopond, "Kilopond", "Kiloponds", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + new (ForceUnit.KilopoundForce, "KilopoundForce", "KilopoundsForce", BaseUnits.Undefined, + new QuantityValue(2000000000, 8896443230521) + ), + new (ForceUnit.Meganewton, "Meganewton", "Meganewtons", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (ForceUnit.Micronewton, "Micronewton", "Micronewtons", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1000000 + ), + new (ForceUnit.Millinewton, "Millinewton", "Millinewtons", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1000 + ), + new (ForceUnit.Newton, "Newton", "Newtons", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (ForceUnit.OunceForce, "OunceForce", "OunceForce", BaseUnits.Undefined, + new QuantityValue(32000000000000, 8896443230521) + ), + new (ForceUnit.Poundal, "Poundal", "Poundals", BaseUnits.Undefined, + new QuantityValue(125000000000, 17281869297) + ), + new (ForceUnit.PoundForce, "PoundForce", "PoundsForce", BaseUnits.Undefined, + new QuantityValue(2000000000000, 8896443230521) + ), + new (ForceUnit.ShortTonForce, "ShortTonForce", "ShortTonsForce", BaseUnits.Undefined, + new QuantityValue(1000000000, 8896443230521) + ), + new (ForceUnit.TonneForce, "TonneForce", "TonnesForce", BaseUnits.Undefined, + new QuantityValue(20, 196133) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs index 3268eb43f3..ac88c7a2d2 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs @@ -117,49 +117,52 @@ public static ForceChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for ForceChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (ForceChangeRateUnit.CentinewtonPerSecond, "CentinewtonPerSecond", "CentinewtonsPerSecond", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 100 - ); - yield return new (ForceChangeRateUnit.DecanewtonPerMinute, "DecanewtonPerMinute", "DecanewtonsPerMinute", BaseUnits.Undefined, - 6 - ); - yield return new (ForceChangeRateUnit.DecanewtonPerSecond, "DecanewtonPerSecond", "DecanewtonsPerSecond", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (ForceChangeRateUnit.DecinewtonPerSecond, "DecinewtonPerSecond", "DecinewtonsPerSecond", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 10 - ); - yield return new (ForceChangeRateUnit.KilonewtonPerMinute, "KilonewtonPerMinute", "KilonewtonsPerMinute", BaseUnits.Undefined, - new QuantityValue(3, 50) - ); - yield return new (ForceChangeRateUnit.KilonewtonPerSecond, "KilonewtonPerSecond", "KilonewtonsPerSecond", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (ForceChangeRateUnit.KilopoundForcePerMinute, "KilopoundForcePerMinute", "KilopoundsForcePerMinute", BaseUnits.Undefined, - new QuantityValue(120000000000, 8896443230521) - ); - yield return new (ForceChangeRateUnit.KilopoundForcePerSecond, "KilopoundForcePerSecond", "KilopoundsForcePerSecond", BaseUnits.Undefined, - new QuantityValue(2000000000, 8896443230521) - ); - yield return new (ForceChangeRateUnit.MicronewtonPerSecond, "MicronewtonPerSecond", "MicronewtonsPerSecond", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ForceChangeRateUnit.MillinewtonPerSecond, "MillinewtonPerSecond", "MillinewtonsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000 - ); - yield return new (ForceChangeRateUnit.NanonewtonPerSecond, "NanonewtonPerSecond", "NanonewtonsPerSecond", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (ForceChangeRateUnit.NewtonPerMinute, "NewtonPerMinute", "NewtonsPerMinute", BaseUnits.Undefined, - 60 - ); - yield return new (ForceChangeRateUnit.NewtonPerSecond, "NewtonPerSecond", "NewtonsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (ForceChangeRateUnit.PoundForcePerMinute, "PoundForcePerMinute", "PoundsForcePerMinute", BaseUnits.Undefined, - new QuantityValue(120000000000000, 8896443230521) - ); - yield return new (ForceChangeRateUnit.PoundForcePerSecond, "PoundForcePerSecond", "PoundsForcePerSecond", BaseUnits.Undefined, - new QuantityValue(2000000000000, 8896443230521) - ); + return new UnitDefinition[] + { + new (ForceChangeRateUnit.CentinewtonPerSecond, "CentinewtonPerSecond", "CentinewtonsPerSecond", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 100 + ), + new (ForceChangeRateUnit.DecanewtonPerMinute, "DecanewtonPerMinute", "DecanewtonsPerMinute", BaseUnits.Undefined, + 6 + ), + new (ForceChangeRateUnit.DecanewtonPerSecond, "DecanewtonPerSecond", "DecanewtonsPerSecond", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 10) + ), + new (ForceChangeRateUnit.DecinewtonPerSecond, "DecinewtonPerSecond", "DecinewtonsPerSecond", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 10 + ), + new (ForceChangeRateUnit.KilonewtonPerMinute, "KilonewtonPerMinute", "KilonewtonsPerMinute", BaseUnits.Undefined, + new QuantityValue(3, 50) + ), + new (ForceChangeRateUnit.KilonewtonPerSecond, "KilonewtonPerSecond", "KilonewtonsPerSecond", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (ForceChangeRateUnit.KilopoundForcePerMinute, "KilopoundForcePerMinute", "KilopoundsForcePerMinute", BaseUnits.Undefined, + new QuantityValue(120000000000, 8896443230521) + ), + new (ForceChangeRateUnit.KilopoundForcePerSecond, "KilopoundForcePerSecond", "KilopoundsForcePerSecond", BaseUnits.Undefined, + new QuantityValue(2000000000, 8896443230521) + ), + new (ForceChangeRateUnit.MicronewtonPerSecond, "MicronewtonPerSecond", "MicronewtonsPerSecond", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1000000 + ), + new (ForceChangeRateUnit.MillinewtonPerSecond, "MillinewtonPerSecond", "MillinewtonsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1000 + ), + new (ForceChangeRateUnit.NanonewtonPerSecond, "NanonewtonPerSecond", "NanonewtonsPerSecond", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1000000000 + ), + new (ForceChangeRateUnit.NewtonPerMinute, "NewtonPerMinute", "NewtonsPerMinute", BaseUnits.Undefined, + 60 + ), + new (ForceChangeRateUnit.NewtonPerSecond, "NewtonPerSecond", "NewtonsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (ForceChangeRateUnit.PoundForcePerMinute, "PoundForcePerMinute", "PoundsForcePerMinute", BaseUnits.Undefined, + new QuantityValue(120000000000000, 8896443230521) + ), + new (ForceChangeRateUnit.PoundForcePerSecond, "PoundForcePerSecond", "PoundsForcePerSecond", BaseUnits.Undefined, + new QuantityValue(2000000000000, 8896443230521) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs index a04ef47dbb..dfa5dfadf3 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs @@ -127,118 +127,121 @@ public static ForcePerLengthInfo CreateDefault(FuncAn of representing the default unit mappings for ForcePerLength. public static IEnumerable> GetDefaultMappings() { - yield return new (ForcePerLengthUnit.CentinewtonPerCentimeter, "CentinewtonPerCentimeter", "CentinewtonsPerCentimeter", BaseUnits.Undefined, - 1 - ); - yield return new (ForcePerLengthUnit.CentinewtonPerMeter, "CentinewtonPerMeter", "CentinewtonsPerMeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), - 100 - ); - yield return new (ForcePerLengthUnit.CentinewtonPerMillimeter, "CentinewtonPerMillimeter", "CentinewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (ForcePerLengthUnit.DecanewtonPerCentimeter, "DecanewtonPerCentimeter", "DecanewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ForcePerLengthUnit.DecanewtonPerMeter, "DecanewtonPerMeter", "DecanewtonsPerMeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (ForcePerLengthUnit.DecanewtonPerMillimeter, "DecanewtonPerMillimeter", "DecanewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (ForcePerLengthUnit.DecinewtonPerCentimeter, "DecinewtonPerCentimeter", "DecinewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (ForcePerLengthUnit.DecinewtonPerMeter, "DecinewtonPerMeter", "DecinewtonsPerMeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (ForcePerLengthUnit.DecinewtonPerMillimeter, "DecinewtonPerMillimeter", "DecinewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (ForcePerLengthUnit.KilogramForcePerCentimeter, "KilogramForcePerCentimeter", "KilogramsForcePerCentimeter", BaseUnits.Undefined, - new QuantityValue(200, 196133) - ); - yield return new (ForcePerLengthUnit.KilogramForcePerMeter, "KilogramForcePerMeter", "KilogramsForcePerMeter", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (ForcePerLengthUnit.KilogramForcePerMillimeter, "KilogramForcePerMillimeter", "KilogramsForcePerMillimeter", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (ForcePerLengthUnit.KilonewtonPerCentimeter, "KilonewtonPerCentimeter", "KilonewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (ForcePerLengthUnit.KilonewtonPerMeter, "KilonewtonPerMeter", "KilonewtonsPerMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ForcePerLengthUnit.KilonewtonPerMillimeter, "KilonewtonPerMillimeter", "KilonewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ForcePerLengthUnit.KilopoundForcePerFoot, "KilopoundForcePerFoot", "KilopoundsForcePerFoot", BaseUnits.Undefined, - new QuantityValue(609600000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.KilopoundForcePerInch, "KilopoundForcePerInch", "KilopoundsForcePerInch", BaseUnits.Undefined, - new QuantityValue(50800000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.MeganewtonPerCentimeter, "MeganewtonPerCentimeter", "MeganewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000000) - ); - yield return new (ForcePerLengthUnit.MeganewtonPerMeter, "MeganewtonPerMeter", "MeganewtonsPerMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000) - ); - yield return new (ForcePerLengthUnit.MeganewtonPerMillimeter, "MeganewtonPerMillimeter", "MeganewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (ForcePerLengthUnit.MicronewtonPerCentimeter, "MicronewtonPerCentimeter", "MicronewtonsPerCentimeter", BaseUnits.Undefined, - 10000 - ); - yield return new (ForcePerLengthUnit.MicronewtonPerMeter, "MicronewtonPerMeter", "MicronewtonsPerMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ForcePerLengthUnit.MicronewtonPerMillimeter, "MicronewtonPerMillimeter", "MicronewtonsPerMillimeter", BaseUnits.Undefined, - 1000 - ); - yield return new (ForcePerLengthUnit.MillinewtonPerCentimeter, "MillinewtonPerCentimeter", "MillinewtonsPerCentimeter", BaseUnits.Undefined, - 10 - ); - yield return new (ForcePerLengthUnit.MillinewtonPerMeter, "MillinewtonPerMeter", "MillinewtonsPerMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (ForcePerLengthUnit.MillinewtonPerMillimeter, "MillinewtonPerMillimeter", "MillinewtonsPerMillimeter", BaseUnits.Undefined, - 1 - ); - yield return new (ForcePerLengthUnit.NanonewtonPerCentimeter, "NanonewtonPerCentimeter", "NanonewtonsPerCentimeter", BaseUnits.Undefined, - 10000000 - ); - yield return new (ForcePerLengthUnit.NanonewtonPerMeter, "NanonewtonPerMeter", "NanonewtonsPerMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (ForcePerLengthUnit.NanonewtonPerMillimeter, "NanonewtonPerMillimeter", "NanonewtonsPerMillimeter", BaseUnits.Undefined, - 1000000 - ); - yield return new (ForcePerLengthUnit.NewtonPerCentimeter, "NewtonPerCentimeter", "NewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (ForcePerLengthUnit.NewtonPerMeter, "NewtonPerMeter", "NewtonsPerMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (ForcePerLengthUnit.NewtonPerMillimeter, "NewtonPerMillimeter", "NewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ForcePerLengthUnit.PoundForcePerFoot, "PoundForcePerFoot", "PoundsForcePerFoot", BaseUnits.Undefined, - new QuantityValue(609600000000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.PoundForcePerInch, "PoundForcePerInch", "PoundsForcePerInch", BaseUnits.Undefined, - new QuantityValue(50800000000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.PoundForcePerYard, "PoundForcePerYard", "PoundsForcePerYard", BaseUnits.Undefined, - new QuantityValue(1828800000000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.TonneForcePerCentimeter, "TonneForcePerCentimeter", "TonnesForcePerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 980665) - ); - yield return new (ForcePerLengthUnit.TonneForcePerMeter, "TonneForcePerMeter", "TonnesForcePerMeter", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (ForcePerLengthUnit.TonneForcePerMillimeter, "TonneForcePerMillimeter", "TonnesForcePerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650) - ); + return new UnitDefinition[] + { + new (ForcePerLengthUnit.CentinewtonPerCentimeter, "CentinewtonPerCentimeter", "CentinewtonsPerCentimeter", BaseUnits.Undefined, + 1 + ), + new (ForcePerLengthUnit.CentinewtonPerMeter, "CentinewtonPerMeter", "CentinewtonsPerMeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), + 100 + ), + new (ForcePerLengthUnit.CentinewtonPerMillimeter, "CentinewtonPerMillimeter", "CentinewtonsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (ForcePerLengthUnit.DecanewtonPerCentimeter, "DecanewtonPerCentimeter", "DecanewtonsPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ForcePerLengthUnit.DecanewtonPerMeter, "DecanewtonPerMeter", "DecanewtonsPerMeter", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (ForcePerLengthUnit.DecanewtonPerMillimeter, "DecanewtonPerMillimeter", "DecanewtonsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (ForcePerLengthUnit.DecinewtonPerCentimeter, "DecinewtonPerCentimeter", "DecinewtonsPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (ForcePerLengthUnit.DecinewtonPerMeter, "DecinewtonPerMeter", "DecinewtonsPerMeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), + 10 + ), + new (ForcePerLengthUnit.DecinewtonPerMillimeter, "DecinewtonPerMillimeter", "DecinewtonsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (ForcePerLengthUnit.KilogramForcePerCentimeter, "KilogramForcePerCentimeter", "KilogramsForcePerCentimeter", BaseUnits.Undefined, + new QuantityValue(200, 196133) + ), + new (ForcePerLengthUnit.KilogramForcePerMeter, "KilogramForcePerMeter", "KilogramsForcePerMeter", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + new (ForcePerLengthUnit.KilogramForcePerMillimeter, "KilogramForcePerMillimeter", "KilogramsForcePerMillimeter", BaseUnits.Undefined, + new QuantityValue(20, 196133) + ), + new (ForcePerLengthUnit.KilonewtonPerCentimeter, "KilonewtonPerCentimeter", "KilonewtonsPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 100000) + ), + new (ForcePerLengthUnit.KilonewtonPerMeter, "KilonewtonPerMeter", "KilonewtonsPerMeter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ForcePerLengthUnit.KilonewtonPerMillimeter, "KilonewtonPerMillimeter", "KilonewtonsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (ForcePerLengthUnit.KilopoundForcePerFoot, "KilopoundForcePerFoot", "KilopoundsForcePerFoot", BaseUnits.Undefined, + new QuantityValue(609600000, 8896443230521) + ), + new (ForcePerLengthUnit.KilopoundForcePerInch, "KilopoundForcePerInch", "KilopoundsForcePerInch", BaseUnits.Undefined, + new QuantityValue(50800000, 8896443230521) + ), + new (ForcePerLengthUnit.MeganewtonPerCentimeter, "MeganewtonPerCentimeter", "MeganewtonsPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 100000000) + ), + new (ForcePerLengthUnit.MeganewtonPerMeter, "MeganewtonPerMeter", "MeganewtonsPerMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), + new QuantityValue(1, 1000000) + ), + new (ForcePerLengthUnit.MeganewtonPerMillimeter, "MeganewtonPerMillimeter", "MeganewtonsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (ForcePerLengthUnit.MicronewtonPerCentimeter, "MicronewtonPerCentimeter", "MicronewtonsPerCentimeter", BaseUnits.Undefined, + 10000 + ), + new (ForcePerLengthUnit.MicronewtonPerMeter, "MicronewtonPerMeter", "MicronewtonsPerMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000000 + ), + new (ForcePerLengthUnit.MicronewtonPerMillimeter, "MicronewtonPerMillimeter", "MicronewtonsPerMillimeter", BaseUnits.Undefined, + 1000 + ), + new (ForcePerLengthUnit.MillinewtonPerCentimeter, "MillinewtonPerCentimeter", "MillinewtonsPerCentimeter", BaseUnits.Undefined, + 10 + ), + new (ForcePerLengthUnit.MillinewtonPerMeter, "MillinewtonPerMeter", "MillinewtonsPerMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (ForcePerLengthUnit.MillinewtonPerMillimeter, "MillinewtonPerMillimeter", "MillinewtonsPerMillimeter", BaseUnits.Undefined, + 1 + ), + new (ForcePerLengthUnit.NanonewtonPerCentimeter, "NanonewtonPerCentimeter", "NanonewtonsPerCentimeter", BaseUnits.Undefined, + 10000000 + ), + new (ForcePerLengthUnit.NanonewtonPerMeter, "NanonewtonPerMeter", "NanonewtonsPerMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), + 1000000000 + ), + new (ForcePerLengthUnit.NanonewtonPerMillimeter, "NanonewtonPerMillimeter", "NanonewtonsPerMillimeter", BaseUnits.Undefined, + 1000000 + ), + new (ForcePerLengthUnit.NewtonPerCentimeter, "NewtonPerCentimeter", "NewtonsPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (ForcePerLengthUnit.NewtonPerMeter, "NewtonPerMeter", "NewtonsPerMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (ForcePerLengthUnit.NewtonPerMillimeter, "NewtonPerMillimeter", "NewtonsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (ForcePerLengthUnit.PoundForcePerFoot, "PoundForcePerFoot", "PoundsForcePerFoot", BaseUnits.Undefined, + new QuantityValue(609600000000, 8896443230521) + ), + new (ForcePerLengthUnit.PoundForcePerInch, "PoundForcePerInch", "PoundsForcePerInch", BaseUnits.Undefined, + new QuantityValue(50800000000, 8896443230521) + ), + new (ForcePerLengthUnit.PoundForcePerYard, "PoundForcePerYard", "PoundsForcePerYard", BaseUnits.Undefined, + new QuantityValue(1828800000000, 8896443230521) + ), + new (ForcePerLengthUnit.TonneForcePerCentimeter, "TonneForcePerCentimeter", "TonnesForcePerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 980665) + ), + new (ForcePerLengthUnit.TonneForcePerMeter, "TonneForcePerMeter", "TonnesForcePerMeter", BaseUnits.Undefined, + new QuantityValue(20, 196133) + ), + new (ForcePerLengthUnit.TonneForcePerMillimeter, "TonneForcePerMillimeter", "TonnesForcePerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 9806650) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs index aeae605f14..50161c2ec0 100644 --- a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs @@ -118,40 +118,43 @@ public static FrequencyInfo CreateDefault(FuncAn of representing the default unit mappings for Frequency. public static IEnumerable> GetDefaultMappings() { - yield return new (FrequencyUnit.BeatPerMinute, "BeatPerMinute", "BeatsPerMinute", new BaseUnits(time: DurationUnit.Minute), - 60 - ); - yield return new (FrequencyUnit.CyclePerHour, "CyclePerHour", "CyclesPerHour", new BaseUnits(time: DurationUnit.Hour), - 3600 - ); - yield return new (FrequencyUnit.CyclePerMinute, "CyclePerMinute", "CyclesPerMinute", new BaseUnits(time: DurationUnit.Minute), - 60 - ); - yield return new (FrequencyUnit.Gigahertz, "Gigahertz", "Gigahertz", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, 1000000000) - ); - yield return new (FrequencyUnit.Hertz, "Hertz", "Hertz", new BaseUnits(time: DurationUnit.Second)); - yield return new (FrequencyUnit.Kilohertz, "Kilohertz", "Kilohertz", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 1000) - ); - yield return new (FrequencyUnit.Megahertz, "Megahertz", "Megahertz", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000) - ); - yield return new (FrequencyUnit.Microhertz, "Microhertz", "Microhertz", BaseUnits.Undefined, - 1000000 - ); - yield return new (FrequencyUnit.Millihertz, "Millihertz", "Millihertz", BaseUnits.Undefined, - 1000 - ); - yield return new (FrequencyUnit.PerSecond, "PerSecond", "PerSecond", new BaseUnits(time: DurationUnit.Second), - 1 - ); - yield return new (FrequencyUnit.RadianPerSecond, "RadianPerSecond", "RadiansPerSecond", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 500000000000000) - ); - yield return new (FrequencyUnit.Terahertz, "Terahertz", "Terahertz", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (FrequencyUnit.BeatPerMinute, "BeatPerMinute", "BeatsPerMinute", new BaseUnits(time: DurationUnit.Minute), + 60 + ), + new (FrequencyUnit.CyclePerHour, "CyclePerHour", "CyclesPerHour", new BaseUnits(time: DurationUnit.Hour), + 3600 + ), + new (FrequencyUnit.CyclePerMinute, "CyclePerMinute", "CyclesPerMinute", new BaseUnits(time: DurationUnit.Minute), + 60 + ), + new (FrequencyUnit.Gigahertz, "Gigahertz", "Gigahertz", new BaseUnits(time: DurationUnit.Nanosecond), + new QuantityValue(1, 1000000000) + ), + new (FrequencyUnit.Hertz, "Hertz", "Hertz", new BaseUnits(time: DurationUnit.Second)), + new (FrequencyUnit.Kilohertz, "Kilohertz", "Kilohertz", new BaseUnits(time: DurationUnit.Millisecond), + new QuantityValue(1, 1000) + ), + new (FrequencyUnit.Megahertz, "Megahertz", "Megahertz", new BaseUnits(time: DurationUnit.Microsecond), + new QuantityValue(1, 1000000) + ), + new (FrequencyUnit.Microhertz, "Microhertz", "Microhertz", BaseUnits.Undefined, + 1000000 + ), + new (FrequencyUnit.Millihertz, "Millihertz", "Millihertz", BaseUnits.Undefined, + 1000 + ), + new (FrequencyUnit.PerSecond, "PerSecond", "PerSecond", new BaseUnits(time: DurationUnit.Second), + 1 + ), + new (FrequencyUnit.RadianPerSecond, "RadianPerSecond", "RadiansPerSecond", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 500000000000000) + ), + new (FrequencyUnit.Terahertz, "Terahertz", "Terahertz", new BaseUnits(time: DurationUnit.Picosecond), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs index 3882818af1..b301c10eef 100644 --- a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs @@ -119,17 +119,20 @@ public static FuelEfficiencyInfo CreateDefault(FuncAn of representing the default unit mappings for FuelEfficiency. public static IEnumerable> GetDefaultMappings() { - yield return new (FuelEfficiencyUnit.KilometerPerLiter, "KilometerPerLiter", "KilometersPerLiter", BaseUnits.Undefined); - yield return new (FuelEfficiencyUnit.LiterPer100Kilometers, "LiterPer100Kilometers", "LitersPer100Kilometers", BaseUnits.Undefined, - new ConversionExpression(coefficient: 100, exponent: -1), - new ConversionExpression(coefficient: 100, exponent: -1) - ); - yield return new (FuelEfficiencyUnit.MilePerUkGallon, "MilePerUkGallon", "MilesPerUkGallon", BaseUnits.Undefined, - new QuantityValue(2273045, 804672) - ); - yield return new (FuelEfficiencyUnit.MilePerUsGallon, "MilePerUsGallon", "MilesPerUsGallon", BaseUnits.Undefined, - new QuantityValue(112903, 48000) - ); + return new UnitDefinition[] + { + new (FuelEfficiencyUnit.KilometerPerLiter, "KilometerPerLiter", "KilometersPerLiter", BaseUnits.Undefined), + new (FuelEfficiencyUnit.LiterPer100Kilometers, "LiterPer100Kilometers", "LitersPer100Kilometers", BaseUnits.Undefined, + new ConversionExpression(coefficient: 100, exponent: -1), + new ConversionExpression(coefficient: 100, exponent: -1) + ), + new (FuelEfficiencyUnit.MilePerUkGallon, "MilePerUkGallon", "MilesPerUkGallon", BaseUnits.Undefined, + new QuantityValue(2273045, 804672) + ), + new (FuelEfficiencyUnit.MilePerUsGallon, "MilePerUsGallon", "MilesPerUsGallon", BaseUnits.Undefined, + new QuantityValue(112903, 48000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs index ada0ae8a40..cb8d6bb81e 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs @@ -120,79 +120,82 @@ public static HeatFluxInfo CreateDefault(FuncAn of representing the default unit mappings for HeatFlux. public static IEnumerable> GetDefaultMappings() { - yield return new (HeatFluxUnit.BtuPerHourSquareFoot, "BtuPerHourSquareFoot", "BtusPerHourSquareFoot", BaseUnits.Undefined, - new QuantityValue(16722547200, 52752792631) - ); - yield return new (HeatFluxUnit.BtuPerMinuteSquareFoot, "BtuPerMinuteSquareFoot", "BtusPerMinuteSquareFoot", BaseUnits.Undefined, - new QuantityValue(278709120, 52752792631) - ); - yield return new (HeatFluxUnit.BtuPerSecondSquareFoot, "BtuPerSecondSquareFoot", "BtusPerSecondSquareFoot", BaseUnits.Undefined, - new QuantityValue(4645152, 52752792631) - ); - yield return new (HeatFluxUnit.BtuPerSecondSquareInch, "BtuPerSecondSquareInch", "BtusPerSecondSquareInch", BaseUnits.Undefined, - new QuantityValue(32258, 52752792631) - ); - yield return new (HeatFluxUnit.CaloriePerSecondSquareCentimeter, "CaloriePerSecondSquareCentimeter", "CaloriesPerSecondSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 41840) - ); - yield return new (HeatFluxUnit.CentiwattPerSquareMeter, "CentiwattPerSquareMeter", "CentiwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), - 100 - ); - yield return new (HeatFluxUnit.CentiwattPerSquareMillimeter, "CentiwattPerSquareMillimeter", "CentiwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), - new QuantityValue(1, 10000) - ); - yield return new (HeatFluxUnit.DeciwattPerSquareMeter, "DeciwattPerSquareMeter", "DeciwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (HeatFluxUnit.DeciwattPerSquareMillimeter, "DeciwattPerSquareMillimeter", "DeciwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), - new QuantityValue(1, 100000) - ); - yield return new (HeatFluxUnit.KilocaloriePerHourSquareMeter, "KilocaloriePerHourSquareMeter", "KilocaloriesPerHourSquareMeter", BaseUnits.Undefined, - new QuantityValue(450, 523) - ); - yield return new (HeatFluxUnit.KilocaloriePerSecondSquareCentimeter, "KilocaloriePerSecondSquareCentimeter", "KilocaloriesPerSecondSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 41840000) - ); - yield return new (HeatFluxUnit.KilowattPerSquareMeter, "KilowattPerSquareMeter", "KilowattsPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (HeatFluxUnit.KilowattPerSquareMillimeter, "KilowattPerSquareMillimeter", "KilowattsPerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (HeatFluxUnit.MicrowattPerSquareMeter, "MicrowattPerSquareMeter", "MicrowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (HeatFluxUnit.MicrowattPerSquareMillimeter, "MicrowattPerSquareMillimeter", "MicrowattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1 - ); - yield return new (HeatFluxUnit.MilliwattPerSquareMeter, "MilliwattPerSquareMeter", "MilliwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (HeatFluxUnit.MilliwattPerSquareMillimeter, "MilliwattPerSquareMillimeter", "MilliwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (HeatFluxUnit.NanowattPerSquareMeter, "NanowattPerSquareMeter", "NanowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (HeatFluxUnit.NanowattPerSquareMillimeter, "NanowattPerSquareMillimeter", "NanowattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000 - ); - yield return new (HeatFluxUnit.PoundForcePerFootSecond, "PoundForcePerFootSecond", "PoundsForcePerFootSecond", BaseUnits.Undefined, - new QuantityValue(609600000000, 8896443230521) - ); - yield return new (HeatFluxUnit.PoundPerSecondCubed, "PoundPerSecondCubed", "PoundsPerSecondCubed", BaseUnits.Undefined, - new QuantityValue(100000000, 45359237) - ); - yield return new (HeatFluxUnit.WattPerSquareFoot, "WattPerSquareFoot", "WattsPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(145161, 1562500) - ); - yield return new (HeatFluxUnit.WattPerSquareInch, "WattPerSquareInch", "WattsPerSquareInch", BaseUnits.Undefined, - new QuantityValue(16129, 25000000) - ); - yield return new (HeatFluxUnit.WattPerSquareMeter, "WattPerSquareMeter", "WattsPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (HeatFluxUnit.WattPerSquareMillimeter, "WattPerSquareMillimeter", "WattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); + return new UnitDefinition[] + { + new (HeatFluxUnit.BtuPerHourSquareFoot, "BtuPerHourSquareFoot", "BtusPerHourSquareFoot", BaseUnits.Undefined, + new QuantityValue(16722547200, 52752792631) + ), + new (HeatFluxUnit.BtuPerMinuteSquareFoot, "BtuPerMinuteSquareFoot", "BtusPerMinuteSquareFoot", BaseUnits.Undefined, + new QuantityValue(278709120, 52752792631) + ), + new (HeatFluxUnit.BtuPerSecondSquareFoot, "BtuPerSecondSquareFoot", "BtusPerSecondSquareFoot", BaseUnits.Undefined, + new QuantityValue(4645152, 52752792631) + ), + new (HeatFluxUnit.BtuPerSecondSquareInch, "BtuPerSecondSquareInch", "BtusPerSecondSquareInch", BaseUnits.Undefined, + new QuantityValue(32258, 52752792631) + ), + new (HeatFluxUnit.CaloriePerSecondSquareCentimeter, "CaloriePerSecondSquareCentimeter", "CaloriesPerSecondSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 41840) + ), + new (HeatFluxUnit.CentiwattPerSquareMeter, "CentiwattPerSquareMeter", "CentiwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), + 100 + ), + new (HeatFluxUnit.CentiwattPerSquareMillimeter, "CentiwattPerSquareMillimeter", "CentiwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), + new QuantityValue(1, 10000) + ), + new (HeatFluxUnit.DeciwattPerSquareMeter, "DeciwattPerSquareMeter", "DeciwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), + 10 + ), + new (HeatFluxUnit.DeciwattPerSquareMillimeter, "DeciwattPerSquareMillimeter", "DeciwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), + new QuantityValue(1, 100000) + ), + new (HeatFluxUnit.KilocaloriePerHourSquareMeter, "KilocaloriePerHourSquareMeter", "KilocaloriesPerHourSquareMeter", BaseUnits.Undefined, + new QuantityValue(450, 523) + ), + new (HeatFluxUnit.KilocaloriePerSecondSquareCentimeter, "KilocaloriePerSecondSquareCentimeter", "KilocaloriesPerSecondSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 41840000) + ), + new (HeatFluxUnit.KilowattPerSquareMeter, "KilowattPerSquareMeter", "KilowattsPerSquareMeter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (HeatFluxUnit.KilowattPerSquareMillimeter, "KilowattPerSquareMillimeter", "KilowattsPerSquareMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (HeatFluxUnit.MicrowattPerSquareMeter, "MicrowattPerSquareMeter", "MicrowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000000 + ), + new (HeatFluxUnit.MicrowattPerSquareMillimeter, "MicrowattPerSquareMillimeter", "MicrowattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), + 1 + ), + new (HeatFluxUnit.MilliwattPerSquareMeter, "MilliwattPerSquareMeter", "MilliwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (HeatFluxUnit.MilliwattPerSquareMillimeter, "MilliwattPerSquareMillimeter", "MilliwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (HeatFluxUnit.NanowattPerSquareMeter, "NanowattPerSquareMeter", "NanowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), + 1000000000 + ), + new (HeatFluxUnit.NanowattPerSquareMillimeter, "NanowattPerSquareMillimeter", "NanowattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), + 1000 + ), + new (HeatFluxUnit.PoundForcePerFootSecond, "PoundForcePerFootSecond", "PoundsForcePerFootSecond", BaseUnits.Undefined, + new QuantityValue(609600000000, 8896443230521) + ), + new (HeatFluxUnit.PoundPerSecondCubed, "PoundPerSecondCubed", "PoundsPerSecondCubed", BaseUnits.Undefined, + new QuantityValue(100000000, 45359237) + ), + new (HeatFluxUnit.WattPerSquareFoot, "WattPerSquareFoot", "WattsPerSquareFoot", BaseUnits.Undefined, + new QuantityValue(145161, 1562500) + ), + new (HeatFluxUnit.WattPerSquareInch, "WattPerSquareInch", "WattsPerSquareInch", BaseUnits.Undefined, + new QuantityValue(16129, 25000000) + ), + new (HeatFluxUnit.WattPerSquareMeter, "WattPerSquareMeter", "WattsPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (HeatFluxUnit.WattPerSquareMillimeter, "WattPerSquareMillimeter", "WattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs index 51ab61baba..2a4f7341d6 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs @@ -117,22 +117,25 @@ public static HeatTransferCoefficientInfo CreateDefault(FuncAn of representing the default unit mappings for HeatTransferCoefficient. public static IEnumerable> GetDefaultMappings() { - yield return new (HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit, "BtuPerHourSquareFootDegreeFahrenheit", "BtusPerHourSquareFootDegreeFahrenheit", BaseUnits.Undefined, - new QuantityValue(9290304000, 52752792631) - ); - yield return new (HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit, "BtuPerSecondSquareInchDegreeFahrenheit", "BtusPerSecondSquareInchDegreeFahrenheit", BaseUnits.Undefined, - new QuantityValue(161290, 474775133679) - ); - yield return new (HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius, "CaloriePerHourSquareMeterDegreeCelsius", "CaloriesPerHourSquareMeterDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(450000, 523) - ); - yield return new (HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius, "KilocaloriePerHourSquareMeterDegreeCelsius", "KilocaloriesPerHourSquareMeterDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(450, 523) - ); - yield return new (HeatTransferCoefficientUnit.WattPerSquareMeterCelsius, "WattPerSquareMeterCelsius", "WattsPerSquareMeterCelsius", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (HeatTransferCoefficientUnit.WattPerSquareMeterKelvin, "WattPerSquareMeterKelvin", "WattsPerSquareMeterKelvin", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); + return new UnitDefinition[] + { + new (HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit, "BtuPerHourSquareFootDegreeFahrenheit", "BtusPerHourSquareFootDegreeFahrenheit", BaseUnits.Undefined, + new QuantityValue(9290304000, 52752792631) + ), + new (HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit, "BtuPerSecondSquareInchDegreeFahrenheit", "BtusPerSecondSquareInchDegreeFahrenheit", BaseUnits.Undefined, + new QuantityValue(161290, 474775133679) + ), + new (HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius, "CaloriePerHourSquareMeterDegreeCelsius", "CaloriesPerHourSquareMeterDegreeCelsius", BaseUnits.Undefined, + new QuantityValue(450000, 523) + ), + new (HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius, "KilocaloriePerHourSquareMeterDegreeCelsius", "KilocaloriesPerHourSquareMeterDegreeCelsius", BaseUnits.Undefined, + new QuantityValue(450, 523) + ), + new (HeatTransferCoefficientUnit.WattPerSquareMeterCelsius, "WattPerSquareMeterCelsius", "WattsPerSquareMeterCelsius", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), + 1 + ), + new (HeatTransferCoefficientUnit.WattPerSquareMeterKelvin, "WattPerSquareMeterKelvin", "WattsPerSquareMeterKelvin", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs index ab83faa289..4c756db76e 100644 --- a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs @@ -120,16 +120,19 @@ public static IlluminanceInfo CreateDefault(FuncAn of representing the default unit mappings for Illuminance. public static IEnumerable> GetDefaultMappings() { - yield return new (IlluminanceUnit.Kilolux, "Kilolux", "Kilolux", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (IlluminanceUnit.Lux, "Lux", "Lux", new BaseUnits(length: LengthUnit.Meter, luminousIntensity: LuminousIntensityUnit.Candela)); - yield return new (IlluminanceUnit.Megalux, "Megalux", "Megalux", new BaseUnits(length: LengthUnit.Millimeter, luminousIntensity: LuminousIntensityUnit.Candela), - new QuantityValue(1, 1000000) - ); - yield return new (IlluminanceUnit.Millilux, "Millilux", "Millilux", BaseUnits.Undefined, - 1000 - ); + return new UnitDefinition[] + { + new (IlluminanceUnit.Kilolux, "Kilolux", "Kilolux", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (IlluminanceUnit.Lux, "Lux", "Lux", new BaseUnits(length: LengthUnit.Meter, luminousIntensity: LuminousIntensityUnit.Candela)), + new (IlluminanceUnit.Megalux, "Megalux", "Megalux", new BaseUnits(length: LengthUnit.Millimeter, luminousIntensity: LuminousIntensityUnit.Candela), + new QuantityValue(1, 1000000) + ), + new (IlluminanceUnit.Millilux, "Millilux", "Millilux", BaseUnits.Undefined, + 1000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs b/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs index f45683859e..f2a6353fb7 100644 --- a/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs @@ -118,43 +118,46 @@ public static ImpulseInfo CreateDefault(FuncAn of representing the default unit mappings for Impulse. public static IEnumerable> GetDefaultMappings() { - yield return new (ImpulseUnit.CentinewtonSecond, "CentinewtonSecond", "CentinewtonSeconds", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 100 - ); - yield return new (ImpulseUnit.DecanewtonSecond, "DecanewtonSecond", "DecanewtonSeconds", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (ImpulseUnit.DecinewtonSecond, "DecinewtonSecond", "DecinewtonSeconds", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 10 - ); - yield return new (ImpulseUnit.KilogramMeterPerSecond, "KilogramMeterPerSecond", "KilogramMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1 - ); - yield return new (ImpulseUnit.KilonewtonSecond, "KilonewtonSecond", "KilonewtonSeconds", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (ImpulseUnit.MeganewtonSecond, "MeganewtonSecond", "MeganewtonSeconds", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (ImpulseUnit.MicronewtonSecond, "MicronewtonSecond", "MicronewtonSeconds", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ImpulseUnit.MillinewtonSecond, "MillinewtonSecond", "MillinewtonSeconds", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000 - ); - yield return new (ImpulseUnit.NanonewtonSecond, "NanonewtonSecond", "NanonewtonSeconds", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (ImpulseUnit.NewtonSecond, "NewtonSecond", "NewtonSeconds", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (ImpulseUnit.PoundFootPerSecond, "PoundFootPerSecond", "PoundFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound, time: DurationUnit.Second), - new QuantityValue(125000000000, 17281869297) - ); - yield return new (ImpulseUnit.PoundForceSecond, "PoundForceSecond", "PoundForceSeconds", BaseUnits.Undefined, - new QuantityValue(2000000000000, 8896443230521) - ); - yield return new (ImpulseUnit.SlugFootPerSecond, "SlugFootPerSecond", "SlugFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug, time: DurationUnit.Second), - new QuantityValue(2000000000000, 8896443230521) - ); + return new UnitDefinition[] + { + new (ImpulseUnit.CentinewtonSecond, "CentinewtonSecond", "CentinewtonSeconds", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 100 + ), + new (ImpulseUnit.DecanewtonSecond, "DecanewtonSecond", "DecanewtonSeconds", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 10) + ), + new (ImpulseUnit.DecinewtonSecond, "DecinewtonSecond", "DecinewtonSeconds", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 10 + ), + new (ImpulseUnit.KilogramMeterPerSecond, "KilogramMeterPerSecond", "KilogramMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1 + ), + new (ImpulseUnit.KilonewtonSecond, "KilonewtonSecond", "KilonewtonSeconds", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (ImpulseUnit.MeganewtonSecond, "MeganewtonSecond", "MeganewtonSeconds", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (ImpulseUnit.MicronewtonSecond, "MicronewtonSecond", "MicronewtonSeconds", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1000000 + ), + new (ImpulseUnit.MillinewtonSecond, "MillinewtonSecond", "MillinewtonSeconds", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1000 + ), + new (ImpulseUnit.NanonewtonSecond, "NanonewtonSecond", "NanonewtonSeconds", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1000000000 + ), + new (ImpulseUnit.NewtonSecond, "NewtonSecond", "NewtonSeconds", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (ImpulseUnit.PoundFootPerSecond, "PoundFootPerSecond", "PoundFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound, time: DurationUnit.Second), + new QuantityValue(125000000000, 17281869297) + ), + new (ImpulseUnit.PoundForceSecond, "PoundForceSecond", "PoundForceSeconds", BaseUnits.Undefined, + new QuantityValue(2000000000000, 8896443230521) + ), + new (ImpulseUnit.SlugFootPerSecond, "SlugFootPerSecond", "SlugFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug, time: DurationUnit.Second), + new QuantityValue(2000000000000, 8896443230521) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Information.g.cs b/UnitsNet/GeneratedCode/Quantities/Information.g.cs index 25c24e18bb..5161e41ca7 100644 --- a/UnitsNet/GeneratedCode/Quantities/Information.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Information.g.cs @@ -119,121 +119,124 @@ public static InformationInfo CreateDefault(FuncAn of representing the default unit mappings for Information. public static IEnumerable> GetDefaultMappings() { - yield return new (InformationUnit.Bit, "Bit", "Bits", BaseUnits.Undefined); - yield return new (InformationUnit.Byte, "Byte", "Bytes", BaseUnits.Undefined, - new QuantityValue(1, 8) - ); - yield return new (InformationUnit.Exabit, "Exabit", "Exabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000000) - ); - yield return new (InformationUnit.Exabyte, "Exabyte", "Exabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000000) - ); - yield return new (InformationUnit.Exaoctet, "Exaoctet", "Exaoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000000) - ); - yield return new (InformationUnit.Exbibit, "Exbibit", "Exbibits", BaseUnits.Undefined, - new QuantityValue(1, 1152921504606846976) - ); - yield return new (InformationUnit.Exbibyte, "Exbibyte", "Exbibytes", BaseUnits.Undefined, - new QuantityValue(1, BigInteger.Pow(2, 63)) - ); - yield return new (InformationUnit.Exbioctet, "Exbioctet", "Exbioctets", BaseUnits.Undefined, - new QuantityValue(1, BigInteger.Pow(2, 63)) - ); - yield return new (InformationUnit.Gibibit, "Gibibit", "Gibibits", BaseUnits.Undefined, - new QuantityValue(1, 1073741824) - ); - yield return new (InformationUnit.Gibibyte, "Gibibyte", "Gibibytes", BaseUnits.Undefined, - new QuantityValue(1, 8589934592) - ); - yield return new (InformationUnit.Gibioctet, "Gibioctet", "Gibioctets", BaseUnits.Undefined, - new QuantityValue(1, 8589934592) - ); - yield return new (InformationUnit.Gigabit, "Gigabit", "Gigabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (InformationUnit.Gigabyte, "Gigabyte", "Gigabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000000) - ); - yield return new (InformationUnit.Gigaoctet, "Gigaoctet", "Gigaoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000000) - ); - yield return new (InformationUnit.Kibibit, "Kibibit", "Kibibits", BaseUnits.Undefined, - new QuantityValue(1, 1024) - ); - yield return new (InformationUnit.Kibibyte, "Kibibyte", "Kibibytes", BaseUnits.Undefined, - new QuantityValue(1, 8192) - ); - yield return new (InformationUnit.Kibioctet, "Kibioctet", "Kibioctets", BaseUnits.Undefined, - new QuantityValue(1, 8192) - ); - yield return new (InformationUnit.Kilobit, "Kilobit", "Kilobits", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (InformationUnit.Kilobyte, "Kilobyte", "Kilobytes", BaseUnits.Undefined, - new QuantityValue(1, 8000) - ); - yield return new (InformationUnit.Kilooctet, "Kilooctet", "Kilooctets", BaseUnits.Undefined, - new QuantityValue(1, 8000) - ); - yield return new (InformationUnit.Mebibit, "Mebibit", "Mebibits", BaseUnits.Undefined, - new QuantityValue(1, 1048576) - ); - yield return new (InformationUnit.Mebibyte, "Mebibyte", "Mebibytes", BaseUnits.Undefined, - new QuantityValue(1, 8388608) - ); - yield return new (InformationUnit.Mebioctet, "Mebioctet", "Mebioctets", BaseUnits.Undefined, - new QuantityValue(1, 8388608) - ); - yield return new (InformationUnit.Megabit, "Megabit", "Megabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (InformationUnit.Megabyte, "Megabyte", "Megabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000) - ); - yield return new (InformationUnit.Megaoctet, "Megaoctet", "Megaoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000) - ); - yield return new (InformationUnit.Octet, "Octet", "Octets", BaseUnits.Undefined, - new QuantityValue(1, 8) - ); - yield return new (InformationUnit.Pebibit, "Pebibit", "Pebibits", BaseUnits.Undefined, - new QuantityValue(1, 1125899906842624) - ); - yield return new (InformationUnit.Pebibyte, "Pebibyte", "Pebibytes", BaseUnits.Undefined, - new QuantityValue(1, 9007199254740992) - ); - yield return new (InformationUnit.Pebioctet, "Pebioctet", "Pebioctets", BaseUnits.Undefined, - new QuantityValue(1, 9007199254740992) - ); - yield return new (InformationUnit.Petabit, "Petabit", "Petabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (InformationUnit.Petabyte, "Petabyte", "Petabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000) - ); - yield return new (InformationUnit.Petaoctet, "Petaoctet", "Petaoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000) - ); - yield return new (InformationUnit.Tebibit, "Tebibit", "Tebibits", BaseUnits.Undefined, - new QuantityValue(1, 1099511627776) - ); - yield return new (InformationUnit.Tebibyte, "Tebibyte", "Tebibytes", BaseUnits.Undefined, - new QuantityValue(1, 8796093022208) - ); - yield return new (InformationUnit.Tebioctet, "Tebioctet", "Tebioctets", BaseUnits.Undefined, - new QuantityValue(1, 8796093022208) - ); - yield return new (InformationUnit.Terabit, "Terabit", "Terabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (InformationUnit.Terabyte, "Terabyte", "Terabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000) - ); - yield return new (InformationUnit.Teraoctet, "Teraoctet", "Teraoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000) - ); + return new UnitDefinition[] + { + new (InformationUnit.Bit, "Bit", "Bits", BaseUnits.Undefined), + new (InformationUnit.Byte, "Byte", "Bytes", BaseUnits.Undefined, + new QuantityValue(1, 8) + ), + new (InformationUnit.Exabit, "Exabit", "Exabits", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000000) + ), + new (InformationUnit.Exabyte, "Exabyte", "Exabytes", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000000000) + ), + new (InformationUnit.Exaoctet, "Exaoctet", "Exaoctets", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000000000) + ), + new (InformationUnit.Exbibit, "Exbibit", "Exbibits", BaseUnits.Undefined, + new QuantityValue(1, 1152921504606846976) + ), + new (InformationUnit.Exbibyte, "Exbibyte", "Exbibytes", BaseUnits.Undefined, + new QuantityValue(1, BigInteger.Pow(2, 63)) + ), + new (InformationUnit.Exbioctet, "Exbioctet", "Exbioctets", BaseUnits.Undefined, + new QuantityValue(1, BigInteger.Pow(2, 63)) + ), + new (InformationUnit.Gibibit, "Gibibit", "Gibibits", BaseUnits.Undefined, + new QuantityValue(1, 1073741824) + ), + new (InformationUnit.Gibibyte, "Gibibyte", "Gibibytes", BaseUnits.Undefined, + new QuantityValue(1, 8589934592) + ), + new (InformationUnit.Gibioctet, "Gibioctet", "Gibioctets", BaseUnits.Undefined, + new QuantityValue(1, 8589934592) + ), + new (InformationUnit.Gigabit, "Gigabit", "Gigabits", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (InformationUnit.Gigabyte, "Gigabyte", "Gigabytes", BaseUnits.Undefined, + new QuantityValue(1, 8000000000) + ), + new (InformationUnit.Gigaoctet, "Gigaoctet", "Gigaoctets", BaseUnits.Undefined, + new QuantityValue(1, 8000000000) + ), + new (InformationUnit.Kibibit, "Kibibit", "Kibibits", BaseUnits.Undefined, + new QuantityValue(1, 1024) + ), + new (InformationUnit.Kibibyte, "Kibibyte", "Kibibytes", BaseUnits.Undefined, + new QuantityValue(1, 8192) + ), + new (InformationUnit.Kibioctet, "Kibioctet", "Kibioctets", BaseUnits.Undefined, + new QuantityValue(1, 8192) + ), + new (InformationUnit.Kilobit, "Kilobit", "Kilobits", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (InformationUnit.Kilobyte, "Kilobyte", "Kilobytes", BaseUnits.Undefined, + new QuantityValue(1, 8000) + ), + new (InformationUnit.Kilooctet, "Kilooctet", "Kilooctets", BaseUnits.Undefined, + new QuantityValue(1, 8000) + ), + new (InformationUnit.Mebibit, "Mebibit", "Mebibits", BaseUnits.Undefined, + new QuantityValue(1, 1048576) + ), + new (InformationUnit.Mebibyte, "Mebibyte", "Mebibytes", BaseUnits.Undefined, + new QuantityValue(1, 8388608) + ), + new (InformationUnit.Mebioctet, "Mebioctet", "Mebioctets", BaseUnits.Undefined, + new QuantityValue(1, 8388608) + ), + new (InformationUnit.Megabit, "Megabit", "Megabits", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (InformationUnit.Megabyte, "Megabyte", "Megabytes", BaseUnits.Undefined, + new QuantityValue(1, 8000000) + ), + new (InformationUnit.Megaoctet, "Megaoctet", "Megaoctets", BaseUnits.Undefined, + new QuantityValue(1, 8000000) + ), + new (InformationUnit.Octet, "Octet", "Octets", BaseUnits.Undefined, + new QuantityValue(1, 8) + ), + new (InformationUnit.Pebibit, "Pebibit", "Pebibits", BaseUnits.Undefined, + new QuantityValue(1, 1125899906842624) + ), + new (InformationUnit.Pebibyte, "Pebibyte", "Pebibytes", BaseUnits.Undefined, + new QuantityValue(1, 9007199254740992) + ), + new (InformationUnit.Pebioctet, "Pebioctet", "Pebioctets", BaseUnits.Undefined, + new QuantityValue(1, 9007199254740992) + ), + new (InformationUnit.Petabit, "Petabit", "Petabits", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000) + ), + new (InformationUnit.Petabyte, "Petabyte", "Petabytes", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000000) + ), + new (InformationUnit.Petaoctet, "Petaoctet", "Petaoctets", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000000) + ), + new (InformationUnit.Tebibit, "Tebibit", "Tebibits", BaseUnits.Undefined, + new QuantityValue(1, 1099511627776) + ), + new (InformationUnit.Tebibyte, "Tebibyte", "Tebibytes", BaseUnits.Undefined, + new QuantityValue(1, 8796093022208) + ), + new (InformationUnit.Tebioctet, "Tebioctet", "Tebioctets", BaseUnits.Undefined, + new QuantityValue(1, 8796093022208) + ), + new (InformationUnit.Terabit, "Terabit", "Terabits", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000) + ), + new (InformationUnit.Terabyte, "Terabyte", "Terabytes", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000) + ), + new (InformationUnit.Teraoctet, "Teraoctet", "Teraoctets", BaseUnits.Undefined, + new QuantityValue(1, 8000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs index affb6a176b..d867bcfc8c 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs @@ -117,46 +117,49 @@ public static IrradianceInfo CreateDefault(FuncAn of representing the default unit mappings for Irradiance. public static IEnumerable> GetDefaultMappings() { - yield return new (IrradianceUnit.KilowattPerSquareCentimeter, "KilowattPerSquareCentimeter", "KilowattsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000000) - ); - yield return new (IrradianceUnit.KilowattPerSquareMeter, "KilowattPerSquareMeter", "KilowattsPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (IrradianceUnit.MegawattPerSquareCentimeter, "MegawattPerSquareCentimeter", "MegawattsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000000000) - ); - yield return new (IrradianceUnit.MegawattPerSquareMeter, "MegawattPerSquareMeter", "MegawattsPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (IrradianceUnit.MicrowattPerSquareCentimeter, "MicrowattPerSquareCentimeter", "MicrowattsPerSquareCentimeter", BaseUnits.Undefined, - 100 - ); - yield return new (IrradianceUnit.MicrowattPerSquareMeter, "MicrowattPerSquareMeter", "MicrowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (IrradianceUnit.MilliwattPerSquareCentimeter, "MilliwattPerSquareCentimeter", "MilliwattsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (IrradianceUnit.MilliwattPerSquareMeter, "MilliwattPerSquareMeter", "MilliwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (IrradianceUnit.NanowattPerSquareCentimeter, "NanowattPerSquareCentimeter", "NanowattsPerSquareCentimeter", BaseUnits.Undefined, - 100000 - ); - yield return new (IrradianceUnit.NanowattPerSquareMeter, "NanowattPerSquareMeter", "NanowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (IrradianceUnit.PicowattPerSquareCentimeter, "PicowattPerSquareCentimeter", "PicowattsPerSquareCentimeter", BaseUnits.Undefined, - 100000000 - ); - yield return new (IrradianceUnit.PicowattPerSquareMeter, "PicowattPerSquareMeter", "PicowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (IrradianceUnit.WattPerSquareCentimeter, "WattPerSquareCentimeter", "WattsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (IrradianceUnit.WattPerSquareMeter, "WattPerSquareMeter", "WattsPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)); + return new UnitDefinition[] + { + new (IrradianceUnit.KilowattPerSquareCentimeter, "KilowattPerSquareCentimeter", "KilowattsPerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10000000) + ), + new (IrradianceUnit.KilowattPerSquareMeter, "KilowattPerSquareMeter", "KilowattsPerSquareMeter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (IrradianceUnit.MegawattPerSquareCentimeter, "MegawattPerSquareCentimeter", "MegawattsPerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10000000000) + ), + new (IrradianceUnit.MegawattPerSquareMeter, "MegawattPerSquareMeter", "MegawattsPerSquareMeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (IrradianceUnit.MicrowattPerSquareCentimeter, "MicrowattPerSquareCentimeter", "MicrowattsPerSquareCentimeter", BaseUnits.Undefined, + 100 + ), + new (IrradianceUnit.MicrowattPerSquareMeter, "MicrowattPerSquareMeter", "MicrowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000000 + ), + new (IrradianceUnit.MilliwattPerSquareCentimeter, "MilliwattPerSquareCentimeter", "MilliwattsPerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (IrradianceUnit.MilliwattPerSquareMeter, "MilliwattPerSquareMeter", "MilliwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (IrradianceUnit.NanowattPerSquareCentimeter, "NanowattPerSquareCentimeter", "NanowattsPerSquareCentimeter", BaseUnits.Undefined, + 100000 + ), + new (IrradianceUnit.NanowattPerSquareMeter, "NanowattPerSquareMeter", "NanowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), + 1000000000 + ), + new (IrradianceUnit.PicowattPerSquareCentimeter, "PicowattPerSquareCentimeter", "PicowattsPerSquareCentimeter", BaseUnits.Undefined, + 100000000 + ), + new (IrradianceUnit.PicowattPerSquareMeter, "PicowattPerSquareMeter", "PicowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Second), + 1000000000000 + ), + new (IrradianceUnit.WattPerSquareCentimeter, "WattPerSquareCentimeter", "WattsPerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (IrradianceUnit.WattPerSquareMeter, "WattPerSquareMeter", "WattsPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs index 8bde6cb308..1f9bff413f 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs @@ -121,31 +121,34 @@ public static IrradiationInfo CreateDefault(FuncAn of representing the default unit mappings for Irradiation. public static IEnumerable> GetDefaultMappings() { - yield return new (IrradiationUnit.BtuPerSquareFoot, "BtuPerSquareFoot", "BtusPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(4645152, 52752792631) - ); - yield return new (IrradiationUnit.JoulePerSquareCentimeter, "JoulePerSquareCentimeter", "JoulesPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (IrradiationUnit.JoulePerSquareMeter, "JoulePerSquareMeter", "JoulesPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (IrradiationUnit.JoulePerSquareMillimeter, "JoulePerSquareMillimeter", "JoulesPerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (IrradiationUnit.KilobtuPerSquareFoot, "KilobtuPerSquareFoot", "KilobtusPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(580644, 6594099078875) - ); - yield return new (IrradiationUnit.KilojoulePerSquareMeter, "KilojoulePerSquareMeter", "KilojoulesPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (IrradiationUnit.KilowattHourPerSquareMeter, "KilowattHourPerSquareMeter", "KilowattHoursPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000) - ); - yield return new (IrradiationUnit.MillijoulePerSquareCentimeter, "MillijoulePerSquareCentimeter", "MillijoulesPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (IrradiationUnit.WattHourPerSquareMeter, "WattHourPerSquareMeter", "WattHoursPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600) - ); + return new UnitDefinition[] + { + new (IrradiationUnit.BtuPerSquareFoot, "BtuPerSquareFoot", "BtusPerSquareFoot", BaseUnits.Undefined, + new QuantityValue(4645152, 52752792631) + ), + new (IrradiationUnit.JoulePerSquareCentimeter, "JoulePerSquareCentimeter", "JoulesPerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (IrradiationUnit.JoulePerSquareMeter, "JoulePerSquareMeter", "JoulesPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (IrradiationUnit.JoulePerSquareMillimeter, "JoulePerSquareMillimeter", "JoulesPerSquareMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (IrradiationUnit.KilobtuPerSquareFoot, "KilobtuPerSquareFoot", "KilobtusPerSquareFoot", BaseUnits.Undefined, + new QuantityValue(580644, 6594099078875) + ), + new (IrradiationUnit.KilojoulePerSquareMeter, "KilojoulePerSquareMeter", "KilojoulesPerSquareMeter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (IrradiationUnit.KilowattHourPerSquareMeter, "KilowattHourPerSquareMeter", "KilowattHoursPerSquareMeter", BaseUnits.Undefined, + new QuantityValue(1, 3600000) + ), + new (IrradiationUnit.MillijoulePerSquareCentimeter, "MillijoulePerSquareCentimeter", "MillijoulesPerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (IrradiationUnit.WattHourPerSquareMeter, "WattHourPerSquareMeter", "WattHoursPerSquareMeter", BaseUnits.Undefined, + new QuantityValue(1, 3600) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs b/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs index 29d40527a4..21c1d5df18 100644 --- a/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs @@ -117,37 +117,40 @@ public static JerkInfo CreateDefault(Func>, /// An of representing the default unit mappings for Jerk. public static IEnumerable> GetDefaultMappings() { - yield return new (JerkUnit.CentimeterPerSecondCubed, "CentimeterPerSecondCubed", "CentimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), - 100 - ); - yield return new (JerkUnit.DecimeterPerSecondCubed, "DecimeterPerSecondCubed", "DecimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), - 10 - ); - yield return new (JerkUnit.FootPerSecondCubed, "FootPerSecondCubed", "FeetPerSecondCubed", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1250, 381) - ); - yield return new (JerkUnit.InchPerSecondCubed, "InchPerSecondCubed", "InchesPerSecondCubed", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), - new QuantityValue(5000, 127) - ); - yield return new (JerkUnit.KilometerPerSecondCubed, "KilometerPerSecondCubed", "KilometersPerSecondCubed", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (JerkUnit.MeterPerSecondCubed, "MeterPerSecondCubed", "MetersPerSecondCubed", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (JerkUnit.MicrometerPerSecondCubed, "MicrometerPerSecondCubed", "MicrometersPerSecondCubed", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), - 1000000 - ); - yield return new (JerkUnit.MillimeterPerSecondCubed, "MillimeterPerSecondCubed", "MillimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000 - ); - yield return new (JerkUnit.MillistandardGravitiesPerSecond, "MillistandardGravitiesPerSecond", "MillistandardGravitiesPerSecond", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (JerkUnit.NanometerPerSecondCubed, "NanometerPerSecondCubed", "NanometersPerSecondCubed", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), - 1000000000 - ); - yield return new (JerkUnit.StandardGravitiesPerSecond, "StandardGravitiesPerSecond", "StandardGravitiesPerSecond", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); + return new UnitDefinition[] + { + new (JerkUnit.CentimeterPerSecondCubed, "CentimeterPerSecondCubed", "CentimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), + 100 + ), + new (JerkUnit.DecimeterPerSecondCubed, "DecimeterPerSecondCubed", "DecimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), + 10 + ), + new (JerkUnit.FootPerSecondCubed, "FootPerSecondCubed", "FeetPerSecondCubed", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), + new QuantityValue(1250, 381) + ), + new (JerkUnit.InchPerSecondCubed, "InchPerSecondCubed", "InchesPerSecondCubed", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), + new QuantityValue(5000, 127) + ), + new (JerkUnit.KilometerPerSecondCubed, "KilometerPerSecondCubed", "KilometersPerSecondCubed", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (JerkUnit.MeterPerSecondCubed, "MeterPerSecondCubed", "MetersPerSecondCubed", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (JerkUnit.MicrometerPerSecondCubed, "MicrometerPerSecondCubed", "MicrometersPerSecondCubed", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), + 1000000 + ), + new (JerkUnit.MillimeterPerSecondCubed, "MillimeterPerSecondCubed", "MillimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), + 1000 + ), + new (JerkUnit.MillistandardGravitiesPerSecond, "MillistandardGravitiesPerSecond", "MillistandardGravitiesPerSecond", BaseUnits.Undefined, + new QuantityValue(20000000, 196133) + ), + new (JerkUnit.NanometerPerSecondCubed, "NanometerPerSecondCubed", "NanometersPerSecondCubed", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), + 1000000000 + ), + new (JerkUnit.StandardGravitiesPerSecond, "StandardGravitiesPerSecond", "StandardGravitiesPerSecond", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs index f3665c7b15..cf0748eebb 100644 --- a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs @@ -123,31 +123,34 @@ public static KinematicViscosityInfo CreateDefault(FuncAn of representing the default unit mappings for KinematicViscosity. public static IEnumerable> GetDefaultMappings() { - yield return new (KinematicViscosityUnit.Centistokes, "Centistokes", "Centistokes", BaseUnits.Undefined, - 1000000 - ); - yield return new (KinematicViscosityUnit.Decistokes, "Decistokes", "Decistokes", BaseUnits.Undefined, - 100000 - ); - yield return new (KinematicViscosityUnit.Kilostokes, "Kilostokes", "Kilostokes", BaseUnits.Undefined, - 10 - ); - yield return new (KinematicViscosityUnit.Microstokes, "Microstokes", "Microstokes", BaseUnits.Undefined, - 10000000000 - ); - yield return new (KinematicViscosityUnit.Millistokes, "Millistokes", "Millistokes", BaseUnits.Undefined, - 10000000 - ); - yield return new (KinematicViscosityUnit.Nanostokes, "Nanostokes", "Nanostokes", BaseUnits.Undefined, - 10000000000000 - ); - yield return new (KinematicViscosityUnit.SquareFootPerSecond, "SquareFootPerSecond", "SquareFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1562500, 145161) - ); - yield return new (KinematicViscosityUnit.SquareMeterPerSecond, "SquareMeterPerSecond", "SquareMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (KinematicViscosityUnit.Stokes, "Stokes", "Stokes", BaseUnits.Undefined, - 10000 - ); + return new UnitDefinition[] + { + new (KinematicViscosityUnit.Centistokes, "Centistokes", "Centistokes", BaseUnits.Undefined, + 1000000 + ), + new (KinematicViscosityUnit.Decistokes, "Decistokes", "Decistokes", BaseUnits.Undefined, + 100000 + ), + new (KinematicViscosityUnit.Kilostokes, "Kilostokes", "Kilostokes", BaseUnits.Undefined, + 10 + ), + new (KinematicViscosityUnit.Microstokes, "Microstokes", "Microstokes", BaseUnits.Undefined, + 10000000000 + ), + new (KinematicViscosityUnit.Millistokes, "Millistokes", "Millistokes", BaseUnits.Undefined, + 10000000 + ), + new (KinematicViscosityUnit.Nanostokes, "Nanostokes", "Nanostokes", BaseUnits.Undefined, + 10000000000000 + ), + new (KinematicViscosityUnit.SquareFootPerSecond, "SquareFootPerSecond", "SquareFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), + new QuantityValue(1562500, 145161) + ), + new (KinematicViscosityUnit.SquareMeterPerSecond, "SquareMeterPerSecond", "SquareMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (KinematicViscosityUnit.Stokes, "Stokes", "Stokes", BaseUnits.Undefined, + 10000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs b/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs index d33a66d643..2804f11fd3 100644 --- a/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs @@ -121,16 +121,19 @@ public static LeakRateInfo CreateDefault(FuncAn of representing the default unit mappings for LeakRate. public static IEnumerable> GetDefaultMappings() { - yield return new (LeakRateUnit.AtmCubicCentimeterPerSecond, "AtmCubicCentimeterPerSecond", "AtmCubicCentimetersPerSecond", BaseUnits.Undefined, - new QuantityValue(40000, 4053) - ); - yield return new (LeakRateUnit.MillibarLiterPerSecond, "MillibarLiterPerSecond", "MillibarLitersPerSecond", BaseUnits.Undefined, - 10 - ); - yield return new (LeakRateUnit.PascalCubicMeterPerSecond, "PascalCubicMeterPerSecond", "PascalCubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (LeakRateUnit.TorrLiterPerSecond, "TorrLiterPerSecond", "TorrLitersPerSecond", BaseUnits.Undefined, - new QuantityValue(15, 2) - ); + return new UnitDefinition[] + { + new (LeakRateUnit.AtmCubicCentimeterPerSecond, "AtmCubicCentimeterPerSecond", "AtmCubicCentimetersPerSecond", BaseUnits.Undefined, + new QuantityValue(40000, 4053) + ), + new (LeakRateUnit.MillibarLiterPerSecond, "MillibarLiterPerSecond", "MillibarLitersPerSecond", BaseUnits.Undefined, + 10 + ), + new (LeakRateUnit.PascalCubicMeterPerSecond, "PascalCubicMeterPerSecond", "PascalCubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (LeakRateUnit.TorrLiterPerSecond, "TorrLiterPerSecond", "TorrLitersPerSecond", BaseUnits.Undefined, + new QuantityValue(15, 2) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Length.g.cs b/UnitsNet/GeneratedCode/Quantities/Length.g.cs index dfe52879ca..264369fb92 100644 --- a/UnitsNet/GeneratedCode/Quantities/Length.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Length.g.cs @@ -140,130 +140,133 @@ public static LengthInfo CreateDefault(FuncAn of representing the default unit mappings for Length. public static IEnumerable> GetDefaultMappings() { - yield return new (LengthUnit.Angstrom, "Angstrom", "Angstroms", new BaseUnits(length: LengthUnit.Angstrom), - 10000000000 - ); - yield return new (LengthUnit.AstronomicalUnit, "AstronomicalUnit", "AstronomicalUnits", new BaseUnits(length: LengthUnit.AstronomicalUnit), - new QuantityValue(1, 149597870700) - ); - yield return new (LengthUnit.Centimeter, "Centimeter", "Centimeters", new BaseUnits(length: LengthUnit.Centimeter), - 100 - ); - yield return new (LengthUnit.Chain, "Chain", "Chains", new BaseUnits(length: LengthUnit.Chain), - new QuantityValue(625, 12573) - ); - yield return new (LengthUnit.DataMile, "DataMile", "DataMiles", new BaseUnits(length: LengthUnit.DataMile), - new QuantityValue(5, 9144) - ); - yield return new (LengthUnit.Decameter, "Decameter", "Decameters", new BaseUnits(length: LengthUnit.Decameter), - new QuantityValue(1, 10) - ); - yield return new (LengthUnit.Decimeter, "Decimeter", "Decimeters", new BaseUnits(length: LengthUnit.Decimeter), - 10 - ); - yield return new (LengthUnit.DtpPica, "DtpPica", "DtpPicas", new BaseUnits(length: LengthUnit.DtpPica), - new QuantityValue(30000, 127) - ); - yield return new (LengthUnit.DtpPoint, "DtpPoint", "DtpPoints", new BaseUnits(length: LengthUnit.DtpPoint), - new QuantityValue(360000, 127) - ); - yield return new (LengthUnit.Fathom, "Fathom", "Fathoms", new BaseUnits(length: LengthUnit.Fathom), - new QuantityValue(625, 1143) - ); - yield return new (LengthUnit.Femtometer, "Femtometer", "Femtometers", new BaseUnits(length: LengthUnit.Femtometer), - 1000000000000000 - ); - yield return new (LengthUnit.Foot, "Foot", "Feet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(1250, 381) - ); - yield return new (LengthUnit.Gigameter, "Gigameter", "Gigameters", new BaseUnits(length: LengthUnit.Gigameter), - new QuantityValue(1, 1000000000) - ); - yield return new (LengthUnit.Hand, "Hand", "Hands", new BaseUnits(length: LengthUnit.Hand), - new QuantityValue(1250, 127) - ); - yield return new (LengthUnit.Hectometer, "Hectometer", "Hectometers", new BaseUnits(length: LengthUnit.Hectometer), - new QuantityValue(1, 100) - ); - yield return new (LengthUnit.Inch, "Inch", "Inches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(5000, 127) - ); - yield return new (LengthUnit.Kilofoot, "Kilofoot", "Kilofeet", new BaseUnits(length: LengthUnit.Kilofoot), - new QuantityValue(5, 1524) - ); - yield return new (LengthUnit.KilolightYear, "KilolightYear", "KilolightYears", new BaseUnits(length: LengthUnit.KilolightYear), - new QuantityValue(1, QuantityValue.PowerOfTen(7) * new BigInteger(946073047258)) - ); - yield return new (LengthUnit.Kilometer, "Kilometer", "Kilometers", new BaseUnits(length: LengthUnit.Kilometer), - new QuantityValue(1, 1000) - ); - yield return new (LengthUnit.Kiloparsec, "Kiloparsec", "Kiloparsecs", new BaseUnits(length: LengthUnit.Kiloparsec), - new QuantityValue(1, QuantityValue.PowerOfTen(8) * new BigInteger(308567758128)) - ); - yield return new (LengthUnit.Kiloyard, "Kiloyard", "Kiloyards", new BaseUnits(length: LengthUnit.Kiloyard), - new QuantityValue(5, 4572) - ); - yield return new (LengthUnit.LightYear, "LightYear", "LightYears", new BaseUnits(length: LengthUnit.LightYear), - new QuantityValue(1, 9460730472580000) - ); - yield return new (LengthUnit.MegalightYear, "MegalightYear", "MegalightYears", new BaseUnits(length: LengthUnit.MegalightYear), - new QuantityValue(1, QuantityValue.PowerOfTen(10) * new BigInteger(946073047258)) - ); - yield return new (LengthUnit.Megameter, "Megameter", "Megameters", new BaseUnits(length: LengthUnit.Megameter), - new QuantityValue(1, 1000000) - ); - yield return new (LengthUnit.Megaparsec, "Megaparsec", "Megaparsecs", new BaseUnits(length: LengthUnit.Megaparsec), - new QuantityValue(1, QuantityValue.PowerOfTen(11) * new BigInteger(308567758128)) - ); - yield return new (LengthUnit.Meter, "Meter", "Meters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (LengthUnit.Microinch, "Microinch", "Microinches", new BaseUnits(length: LengthUnit.Microinch), - new QuantityValue(5000000000, 127) - ); - yield return new (LengthUnit.Micrometer, "Micrometer", "Micrometers", new BaseUnits(length: LengthUnit.Micrometer), - 1000000 - ); - yield return new (LengthUnit.Mil, "Mil", "Mils", new BaseUnits(length: LengthUnit.Mil), - new QuantityValue(5000000, 127) - ); - yield return new (LengthUnit.Mile, "Mile", "Miles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(125, 201168) - ); - yield return new (LengthUnit.Millimeter, "Millimeter", "Millimeters", new BaseUnits(length: LengthUnit.Millimeter), - 1000 - ); - yield return new (LengthUnit.Nanometer, "Nanometer", "Nanometers", new BaseUnits(length: LengthUnit.Nanometer), - 1000000000 - ); - yield return new (LengthUnit.NauticalMile, "NauticalMile", "NauticalMiles", new BaseUnits(length: LengthUnit.NauticalMile), - new QuantityValue(1, 1852) - ); - yield return new (LengthUnit.Parsec, "Parsec", "Parsecs", new BaseUnits(length: LengthUnit.Parsec), - new QuantityValue(1, 30856775812800000) - ); - yield return new (LengthUnit.Picometer, "Picometer", "Picometers", new BaseUnits(length: LengthUnit.Picometer), - 1000000000000 - ); - yield return new (LengthUnit.PrinterPica, "PrinterPica", "PrinterPicas", new BaseUnits(length: LengthUnit.PrinterPica), - new QuantityValue(60225, 254) - ); - yield return new (LengthUnit.PrinterPoint, "PrinterPoint", "PrinterPoints", new BaseUnits(length: LengthUnit.PrinterPoint), - new QuantityValue(361350, 127) - ); - yield return new (LengthUnit.Shackle, "Shackle", "Shackles", new BaseUnits(length: LengthUnit.Shackle), - new QuantityValue(125, 3429) - ); - yield return new (LengthUnit.SolarRadius, "SolarRadius", "SolarRadiuses", new BaseUnits(length: LengthUnit.SolarRadius), - new QuantityValue(1, 695700000) - ); - yield return new (LengthUnit.Twip, "Twip", "Twips", new BaseUnits(length: LengthUnit.Twip), - new QuantityValue(7200000, 127) - ); - yield return new (LengthUnit.UsSurveyFoot, "UsSurveyFoot", "UsSurveyFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), - new QuantityValue(3937, 1200) - ); - yield return new (LengthUnit.Yard, "Yard", "Yards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1250, 1143) - ); + return new UnitDefinition[] + { + new (LengthUnit.Angstrom, "Angstrom", "Angstroms", new BaseUnits(length: LengthUnit.Angstrom), + 10000000000 + ), + new (LengthUnit.AstronomicalUnit, "AstronomicalUnit", "AstronomicalUnits", new BaseUnits(length: LengthUnit.AstronomicalUnit), + new QuantityValue(1, 149597870700) + ), + new (LengthUnit.Centimeter, "Centimeter", "Centimeters", new BaseUnits(length: LengthUnit.Centimeter), + 100 + ), + new (LengthUnit.Chain, "Chain", "Chains", new BaseUnits(length: LengthUnit.Chain), + new QuantityValue(625, 12573) + ), + new (LengthUnit.DataMile, "DataMile", "DataMiles", new BaseUnits(length: LengthUnit.DataMile), + new QuantityValue(5, 9144) + ), + new (LengthUnit.Decameter, "Decameter", "Decameters", new BaseUnits(length: LengthUnit.Decameter), + new QuantityValue(1, 10) + ), + new (LengthUnit.Decimeter, "Decimeter", "Decimeters", new BaseUnits(length: LengthUnit.Decimeter), + 10 + ), + new (LengthUnit.DtpPica, "DtpPica", "DtpPicas", new BaseUnits(length: LengthUnit.DtpPica), + new QuantityValue(30000, 127) + ), + new (LengthUnit.DtpPoint, "DtpPoint", "DtpPoints", new BaseUnits(length: LengthUnit.DtpPoint), + new QuantityValue(360000, 127) + ), + new (LengthUnit.Fathom, "Fathom", "Fathoms", new BaseUnits(length: LengthUnit.Fathom), + new QuantityValue(625, 1143) + ), + new (LengthUnit.Femtometer, "Femtometer", "Femtometers", new BaseUnits(length: LengthUnit.Femtometer), + 1000000000000000 + ), + new (LengthUnit.Foot, "Foot", "Feet", new BaseUnits(length: LengthUnit.Foot), + new QuantityValue(1250, 381) + ), + new (LengthUnit.Gigameter, "Gigameter", "Gigameters", new BaseUnits(length: LengthUnit.Gigameter), + new QuantityValue(1, 1000000000) + ), + new (LengthUnit.Hand, "Hand", "Hands", new BaseUnits(length: LengthUnit.Hand), + new QuantityValue(1250, 127) + ), + new (LengthUnit.Hectometer, "Hectometer", "Hectometers", new BaseUnits(length: LengthUnit.Hectometer), + new QuantityValue(1, 100) + ), + new (LengthUnit.Inch, "Inch", "Inches", new BaseUnits(length: LengthUnit.Inch), + new QuantityValue(5000, 127) + ), + new (LengthUnit.Kilofoot, "Kilofoot", "Kilofeet", new BaseUnits(length: LengthUnit.Kilofoot), + new QuantityValue(5, 1524) + ), + new (LengthUnit.KilolightYear, "KilolightYear", "KilolightYears", new BaseUnits(length: LengthUnit.KilolightYear), + new QuantityValue(1, QuantityValue.PowerOfTen(7) * new BigInteger(946073047258)) + ), + new (LengthUnit.Kilometer, "Kilometer", "Kilometers", new BaseUnits(length: LengthUnit.Kilometer), + new QuantityValue(1, 1000) + ), + new (LengthUnit.Kiloparsec, "Kiloparsec", "Kiloparsecs", new BaseUnits(length: LengthUnit.Kiloparsec), + new QuantityValue(1, QuantityValue.PowerOfTen(8) * new BigInteger(308567758128)) + ), + new (LengthUnit.Kiloyard, "Kiloyard", "Kiloyards", new BaseUnits(length: LengthUnit.Kiloyard), + new QuantityValue(5, 4572) + ), + new (LengthUnit.LightYear, "LightYear", "LightYears", new BaseUnits(length: LengthUnit.LightYear), + new QuantityValue(1, 9460730472580000) + ), + new (LengthUnit.MegalightYear, "MegalightYear", "MegalightYears", new BaseUnits(length: LengthUnit.MegalightYear), + new QuantityValue(1, QuantityValue.PowerOfTen(10) * new BigInteger(946073047258)) + ), + new (LengthUnit.Megameter, "Megameter", "Megameters", new BaseUnits(length: LengthUnit.Megameter), + new QuantityValue(1, 1000000) + ), + new (LengthUnit.Megaparsec, "Megaparsec", "Megaparsecs", new BaseUnits(length: LengthUnit.Megaparsec), + new QuantityValue(1, QuantityValue.PowerOfTen(11) * new BigInteger(308567758128)) + ), + new (LengthUnit.Meter, "Meter", "Meters", new BaseUnits(length: LengthUnit.Meter)), + new (LengthUnit.Microinch, "Microinch", "Microinches", new BaseUnits(length: LengthUnit.Microinch), + new QuantityValue(5000000000, 127) + ), + new (LengthUnit.Micrometer, "Micrometer", "Micrometers", new BaseUnits(length: LengthUnit.Micrometer), + 1000000 + ), + new (LengthUnit.Mil, "Mil", "Mils", new BaseUnits(length: LengthUnit.Mil), + new QuantityValue(5000000, 127) + ), + new (LengthUnit.Mile, "Mile", "Miles", new BaseUnits(length: LengthUnit.Mile), + new QuantityValue(125, 201168) + ), + new (LengthUnit.Millimeter, "Millimeter", "Millimeters", new BaseUnits(length: LengthUnit.Millimeter), + 1000 + ), + new (LengthUnit.Nanometer, "Nanometer", "Nanometers", new BaseUnits(length: LengthUnit.Nanometer), + 1000000000 + ), + new (LengthUnit.NauticalMile, "NauticalMile", "NauticalMiles", new BaseUnits(length: LengthUnit.NauticalMile), + new QuantityValue(1, 1852) + ), + new (LengthUnit.Parsec, "Parsec", "Parsecs", new BaseUnits(length: LengthUnit.Parsec), + new QuantityValue(1, 30856775812800000) + ), + new (LengthUnit.Picometer, "Picometer", "Picometers", new BaseUnits(length: LengthUnit.Picometer), + 1000000000000 + ), + new (LengthUnit.PrinterPica, "PrinterPica", "PrinterPicas", new BaseUnits(length: LengthUnit.PrinterPica), + new QuantityValue(60225, 254) + ), + new (LengthUnit.PrinterPoint, "PrinterPoint", "PrinterPoints", new BaseUnits(length: LengthUnit.PrinterPoint), + new QuantityValue(361350, 127) + ), + new (LengthUnit.Shackle, "Shackle", "Shackles", new BaseUnits(length: LengthUnit.Shackle), + new QuantityValue(125, 3429) + ), + new (LengthUnit.SolarRadius, "SolarRadius", "SolarRadiuses", new BaseUnits(length: LengthUnit.SolarRadius), + new QuantityValue(1, 695700000) + ), + new (LengthUnit.Twip, "Twip", "Twips", new BaseUnits(length: LengthUnit.Twip), + new QuantityValue(7200000, 127) + ), + new (LengthUnit.UsSurveyFoot, "UsSurveyFoot", "UsSurveyFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), + new QuantityValue(3937, 1200) + ), + new (LengthUnit.Yard, "Yard", "Yards", new BaseUnits(length: LengthUnit.Yard), + new QuantityValue(1250, 1143) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Level.g.cs b/UnitsNet/GeneratedCode/Quantities/Level.g.cs index 6d11c15fa7..3d09adef18 100644 --- a/UnitsNet/GeneratedCode/Quantities/Level.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Level.g.cs @@ -116,10 +116,13 @@ public static LevelInfo CreateDefault(Func /// An of representing the default unit mappings for Level. public static IEnumerable> GetDefaultMappings() { - yield return new (LevelUnit.Decibel, "Decibel", "Decibels", BaseUnits.Undefined); - yield return new (LevelUnit.Neper, "Neper", "Nepers", BaseUnits.Undefined, - new QuantityValue(57564627, 500000000) - ); + return new UnitDefinition[] + { + new (LevelUnit.Decibel, "Decibel", "Decibels", BaseUnits.Undefined), + new (LevelUnit.Neper, "Neper", "Nepers", BaseUnits.Undefined, + new QuantityValue(57564627, 500000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs index 784cf6cf33..f6f760bea7 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs @@ -125,58 +125,61 @@ public static LinearDensityInfo CreateDefault(FuncAn of representing the default unit mappings for LinearDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (LinearDensityUnit.GramPerCentimeter, "GramPerCentimeter", "GramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - 10 - ); - yield return new (LinearDensityUnit.GramPerFoot, "GramPerFoot", "GramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Gram), - new QuantityValue(1524, 5) - ); - yield return new (LinearDensityUnit.GramPerMeter, "GramPerMeter", "GramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (LinearDensityUnit.GramPerMillimeter, "GramPerMillimeter", "GramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), - 1 - ); - yield return new (LinearDensityUnit.KilogramPerCentimeter, "KilogramPerCentimeter", "KilogramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 100) - ); - yield return new (LinearDensityUnit.KilogramPerFoot, "KilogramPerFoot", "KilogramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilogram), - new QuantityValue(381, 1250) - ); - yield return new (LinearDensityUnit.KilogramPerMeter, "KilogramPerMeter", "KilogramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (LinearDensityUnit.KilogramPerMillimeter, "KilogramPerMillimeter", "KilogramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000) - ); - yield return new (LinearDensityUnit.MicrogramPerCentimeter, "MicrogramPerCentimeter", "MicrogramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), - 10000000 - ); - yield return new (LinearDensityUnit.MicrogramPerFoot, "MicrogramPerFoot", "MicrogramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Microgram), - 304800000 - ); - yield return new (LinearDensityUnit.MicrogramPerMeter, "MicrogramPerMeter", "MicrogramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), - 1000000000 - ); - yield return new (LinearDensityUnit.MicrogramPerMillimeter, "MicrogramPerMillimeter", "MicrogramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Microgram), - 1000000 - ); - yield return new (LinearDensityUnit.MilligramPerCentimeter, "MilligramPerCentimeter", "MilligramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), - 10000 - ); - yield return new (LinearDensityUnit.MilligramPerFoot, "MilligramPerFoot", "MilligramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Milligram), - 304800 - ); - yield return new (LinearDensityUnit.MilligramPerMeter, "MilligramPerMeter", "MilligramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (LinearDensityUnit.MilligramPerMillimeter, "MilligramPerMillimeter", "MilligramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Milligram), - 1000 - ); - yield return new (LinearDensityUnit.PoundPerFoot, "PoundPerFoot", "PoundsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(30480000, 45359237) - ); - yield return new (LinearDensityUnit.PoundPerInch, "PoundPerInch", "PoundsPerInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), - new QuantityValue(2540000, 45359237) - ); + return new UnitDefinition[] + { + new (LinearDensityUnit.GramPerCentimeter, "GramPerCentimeter", "GramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), + 10 + ), + new (LinearDensityUnit.GramPerFoot, "GramPerFoot", "GramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Gram), + new QuantityValue(1524, 5) + ), + new (LinearDensityUnit.GramPerMeter, "GramPerMeter", "GramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), + 1000 + ), + new (LinearDensityUnit.GramPerMillimeter, "GramPerMillimeter", "GramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), + 1 + ), + new (LinearDensityUnit.KilogramPerCentimeter, "KilogramPerCentimeter", "KilogramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), + new QuantityValue(1, 100) + ), + new (LinearDensityUnit.KilogramPerFoot, "KilogramPerFoot", "KilogramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilogram), + new QuantityValue(381, 1250) + ), + new (LinearDensityUnit.KilogramPerMeter, "KilogramPerMeter", "KilogramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)), + new (LinearDensityUnit.KilogramPerMillimeter, "KilogramPerMillimeter", "KilogramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), + new QuantityValue(1, 1000) + ), + new (LinearDensityUnit.MicrogramPerCentimeter, "MicrogramPerCentimeter", "MicrogramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), + 10000000 + ), + new (LinearDensityUnit.MicrogramPerFoot, "MicrogramPerFoot", "MicrogramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Microgram), + 304800000 + ), + new (LinearDensityUnit.MicrogramPerMeter, "MicrogramPerMeter", "MicrogramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), + 1000000000 + ), + new (LinearDensityUnit.MicrogramPerMillimeter, "MicrogramPerMillimeter", "MicrogramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Microgram), + 1000000 + ), + new (LinearDensityUnit.MilligramPerCentimeter, "MilligramPerCentimeter", "MilligramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), + 10000 + ), + new (LinearDensityUnit.MilligramPerFoot, "MilligramPerFoot", "MilligramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Milligram), + 304800 + ), + new (LinearDensityUnit.MilligramPerMeter, "MilligramPerMeter", "MilligramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), + 1000000 + ), + new (LinearDensityUnit.MilligramPerMillimeter, "MilligramPerMillimeter", "MilligramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Milligram), + 1000 + ), + new (LinearDensityUnit.PoundPerFoot, "PoundPerFoot", "PoundsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), + new QuantityValue(30480000, 45359237) + ), + new (LinearDensityUnit.PoundPerInch, "PoundPerInch", "PoundsPerInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), + new QuantityValue(2540000, 45359237) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs index 364ac7ce17..9bebc2ca86 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs @@ -120,79 +120,82 @@ public static LinearPowerDensityInfo CreateDefault(FuncAn of representing the default unit mappings for LinearPowerDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (LinearPowerDensityUnit.GigawattPerCentimeter, "GigawattPerCentimeter", "GigawattsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000000000) - ); - yield return new (LinearPowerDensityUnit.GigawattPerFoot, "GigawattPerFoot", "GigawattsPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250000000000) - ); - yield return new (LinearPowerDensityUnit.GigawattPerInch, "GigawattPerInch", "GigawattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000000000000) - ); - yield return new (LinearPowerDensityUnit.GigawattPerMeter, "GigawattPerMeter", "GigawattsPerMeter", new BaseUnits(length: LengthUnit.Gigameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000) - ); - yield return new (LinearPowerDensityUnit.GigawattPerMillimeter, "GigawattPerMillimeter", "GigawattsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerCentimeter, "KilowattPerCentimeter", "KilowattsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerFoot, "KilowattPerFoot", "KilowattsPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerInch, "KilowattPerInch", "KilowattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerMeter, "KilowattPerMeter", "KilowattsPerMeter", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerMillimeter, "KilowattPerMillimeter", "KilowattsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerCentimeter, "MegawattPerCentimeter", "MegawattsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerFoot, "MegawattPerFoot", "MegawattsPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerInch, "MegawattPerInch", "MegawattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerMeter, "MegawattPerMeter", "MegawattsPerMeter", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerMillimeter, "MegawattPerMillimeter", "MegawattsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (LinearPowerDensityUnit.MilliwattPerCentimeter, "MilliwattPerCentimeter", "MilliwattsPerCentimeter", BaseUnits.Undefined, - 10 - ); - yield return new (LinearPowerDensityUnit.MilliwattPerFoot, "MilliwattPerFoot", "MilliwattsPerFoot", BaseUnits.Undefined, - new QuantityValue(1524, 5) - ); - yield return new (LinearPowerDensityUnit.MilliwattPerInch, "MilliwattPerInch", "MilliwattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5) - ); - yield return new (LinearPowerDensityUnit.MilliwattPerMeter, "MilliwattPerMeter", "MilliwattsPerMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000 - ); - yield return new (LinearPowerDensityUnit.MilliwattPerMillimeter, "MilliwattPerMillimeter", "MilliwattsPerMillimeter", BaseUnits.Undefined, - 1 - ); - yield return new (LinearPowerDensityUnit.WattPerCentimeter, "WattPerCentimeter", "WattsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (LinearPowerDensityUnit.WattPerFoot, "WattPerFoot", "WattsPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250) - ); - yield return new (LinearPowerDensityUnit.WattPerInch, "WattPerInch", "WattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000) - ); - yield return new (LinearPowerDensityUnit.WattPerMeter, "WattPerMeter", "WattsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (LinearPowerDensityUnit.WattPerMillimeter, "WattPerMillimeter", "WattsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); + return new UnitDefinition[] + { + new (LinearPowerDensityUnit.GigawattPerCentimeter, "GigawattPerCentimeter", "GigawattsPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 100000000000) + ), + new (LinearPowerDensityUnit.GigawattPerFoot, "GigawattPerFoot", "GigawattsPerFoot", BaseUnits.Undefined, + new QuantityValue(381, 1250000000000) + ), + new (LinearPowerDensityUnit.GigawattPerInch, "GigawattPerInch", "GigawattsPerInch", BaseUnits.Undefined, + new QuantityValue(127, 5000000000000) + ), + new (LinearPowerDensityUnit.GigawattPerMeter, "GigawattPerMeter", "GigawattsPerMeter", new BaseUnits(length: LengthUnit.Gigameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000) + ), + new (LinearPowerDensityUnit.GigawattPerMillimeter, "GigawattPerMillimeter", "GigawattsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000) + ), + new (LinearPowerDensityUnit.KilowattPerCentimeter, "KilowattPerCentimeter", "KilowattsPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 100000) + ), + new (LinearPowerDensityUnit.KilowattPerFoot, "KilowattPerFoot", "KilowattsPerFoot", BaseUnits.Undefined, + new QuantityValue(381, 1250000) + ), + new (LinearPowerDensityUnit.KilowattPerInch, "KilowattPerInch", "KilowattsPerInch", BaseUnits.Undefined, + new QuantityValue(127, 5000000) + ), + new (LinearPowerDensityUnit.KilowattPerMeter, "KilowattPerMeter", "KilowattsPerMeter", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (LinearPowerDensityUnit.KilowattPerMillimeter, "KilowattPerMillimeter", "KilowattsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (LinearPowerDensityUnit.MegawattPerCentimeter, "MegawattPerCentimeter", "MegawattsPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 100000000) + ), + new (LinearPowerDensityUnit.MegawattPerFoot, "MegawattPerFoot", "MegawattsPerFoot", BaseUnits.Undefined, + new QuantityValue(381, 1250000000) + ), + new (LinearPowerDensityUnit.MegawattPerInch, "MegawattPerInch", "MegawattsPerInch", BaseUnits.Undefined, + new QuantityValue(127, 5000000000) + ), + new (LinearPowerDensityUnit.MegawattPerMeter, "MegawattPerMeter", "MegawattsPerMeter", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (LinearPowerDensityUnit.MegawattPerMillimeter, "MegawattPerMillimeter", "MegawattsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (LinearPowerDensityUnit.MilliwattPerCentimeter, "MilliwattPerCentimeter", "MilliwattsPerCentimeter", BaseUnits.Undefined, + 10 + ), + new (LinearPowerDensityUnit.MilliwattPerFoot, "MilliwattPerFoot", "MilliwattsPerFoot", BaseUnits.Undefined, + new QuantityValue(1524, 5) + ), + new (LinearPowerDensityUnit.MilliwattPerInch, "MilliwattPerInch", "MilliwattsPerInch", BaseUnits.Undefined, + new QuantityValue(127, 5) + ), + new (LinearPowerDensityUnit.MilliwattPerMeter, "MilliwattPerMeter", "MilliwattsPerMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1000 + ), + new (LinearPowerDensityUnit.MilliwattPerMillimeter, "MilliwattPerMillimeter", "MilliwattsPerMillimeter", BaseUnits.Undefined, + 1 + ), + new (LinearPowerDensityUnit.WattPerCentimeter, "WattPerCentimeter", "WattsPerCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (LinearPowerDensityUnit.WattPerFoot, "WattPerFoot", "WattsPerFoot", BaseUnits.Undefined, + new QuantityValue(381, 1250) + ), + new (LinearPowerDensityUnit.WattPerInch, "WattPerInch", "WattsPerInch", BaseUnits.Undefined, + new QuantityValue(127, 5000) + ), + new (LinearPowerDensityUnit.WattPerMeter, "WattPerMeter", "WattsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (LinearPowerDensityUnit.WattPerMillimeter, "WattPerMillimeter", "WattsPerMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs index 4acd55edfd..a8662e62a0 100644 --- a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs @@ -120,34 +120,37 @@ public static LuminanceInfo CreateDefault(FuncAn of representing the default unit mappings for Luminance. public static IEnumerable> GetDefaultMappings() { - yield return new (LuminanceUnit.CandelaPerSquareFoot, "CandelaPerSquareFoot", "CandelasPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(145161, 1562500) - ); - yield return new (LuminanceUnit.CandelaPerSquareInch, "CandelaPerSquareInch", "CandelasPerSquareInch", BaseUnits.Undefined, - new QuantityValue(16129, 25000000) - ); - yield return new (LuminanceUnit.CandelaPerSquareMeter, "CandelaPerSquareMeter", "CandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, luminousIntensity: LuminousIntensityUnit.Candela)); - yield return new (LuminanceUnit.CenticandelaPerSquareMeter, "CenticandelaPerSquareMeter", "CenticandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Decameter, luminousIntensity: LuminousIntensityUnit.Candela), - 100 - ); - yield return new (LuminanceUnit.DecicandelaPerSquareMeter, "DecicandelaPerSquareMeter", "DecicandelasPerSquareMeter", BaseUnits.Undefined, - 10 - ); - yield return new (LuminanceUnit.KilocandelaPerSquareMeter, "KilocandelaPerSquareMeter", "KilocandelasPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (LuminanceUnit.MicrocandelaPerSquareMeter, "MicrocandelaPerSquareMeter", "MicrocandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Kilometer, luminousIntensity: LuminousIntensityUnit.Candela), - 1000000 - ); - yield return new (LuminanceUnit.MillicandelaPerSquareMeter, "MillicandelaPerSquareMeter", "MillicandelasPerSquareMeter", BaseUnits.Undefined, - 1000 - ); - yield return new (LuminanceUnit.NanocandelaPerSquareMeter, "NanocandelaPerSquareMeter", "NanocandelasPerSquareMeter", BaseUnits.Undefined, - 1000000000 - ); - yield return new (LuminanceUnit.Nit, "Nit", "Nits", BaseUnits.Undefined, - 1 - ); + return new UnitDefinition[] + { + new (LuminanceUnit.CandelaPerSquareFoot, "CandelaPerSquareFoot", "CandelasPerSquareFoot", BaseUnits.Undefined, + new QuantityValue(145161, 1562500) + ), + new (LuminanceUnit.CandelaPerSquareInch, "CandelaPerSquareInch", "CandelasPerSquareInch", BaseUnits.Undefined, + new QuantityValue(16129, 25000000) + ), + new (LuminanceUnit.CandelaPerSquareMeter, "CandelaPerSquareMeter", "CandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, luminousIntensity: LuminousIntensityUnit.Candela)), + new (LuminanceUnit.CenticandelaPerSquareMeter, "CenticandelaPerSquareMeter", "CenticandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Decameter, luminousIntensity: LuminousIntensityUnit.Candela), + 100 + ), + new (LuminanceUnit.DecicandelaPerSquareMeter, "DecicandelaPerSquareMeter", "DecicandelasPerSquareMeter", BaseUnits.Undefined, + 10 + ), + new (LuminanceUnit.KilocandelaPerSquareMeter, "KilocandelaPerSquareMeter", "KilocandelasPerSquareMeter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (LuminanceUnit.MicrocandelaPerSquareMeter, "MicrocandelaPerSquareMeter", "MicrocandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Kilometer, luminousIntensity: LuminousIntensityUnit.Candela), + 1000000 + ), + new (LuminanceUnit.MillicandelaPerSquareMeter, "MillicandelaPerSquareMeter", "MillicandelasPerSquareMeter", BaseUnits.Undefined, + 1000 + ), + new (LuminanceUnit.NanocandelaPerSquareMeter, "NanocandelaPerSquareMeter", "NanocandelasPerSquareMeter", BaseUnits.Undefined, + 1000000000 + ), + new (LuminanceUnit.Nit, "Nit", "Nits", BaseUnits.Undefined, + 1 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs index d8c5cc4606..147edf918b 100644 --- a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs @@ -119,46 +119,49 @@ public static LuminosityInfo CreateDefault(FuncAn of representing the default unit mappings for Luminosity. public static IEnumerable> GetDefaultMappings() { - yield return new (LuminosityUnit.Decawatt, "Decawatt", "Decawatts", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (LuminosityUnit.Deciwatt, "Deciwatt", "Deciwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (LuminosityUnit.Femtowatt, "Femtowatt", "Femtowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Picogram, time: DurationUnit.Second), - 1000000000000000 - ); - yield return new (LuminosityUnit.Gigawatt, "Gigawatt", "Gigawatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (LuminosityUnit.Kilowatt, "Kilowatt", "Kilowatts", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (LuminosityUnit.Megawatt, "Megawatt", "Megawatts", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (LuminosityUnit.Microwatt, "Microwatt", "Microwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (LuminosityUnit.Milliwatt, "Milliwatt", "Milliwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (LuminosityUnit.Nanowatt, "Nanowatt", "Nanowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (LuminosityUnit.Petawatt, "Petawatt", "Petawatts", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (LuminosityUnit.Picowatt, "Picowatt", "Picowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (LuminosityUnit.SolarLuminosity, "SolarLuminosity", "SolarLuminosities", BaseUnits.Undefined, - new QuantityValue(1, new BigInteger(3828) * QuantityValue.PowerOfTen(23)) - ); - yield return new (LuminosityUnit.Terawatt, "Terawatt", "Terawatts", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (LuminosityUnit.Watt, "Watt", "Watts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); + return new UnitDefinition[] + { + new (LuminosityUnit.Decawatt, "Decawatt", "Decawatts", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (LuminosityUnit.Deciwatt, "Deciwatt", "Deciwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), + 10 + ), + new (LuminosityUnit.Femtowatt, "Femtowatt", "Femtowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Picogram, time: DurationUnit.Second), + 1000000000000000 + ), + new (LuminosityUnit.Gigawatt, "Gigawatt", "Gigawatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), + new QuantityValue(1, 1000000000) + ), + new (LuminosityUnit.Kilowatt, "Kilowatt", "Kilowatts", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (LuminosityUnit.Megawatt, "Megawatt", "Megawatts", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (LuminosityUnit.Microwatt, "Microwatt", "Microwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000000 + ), + new (LuminosityUnit.Milliwatt, "Milliwatt", "Milliwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (LuminosityUnit.Nanowatt, "Nanowatt", "Nanowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), + 1000000000 + ), + new (LuminosityUnit.Petawatt, "Petawatt", "Petawatts", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000) + ), + new (LuminosityUnit.Picowatt, "Picowatt", "Picowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), + 1000000000000 + ), + new (LuminosityUnit.SolarLuminosity, "SolarLuminosity", "SolarLuminosities", BaseUnits.Undefined, + new QuantityValue(1, new BigInteger(3828) * QuantityValue.PowerOfTen(23)) + ), + new (LuminosityUnit.Terawatt, "Terawatt", "Terawatts", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000000) + ), + new (LuminosityUnit.Watt, "Watt", "Watts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs index 7c354155d3..95a6cae159 100644 --- a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs @@ -123,7 +123,10 @@ public static LuminousFluxInfo CreateDefault(FuncAn of representing the default unit mappings for LuminousFlux. public static IEnumerable> GetDefaultMappings() { - yield return new (LuminousFluxUnit.Lumen, "Lumen", "Lumens", new BaseUnits(luminousIntensity: LuminousIntensityUnit.Candela)); + return new UnitDefinition[] + { + new (LuminousFluxUnit.Lumen, "Lumen", "Lumens", new BaseUnits(luminousIntensity: LuminousIntensityUnit.Candela)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs index b392682978..2e3e80186a 100644 --- a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs @@ -122,7 +122,10 @@ public static LuminousIntensityInfo CreateDefault(FuncAn of representing the default unit mappings for LuminousIntensity. public static IEnumerable> GetDefaultMappings() { - yield return new (LuminousIntensityUnit.Candela, "Candela", "Candela", new BaseUnits(luminousIntensity: LuminousIntensityUnit.Candela)); + return new UnitDefinition[] + { + new (LuminousIntensityUnit.Candela, "Candela", "Candela", new BaseUnits(luminousIntensity: LuminousIntensityUnit.Candela)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs index 4c2bdbe3af..1e0c370533 100644 --- a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs @@ -120,22 +120,25 @@ public static MagneticFieldInfo CreateDefault(FuncAn of representing the default unit mappings for MagneticField. public static IEnumerable> GetDefaultMappings() { - yield return new (MagneticFieldUnit.Gauss, "Gauss", "Gausses", BaseUnits.Undefined, - 10000 - ); - yield return new (MagneticFieldUnit.Microtesla, "Microtesla", "Microteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (MagneticFieldUnit.Milligauss, "Milligauss", "Milligausses", BaseUnits.Undefined, - 10000000 - ); - yield return new (MagneticFieldUnit.Millitesla, "Millitesla", "Milliteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (MagneticFieldUnit.Nanotesla, "Nanotesla", "Nanoteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (MagneticFieldUnit.Tesla, "Tesla", "Teslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (MagneticFieldUnit.Gauss, "Gauss", "Gausses", BaseUnits.Undefined, + 10000 + ), + new (MagneticFieldUnit.Microtesla, "Microtesla", "Microteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, current: ElectricCurrentUnit.Ampere), + 1000000 + ), + new (MagneticFieldUnit.Milligauss, "Milligauss", "Milligausses", BaseUnits.Undefined, + 10000000 + ), + new (MagneticFieldUnit.Millitesla, "Millitesla", "Milliteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, current: ElectricCurrentUnit.Ampere), + 1000 + ), + new (MagneticFieldUnit.Nanotesla, "Nanotesla", "Nanoteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, current: ElectricCurrentUnit.Ampere), + 1000000000 + ), + new (MagneticFieldUnit.Tesla, "Tesla", "Teslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs index 9fcfa55cbe..2b64cc25fd 100644 --- a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs @@ -121,7 +121,10 @@ public static MagneticFluxInfo CreateDefault(FuncAn of representing the default unit mappings for MagneticFlux. public static IEnumerable> GetDefaultMappings() { - yield return new (MagneticFluxUnit.Weber, "Weber", "Webers", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (MagneticFluxUnit.Weber, "Weber", "Webers", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs index 355296bb0f..bdd04b3817 100644 --- a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs @@ -119,7 +119,10 @@ public static MagnetizationInfo CreateDefault(FuncAn of representing the default unit mappings for Magnetization. public static IEnumerable> GetDefaultMappings() { - yield return new (MagnetizationUnit.AmperePerMeter, "AmperePerMeter", "AmperesPerMeter", new BaseUnits(length: LengthUnit.Meter, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (MagnetizationUnit.AmperePerMeter, "AmperePerMeter", "AmperesPerMeter", new BaseUnits(length: LengthUnit.Meter, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs index f4993cc01a..1e60dc2c4b 100644 --- a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs @@ -132,97 +132,100 @@ public static MassInfo CreateDefault(Func>, /// An of representing the default unit mappings for Mass. public static IEnumerable> GetDefaultMappings() { - yield return new (MassUnit.Centigram, "Centigram", "Centigrams", new BaseUnits(mass: MassUnit.Centigram), - 100000 - ); - yield return new (MassUnit.Dalton, "Dalton", "Daltons", new BaseUnits(mass: MassUnit.Dalton), - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(36), 8302695333) - ); - yield return new (MassUnit.Decagram, "Decagram", "Decagrams", new BaseUnits(mass: MassUnit.Decagram), - 100 - ); - yield return new (MassUnit.Decigram, "Decigram", "Decigrams", new BaseUnits(mass: MassUnit.Decigram), - 10000 - ); - yield return new (MassUnit.EarthMass, "EarthMass", "EarthMasses", new BaseUnits(mass: MassUnit.EarthMass), - new QuantityValue(1, new BigInteger(59722) * QuantityValue.PowerOfTen(20)) - ); - yield return new (MassUnit.Femtogram, "Femtogram", "Femtograms", new BaseUnits(mass: MassUnit.Femtogram), - 1000000000000000000 - ); - yield return new (MassUnit.Gigadalton, "Gigadalton", "Gigadaltons", new BaseUnits(mass: MassUnit.Gigadalton), - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(27), 8302695333) - ); - yield return new (MassUnit.Grain, "Grain", "Grains", new BaseUnits(mass: MassUnit.Grain), - new QuantityValue(100000000000, 6479891) - ); - yield return new (MassUnit.Gram, "Gram", "Grams", new BaseUnits(mass: MassUnit.Gram), - 1000 - ); - yield return new (MassUnit.Hectogram, "Hectogram", "Hectograms", new BaseUnits(mass: MassUnit.Hectogram), - 10 - ); - yield return new (MassUnit.Kilodalton, "Kilodalton", "Kilodaltons", new BaseUnits(mass: MassUnit.Kilodalton), - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(33), 8302695333) - ); - yield return new (MassUnit.Kilogram, "Kilogram", "Kilograms", new BaseUnits(mass: MassUnit.Kilogram)); - yield return new (MassUnit.Kilopound, "Kilopound", "Kilopounds", new BaseUnits(mass: MassUnit.Kilopound), - new QuantityValue(100000, 45359237) - ); - yield return new (MassUnit.Kilotonne, "Kilotonne", "Kilotonnes", new BaseUnits(mass: MassUnit.Kilotonne), - new QuantityValue(1, 1000000) - ); - yield return new (MassUnit.LongHundredweight, "LongHundredweight", "LongHundredweight", new BaseUnits(mass: MassUnit.LongHundredweight), - new QuantityValue(6250000, 317514659) - ); - yield return new (MassUnit.LongTon, "LongTon", "LongTons", new BaseUnits(mass: MassUnit.LongTon), - new QuantityValue(312500, 317514659) - ); - yield return new (MassUnit.Megadalton, "Megadalton", "Megadaltons", new BaseUnits(mass: MassUnit.Megadalton), - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(30), 8302695333) - ); - yield return new (MassUnit.Megapound, "Megapound", "Megapounds", new BaseUnits(mass: MassUnit.Megapound), - new QuantityValue(100, 45359237) - ); - yield return new (MassUnit.Megatonne, "Megatonne", "Megatonnes", new BaseUnits(mass: MassUnit.Megatonne), - new QuantityValue(1, 1000000000) - ); - yield return new (MassUnit.Microgram, "Microgram", "Micrograms", new BaseUnits(mass: MassUnit.Microgram), - 1000000000 - ); - yield return new (MassUnit.Milligram, "Milligram", "Milligrams", new BaseUnits(mass: MassUnit.Milligram), - 1000000 - ); - yield return new (MassUnit.Nanogram, "Nanogram", "Nanograms", new BaseUnits(mass: MassUnit.Nanogram), - 1000000000000 - ); - yield return new (MassUnit.Ounce, "Ounce", "Ounces", new BaseUnits(mass: MassUnit.Ounce), - new QuantityValue(1600000000, 45359237) - ); - yield return new (MassUnit.Picogram, "Picogram", "Picograms", new BaseUnits(mass: MassUnit.Picogram), - 1000000000000000 - ); - yield return new (MassUnit.Pound, "Pound", "Pounds", new BaseUnits(mass: MassUnit.Pound), - new QuantityValue(100000000, 45359237) - ); - yield return new (MassUnit.ShortHundredweight, "ShortHundredweight", "ShortHundredweight", new BaseUnits(mass: MassUnit.ShortHundredweight), - new QuantityValue(1000000, 45359237) - ); - yield return new (MassUnit.ShortTon, "ShortTon", "ShortTons", new BaseUnits(mass: MassUnit.ShortTon), - new QuantityValue(50000, 45359237) - ); - yield return new (MassUnit.Slug, "Slug", "Slugs", new BaseUnits(mass: MassUnit.Slug), - new QuantityValue(609600000000, 8896443230521) - ); - yield return new (MassUnit.SolarMass, "SolarMass", "SolarMasses", new BaseUnits(mass: MassUnit.SolarMass), - new QuantityValue(1, new BigInteger(198947) * QuantityValue.PowerOfTen(25)) - ); - yield return new (MassUnit.Stone, "Stone", "Stone", new BaseUnits(mass: MassUnit.Stone), - new QuantityValue(50000000, 317514659) - ); - yield return new (MassUnit.Tonne, "Tonne", "Tonnes", new BaseUnits(mass: MassUnit.Tonne), - new QuantityValue(1, 1000) - ); + return new UnitDefinition[] + { + new (MassUnit.Centigram, "Centigram", "Centigrams", new BaseUnits(mass: MassUnit.Centigram), + 100000 + ), + new (MassUnit.Dalton, "Dalton", "Daltons", new BaseUnits(mass: MassUnit.Dalton), + new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(36), 8302695333) + ), + new (MassUnit.Decagram, "Decagram", "Decagrams", new BaseUnits(mass: MassUnit.Decagram), + 100 + ), + new (MassUnit.Decigram, "Decigram", "Decigrams", new BaseUnits(mass: MassUnit.Decigram), + 10000 + ), + new (MassUnit.EarthMass, "EarthMass", "EarthMasses", new BaseUnits(mass: MassUnit.EarthMass), + new QuantityValue(1, new BigInteger(59722) * QuantityValue.PowerOfTen(20)) + ), + new (MassUnit.Femtogram, "Femtogram", "Femtograms", new BaseUnits(mass: MassUnit.Femtogram), + 1000000000000000000 + ), + new (MassUnit.Gigadalton, "Gigadalton", "Gigadaltons", new BaseUnits(mass: MassUnit.Gigadalton), + new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(27), 8302695333) + ), + new (MassUnit.Grain, "Grain", "Grains", new BaseUnits(mass: MassUnit.Grain), + new QuantityValue(100000000000, 6479891) + ), + new (MassUnit.Gram, "Gram", "Grams", new BaseUnits(mass: MassUnit.Gram), + 1000 + ), + new (MassUnit.Hectogram, "Hectogram", "Hectograms", new BaseUnits(mass: MassUnit.Hectogram), + 10 + ), + new (MassUnit.Kilodalton, "Kilodalton", "Kilodaltons", new BaseUnits(mass: MassUnit.Kilodalton), + new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(33), 8302695333) + ), + new (MassUnit.Kilogram, "Kilogram", "Kilograms", new BaseUnits(mass: MassUnit.Kilogram)), + new (MassUnit.Kilopound, "Kilopound", "Kilopounds", new BaseUnits(mass: MassUnit.Kilopound), + new QuantityValue(100000, 45359237) + ), + new (MassUnit.Kilotonne, "Kilotonne", "Kilotonnes", new BaseUnits(mass: MassUnit.Kilotonne), + new QuantityValue(1, 1000000) + ), + new (MassUnit.LongHundredweight, "LongHundredweight", "LongHundredweight", new BaseUnits(mass: MassUnit.LongHundredweight), + new QuantityValue(6250000, 317514659) + ), + new (MassUnit.LongTon, "LongTon", "LongTons", new BaseUnits(mass: MassUnit.LongTon), + new QuantityValue(312500, 317514659) + ), + new (MassUnit.Megadalton, "Megadalton", "Megadaltons", new BaseUnits(mass: MassUnit.Megadalton), + new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(30), 8302695333) + ), + new (MassUnit.Megapound, "Megapound", "Megapounds", new BaseUnits(mass: MassUnit.Megapound), + new QuantityValue(100, 45359237) + ), + new (MassUnit.Megatonne, "Megatonne", "Megatonnes", new BaseUnits(mass: MassUnit.Megatonne), + new QuantityValue(1, 1000000000) + ), + new (MassUnit.Microgram, "Microgram", "Micrograms", new BaseUnits(mass: MassUnit.Microgram), + 1000000000 + ), + new (MassUnit.Milligram, "Milligram", "Milligrams", new BaseUnits(mass: MassUnit.Milligram), + 1000000 + ), + new (MassUnit.Nanogram, "Nanogram", "Nanograms", new BaseUnits(mass: MassUnit.Nanogram), + 1000000000000 + ), + new (MassUnit.Ounce, "Ounce", "Ounces", new BaseUnits(mass: MassUnit.Ounce), + new QuantityValue(1600000000, 45359237) + ), + new (MassUnit.Picogram, "Picogram", "Picograms", new BaseUnits(mass: MassUnit.Picogram), + 1000000000000000 + ), + new (MassUnit.Pound, "Pound", "Pounds", new BaseUnits(mass: MassUnit.Pound), + new QuantityValue(100000000, 45359237) + ), + new (MassUnit.ShortHundredweight, "ShortHundredweight", "ShortHundredweight", new BaseUnits(mass: MassUnit.ShortHundredweight), + new QuantityValue(1000000, 45359237) + ), + new (MassUnit.ShortTon, "ShortTon", "ShortTons", new BaseUnits(mass: MassUnit.ShortTon), + new QuantityValue(50000, 45359237) + ), + new (MassUnit.Slug, "Slug", "Slugs", new BaseUnits(mass: MassUnit.Slug), + new QuantityValue(609600000000, 8896443230521) + ), + new (MassUnit.SolarMass, "SolarMass", "SolarMasses", new BaseUnits(mass: MassUnit.SolarMass), + new QuantityValue(1, new BigInteger(198947) * QuantityValue.PowerOfTen(25)) + ), + new (MassUnit.Stone, "Stone", "Stone", new BaseUnits(mass: MassUnit.Stone), + new QuantityValue(50000000, 317514659) + ), + new (MassUnit.Tonne, "Tonne", "Tonnes", new BaseUnits(mass: MassUnit.Tonne), + new QuantityValue(1, 1000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs index 80fa4ac505..42413e5946 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs @@ -124,151 +124,154 @@ public static MassConcentrationInfo CreateDefault(FuncAn of representing the default unit mappings for MassConcentration. public static IEnumerable> GetDefaultMappings() { - yield return new (MassConcentrationUnit.CentigramPerDeciliter, "CentigramPerDeciliter", "CentigramsPerDeciliter", BaseUnits.Undefined, - 10 - ); - yield return new (MassConcentrationUnit.CentigramPerLiter, "CentigramPerLiter", "CentigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Centigram), - 100 - ); - yield return new (MassConcentrationUnit.CentigramPerMicroliter, "CentigramPerMicroliter", "CentigramsPerMicroliter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (MassConcentrationUnit.CentigramPerMilliliter, "CentigramPerMilliliter", "CentigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Centigram), - new QuantityValue(1, 10) - ); - yield return new (MassConcentrationUnit.DecigramPerDeciliter, "DecigramPerDeciliter", "DecigramsPerDeciliter", BaseUnits.Undefined, - 1 - ); - yield return new (MassConcentrationUnit.DecigramPerLiter, "DecigramPerLiter", "DecigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Decigram), - 10 - ); - yield return new (MassConcentrationUnit.DecigramPerMicroliter, "DecigramPerMicroliter", "DecigramsPerMicroliter", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (MassConcentrationUnit.DecigramPerMilliliter, "DecigramPerMilliliter", "DecigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Decigram), - new QuantityValue(1, 100) - ); - yield return new (MassConcentrationUnit.GramPerCubicCentimeter, "GramPerCubicCentimeter", "GramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.GramPerCubicMeter, "GramPerCubicMeter", "GramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (MassConcentrationUnit.GramPerCubicMillimeter, "GramPerCubicMillimeter", "GramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000000) - ); - yield return new (MassConcentrationUnit.GramPerDeciliter, "GramPerDeciliter", "GramsPerDeciliter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (MassConcentrationUnit.GramPerLiter, "GramPerLiter", "GramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), - 1 - ); - yield return new (MassConcentrationUnit.GramPerMicroliter, "GramPerMicroliter", "GramsPerMicroliter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (MassConcentrationUnit.GramPerMilliliter, "GramPerMilliliter", "GramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.KilogramPerCubicCentimeter, "KilogramPerCubicCentimeter", "KilogramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000000) - ); - yield return new (MassConcentrationUnit.KilogramPerCubicMeter, "KilogramPerCubicMeter", "KilogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (MassConcentrationUnit.KilogramPerCubicMillimeter, "KilogramPerCubicMillimeter", "KilogramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000000000) - ); - yield return new (MassConcentrationUnit.KilogramPerLiter, "KilogramPerLiter", "KilogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.KilopoundPerCubicFoot, "KilopoundPerCubicFoot", "KilopoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilopound), - new QuantityValue(221225364, 3543690390625) - ); - yield return new (MassConcentrationUnit.KilopoundPerCubicInch, "KilopoundPerCubicInch", "KilopoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound), - new QuantityValue(2048383, 56699046250000) - ); - yield return new (MassConcentrationUnit.MicrogramPerCubicMeter, "MicrogramPerCubicMeter", "MicrogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), - 1000000000 - ); - yield return new (MassConcentrationUnit.MicrogramPerDeciliter, "MicrogramPerDeciliter", "MicrogramsPerDeciliter", BaseUnits.Undefined, - 100000 - ); - yield return new (MassConcentrationUnit.MicrogramPerLiter, "MicrogramPerLiter", "MicrogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Microgram), - 1000000 - ); - yield return new (MassConcentrationUnit.MicrogramPerMicroliter, "MicrogramPerMicroliter", "MicrogramsPerMicroliter", BaseUnits.Undefined, - 1 - ); - yield return new (MassConcentrationUnit.MicrogramPerMilliliter, "MicrogramPerMilliliter", "MicrogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), - 1000 - ); - yield return new (MassConcentrationUnit.MilligramPerCubicMeter, "MilligramPerCubicMeter", "MilligramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (MassConcentrationUnit.MilligramPerDeciliter, "MilligramPerDeciliter", "MilligramsPerDeciliter", BaseUnits.Undefined, - 100 - ); - yield return new (MassConcentrationUnit.MilligramPerLiter, "MilligramPerLiter", "MilligramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), - 1000 - ); - yield return new (MassConcentrationUnit.MilligramPerMicroliter, "MilligramPerMicroliter", "MilligramsPerMicroliter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.MilligramPerMilliliter, "MilligramPerMilliliter", "MilligramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), - 1 - ); - yield return new (MassConcentrationUnit.NanogramPerDeciliter, "NanogramPerDeciliter", "NanogramsPerDeciliter", BaseUnits.Undefined, - 100000000 - ); - yield return new (MassConcentrationUnit.NanogramPerLiter, "NanogramPerLiter", "NanogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Nanogram), - 1000000000 - ); - yield return new (MassConcentrationUnit.NanogramPerMicroliter, "NanogramPerMicroliter", "NanogramsPerMicroliter", BaseUnits.Undefined, - 1000 - ); - yield return new (MassConcentrationUnit.NanogramPerMilliliter, "NanogramPerMilliliter", "NanogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Nanogram), - 1000000 - ); - yield return new (MassConcentrationUnit.OuncePerImperialGallon, "OuncePerImperialGallon", "OuncesPerImperialGallon", BaseUnits.Undefined, - new QuantityValue(7273744, 45359237) - ); - yield return new (MassConcentrationUnit.OuncePerUSGallon, "OuncePerUSGallon", "OuncesPerUSGallon", BaseUnits.Undefined, - new QuantityValue(49161192, 368175625) - ); - yield return new (MassConcentrationUnit.PicogramPerDeciliter, "PicogramPerDeciliter", "PicogramsPerDeciliter", BaseUnits.Undefined, - 100000000000 - ); - yield return new (MassConcentrationUnit.PicogramPerLiter, "PicogramPerLiter", "PicogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Picogram), - 1000000000000 - ); - yield return new (MassConcentrationUnit.PicogramPerMicroliter, "PicogramPerMicroliter", "PicogramsPerMicroliter", BaseUnits.Undefined, - 1000000 - ); - yield return new (MassConcentrationUnit.PicogramPerMilliliter, "PicogramPerMilliliter", "PicogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Picogram), - 1000000000 - ); - yield return new (MassConcentrationUnit.PoundPerCubicFoot, "PoundPerCubicFoot", "PoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(1769802912, 28349523125) - ); - yield return new (MassConcentrationUnit.PoundPerCubicInch, "PoundPerCubicInch", "PoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), - new QuantityValue(2048383, 56699046250) - ); - yield return new (MassConcentrationUnit.PoundPerImperialGallon, "PoundPerImperialGallon", "PoundsPerImperialGallon", BaseUnits.Undefined, - new QuantityValue(454609, 45359237) - ); - yield return new (MassConcentrationUnit.PoundPerUSGallon, "PoundPerUSGallon", "PoundsPerUSGallon", BaseUnits.Undefined, - new QuantityValue(6145149, 736351250) - ); - yield return new (MassConcentrationUnit.SlugPerCubicFoot, "SlugPerCubicFoot", "SlugsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), - new QuantityValue(10788718551552, 5560277019075625) - ); - yield return new (MassConcentrationUnit.TonnePerCubicCentimeter, "TonnePerCubicCentimeter", "TonnesPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000000000) - ); - yield return new (MassConcentrationUnit.TonnePerCubicMeter, "TonnePerCubicMeter", "TonnesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.TonnePerCubicMillimeter, "TonnePerCubicMillimeter", "TonnesPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000000000000) - ); + return new UnitDefinition[] + { + new (MassConcentrationUnit.CentigramPerDeciliter, "CentigramPerDeciliter", "CentigramsPerDeciliter", BaseUnits.Undefined, + 10 + ), + new (MassConcentrationUnit.CentigramPerLiter, "CentigramPerLiter", "CentigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Centigram), + 100 + ), + new (MassConcentrationUnit.CentigramPerMicroliter, "CentigramPerMicroliter", "CentigramsPerMicroliter", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (MassConcentrationUnit.CentigramPerMilliliter, "CentigramPerMilliliter", "CentigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Centigram), + new QuantityValue(1, 10) + ), + new (MassConcentrationUnit.DecigramPerDeciliter, "DecigramPerDeciliter", "DecigramsPerDeciliter", BaseUnits.Undefined, + 1 + ), + new (MassConcentrationUnit.DecigramPerLiter, "DecigramPerLiter", "DecigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Decigram), + 10 + ), + new (MassConcentrationUnit.DecigramPerMicroliter, "DecigramPerMicroliter", "DecigramsPerMicroliter", BaseUnits.Undefined, + new QuantityValue(1, 100000) + ), + new (MassConcentrationUnit.DecigramPerMilliliter, "DecigramPerMilliliter", "DecigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Decigram), + new QuantityValue(1, 100) + ), + new (MassConcentrationUnit.GramPerCubicCentimeter, "GramPerCubicCentimeter", "GramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), + new QuantityValue(1, 1000) + ), + new (MassConcentrationUnit.GramPerCubicMeter, "GramPerCubicMeter", "GramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), + 1000 + ), + new (MassConcentrationUnit.GramPerCubicMillimeter, "GramPerCubicMillimeter", "GramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), + new QuantityValue(1, 1000000) + ), + new (MassConcentrationUnit.GramPerDeciliter, "GramPerDeciliter", "GramsPerDeciliter", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (MassConcentrationUnit.GramPerLiter, "GramPerLiter", "GramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), + 1 + ), + new (MassConcentrationUnit.GramPerMicroliter, "GramPerMicroliter", "GramsPerMicroliter", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (MassConcentrationUnit.GramPerMilliliter, "GramPerMilliliter", "GramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), + new QuantityValue(1, 1000) + ), + new (MassConcentrationUnit.KilogramPerCubicCentimeter, "KilogramPerCubicCentimeter", "KilogramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), + new QuantityValue(1, 1000000) + ), + new (MassConcentrationUnit.KilogramPerCubicMeter, "KilogramPerCubicMeter", "KilogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)), + new (MassConcentrationUnit.KilogramPerCubicMillimeter, "KilogramPerCubicMillimeter", "KilogramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), + new QuantityValue(1, 1000000000) + ), + new (MassConcentrationUnit.KilogramPerLiter, "KilogramPerLiter", "KilogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), + new QuantityValue(1, 1000) + ), + new (MassConcentrationUnit.KilopoundPerCubicFoot, "KilopoundPerCubicFoot", "KilopoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilopound), + new QuantityValue(221225364, 3543690390625) + ), + new (MassConcentrationUnit.KilopoundPerCubicInch, "KilopoundPerCubicInch", "KilopoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound), + new QuantityValue(2048383, 56699046250000) + ), + new (MassConcentrationUnit.MicrogramPerCubicMeter, "MicrogramPerCubicMeter", "MicrogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), + 1000000000 + ), + new (MassConcentrationUnit.MicrogramPerDeciliter, "MicrogramPerDeciliter", "MicrogramsPerDeciliter", BaseUnits.Undefined, + 100000 + ), + new (MassConcentrationUnit.MicrogramPerLiter, "MicrogramPerLiter", "MicrogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Microgram), + 1000000 + ), + new (MassConcentrationUnit.MicrogramPerMicroliter, "MicrogramPerMicroliter", "MicrogramsPerMicroliter", BaseUnits.Undefined, + 1 + ), + new (MassConcentrationUnit.MicrogramPerMilliliter, "MicrogramPerMilliliter", "MicrogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), + 1000 + ), + new (MassConcentrationUnit.MilligramPerCubicMeter, "MilligramPerCubicMeter", "MilligramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), + 1000000 + ), + new (MassConcentrationUnit.MilligramPerDeciliter, "MilligramPerDeciliter", "MilligramsPerDeciliter", BaseUnits.Undefined, + 100 + ), + new (MassConcentrationUnit.MilligramPerLiter, "MilligramPerLiter", "MilligramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), + 1000 + ), + new (MassConcentrationUnit.MilligramPerMicroliter, "MilligramPerMicroliter", "MilligramsPerMicroliter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (MassConcentrationUnit.MilligramPerMilliliter, "MilligramPerMilliliter", "MilligramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), + 1 + ), + new (MassConcentrationUnit.NanogramPerDeciliter, "NanogramPerDeciliter", "NanogramsPerDeciliter", BaseUnits.Undefined, + 100000000 + ), + new (MassConcentrationUnit.NanogramPerLiter, "NanogramPerLiter", "NanogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Nanogram), + 1000000000 + ), + new (MassConcentrationUnit.NanogramPerMicroliter, "NanogramPerMicroliter", "NanogramsPerMicroliter", BaseUnits.Undefined, + 1000 + ), + new (MassConcentrationUnit.NanogramPerMilliliter, "NanogramPerMilliliter", "NanogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Nanogram), + 1000000 + ), + new (MassConcentrationUnit.OuncePerImperialGallon, "OuncePerImperialGallon", "OuncesPerImperialGallon", BaseUnits.Undefined, + new QuantityValue(7273744, 45359237) + ), + new (MassConcentrationUnit.OuncePerUSGallon, "OuncePerUSGallon", "OuncesPerUSGallon", BaseUnits.Undefined, + new QuantityValue(49161192, 368175625) + ), + new (MassConcentrationUnit.PicogramPerDeciliter, "PicogramPerDeciliter", "PicogramsPerDeciliter", BaseUnits.Undefined, + 100000000000 + ), + new (MassConcentrationUnit.PicogramPerLiter, "PicogramPerLiter", "PicogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Picogram), + 1000000000000 + ), + new (MassConcentrationUnit.PicogramPerMicroliter, "PicogramPerMicroliter", "PicogramsPerMicroliter", BaseUnits.Undefined, + 1000000 + ), + new (MassConcentrationUnit.PicogramPerMilliliter, "PicogramPerMilliliter", "PicogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Picogram), + 1000000000 + ), + new (MassConcentrationUnit.PoundPerCubicFoot, "PoundPerCubicFoot", "PoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), + new QuantityValue(1769802912, 28349523125) + ), + new (MassConcentrationUnit.PoundPerCubicInch, "PoundPerCubicInch", "PoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), + new QuantityValue(2048383, 56699046250) + ), + new (MassConcentrationUnit.PoundPerImperialGallon, "PoundPerImperialGallon", "PoundsPerImperialGallon", BaseUnits.Undefined, + new QuantityValue(454609, 45359237) + ), + new (MassConcentrationUnit.PoundPerUSGallon, "PoundPerUSGallon", "PoundsPerUSGallon", BaseUnits.Undefined, + new QuantityValue(6145149, 736351250) + ), + new (MassConcentrationUnit.SlugPerCubicFoot, "SlugPerCubicFoot", "SlugsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), + new QuantityValue(10788718551552, 5560277019075625) + ), + new (MassConcentrationUnit.TonnePerCubicCentimeter, "TonnePerCubicCentimeter", "TonnesPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), + new QuantityValue(1, 1000000000) + ), + new (MassConcentrationUnit.TonnePerCubicMeter, "TonnePerCubicMeter", "TonnesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), + new QuantityValue(1, 1000) + ), + new (MassConcentrationUnit.TonnePerCubicMillimeter, "TonnePerCubicMillimeter", "TonnesPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), + new QuantityValue(1, 1000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs index a3a1b25257..70c6b787ec 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs @@ -126,103 +126,106 @@ public static MassFlowInfo CreateDefault(FuncAn of representing the default unit mappings for MassFlow. public static IEnumerable> GetDefaultMappings() { - yield return new (MassFlowUnit.CentigramPerDay, "CentigramPerDay", "CentigramsPerDay", new BaseUnits(mass: MassUnit.Centigram, time: DurationUnit.Day), - 8640000 - ); - yield return new (MassFlowUnit.CentigramPerSecond, "CentigramPerSecond", "CentigramsPerSecond", new BaseUnits(mass: MassUnit.Centigram, time: DurationUnit.Second), - 100 - ); - yield return new (MassFlowUnit.DecagramPerDay, "DecagramPerDay", "DecagramsPerDay", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Day), - 8640 - ); - yield return new (MassFlowUnit.DecagramPerSecond, "DecagramPerSecond", "DecagramsPerSecond", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (MassFlowUnit.DecigramPerDay, "DecigramPerDay", "DecigramsPerDay", new BaseUnits(mass: MassUnit.Decigram, time: DurationUnit.Day), - 864000 - ); - yield return new (MassFlowUnit.DecigramPerSecond, "DecigramPerSecond", "DecigramsPerSecond", new BaseUnits(mass: MassUnit.Decigram, time: DurationUnit.Second), - 10 - ); - yield return new (MassFlowUnit.GramPerDay, "GramPerDay", "GramsPerDay", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Day), - 86400 - ); - yield return new (MassFlowUnit.GramPerHour, "GramPerHour", "GramsPerHour", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Hour), - 3600 - ); - yield return new (MassFlowUnit.GramPerSecond, "GramPerSecond", "GramsPerSecond", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second)); - yield return new (MassFlowUnit.HectogramPerDay, "HectogramPerDay", "HectogramsPerDay", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Day), - 864 - ); - yield return new (MassFlowUnit.HectogramPerSecond, "HectogramPerSecond", "HectogramsPerSecond", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), - new QuantityValue(1, 100) - ); - yield return new (MassFlowUnit.KilogramPerDay, "KilogramPerDay", "KilogramsPerDay", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Day), - new QuantityValue(432, 5) - ); - yield return new (MassFlowUnit.KilogramPerHour, "KilogramPerHour", "KilogramsPerHour", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Hour), - new QuantityValue(18, 5) - ); - yield return new (MassFlowUnit.KilogramPerMinute, "KilogramPerMinute", "KilogramsPerMinute", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(3, 50) - ); - yield return new (MassFlowUnit.KilogramPerSecond, "KilogramPerSecond", "KilogramsPerSecond", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (MassFlowUnit.MegagramPerDay, "MegagramPerDay", "MegagramsPerDay", BaseUnits.Undefined, - new QuantityValue(54, 625) - ); - yield return new (MassFlowUnit.MegapoundPerDay, "MegapoundPerDay", "MegapoundsPerDay", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Day), - new QuantityValue(8640, 45359237) - ); - yield return new (MassFlowUnit.MegapoundPerHour, "MegapoundPerHour", "MegapoundsPerHour", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Hour), - new QuantityValue(360, 45359237) - ); - yield return new (MassFlowUnit.MegapoundPerMinute, "MegapoundPerMinute", "MegapoundsPerMinute", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Minute), - new QuantityValue(6, 45359237) - ); - yield return new (MassFlowUnit.MegapoundPerSecond, "MegapoundPerSecond", "MegapoundsPerSecond", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Second), - new QuantityValue(1, 453592370) - ); - yield return new (MassFlowUnit.MicrogramPerDay, "MicrogramPerDay", "MicrogramsPerDay", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Day), - 86400000000 - ); - yield return new (MassFlowUnit.MicrogramPerSecond, "MicrogramPerSecond", "MicrogramsPerSecond", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000 - ); - yield return new (MassFlowUnit.MilligramPerDay, "MilligramPerDay", "MilligramsPerDay", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Day), - 86400000 - ); - yield return new (MassFlowUnit.MilligramPerSecond, "MilligramPerSecond", "MilligramsPerSecond", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000 - ); - yield return new (MassFlowUnit.NanogramPerDay, "NanogramPerDay", "NanogramsPerDay", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Day), - 86400000000000 - ); - yield return new (MassFlowUnit.NanogramPerSecond, "NanogramPerSecond", "NanogramsPerSecond", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (MassFlowUnit.PoundPerDay, "PoundPerDay", "PoundsPerDay", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Day), - new QuantityValue(8640000000, 45359237) - ); - yield return new (MassFlowUnit.PoundPerHour, "PoundPerHour", "PoundsPerHour", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Hour), - new QuantityValue(360000000, 45359237) - ); - yield return new (MassFlowUnit.PoundPerMinute, "PoundPerMinute", "PoundsPerMinute", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Minute), - new QuantityValue(6000000, 45359237) - ); - yield return new (MassFlowUnit.PoundPerSecond, "PoundPerSecond", "PoundsPerSecond", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Second), - new QuantityValue(100000, 45359237) - ); - yield return new (MassFlowUnit.ShortTonPerHour, "ShortTonPerHour", "ShortTonsPerHour", new BaseUnits(mass: MassUnit.ShortTon, time: DurationUnit.Hour), - new QuantityValue(180000, 45359237) - ); - yield return new (MassFlowUnit.TonnePerDay, "TonnePerDay", "TonnesPerDay", new BaseUnits(mass: MassUnit.Tonne, time: DurationUnit.Day), - new QuantityValue(54, 625) - ); - yield return new (MassFlowUnit.TonnePerHour, "TonnePerHour", "TonnesPerHour", new BaseUnits(mass: MassUnit.Tonne, time: DurationUnit.Hour), - new QuantityValue(9, 2500) - ); + return new UnitDefinition[] + { + new (MassFlowUnit.CentigramPerDay, "CentigramPerDay", "CentigramsPerDay", new BaseUnits(mass: MassUnit.Centigram, time: DurationUnit.Day), + 8640000 + ), + new (MassFlowUnit.CentigramPerSecond, "CentigramPerSecond", "CentigramsPerSecond", new BaseUnits(mass: MassUnit.Centigram, time: DurationUnit.Second), + 100 + ), + new (MassFlowUnit.DecagramPerDay, "DecagramPerDay", "DecagramsPerDay", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Day), + 8640 + ), + new (MassFlowUnit.DecagramPerSecond, "DecagramPerSecond", "DecagramsPerSecond", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), + new QuantityValue(1, 10) + ), + new (MassFlowUnit.DecigramPerDay, "DecigramPerDay", "DecigramsPerDay", new BaseUnits(mass: MassUnit.Decigram, time: DurationUnit.Day), + 864000 + ), + new (MassFlowUnit.DecigramPerSecond, "DecigramPerSecond", "DecigramsPerSecond", new BaseUnits(mass: MassUnit.Decigram, time: DurationUnit.Second), + 10 + ), + new (MassFlowUnit.GramPerDay, "GramPerDay", "GramsPerDay", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Day), + 86400 + ), + new (MassFlowUnit.GramPerHour, "GramPerHour", "GramsPerHour", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Hour), + 3600 + ), + new (MassFlowUnit.GramPerSecond, "GramPerSecond", "GramsPerSecond", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second)), + new (MassFlowUnit.HectogramPerDay, "HectogramPerDay", "HectogramsPerDay", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Day), + 864 + ), + new (MassFlowUnit.HectogramPerSecond, "HectogramPerSecond", "HectogramsPerSecond", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), + new QuantityValue(1, 100) + ), + new (MassFlowUnit.KilogramPerDay, "KilogramPerDay", "KilogramsPerDay", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Day), + new QuantityValue(432, 5) + ), + new (MassFlowUnit.KilogramPerHour, "KilogramPerHour", "KilogramsPerHour", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Hour), + new QuantityValue(18, 5) + ), + new (MassFlowUnit.KilogramPerMinute, "KilogramPerMinute", "KilogramsPerMinute", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Minute), + new QuantityValue(3, 50) + ), + new (MassFlowUnit.KilogramPerSecond, "KilogramPerSecond", "KilogramsPerSecond", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (MassFlowUnit.MegagramPerDay, "MegagramPerDay", "MegagramsPerDay", BaseUnits.Undefined, + new QuantityValue(54, 625) + ), + new (MassFlowUnit.MegapoundPerDay, "MegapoundPerDay", "MegapoundsPerDay", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Day), + new QuantityValue(8640, 45359237) + ), + new (MassFlowUnit.MegapoundPerHour, "MegapoundPerHour", "MegapoundsPerHour", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Hour), + new QuantityValue(360, 45359237) + ), + new (MassFlowUnit.MegapoundPerMinute, "MegapoundPerMinute", "MegapoundsPerMinute", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Minute), + new QuantityValue(6, 45359237) + ), + new (MassFlowUnit.MegapoundPerSecond, "MegapoundPerSecond", "MegapoundsPerSecond", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Second), + new QuantityValue(1, 453592370) + ), + new (MassFlowUnit.MicrogramPerDay, "MicrogramPerDay", "MicrogramsPerDay", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Day), + 86400000000 + ), + new (MassFlowUnit.MicrogramPerSecond, "MicrogramPerSecond", "MicrogramsPerSecond", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), + 1000000 + ), + new (MassFlowUnit.MilligramPerDay, "MilligramPerDay", "MilligramsPerDay", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Day), + 86400000 + ), + new (MassFlowUnit.MilligramPerSecond, "MilligramPerSecond", "MilligramsPerSecond", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000 + ), + new (MassFlowUnit.NanogramPerDay, "NanogramPerDay", "NanogramsPerDay", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Day), + 86400000000000 + ), + new (MassFlowUnit.NanogramPerSecond, "NanogramPerSecond", "NanogramsPerSecond", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Second), + 1000000000 + ), + new (MassFlowUnit.PoundPerDay, "PoundPerDay", "PoundsPerDay", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Day), + new QuantityValue(8640000000, 45359237) + ), + new (MassFlowUnit.PoundPerHour, "PoundPerHour", "PoundsPerHour", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Hour), + new QuantityValue(360000000, 45359237) + ), + new (MassFlowUnit.PoundPerMinute, "PoundPerMinute", "PoundsPerMinute", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Minute), + new QuantityValue(6000000, 45359237) + ), + new (MassFlowUnit.PoundPerSecond, "PoundPerSecond", "PoundsPerSecond", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Second), + new QuantityValue(100000, 45359237) + ), + new (MassFlowUnit.ShortTonPerHour, "ShortTonPerHour", "ShortTonsPerHour", new BaseUnits(mass: MassUnit.ShortTon, time: DurationUnit.Hour), + new QuantityValue(180000, 45359237) + ), + new (MassFlowUnit.TonnePerDay, "TonnePerDay", "TonnesPerDay", new BaseUnits(mass: MassUnit.Tonne, time: DurationUnit.Day), + new QuantityValue(54, 625) + ), + new (MassFlowUnit.TonnePerHour, "TonnePerHour", "TonnesPerHour", new BaseUnits(mass: MassUnit.Tonne, time: DurationUnit.Hour), + new QuantityValue(9, 2500) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs index 14987fa97e..1544871137 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs @@ -119,40 +119,43 @@ public static MassFluxInfo CreateDefault(FuncAn of representing the default unit mappings for MassFlux. public static IEnumerable> GetDefaultMappings() { - yield return new (MassFluxUnit.GramPerHourPerSquareCentimeter, "GramPerHourPerSquareCentimeter", "GramsPerHourPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Hour), - 360 - ); - yield return new (MassFluxUnit.GramPerHourPerSquareMeter, "GramPerHourPerSquareMeter", "GramsPerHourPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Hour), - 3600000 - ); - yield return new (MassFluxUnit.GramPerHourPerSquareMillimeter, "GramPerHourPerSquareMillimeter", "GramsPerHourPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram, time: DurationUnit.Hour), - new QuantityValue(18, 5) - ); - yield return new (MassFluxUnit.GramPerSecondPerSquareCentimeter, "GramPerSecondPerSquareCentimeter", "GramsPerSecondPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (MassFluxUnit.GramPerSecondPerSquareMeter, "GramPerSecondPerSquareMeter", "GramsPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (MassFluxUnit.GramPerSecondPerSquareMillimeter, "GramPerSecondPerSquareMillimeter", "GramsPerSecondPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (MassFluxUnit.KilogramPerHourPerSquareCentimeter, "KilogramPerHourPerSquareCentimeter", "KilogramsPerHourPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), - new QuantityValue(9, 25) - ); - yield return new (MassFluxUnit.KilogramPerHourPerSquareMeter, "KilogramPerHourPerSquareMeter", "KilogramsPerHourPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), - 3600 - ); - yield return new (MassFluxUnit.KilogramPerHourPerSquareMillimeter, "KilogramPerHourPerSquareMillimeter", "KilogramsPerHourPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), - new QuantityValue(9, 2500) - ); - yield return new (MassFluxUnit.KilogramPerSecondPerSquareCentimeter, "KilogramPerSecondPerSquareCentimeter", "KilogramsPerSecondPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10000) - ); - yield return new (MassFluxUnit.KilogramPerSecondPerSquareMeter, "KilogramPerSecondPerSquareMeter", "KilogramsPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (MassFluxUnit.KilogramPerSecondPerSquareMillimeter, "KilogramPerSecondPerSquareMillimeter", "KilogramsPerSecondPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); + return new UnitDefinition[] + { + new (MassFluxUnit.GramPerHourPerSquareCentimeter, "GramPerHourPerSquareCentimeter", "GramsPerHourPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Hour), + 360 + ), + new (MassFluxUnit.GramPerHourPerSquareMeter, "GramPerHourPerSquareMeter", "GramsPerHourPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Hour), + 3600000 + ), + new (MassFluxUnit.GramPerHourPerSquareMillimeter, "GramPerHourPerSquareMillimeter", "GramsPerHourPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram, time: DurationUnit.Hour), + new QuantityValue(18, 5) + ), + new (MassFluxUnit.GramPerSecondPerSquareCentimeter, "GramPerSecondPerSquareCentimeter", "GramsPerSecondPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Second), + new QuantityValue(1, 10) + ), + new (MassFluxUnit.GramPerSecondPerSquareMeter, "GramPerSecondPerSquareMeter", "GramsPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (MassFluxUnit.GramPerSecondPerSquareMillimeter, "GramPerSecondPerSquareMillimeter", "GramsPerSecondPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (MassFluxUnit.KilogramPerHourPerSquareCentimeter, "KilogramPerHourPerSquareCentimeter", "KilogramsPerHourPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), + new QuantityValue(9, 25) + ), + new (MassFluxUnit.KilogramPerHourPerSquareMeter, "KilogramPerHourPerSquareMeter", "KilogramsPerHourPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), + 3600 + ), + new (MassFluxUnit.KilogramPerHourPerSquareMillimeter, "KilogramPerHourPerSquareMillimeter", "KilogramsPerHourPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), + new QuantityValue(9, 2500) + ), + new (MassFluxUnit.KilogramPerSecondPerSquareCentimeter, "KilogramPerSecondPerSquareCentimeter", "KilogramsPerSecondPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 10000) + ), + new (MassFluxUnit.KilogramPerSecondPerSquareMeter, "KilogramPerSecondPerSquareMeter", "KilogramsPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (MassFluxUnit.KilogramPerSecondPerSquareMillimeter, "KilogramPerSecondPerSquareMillimeter", "KilogramsPerSecondPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs index 1e123048ec..4a1abf98a8 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs @@ -120,76 +120,79 @@ public static MassFractionInfo CreateDefault(FuncAn of representing the default unit mappings for MassFraction. public static IEnumerable> GetDefaultMappings() { - yield return new (MassFractionUnit.CentigramPerGram, "CentigramPerGram", "CentigramsPerGram", BaseUnits.Undefined, - 100 - ); - yield return new (MassFractionUnit.CentigramPerKilogram, "CentigramPerKilogram", "CentigramsPerKilogram", BaseUnits.Undefined, - 100000 - ); - yield return new (MassFractionUnit.DecagramPerGram, "DecagramPerGram", "DecagramsPerGram", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (MassFractionUnit.DecagramPerKilogram, "DecagramPerKilogram", "DecagramsPerKilogram", BaseUnits.Undefined, - 100 - ); - yield return new (MassFractionUnit.DecigramPerGram, "DecigramPerGram", "DecigramsPerGram", BaseUnits.Undefined, - 10 - ); - yield return new (MassFractionUnit.DecigramPerKilogram, "DecigramPerKilogram", "DecigramsPerKilogram", BaseUnits.Undefined, - 10000 - ); - yield return new (MassFractionUnit.DecimalFraction, "DecimalFraction", "DecimalFractions", BaseUnits.Undefined); - yield return new (MassFractionUnit.GramPerGram, "GramPerGram", "GramsPerGram", BaseUnits.Undefined, - 1 - ); - yield return new (MassFractionUnit.GramPerKilogram, "GramPerKilogram", "GramsPerKilogram", BaseUnits.Undefined, - 1000 - ); - yield return new (MassFractionUnit.HectogramPerGram, "HectogramPerGram", "HectogramsPerGram", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (MassFractionUnit.HectogramPerKilogram, "HectogramPerKilogram", "HectogramsPerKilogram", BaseUnits.Undefined, - 10 - ); - yield return new (MassFractionUnit.KilogramPerGram, "KilogramPerGram", "KilogramsPerGram", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (MassFractionUnit.KilogramPerKilogram, "KilogramPerKilogram", "KilogramsPerKilogram", BaseUnits.Undefined, - 1 - ); - yield return new (MassFractionUnit.MicrogramPerGram, "MicrogramPerGram", "MicrogramsPerGram", BaseUnits.Undefined, - 1000000 - ); - yield return new (MassFractionUnit.MicrogramPerKilogram, "MicrogramPerKilogram", "MicrogramsPerKilogram", BaseUnits.Undefined, - 1000000000 - ); - yield return new (MassFractionUnit.MilligramPerGram, "MilligramPerGram", "MilligramsPerGram", BaseUnits.Undefined, - 1000 - ); - yield return new (MassFractionUnit.MilligramPerKilogram, "MilligramPerKilogram", "MilligramsPerKilogram", BaseUnits.Undefined, - 1000000 - ); - yield return new (MassFractionUnit.NanogramPerGram, "NanogramPerGram", "NanogramsPerGram", BaseUnits.Undefined, - 1000000000 - ); - yield return new (MassFractionUnit.NanogramPerKilogram, "NanogramPerKilogram", "NanogramsPerKilogram", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (MassFractionUnit.PartPerBillion, "PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, - 1000000000 - ); - yield return new (MassFractionUnit.PartPerMillion, "PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, - 1000000 - ); - yield return new (MassFractionUnit.PartPerThousand, "PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, - 1000 - ); - yield return new (MassFractionUnit.PartPerTrillion, "PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (MassFractionUnit.Percent, "Percent", "Percent", BaseUnits.Undefined, - 100 - ); + return new UnitDefinition[] + { + new (MassFractionUnit.CentigramPerGram, "CentigramPerGram", "CentigramsPerGram", BaseUnits.Undefined, + 100 + ), + new (MassFractionUnit.CentigramPerKilogram, "CentigramPerKilogram", "CentigramsPerKilogram", BaseUnits.Undefined, + 100000 + ), + new (MassFractionUnit.DecagramPerGram, "DecagramPerGram", "DecagramsPerGram", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (MassFractionUnit.DecagramPerKilogram, "DecagramPerKilogram", "DecagramsPerKilogram", BaseUnits.Undefined, + 100 + ), + new (MassFractionUnit.DecigramPerGram, "DecigramPerGram", "DecigramsPerGram", BaseUnits.Undefined, + 10 + ), + new (MassFractionUnit.DecigramPerKilogram, "DecigramPerKilogram", "DecigramsPerKilogram", BaseUnits.Undefined, + 10000 + ), + new (MassFractionUnit.DecimalFraction, "DecimalFraction", "DecimalFractions", BaseUnits.Undefined), + new (MassFractionUnit.GramPerGram, "GramPerGram", "GramsPerGram", BaseUnits.Undefined, + 1 + ), + new (MassFractionUnit.GramPerKilogram, "GramPerKilogram", "GramsPerKilogram", BaseUnits.Undefined, + 1000 + ), + new (MassFractionUnit.HectogramPerGram, "HectogramPerGram", "HectogramsPerGram", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (MassFractionUnit.HectogramPerKilogram, "HectogramPerKilogram", "HectogramsPerKilogram", BaseUnits.Undefined, + 10 + ), + new (MassFractionUnit.KilogramPerGram, "KilogramPerGram", "KilogramsPerGram", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (MassFractionUnit.KilogramPerKilogram, "KilogramPerKilogram", "KilogramsPerKilogram", BaseUnits.Undefined, + 1 + ), + new (MassFractionUnit.MicrogramPerGram, "MicrogramPerGram", "MicrogramsPerGram", BaseUnits.Undefined, + 1000000 + ), + new (MassFractionUnit.MicrogramPerKilogram, "MicrogramPerKilogram", "MicrogramsPerKilogram", BaseUnits.Undefined, + 1000000000 + ), + new (MassFractionUnit.MilligramPerGram, "MilligramPerGram", "MilligramsPerGram", BaseUnits.Undefined, + 1000 + ), + new (MassFractionUnit.MilligramPerKilogram, "MilligramPerKilogram", "MilligramsPerKilogram", BaseUnits.Undefined, + 1000000 + ), + new (MassFractionUnit.NanogramPerGram, "NanogramPerGram", "NanogramsPerGram", BaseUnits.Undefined, + 1000000000 + ), + new (MassFractionUnit.NanogramPerKilogram, "NanogramPerKilogram", "NanogramsPerKilogram", BaseUnits.Undefined, + 1000000000000 + ), + new (MassFractionUnit.PartPerBillion, "PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, + 1000000000 + ), + new (MassFractionUnit.PartPerMillion, "PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, + 1000000 + ), + new (MassFractionUnit.PartPerThousand, "PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, + 1000 + ), + new (MassFractionUnit.PartPerTrillion, "PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, + 1000000000000 + ), + new (MassFractionUnit.Percent, "Percent", "Percent", BaseUnits.Undefined, + 100 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs index f58feb6be4..ebeed52ebe 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs @@ -116,88 +116,91 @@ public static MassMomentOfInertiaInfo CreateDefault(FuncAn of representing the default unit mappings for MassMomentOfInertia. public static IEnumerable> GetDefaultMappings() { - yield return new (MassMomentOfInertiaUnit.GramSquareCentimeter, "GramSquareCentimeter", "GramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - 10000000 - ); - yield return new (MassMomentOfInertiaUnit.GramSquareDecimeter, "GramSquareDecimeter", "GramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), - 100000 - ); - yield return new (MassMomentOfInertiaUnit.GramSquareMeter, "GramSquareMeter", "GramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (MassMomentOfInertiaUnit.GramSquareMillimeter, "GramSquareMillimeter", "GramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), - 1000000000 - ); - yield return new (MassMomentOfInertiaUnit.KilogramSquareCentimeter, "KilogramSquareCentimeter", "KilogramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), - 10000 - ); - yield return new (MassMomentOfInertiaUnit.KilogramSquareDecimeter, "KilogramSquareDecimeter", "KilogramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), - 100 - ); - yield return new (MassMomentOfInertiaUnit.KilogramSquareMeter, "KilogramSquareMeter", "KilogramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (MassMomentOfInertiaUnit.KilogramSquareMillimeter, "KilogramSquareMillimeter", "KilogramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - 1000000 - ); - yield return new (MassMomentOfInertiaUnit.KilotonneSquareCentimeter, "KilotonneSquareCentimeter", "KilotonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilotonne), - new QuantityValue(1, 100) - ); - yield return new (MassMomentOfInertiaUnit.KilotonneSquareDecimeter, "KilotonneSquareDecimeter", "KilotonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilotonne), - new QuantityValue(1, 10000) - ); - yield return new (MassMomentOfInertiaUnit.KilotonneSquareMeter, "KilotonneSquareMeter", "KilotonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilotonne), - new QuantityValue(1, 1000000) - ); - yield return new (MassMomentOfInertiaUnit.KilotonneSquareMillimeter, "KilotonneSquareMillimeter", "KilotonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilotonne), - 1 - ); - yield return new (MassMomentOfInertiaUnit.MegatonneSquareCentimeter, "MegatonneSquareCentimeter", "MegatonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Megatonne), - new QuantityValue(1, 100000) - ); - yield return new (MassMomentOfInertiaUnit.MegatonneSquareDecimeter, "MegatonneSquareDecimeter", "MegatonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Megatonne), - new QuantityValue(1, 10000000) - ); - yield return new (MassMomentOfInertiaUnit.MegatonneSquareMeter, "MegatonneSquareMeter", "MegatonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Megatonne), - new QuantityValue(1, 1000000000) - ); - yield return new (MassMomentOfInertiaUnit.MegatonneSquareMillimeter, "MegatonneSquareMillimeter", "MegatonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Megatonne), - new QuantityValue(1, 1000) - ); - yield return new (MassMomentOfInertiaUnit.MilligramSquareCentimeter, "MilligramSquareCentimeter", "MilligramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), - 10000000000 - ); - yield return new (MassMomentOfInertiaUnit.MilligramSquareDecimeter, "MilligramSquareDecimeter", "MilligramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), - 100000000 - ); - yield return new (MassMomentOfInertiaUnit.MilligramSquareMeter, "MilligramSquareMeter", "MilligramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (MassMomentOfInertiaUnit.MilligramSquareMillimeter, "MilligramSquareMillimeter", "MilligramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Milligram), - 1000000000000 - ); - yield return new (MassMomentOfInertiaUnit.PoundSquareFoot, "PoundSquareFoot", "PoundSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(156250000000000, 6584392202157) - ); - yield return new (MassMomentOfInertiaUnit.PoundSquareInch, "PoundSquareInch", "PoundSquareInches", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), - new QuantityValue(2500000000000000, 731599133573) - ); - yield return new (MassMomentOfInertiaUnit.SlugSquareFoot, "SlugSquareFoot", "SlugSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), - new QuantityValue(2500000000000000, 3389544870828501) - ); - yield return new (MassMomentOfInertiaUnit.SlugSquareInch, "SlugSquareInch", "SlugSquareInches", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Slug), - new QuantityValue(120000000000000000, 1129848290276167) - ); - yield return new (MassMomentOfInertiaUnit.TonneSquareCentimeter, "TonneSquareCentimeter", "TonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), - 10 - ); - yield return new (MassMomentOfInertiaUnit.TonneSquareDecimeter, "TonneSquareDecimeter", "TonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 10) - ); - yield return new (MassMomentOfInertiaUnit.TonneSquareMeter, "TonneSquareMeter", "TonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000) - ); - yield return new (MassMomentOfInertiaUnit.TonneSquareMillimeter, "TonneSquareMillimeter", "TonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), - 1000 - ); + return new UnitDefinition[] + { + new (MassMomentOfInertiaUnit.GramSquareCentimeter, "GramSquareCentimeter", "GramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), + 10000000 + ), + new (MassMomentOfInertiaUnit.GramSquareDecimeter, "GramSquareDecimeter", "GramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), + 100000 + ), + new (MassMomentOfInertiaUnit.GramSquareMeter, "GramSquareMeter", "GramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), + 1000 + ), + new (MassMomentOfInertiaUnit.GramSquareMillimeter, "GramSquareMillimeter", "GramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), + 1000000000 + ), + new (MassMomentOfInertiaUnit.KilogramSquareCentimeter, "KilogramSquareCentimeter", "KilogramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), + 10000 + ), + new (MassMomentOfInertiaUnit.KilogramSquareDecimeter, "KilogramSquareDecimeter", "KilogramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), + 100 + ), + new (MassMomentOfInertiaUnit.KilogramSquareMeter, "KilogramSquareMeter", "KilogramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)), + new (MassMomentOfInertiaUnit.KilogramSquareMillimeter, "KilogramSquareMillimeter", "KilogramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), + 1000000 + ), + new (MassMomentOfInertiaUnit.KilotonneSquareCentimeter, "KilotonneSquareCentimeter", "KilotonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilotonne), + new QuantityValue(1, 100) + ), + new (MassMomentOfInertiaUnit.KilotonneSquareDecimeter, "KilotonneSquareDecimeter", "KilotonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilotonne), + new QuantityValue(1, 10000) + ), + new (MassMomentOfInertiaUnit.KilotonneSquareMeter, "KilotonneSquareMeter", "KilotonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilotonne), + new QuantityValue(1, 1000000) + ), + new (MassMomentOfInertiaUnit.KilotonneSquareMillimeter, "KilotonneSquareMillimeter", "KilotonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilotonne), + 1 + ), + new (MassMomentOfInertiaUnit.MegatonneSquareCentimeter, "MegatonneSquareCentimeter", "MegatonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Megatonne), + new QuantityValue(1, 100000) + ), + new (MassMomentOfInertiaUnit.MegatonneSquareDecimeter, "MegatonneSquareDecimeter", "MegatonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Megatonne), + new QuantityValue(1, 10000000) + ), + new (MassMomentOfInertiaUnit.MegatonneSquareMeter, "MegatonneSquareMeter", "MegatonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Megatonne), + new QuantityValue(1, 1000000000) + ), + new (MassMomentOfInertiaUnit.MegatonneSquareMillimeter, "MegatonneSquareMillimeter", "MegatonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Megatonne), + new QuantityValue(1, 1000) + ), + new (MassMomentOfInertiaUnit.MilligramSquareCentimeter, "MilligramSquareCentimeter", "MilligramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), + 10000000000 + ), + new (MassMomentOfInertiaUnit.MilligramSquareDecimeter, "MilligramSquareDecimeter", "MilligramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), + 100000000 + ), + new (MassMomentOfInertiaUnit.MilligramSquareMeter, "MilligramSquareMeter", "MilligramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), + 1000000 + ), + new (MassMomentOfInertiaUnit.MilligramSquareMillimeter, "MilligramSquareMillimeter", "MilligramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Milligram), + 1000000000000 + ), + new (MassMomentOfInertiaUnit.PoundSquareFoot, "PoundSquareFoot", "PoundSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), + new QuantityValue(156250000000000, 6584392202157) + ), + new (MassMomentOfInertiaUnit.PoundSquareInch, "PoundSquareInch", "PoundSquareInches", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), + new QuantityValue(2500000000000000, 731599133573) + ), + new (MassMomentOfInertiaUnit.SlugSquareFoot, "SlugSquareFoot", "SlugSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), + new QuantityValue(2500000000000000, 3389544870828501) + ), + new (MassMomentOfInertiaUnit.SlugSquareInch, "SlugSquareInch", "SlugSquareInches", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Slug), + new QuantityValue(120000000000000000, 1129848290276167) + ), + new (MassMomentOfInertiaUnit.TonneSquareCentimeter, "TonneSquareCentimeter", "TonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), + 10 + ), + new (MassMomentOfInertiaUnit.TonneSquareDecimeter, "TonneSquareDecimeter", "TonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Tonne), + new QuantityValue(1, 10) + ), + new (MassMomentOfInertiaUnit.TonneSquareMeter, "TonneSquareMeter", "TonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), + new QuantityValue(1, 1000) + ), + new (MassMomentOfInertiaUnit.TonneSquareMillimeter, "TonneSquareMillimeter", "TonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), + 1000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Molality.g.cs b/UnitsNet/GeneratedCode/Quantities/Molality.g.cs index 5948be35a0..0da5ae7513 100644 --- a/UnitsNet/GeneratedCode/Quantities/Molality.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Molality.g.cs @@ -119,13 +119,16 @@ public static MolalityInfo CreateDefault(FuncAn of representing the default unit mappings for Molality. public static IEnumerable> GetDefaultMappings() { - yield return new (MolalityUnit.MillimolePerKilogram, "MillimolePerKilogram", "MillimolesPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Millimole), - 1000 - ); - yield return new (MolalityUnit.MolePerGram, "MolePerGram", "MolesPerGram", new BaseUnits(mass: MassUnit.Gram, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(1, 1000) - ); - yield return new (MolalityUnit.MolePerKilogram, "MolePerKilogram", "MolesPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Mole)); + return new UnitDefinition[] + { + new (MolalityUnit.MillimolePerKilogram, "MillimolePerKilogram", "MillimolesPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Millimole), + 1000 + ), + new (MolalityUnit.MolePerGram, "MolePerGram", "MolesPerGram", new BaseUnits(mass: MassUnit.Gram, amount: AmountOfSubstanceUnit.Mole), + new QuantityValue(1, 1000) + ), + new (MolalityUnit.MolePerKilogram, "MolePerKilogram", "MolesPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Mole)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs index 67a4e4b37a..a9eb17f3b4 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs @@ -117,13 +117,16 @@ public static MolarEnergyInfo CreateDefault(FuncAn of representing the default unit mappings for MolarEnergy. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarEnergyUnit.JoulePerMole, "JoulePerMole", "JoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarEnergyUnit.KilojoulePerMole, "KilojoulePerMole", "KilojoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Millimole), - new QuantityValue(1, 1000) - ); - yield return new (MolarEnergyUnit.MegajoulePerMole, "MegajoulePerMole", "MegajoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Micromole), - new QuantityValue(1, 1000000) - ); + return new UnitDefinition[] + { + new (MolarEnergyUnit.JoulePerMole, "JoulePerMole", "JoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Mole)), + new (MolarEnergyUnit.KilojoulePerMole, "KilojoulePerMole", "KilojoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Millimole), + new QuantityValue(1, 1000) + ), + new (MolarEnergyUnit.MegajoulePerMole, "MegajoulePerMole", "MegajoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Micromole), + new QuantityValue(1, 1000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs index c0a5fda05e..43f16944e5 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs @@ -116,13 +116,16 @@ public static MolarEntropyInfo CreateDefault(FuncAn of representing the default unit mappings for MolarEntropy. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarEntropyUnit.JoulePerMoleKelvin, "JoulePerMoleKelvin", "JoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarEntropyUnit.KilojoulePerMoleKelvin, "KilojoulePerMoleKelvin", "KilojoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Millimole), - new QuantityValue(1, 1000) - ); - yield return new (MolarEntropyUnit.MegajoulePerMoleKelvin, "MegajoulePerMoleKelvin", "MegajoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Micromole), - new QuantityValue(1, 1000000) - ); + return new UnitDefinition[] + { + new (MolarEntropyUnit.JoulePerMoleKelvin, "JoulePerMoleKelvin", "JoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Mole)), + new (MolarEntropyUnit.KilojoulePerMoleKelvin, "KilojoulePerMoleKelvin", "KilojoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Millimole), + new QuantityValue(1, 1000) + ), + new (MolarEntropyUnit.MegajoulePerMoleKelvin, "MegajoulePerMoleKelvin", "MegajoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Micromole), + new QuantityValue(1, 1000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs index af2f778a9b..01cb52ab75 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs @@ -120,31 +120,34 @@ public static MolarFlowInfo CreateDefault(FuncAn of representing the default unit mappings for MolarFlow. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarFlowUnit.KilomolePerHour, "KilomolePerHour", "KilomolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(18, 5) - ); - yield return new (MolarFlowUnit.KilomolePerMinute, "KilomolePerMinute", "KilomolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(3, 50) - ); - yield return new (MolarFlowUnit.KilomolePerSecond, "KilomolePerSecond", "KilomolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(1, 1000) - ); - yield return new (MolarFlowUnit.MolePerHour, "MolePerHour", "MolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.Mole), - 3600 - ); - yield return new (MolarFlowUnit.MolePerMinute, "MolePerMinute", "MolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.Mole), - 60 - ); - yield return new (MolarFlowUnit.MolePerSecond, "MolePerSecond", "MolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarFlowUnit.PoundMolePerHour, "PoundMolePerHour", "PoundMolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(360000000, 45359237) - ); - yield return new (MolarFlowUnit.PoundMolePerMinute, "PoundMolePerMinute", "PoundMolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(6000000, 45359237) - ); - yield return new (MolarFlowUnit.PoundMolePerSecond, "PoundMolePerSecond", "PoundMolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(100000, 45359237) - ); + return new UnitDefinition[] + { + new (MolarFlowUnit.KilomolePerHour, "KilomolePerHour", "KilomolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.Kilomole), + new QuantityValue(18, 5) + ), + new (MolarFlowUnit.KilomolePerMinute, "KilomolePerMinute", "KilomolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.Kilomole), + new QuantityValue(3, 50) + ), + new (MolarFlowUnit.KilomolePerSecond, "KilomolePerSecond", "KilomolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Kilomole), + new QuantityValue(1, 1000) + ), + new (MolarFlowUnit.MolePerHour, "MolePerHour", "MolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.Mole), + 3600 + ), + new (MolarFlowUnit.MolePerMinute, "MolePerMinute", "MolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.Mole), + 60 + ), + new (MolarFlowUnit.MolePerSecond, "MolePerSecond", "MolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Mole)), + new (MolarFlowUnit.PoundMolePerHour, "PoundMolePerHour", "PoundMolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.PoundMole), + new QuantityValue(360000000, 45359237) + ), + new (MolarFlowUnit.PoundMolePerMinute, "PoundMolePerMinute", "PoundMolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.PoundMole), + new QuantityValue(6000000, 45359237) + ), + new (MolarFlowUnit.PoundMolePerSecond, "PoundMolePerSecond", "PoundMolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.PoundMole), + new QuantityValue(100000, 45359237) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs index b7c4b16e68..a0408f89ad 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs @@ -119,46 +119,49 @@ public static MolarMassInfo CreateDefault(FuncAn of representing the default unit mappings for MolarMass. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarMassUnit.CentigramPerMole, "CentigramPerMole", "CentigramsPerMole", new BaseUnits(mass: MassUnit.Centigram, amount: AmountOfSubstanceUnit.Mole), - 100000 - ); - yield return new (MolarMassUnit.DecagramPerMole, "DecagramPerMole", "DecagramsPerMole", new BaseUnits(mass: MassUnit.Decagram, amount: AmountOfSubstanceUnit.Mole), - 100 - ); - yield return new (MolarMassUnit.DecigramPerMole, "DecigramPerMole", "DecigramsPerMole", new BaseUnits(mass: MassUnit.Decigram, amount: AmountOfSubstanceUnit.Mole), - 10000 - ); - yield return new (MolarMassUnit.GramPerMole, "GramPerMole", "GramsPerMole", new BaseUnits(mass: MassUnit.Gram, amount: AmountOfSubstanceUnit.Mole), - 1000 - ); - yield return new (MolarMassUnit.HectogramPerMole, "HectogramPerMole", "HectogramsPerMole", new BaseUnits(mass: MassUnit.Hectogram, amount: AmountOfSubstanceUnit.Mole), - 10 - ); - yield return new (MolarMassUnit.KilogramPerKilomole, "KilogramPerKilomole", "KilogramsPerKilomole", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Kilomole), - 1000 - ); - yield return new (MolarMassUnit.KilogramPerMole, "KilogramPerMole", "KilogramsPerMole", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarMassUnit.KilopoundPerMole, "KilopoundPerMole", "KilopoundsPerMole", new BaseUnits(mass: MassUnit.Kilopound, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(100000, 45359237) - ); - yield return new (MolarMassUnit.MegapoundPerMole, "MegapoundPerMole", "MegapoundsPerMole", new BaseUnits(mass: MassUnit.Megapound, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(100, 45359237) - ); - yield return new (MolarMassUnit.MicrogramPerMole, "MicrogramPerMole", "MicrogramsPerMole", new BaseUnits(mass: MassUnit.Microgram, amount: AmountOfSubstanceUnit.Mole), - 1000000000 - ); - yield return new (MolarMassUnit.MilligramPerMole, "MilligramPerMole", "MilligramsPerMole", new BaseUnits(mass: MassUnit.Milligram, amount: AmountOfSubstanceUnit.Mole), - 1000000 - ); - yield return new (MolarMassUnit.NanogramPerMole, "NanogramPerMole", "NanogramsPerMole", new BaseUnits(mass: MassUnit.Nanogram, amount: AmountOfSubstanceUnit.Mole), - 1000000000000 - ); - yield return new (MolarMassUnit.PoundPerMole, "PoundPerMole", "PoundsPerMole", new BaseUnits(mass: MassUnit.Pound, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(100000000, 45359237) - ); - yield return new (MolarMassUnit.PoundPerPoundMole, "PoundPerPoundMole", "PoundsPerPoundMole", new BaseUnits(mass: MassUnit.Pound, amount: AmountOfSubstanceUnit.PoundMole), - 1000 - ); + return new UnitDefinition[] + { + new (MolarMassUnit.CentigramPerMole, "CentigramPerMole", "CentigramsPerMole", new BaseUnits(mass: MassUnit.Centigram, amount: AmountOfSubstanceUnit.Mole), + 100000 + ), + new (MolarMassUnit.DecagramPerMole, "DecagramPerMole", "DecagramsPerMole", new BaseUnits(mass: MassUnit.Decagram, amount: AmountOfSubstanceUnit.Mole), + 100 + ), + new (MolarMassUnit.DecigramPerMole, "DecigramPerMole", "DecigramsPerMole", new BaseUnits(mass: MassUnit.Decigram, amount: AmountOfSubstanceUnit.Mole), + 10000 + ), + new (MolarMassUnit.GramPerMole, "GramPerMole", "GramsPerMole", new BaseUnits(mass: MassUnit.Gram, amount: AmountOfSubstanceUnit.Mole), + 1000 + ), + new (MolarMassUnit.HectogramPerMole, "HectogramPerMole", "HectogramsPerMole", new BaseUnits(mass: MassUnit.Hectogram, amount: AmountOfSubstanceUnit.Mole), + 10 + ), + new (MolarMassUnit.KilogramPerKilomole, "KilogramPerKilomole", "KilogramsPerKilomole", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Kilomole), + 1000 + ), + new (MolarMassUnit.KilogramPerMole, "KilogramPerMole", "KilogramsPerMole", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Mole)), + new (MolarMassUnit.KilopoundPerMole, "KilopoundPerMole", "KilopoundsPerMole", new BaseUnits(mass: MassUnit.Kilopound, amount: AmountOfSubstanceUnit.Mole), + new QuantityValue(100000, 45359237) + ), + new (MolarMassUnit.MegapoundPerMole, "MegapoundPerMole", "MegapoundsPerMole", new BaseUnits(mass: MassUnit.Megapound, amount: AmountOfSubstanceUnit.Mole), + new QuantityValue(100, 45359237) + ), + new (MolarMassUnit.MicrogramPerMole, "MicrogramPerMole", "MicrogramsPerMole", new BaseUnits(mass: MassUnit.Microgram, amount: AmountOfSubstanceUnit.Mole), + 1000000000 + ), + new (MolarMassUnit.MilligramPerMole, "MilligramPerMole", "MilligramsPerMole", new BaseUnits(mass: MassUnit.Milligram, amount: AmountOfSubstanceUnit.Mole), + 1000000 + ), + new (MolarMassUnit.NanogramPerMole, "NanogramPerMole", "NanogramsPerMole", new BaseUnits(mass: MassUnit.Nanogram, amount: AmountOfSubstanceUnit.Mole), + 1000000000000 + ), + new (MolarMassUnit.PoundPerMole, "PoundPerMole", "PoundsPerMole", new BaseUnits(mass: MassUnit.Pound, amount: AmountOfSubstanceUnit.Mole), + new QuantityValue(100000000, 45359237) + ), + new (MolarMassUnit.PoundPerPoundMole, "PoundPerPoundMole", "PoundsPerPoundMole", new BaseUnits(mass: MassUnit.Pound, amount: AmountOfSubstanceUnit.PoundMole), + 1000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs index e9edd15565..7a585b36cd 100644 --- a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs @@ -124,37 +124,40 @@ public static MolarityInfo CreateDefault(FuncAn of representing the default unit mappings for Molarity. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarityUnit.CentimolePerLiter, "CentimolePerLiter", "CentimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Centimole), - new QuantityValue(1, 10) - ); - yield return new (MolarityUnit.DecimolePerLiter, "DecimolePerLiter", "DecimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Decimole), - new QuantityValue(1, 100) - ); - yield return new (MolarityUnit.FemtomolePerLiter, "FemtomolePerLiter", "FemtomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Femtomole), - 1000000000000 - ); - yield return new (MolarityUnit.KilomolePerCubicMeter, "KilomolePerCubicMeter", "KilomolesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(1, 1000) - ); - yield return new (MolarityUnit.MicromolePerLiter, "MicromolePerLiter", "MicromolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Micromole), - 1000 - ); - yield return new (MolarityUnit.MillimolePerLiter, "MillimolePerLiter", "MillimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Millimole), - 1 - ); - yield return new (MolarityUnit.MolePerCubicMeter, "MolePerCubicMeter", "MolesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarityUnit.MolePerLiter, "MolePerLiter", "MolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(1, 1000) - ); - yield return new (MolarityUnit.NanomolePerLiter, "NanomolePerLiter", "NanomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Nanomole), - 1000000 - ); - yield return new (MolarityUnit.PicomolePerLiter, "PicomolePerLiter", "PicomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Picomole), - 1000000000 - ); - yield return new (MolarityUnit.PoundMolePerCubicFoot, "PoundMolePerCubicFoot", "PoundMolesPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(221225364, 3543690390625) - ); + return new UnitDefinition[] + { + new (MolarityUnit.CentimolePerLiter, "CentimolePerLiter", "CentimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Centimole), + new QuantityValue(1, 10) + ), + new (MolarityUnit.DecimolePerLiter, "DecimolePerLiter", "DecimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Decimole), + new QuantityValue(1, 100) + ), + new (MolarityUnit.FemtomolePerLiter, "FemtomolePerLiter", "FemtomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Femtomole), + 1000000000000 + ), + new (MolarityUnit.KilomolePerCubicMeter, "KilomolePerCubicMeter", "KilomolesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, amount: AmountOfSubstanceUnit.Kilomole), + new QuantityValue(1, 1000) + ), + new (MolarityUnit.MicromolePerLiter, "MicromolePerLiter", "MicromolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Micromole), + 1000 + ), + new (MolarityUnit.MillimolePerLiter, "MillimolePerLiter", "MillimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Millimole), + 1 + ), + new (MolarityUnit.MolePerCubicMeter, "MolePerCubicMeter", "MolesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, amount: AmountOfSubstanceUnit.Mole)), + new (MolarityUnit.MolePerLiter, "MolePerLiter", "MolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Mole), + new QuantityValue(1, 1000) + ), + new (MolarityUnit.NanomolePerLiter, "NanomolePerLiter", "NanomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Nanomole), + 1000000 + ), + new (MolarityUnit.PicomolePerLiter, "PicomolePerLiter", "PicomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Picomole), + 1000000000 + ), + new (MolarityUnit.PoundMolePerCubicFoot, "PoundMolePerCubicFoot", "PoundMolesPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, amount: AmountOfSubstanceUnit.PoundMole), + new QuantityValue(221225364, 3543690390625) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs index 09a6c41475..179ae9d162 100644 --- a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs @@ -119,7 +119,10 @@ public static PermeabilityInfo CreateDefault(FuncAn of representing the default unit mappings for Permeability. public static IEnumerable> GetDefaultMappings() { - yield return new (PermeabilityUnit.HenryPerMeter, "HenryPerMeter", "HenriesPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (PermeabilityUnit.HenryPerMeter, "HenryPerMeter", "HenriesPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs index 5a17c20b4a..966efe9192 100644 --- a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs @@ -119,7 +119,10 @@ public static PermittivityInfo CreateDefault(FuncAn of representing the default unit mappings for Permittivity. public static IEnumerable> GetDefaultMappings() { - yield return new (PermittivityUnit.FaradPerMeter, "FaradPerMeter", "FaradsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + return new UnitDefinition[] + { + new (PermittivityUnit.FaradPerMeter, "FaradPerMeter", "FaradsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs b/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs index a798ce1b4d..d645a112ab 100644 --- a/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs @@ -119,19 +119,22 @@ public static PorousMediumPermeabilityInfo CreateDefault(FuncAn of representing the default unit mappings for PorousMediumPermeability. public static IEnumerable> GetDefaultMappings() { - yield return new (PorousMediumPermeabilityUnit.Darcy, "Darcy", "Darcys", BaseUnits.Undefined, - new QuantityValue(QuantityValue.PowerOfTen(19), 9869233) - ); - yield return new (PorousMediumPermeabilityUnit.Microdarcy, "Microdarcy", "Microdarcys", BaseUnits.Undefined, - new QuantityValue(QuantityValue.PowerOfTen(25), 9869233) - ); - yield return new (PorousMediumPermeabilityUnit.Millidarcy, "Millidarcy", "Millidarcys", BaseUnits.Undefined, - new QuantityValue(QuantityValue.PowerOfTen(22), 9869233) - ); - yield return new (PorousMediumPermeabilityUnit.SquareCentimeter, "SquareCentimeter", "SquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - 10000 - ); - yield return new (PorousMediumPermeabilityUnit.SquareMeter, "SquareMeter", "SquareMeters", new BaseUnits(length: LengthUnit.Meter)); + return new UnitDefinition[] + { + new (PorousMediumPermeabilityUnit.Darcy, "Darcy", "Darcys", BaseUnits.Undefined, + new QuantityValue(QuantityValue.PowerOfTen(19), 9869233) + ), + new (PorousMediumPermeabilityUnit.Microdarcy, "Microdarcy", "Microdarcys", BaseUnits.Undefined, + new QuantityValue(QuantityValue.PowerOfTen(25), 9869233) + ), + new (PorousMediumPermeabilityUnit.Millidarcy, "Millidarcy", "Millidarcys", BaseUnits.Undefined, + new QuantityValue(QuantityValue.PowerOfTen(22), 9869233) + ), + new (PorousMediumPermeabilityUnit.SquareCentimeter, "SquareCentimeter", "SquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), + 10000 + ), + new (PorousMediumPermeabilityUnit.SquareMeter, "SquareMeter", "SquareMeters", new BaseUnits(length: LengthUnit.Meter)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Power.g.cs b/UnitsNet/GeneratedCode/Quantities/Power.g.cs index ab15bcfe09..2c6622a95f 100644 --- a/UnitsNet/GeneratedCode/Quantities/Power.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Power.g.cs @@ -135,85 +135,88 @@ public static PowerInfo CreateDefault(Func /// An of representing the default unit mappings for Power. public static IEnumerable> GetDefaultMappings() { - yield return new (PowerUnit.BoilerHorsepower, "BoilerHorsepower", "BoilerHorsepower", BaseUnits.Undefined, - new QuantityValue(2, 19625) - ); - yield return new (PowerUnit.BritishThermalUnitPerHour, "BritishThermalUnitPerHour", "BritishThermalUnitsPerHour", BaseUnits.Undefined, - new QuantityValue(180000000000, 52752792631) - ); - yield return new (PowerUnit.Decawatt, "Decawatt", "Decawatts", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (PowerUnit.Deciwatt, "Deciwatt", "Deciwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (PowerUnit.ElectricalHorsepower, "ElectricalHorsepower", "ElectricalHorsepower", BaseUnits.Undefined, - new QuantityValue(1, 746) - ); - yield return new (PowerUnit.Femtowatt, "Femtowatt", "Femtowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Picogram, time: DurationUnit.Second), - 1000000000000000 - ); - yield return new (PowerUnit.GigajoulePerHour, "GigajoulePerHour", "GigajoulesPerHour", BaseUnits.Undefined, - new QuantityValue(9, 2500000) - ); - yield return new (PowerUnit.Gigawatt, "Gigawatt", "Gigawatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (PowerUnit.HydraulicHorsepower, "HydraulicHorsepower", "HydraulicHorsepower", BaseUnits.Undefined, - new QuantityValue(50000000000000, 37284993579113511) - ); - yield return new (PowerUnit.JoulePerHour, "JoulePerHour", "JoulesPerHour", BaseUnits.Undefined, - 3600 - ); - yield return new (PowerUnit.KilobritishThermalUnitPerHour, "KilobritishThermalUnitPerHour", "KilobritishThermalUnitsPerHour", BaseUnits.Undefined, - new QuantityValue(180000000, 52752792631) - ); - yield return new (PowerUnit.KilojoulePerHour, "KilojoulePerHour", "KilojoulesPerHour", BaseUnits.Undefined, - new QuantityValue(18, 5) - ); - yield return new (PowerUnit.Kilowatt, "Kilowatt", "Kilowatts", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (PowerUnit.MechanicalHorsepower, "MechanicalHorsepower", "MechanicalHorsepower", BaseUnits.Undefined, - new QuantityValue(200000000000, 149139974303117) - ); - yield return new (PowerUnit.MegabritishThermalUnitPerHour, "MegabritishThermalUnitPerHour", "MegabritishThermalUnitsPerHour", BaseUnits.Undefined, - new QuantityValue(180000, 52752792631) - ); - yield return new (PowerUnit.MegajoulePerHour, "MegajoulePerHour", "MegajoulesPerHour", BaseUnits.Undefined, - new QuantityValue(9, 2500) - ); - yield return new (PowerUnit.Megawatt, "Megawatt", "Megawatts", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PowerUnit.MetricHorsepower, "MetricHorsepower", "MetricHorsepower", BaseUnits.Undefined, - new QuantityValue(800, 588399) - ); - yield return new (PowerUnit.Microwatt, "Microwatt", "Microwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (PowerUnit.MillijoulePerHour, "MillijoulePerHour", "MillijoulesPerHour", BaseUnits.Undefined, - 3600000 - ); - yield return new (PowerUnit.Milliwatt, "Milliwatt", "Milliwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (PowerUnit.Nanowatt, "Nanowatt", "Nanowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (PowerUnit.Petawatt, "Petawatt", "Petawatts", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (PowerUnit.Picowatt, "Picowatt", "Picowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (PowerUnit.Terawatt, "Terawatt", "Terawatts", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (PowerUnit.TonOfRefrigeration, "TonOfRefrigeration", "TonsOfRefrigeration", BaseUnits.Undefined, - new QuantityValue(1000, 3516853) - ); - yield return new (PowerUnit.Watt, "Watt", "Watts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); + return new UnitDefinition[] + { + new (PowerUnit.BoilerHorsepower, "BoilerHorsepower", "BoilerHorsepower", BaseUnits.Undefined, + new QuantityValue(2, 19625) + ), + new (PowerUnit.BritishThermalUnitPerHour, "BritishThermalUnitPerHour", "BritishThermalUnitsPerHour", BaseUnits.Undefined, + new QuantityValue(180000000000, 52752792631) + ), + new (PowerUnit.Decawatt, "Decawatt", "Decawatts", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (PowerUnit.Deciwatt, "Deciwatt", "Deciwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), + 10 + ), + new (PowerUnit.ElectricalHorsepower, "ElectricalHorsepower", "ElectricalHorsepower", BaseUnits.Undefined, + new QuantityValue(1, 746) + ), + new (PowerUnit.Femtowatt, "Femtowatt", "Femtowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Picogram, time: DurationUnit.Second), + 1000000000000000 + ), + new (PowerUnit.GigajoulePerHour, "GigajoulePerHour", "GigajoulesPerHour", BaseUnits.Undefined, + new QuantityValue(9, 2500000) + ), + new (PowerUnit.Gigawatt, "Gigawatt", "Gigawatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), + new QuantityValue(1, 1000000000) + ), + new (PowerUnit.HydraulicHorsepower, "HydraulicHorsepower", "HydraulicHorsepower", BaseUnits.Undefined, + new QuantityValue(50000000000000, 37284993579113511) + ), + new (PowerUnit.JoulePerHour, "JoulePerHour", "JoulesPerHour", BaseUnits.Undefined, + 3600 + ), + new (PowerUnit.KilobritishThermalUnitPerHour, "KilobritishThermalUnitPerHour", "KilobritishThermalUnitsPerHour", BaseUnits.Undefined, + new QuantityValue(180000000, 52752792631) + ), + new (PowerUnit.KilojoulePerHour, "KilojoulePerHour", "KilojoulesPerHour", BaseUnits.Undefined, + new QuantityValue(18, 5) + ), + new (PowerUnit.Kilowatt, "Kilowatt", "Kilowatts", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (PowerUnit.MechanicalHorsepower, "MechanicalHorsepower", "MechanicalHorsepower", BaseUnits.Undefined, + new QuantityValue(200000000000, 149139974303117) + ), + new (PowerUnit.MegabritishThermalUnitPerHour, "MegabritishThermalUnitPerHour", "MegabritishThermalUnitsPerHour", BaseUnits.Undefined, + new QuantityValue(180000, 52752792631) + ), + new (PowerUnit.MegajoulePerHour, "MegajoulePerHour", "MegajoulesPerHour", BaseUnits.Undefined, + new QuantityValue(9, 2500) + ), + new (PowerUnit.Megawatt, "Megawatt", "Megawatts", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (PowerUnit.MetricHorsepower, "MetricHorsepower", "MetricHorsepower", BaseUnits.Undefined, + new QuantityValue(800, 588399) + ), + new (PowerUnit.Microwatt, "Microwatt", "Microwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000000 + ), + new (PowerUnit.MillijoulePerHour, "MillijoulePerHour", "MillijoulesPerHour", BaseUnits.Undefined, + 3600000 + ), + new (PowerUnit.Milliwatt, "Milliwatt", "Milliwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (PowerUnit.Nanowatt, "Nanowatt", "Nanowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), + 1000000000 + ), + new (PowerUnit.Petawatt, "Petawatt", "Petawatts", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000) + ), + new (PowerUnit.Picowatt, "Picowatt", "Picowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), + 1000000000000 + ), + new (PowerUnit.Terawatt, "Terawatt", "Terawatts", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000000) + ), + new (PowerUnit.TonOfRefrigeration, "TonOfRefrigeration", "TonsOfRefrigeration", BaseUnits.Undefined, + new QuantityValue(1000, 3516853) + ), + new (PowerUnit.Watt, "Watt", "Watts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs index 1fc413a36c..678990b8fc 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs @@ -117,142 +117,145 @@ public static PowerDensityInfo CreateDefault(FuncAn of representing the default unit mappings for PowerDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (PowerDensityUnit.BtuPerSecondCubicFoot, "BtuPerSecondCubicFoot", "BtusPerSecondCubicFoot", BaseUnits.Undefined, - new QuantityValue(884901456, 32970495394375) - ); - yield return new (PowerDensityUnit.BtuPerSecondCubicInch, "BtuPerSecondCubicInch", "BtusPerSecondCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 131881981577500) - ); - yield return new (PowerDensityUnit.DecawattPerCubicFoot, "DecawattPerCubicFoot", "DecawattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 19531250000) - ); - yield return new (PowerDensityUnit.DecawattPerCubicInch, "DecawattPerCubicInch", "DecawattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 1250000000000) - ); - yield return new (PowerDensityUnit.DecawattPerCubicMeter, "DecawattPerCubicMeter", "DecawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (PowerDensityUnit.DecawattPerLiter, "DecawattPerLiter", "DecawattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (PowerDensityUnit.DeciwattPerCubicFoot, "DeciwattPerCubicFoot", "DeciwattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 195312500) - ); - yield return new (PowerDensityUnit.DeciwattPerCubicInch, "DeciwattPerCubicInch", "DeciwattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 12500000000) - ); - yield return new (PowerDensityUnit.DeciwattPerCubicMeter, "DeciwattPerCubicMeter", "DeciwattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (PowerDensityUnit.DeciwattPerLiter, "DeciwattPerLiter", "DeciwattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (PowerDensityUnit.GigawattPerCubicFoot, "GigawattPerCubicFoot", "GigawattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125000000000000) - ); - yield return new (PowerDensityUnit.GigawattPerCubicInch, "GigawattPerCubicInch", "GigawattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, new BigInteger(125) * QuantityValue.PowerOfTen(18)) - ); - yield return new (PowerDensityUnit.GigawattPerCubicMeter, "GigawattPerCubicMeter", "GigawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000) - ); - yield return new (PowerDensityUnit.GigawattPerLiter, "GigawattPerLiter", "GigawattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (PowerDensityUnit.KilowattPerCubicFoot, "KilowattPerCubicFoot", "KilowattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125000000) - ); - yield return new (PowerDensityUnit.KilowattPerCubicInch, "KilowattPerCubicInch", "KilowattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000000000000) - ); - yield return new (PowerDensityUnit.KilowattPerCubicMeter, "KilowattPerCubicMeter", "KilowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (PowerDensityUnit.KilowattPerLiter, "KilowattPerLiter", "KilowattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (PowerDensityUnit.MegawattPerCubicFoot, "MegawattPerCubicFoot", "MegawattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125000000000) - ); - yield return new (PowerDensityUnit.MegawattPerCubicInch, "MegawattPerCubicInch", "MegawattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000000000000000) - ); - yield return new (PowerDensityUnit.MegawattPerCubicMeter, "MegawattPerCubicMeter", "MegawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PowerDensityUnit.MegawattPerLiter, "MegawattPerLiter", "MegawattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (PowerDensityUnit.MicrowattPerCubicFoot, "MicrowattPerCubicFoot", "MicrowattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(442450728, 15625) - ); - yield return new (PowerDensityUnit.MicrowattPerCubicInch, "MicrowattPerCubicInch", "MicrowattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000) - ); - yield return new (PowerDensityUnit.MicrowattPerCubicMeter, "MicrowattPerCubicMeter", "MicrowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (PowerDensityUnit.MicrowattPerLiter, "MicrowattPerLiter", "MicrowattsPerLiter", BaseUnits.Undefined, - 1000 - ); - yield return new (PowerDensityUnit.MilliwattPerCubicFoot, "MilliwattPerCubicFoot", "MilliwattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125) - ); - yield return new (PowerDensityUnit.MilliwattPerCubicInch, "MilliwattPerCubicInch", "MilliwattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000000) - ); - yield return new (PowerDensityUnit.MilliwattPerCubicMeter, "MilliwattPerCubicMeter", "MilliwattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (PowerDensityUnit.MilliwattPerLiter, "MilliwattPerLiter", "MilliwattsPerLiter", BaseUnits.Undefined, - 1 - ); - yield return new (PowerDensityUnit.NanowattPerCubicFoot, "NanowattPerCubicFoot", "NanowattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(3539605824, 125) - ); - yield return new (PowerDensityUnit.NanowattPerCubicInch, "NanowattPerCubicInch", "NanowattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125) - ); - yield return new (PowerDensityUnit.NanowattPerCubicMeter, "NanowattPerCubicMeter", "NanowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (PowerDensityUnit.NanowattPerLiter, "NanowattPerLiter", "NanowattsPerLiter", BaseUnits.Undefined, - 1000000 - ); - yield return new (PowerDensityUnit.PicowattPerCubicFoot, "PicowattPerCubicFoot", "PicowattsPerCubicFoot", BaseUnits.Undefined, - 28316846592 - ); - yield return new (PowerDensityUnit.PicowattPerCubicInch, "PicowattPerCubicInch", "PicowattsPerCubicInch", BaseUnits.Undefined, - 16387064 - ); - yield return new (PowerDensityUnit.PicowattPerCubicMeter, "PicowattPerCubicMeter", "PicowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (PowerDensityUnit.PicowattPerLiter, "PicowattPerLiter", "PicowattsPerLiter", BaseUnits.Undefined, - 1000000000 - ); - yield return new (PowerDensityUnit.TerawattPerCubicFoot, "TerawattPerCubicFoot", "TerawattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, new BigInteger(1953125) * QuantityValue.PowerOfTen(15)) - ); - yield return new (PowerDensityUnit.TerawattPerCubicInch, "TerawattPerCubicInch", "TerawattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, new BigInteger(125) * QuantityValue.PowerOfTen(21)) - ); - yield return new (PowerDensityUnit.TerawattPerCubicMeter, "TerawattPerCubicMeter", "TerawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Picometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (PowerDensityUnit.TerawattPerLiter, "TerawattPerLiter", "TerawattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (PowerDensityUnit.WattPerCubicFoot, "WattPerCubicFoot", "WattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125000) - ); - yield return new (PowerDensityUnit.WattPerCubicInch, "WattPerCubicInch", "WattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000000000) - ); - yield return new (PowerDensityUnit.WattPerCubicMeter, "WattPerCubicMeter", "WattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (PowerDensityUnit.WattPerLiter, "WattPerLiter", "WattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); + return new UnitDefinition[] + { + new (PowerDensityUnit.BtuPerSecondCubicFoot, "BtuPerSecondCubicFoot", "BtusPerSecondCubicFoot", BaseUnits.Undefined, + new QuantityValue(884901456, 32970495394375) + ), + new (PowerDensityUnit.BtuPerSecondCubicInch, "BtuPerSecondCubicInch", "BtusPerSecondCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, 131881981577500) + ), + new (PowerDensityUnit.DecawattPerCubicFoot, "DecawattPerCubicFoot", "DecawattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(55306341, 19531250000) + ), + new (PowerDensityUnit.DecawattPerCubicInch, "DecawattPerCubicInch", "DecawattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, 1250000000000) + ), + new (PowerDensityUnit.DecawattPerCubicMeter, "DecawattPerCubicMeter", "DecawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 10) + ), + new (PowerDensityUnit.DecawattPerLiter, "DecawattPerLiter", "DecawattsPerLiter", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (PowerDensityUnit.DeciwattPerCubicFoot, "DeciwattPerCubicFoot", "DeciwattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(55306341, 195312500) + ), + new (PowerDensityUnit.DeciwattPerCubicInch, "DeciwattPerCubicInch", "DeciwattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, 12500000000) + ), + new (PowerDensityUnit.DeciwattPerCubicMeter, "DeciwattPerCubicMeter", "DeciwattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), + 10 + ), + new (PowerDensityUnit.DeciwattPerLiter, "DeciwattPerLiter", "DeciwattsPerLiter", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (PowerDensityUnit.GigawattPerCubicFoot, "GigawattPerCubicFoot", "GigawattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(55306341, 1953125000000000000) + ), + new (PowerDensityUnit.GigawattPerCubicInch, "GigawattPerCubicInch", "GigawattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, new BigInteger(125) * QuantityValue.PowerOfTen(18)) + ), + new (PowerDensityUnit.GigawattPerCubicMeter, "GigawattPerCubicMeter", "GigawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000) + ), + new (PowerDensityUnit.GigawattPerLiter, "GigawattPerLiter", "GigawattsPerLiter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000) + ), + new (PowerDensityUnit.KilowattPerCubicFoot, "KilowattPerCubicFoot", "KilowattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(55306341, 1953125000000) + ), + new (PowerDensityUnit.KilowattPerCubicInch, "KilowattPerCubicInch", "KilowattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, 125000000000000) + ), + new (PowerDensityUnit.KilowattPerCubicMeter, "KilowattPerCubicMeter", "KilowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (PowerDensityUnit.KilowattPerLiter, "KilowattPerLiter", "KilowattsPerLiter", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (PowerDensityUnit.MegawattPerCubicFoot, "MegawattPerCubicFoot", "MegawattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(55306341, 1953125000000000) + ), + new (PowerDensityUnit.MegawattPerCubicInch, "MegawattPerCubicInch", "MegawattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, 125000000000000000) + ), + new (PowerDensityUnit.MegawattPerCubicMeter, "MegawattPerCubicMeter", "MegawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (PowerDensityUnit.MegawattPerLiter, "MegawattPerLiter", "MegawattsPerLiter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (PowerDensityUnit.MicrowattPerCubicFoot, "MicrowattPerCubicFoot", "MicrowattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(442450728, 15625) + ), + new (PowerDensityUnit.MicrowattPerCubicInch, "MicrowattPerCubicInch", "MicrowattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, 125000) + ), + new (PowerDensityUnit.MicrowattPerCubicMeter, "MicrowattPerCubicMeter", "MicrowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000000 + ), + new (PowerDensityUnit.MicrowattPerLiter, "MicrowattPerLiter", "MicrowattsPerLiter", BaseUnits.Undefined, + 1000 + ), + new (PowerDensityUnit.MilliwattPerCubicFoot, "MilliwattPerCubicFoot", "MilliwattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(55306341, 1953125) + ), + new (PowerDensityUnit.MilliwattPerCubicInch, "MilliwattPerCubicInch", "MilliwattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, 125000000) + ), + new (PowerDensityUnit.MilliwattPerCubicMeter, "MilliwattPerCubicMeter", "MilliwattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (PowerDensityUnit.MilliwattPerLiter, "MilliwattPerLiter", "MilliwattsPerLiter", BaseUnits.Undefined, + 1 + ), + new (PowerDensityUnit.NanowattPerCubicFoot, "NanowattPerCubicFoot", "NanowattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(3539605824, 125) + ), + new (PowerDensityUnit.NanowattPerCubicInch, "NanowattPerCubicInch", "NanowattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, 125) + ), + new (PowerDensityUnit.NanowattPerCubicMeter, "NanowattPerCubicMeter", "NanowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), + 1000000000 + ), + new (PowerDensityUnit.NanowattPerLiter, "NanowattPerLiter", "NanowattsPerLiter", BaseUnits.Undefined, + 1000000 + ), + new (PowerDensityUnit.PicowattPerCubicFoot, "PicowattPerCubicFoot", "PicowattsPerCubicFoot", BaseUnits.Undefined, + 28316846592 + ), + new (PowerDensityUnit.PicowattPerCubicInch, "PicowattPerCubicInch", "PicowattsPerCubicInch", BaseUnits.Undefined, + 16387064 + ), + new (PowerDensityUnit.PicowattPerCubicMeter, "PicowattPerCubicMeter", "PicowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), + 1000000000000 + ), + new (PowerDensityUnit.PicowattPerLiter, "PicowattPerLiter", "PicowattsPerLiter", BaseUnits.Undefined, + 1000000000 + ), + new (PowerDensityUnit.TerawattPerCubicFoot, "TerawattPerCubicFoot", "TerawattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(55306341, new BigInteger(1953125) * QuantityValue.PowerOfTen(15)) + ), + new (PowerDensityUnit.TerawattPerCubicInch, "TerawattPerCubicInch", "TerawattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, new BigInteger(125) * QuantityValue.PowerOfTen(21)) + ), + new (PowerDensityUnit.TerawattPerCubicMeter, "TerawattPerCubicMeter", "TerawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Picometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000000) + ), + new (PowerDensityUnit.TerawattPerLiter, "TerawattPerLiter", "TerawattsPerLiter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000) + ), + new (PowerDensityUnit.WattPerCubicFoot, "WattPerCubicFoot", "WattsPerCubicFoot", BaseUnits.Undefined, + new QuantityValue(55306341, 1953125000) + ), + new (PowerDensityUnit.WattPerCubicInch, "WattPerCubicInch", "WattsPerCubicInch", BaseUnits.Undefined, + new QuantityValue(2048383, 125000000000) + ), + new (PowerDensityUnit.WattPerCubicMeter, "WattPerCubicMeter", "WattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (PowerDensityUnit.WattPerLiter, "WattPerLiter", "WattsPerLiter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs index e81ee0011f..008b0ecf5c 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs @@ -116,11 +116,14 @@ public static PowerRatioInfo CreateDefault(FuncAn of representing the default unit mappings for PowerRatio. public static IEnumerable> GetDefaultMappings() { - yield return new (PowerRatioUnit.DecibelMilliwatt, "DecibelMilliwatt", "DecibelMilliwatts", BaseUnits.Undefined, - new ConversionExpression(coefficient: 1, constantTerm: 30), - new ConversionExpression(coefficient: 1, constantTerm: -30) - ); - yield return new (PowerRatioUnit.DecibelWatt, "DecibelWatt", "DecibelWatts", BaseUnits.Undefined); + return new UnitDefinition[] + { + new (PowerRatioUnit.DecibelMilliwatt, "DecibelMilliwatt", "DecibelMilliwatts", BaseUnits.Undefined, + new ConversionExpression(coefficient: 1, constantTerm: 30), + new ConversionExpression(coefficient: 1, constantTerm: -30) + ), + new (PowerRatioUnit.DecibelWatt, "DecibelWatt", "DecibelWatts", BaseUnits.Undefined), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs index 49da47b3e5..28cfca2d86 100644 --- a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs @@ -132,154 +132,157 @@ public static PressureInfo CreateDefault(FuncAn of representing the default unit mappings for Pressure. public static IEnumerable> GetDefaultMappings() { - yield return new (PressureUnit.Atmosphere, "Atmosphere", "Atmospheres", BaseUnits.Undefined, - new QuantityValue(1, 101325) - ); - yield return new (PressureUnit.Bar, "Bar", "Bars", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (PressureUnit.Centibar, "Centibar", "Centibars", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (PressureUnit.CentimeterOfWaterColumn, "CentimeterOfWaterColumn", "CentimetersOfWaterColumn", BaseUnits.Undefined, - new QuantityValue(2000, 196133) - ); - yield return new (PressureUnit.Decapascal, "Decapascal", "Decapascals", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (PressureUnit.Decibar, "Decibar", "Decibars", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (PressureUnit.DynePerSquareCentimeter, "DynePerSquareCentimeter", "DynesPerSquareCentimeter", BaseUnits.Undefined, - 10 - ); - yield return new (PressureUnit.FootOfHead, "FootOfHead", "FeetOfHead", BaseUnits.Undefined, - new QuantityValue(156250000, 466922140449) - ); - yield return new (PressureUnit.Gigapascal, "Gigapascal", "Gigapascals", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000) - ); - yield return new (PressureUnit.Hectopascal, "Hectopascal", "Hectopascals", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 100) - ); - yield return new (PressureUnit.InchOfMercury, "InchOfMercury", "InchesOfMercury", BaseUnits.Undefined, - new QuantityValue(1000000000, 3386388640341) - ); - yield return new (PressureUnit.InchOfWaterColumn, "InchOfWaterColumn", "InchesOfWaterColumn", BaseUnits.Undefined, - new QuantityValue(100000, 24908891) - ); - yield return new (PressureUnit.Kilobar, "Kilobar", "Kilobars", BaseUnits.Undefined, - new QuantityValue(1, 100000000) - ); - yield return new (PressureUnit.KilogramForcePerSquareCentimeter, "KilogramForcePerSquareCentimeter", "KilogramsForcePerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(2, 196133) - ); - yield return new (PressureUnit.KilogramForcePerSquareMeter, "KilogramForcePerSquareMeter", "KilogramsForcePerSquareMeter", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (PressureUnit.KilogramForcePerSquareMillimeter, "KilogramForcePerSquareMillimeter", "KilogramsForcePerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650) - ); - yield return new (PressureUnit.KilonewtonPerSquareCentimeter, "KilonewtonPerSquareCentimeter", "KilonewtonsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000000) - ); - yield return new (PressureUnit.KilonewtonPerSquareMeter, "KilonewtonPerSquareMeter", "KilonewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (PressureUnit.KilonewtonPerSquareMillimeter, "KilonewtonPerSquareMillimeter", "KilonewtonsPerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (PressureUnit.Kilopascal, "Kilopascal", "Kilopascals", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (PressureUnit.KilopoundForcePerSquareFoot, "KilopoundForcePerSquareFoot", "KilopoundsForcePerSquareFoot", BaseUnits.Undefined, - new QuantityValue(185806080, 8896443230521) - ); - yield return new (PressureUnit.KilopoundForcePerSquareInch, "KilopoundForcePerSquareInch", "KilopoundsForcePerSquareInch", BaseUnits.Undefined, - new QuantityValue(1290320, 8896443230521) - ); - yield return new (PressureUnit.KilopoundForcePerSquareMil, "KilopoundForcePerSquareMil", "KilopoundsForcePerSquareMil", BaseUnits.Undefined, - new QuantityValue(16129, 111205540381512500) - ); - yield return new (PressureUnit.Megabar, "Megabar", "Megabars", BaseUnits.Undefined, - new QuantityValue(1, 100000000000) - ); - yield return new (PressureUnit.MeganewtonPerSquareMeter, "MeganewtonPerSquareMeter", "MeganewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PressureUnit.Megapascal, "Megapascal", "Megapascals", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PressureUnit.MeterOfHead, "MeterOfHead", "MetersOfHead", BaseUnits.Undefined, - new QuantityValue(125000, 1225517429) - ); - yield return new (PressureUnit.MeterOfWaterColumn, "MeterOfWaterColumn", "MetersOfWaterColumn", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (PressureUnit.Microbar, "Microbar", "Microbars", BaseUnits.Undefined, - 10 - ); - yield return new (PressureUnit.Micropascal, "Micropascal", "Micropascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (PressureUnit.Millibar, "Millibar", "Millibars", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (PressureUnit.MilligramForcePerSquareFoot, "MilligramForcePerSquareFoot", "MilligramsForcePerSquareFoot", BaseUnits.Undefined, - new QuantityValue(1858060800, 196133) - ); - yield return new (PressureUnit.MilligramForcePerSquareMeter, "MilligramForcePerSquareMeter", "MilligramsForcePerSquareMeter", BaseUnits.Undefined, - new QuantityValue(20000000000, 196133) - ); - yield return new (PressureUnit.MillimeterOfMercury, "MillimeterOfMercury", "MillimetersOfMercury", BaseUnits.Undefined, - new QuantityValue(200000000, 26664477483) - ); - yield return new (PressureUnit.MillimeterOfWaterColumn, "MillimeterOfWaterColumn", "MillimetersOfWaterColumn", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (PressureUnit.Millipascal, "Millipascal", "Millipascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (PressureUnit.Millitorr, "Millitorr", "Millitorrs", BaseUnits.Undefined, - new QuantityValue(30400, 4053) - ); - yield return new (PressureUnit.NewtonPerSquareCentimeter, "NewtonPerSquareCentimeter", "NewtonsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (PressureUnit.NewtonPerSquareMeter, "NewtonPerSquareMeter", "NewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1 - ); - yield return new (PressureUnit.NewtonPerSquareMillimeter, "NewtonPerSquareMillimeter", "NewtonsPerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (PressureUnit.Pascal, "Pascal", "Pascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (PressureUnit.PoundForcePerSquareFoot, "PoundForcePerSquareFoot", "PoundsForcePerSquareFoot", BaseUnits.Undefined, - new QuantityValue(185806080000, 8896443230521) - ); - yield return new (PressureUnit.PoundForcePerSquareInch, "PoundForcePerSquareInch", "PoundsForcePerSquareInch", BaseUnits.Undefined, - new QuantityValue(1290320000, 8896443230521) - ); - yield return new (PressureUnit.PoundForcePerSquareMil, "PoundForcePerSquareMil", "PoundsForcePerSquareMil", BaseUnits.Undefined, - new QuantityValue(32258, 222411080763025) - ); - yield return new (PressureUnit.PoundPerInchSecondSquared, "PoundPerInchSecondSquared", "PoundsPerInchSecondSquared", BaseUnits.Undefined, - new QuantityValue(498177842352, 8896443230521) - ); - yield return new (PressureUnit.TechnicalAtmosphere, "TechnicalAtmosphere", "TechnicalAtmospheres", BaseUnits.Undefined, - new QuantityValue(2, 196133) - ); - yield return new (PressureUnit.TonneForcePerSquareCentimeter, "TonneForcePerSquareCentimeter", "TonnesForcePerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 98066500) - ); - yield return new (PressureUnit.TonneForcePerSquareMeter, "TonneForcePerSquareMeter", "TonnesForcePerSquareMeter", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (PressureUnit.TonneForcePerSquareMillimeter, "TonneForcePerSquareMillimeter", "TonnesForcePerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650000) - ); - yield return new (PressureUnit.Torr, "Torr", "Torrs", BaseUnits.Undefined, - new QuantityValue(152, 20265) - ); + return new UnitDefinition[] + { + new (PressureUnit.Atmosphere, "Atmosphere", "Atmospheres", BaseUnits.Undefined, + new QuantityValue(1, 101325) + ), + new (PressureUnit.Bar, "Bar", "Bars", BaseUnits.Undefined, + new QuantityValue(1, 100000) + ), + new (PressureUnit.Centibar, "Centibar", "Centibars", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (PressureUnit.CentimeterOfWaterColumn, "CentimeterOfWaterColumn", "CentimetersOfWaterColumn", BaseUnits.Undefined, + new QuantityValue(2000, 196133) + ), + new (PressureUnit.Decapascal, "Decapascal", "Decapascals", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 10) + ), + new (PressureUnit.Decibar, "Decibar", "Decibars", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (PressureUnit.DynePerSquareCentimeter, "DynePerSquareCentimeter", "DynesPerSquareCentimeter", BaseUnits.Undefined, + 10 + ), + new (PressureUnit.FootOfHead, "FootOfHead", "FeetOfHead", BaseUnits.Undefined, + new QuantityValue(156250000, 466922140449) + ), + new (PressureUnit.Gigapascal, "Gigapascal", "Gigapascals", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000000) + ), + new (PressureUnit.Hectopascal, "Hectopascal", "Hectopascals", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 100) + ), + new (PressureUnit.InchOfMercury, "InchOfMercury", "InchesOfMercury", BaseUnits.Undefined, + new QuantityValue(1000000000, 3386388640341) + ), + new (PressureUnit.InchOfWaterColumn, "InchOfWaterColumn", "InchesOfWaterColumn", BaseUnits.Undefined, + new QuantityValue(100000, 24908891) + ), + new (PressureUnit.Kilobar, "Kilobar", "Kilobars", BaseUnits.Undefined, + new QuantityValue(1, 100000000) + ), + new (PressureUnit.KilogramForcePerSquareCentimeter, "KilogramForcePerSquareCentimeter", "KilogramsForcePerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(2, 196133) + ), + new (PressureUnit.KilogramForcePerSquareMeter, "KilogramForcePerSquareMeter", "KilogramsForcePerSquareMeter", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + new (PressureUnit.KilogramForcePerSquareMillimeter, "KilogramForcePerSquareMillimeter", "KilogramsForcePerSquareMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 9806650) + ), + new (PressureUnit.KilonewtonPerSquareCentimeter, "KilonewtonPerSquareCentimeter", "KilonewtonsPerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10000000) + ), + new (PressureUnit.KilonewtonPerSquareMeter, "KilonewtonPerSquareMeter", "KilonewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (PressureUnit.KilonewtonPerSquareMillimeter, "KilonewtonPerSquareMillimeter", "KilonewtonsPerSquareMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (PressureUnit.Kilopascal, "Kilopascal", "Kilopascals", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (PressureUnit.KilopoundForcePerSquareFoot, "KilopoundForcePerSquareFoot", "KilopoundsForcePerSquareFoot", BaseUnits.Undefined, + new QuantityValue(185806080, 8896443230521) + ), + new (PressureUnit.KilopoundForcePerSquareInch, "KilopoundForcePerSquareInch", "KilopoundsForcePerSquareInch", BaseUnits.Undefined, + new QuantityValue(1290320, 8896443230521) + ), + new (PressureUnit.KilopoundForcePerSquareMil, "KilopoundForcePerSquareMil", "KilopoundsForcePerSquareMil", BaseUnits.Undefined, + new QuantityValue(16129, 111205540381512500) + ), + new (PressureUnit.Megabar, "Megabar", "Megabars", BaseUnits.Undefined, + new QuantityValue(1, 100000000000) + ), + new (PressureUnit.MeganewtonPerSquareMeter, "MeganewtonPerSquareMeter", "MeganewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (PressureUnit.Megapascal, "Megapascal", "Megapascals", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (PressureUnit.MeterOfHead, "MeterOfHead", "MetersOfHead", BaseUnits.Undefined, + new QuantityValue(125000, 1225517429) + ), + new (PressureUnit.MeterOfWaterColumn, "MeterOfWaterColumn", "MetersOfWaterColumn", BaseUnits.Undefined, + new QuantityValue(20, 196133) + ), + new (PressureUnit.Microbar, "Microbar", "Microbars", BaseUnits.Undefined, + 10 + ), + new (PressureUnit.Micropascal, "Micropascal", "Micropascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), + 1000000 + ), + new (PressureUnit.Millibar, "Millibar", "Millibars", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (PressureUnit.MilligramForcePerSquareFoot, "MilligramForcePerSquareFoot", "MilligramsForcePerSquareFoot", BaseUnits.Undefined, + new QuantityValue(1858060800, 196133) + ), + new (PressureUnit.MilligramForcePerSquareMeter, "MilligramForcePerSquareMeter", "MilligramsForcePerSquareMeter", BaseUnits.Undefined, + new QuantityValue(20000000000, 196133) + ), + new (PressureUnit.MillimeterOfMercury, "MillimeterOfMercury", "MillimetersOfMercury", BaseUnits.Undefined, + new QuantityValue(200000000, 26664477483) + ), + new (PressureUnit.MillimeterOfWaterColumn, "MillimeterOfWaterColumn", "MillimetersOfWaterColumn", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + new (PressureUnit.Millipascal, "Millipascal", "Millipascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), + 1000 + ), + new (PressureUnit.Millitorr, "Millitorr", "Millitorrs", BaseUnits.Undefined, + new QuantityValue(30400, 4053) + ), + new (PressureUnit.NewtonPerSquareCentimeter, "NewtonPerSquareCentimeter", "NewtonsPerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (PressureUnit.NewtonPerSquareMeter, "NewtonPerSquareMeter", "NewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + 1 + ), + new (PressureUnit.NewtonPerSquareMillimeter, "NewtonPerSquareMillimeter", "NewtonsPerSquareMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (PressureUnit.Pascal, "Pascal", "Pascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (PressureUnit.PoundForcePerSquareFoot, "PoundForcePerSquareFoot", "PoundsForcePerSquareFoot", BaseUnits.Undefined, + new QuantityValue(185806080000, 8896443230521) + ), + new (PressureUnit.PoundForcePerSquareInch, "PoundForcePerSquareInch", "PoundsForcePerSquareInch", BaseUnits.Undefined, + new QuantityValue(1290320000, 8896443230521) + ), + new (PressureUnit.PoundForcePerSquareMil, "PoundForcePerSquareMil", "PoundsForcePerSquareMil", BaseUnits.Undefined, + new QuantityValue(32258, 222411080763025) + ), + new (PressureUnit.PoundPerInchSecondSquared, "PoundPerInchSecondSquared", "PoundsPerInchSecondSquared", BaseUnits.Undefined, + new QuantityValue(498177842352, 8896443230521) + ), + new (PressureUnit.TechnicalAtmosphere, "TechnicalAtmosphere", "TechnicalAtmospheres", BaseUnits.Undefined, + new QuantityValue(2, 196133) + ), + new (PressureUnit.TonneForcePerSquareCentimeter, "TonneForcePerSquareCentimeter", "TonnesForcePerSquareCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 98066500) + ), + new (PressureUnit.TonneForcePerSquareMeter, "TonneForcePerSquareMeter", "TonnesForcePerSquareMeter", BaseUnits.Undefined, + new QuantityValue(20, 196133) + ), + new (PressureUnit.TonneForcePerSquareMillimeter, "TonneForcePerSquareMillimeter", "TonnesForcePerSquareMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 9806650000) + ), + new (PressureUnit.Torr, "Torr", "Torrs", BaseUnits.Undefined, + new QuantityValue(152, 20265) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs index e25c55fafd..21f991e417 100644 --- a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs @@ -117,58 +117,61 @@ public static PressureChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for PressureChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (PressureChangeRateUnit.AtmospherePerSecond, "AtmospherePerSecond", "AtmospheresPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 101325) - ); - yield return new (PressureChangeRateUnit.BarPerMinute, "BarPerMinute", "BarsPerMinute", BaseUnits.Undefined, - new QuantityValue(3, 5000) - ); - yield return new (PressureChangeRateUnit.BarPerSecond, "BarPerSecond", "BarsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (PressureChangeRateUnit.KilopascalPerMinute, "KilopascalPerMinute", "KilopascalsPerMinute", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(3, 50) - ); - yield return new (PressureChangeRateUnit.KilopascalPerSecond, "KilopascalPerSecond", "KilopascalsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute, "KilopoundForcePerSquareInchPerMinute", "KilopoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound, time: DurationUnit.Minute), - new QuantityValue(77419200, 8896443230521) - ); - yield return new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond, "KilopoundForcePerSquareInchPerSecond", "KilopoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound, time: DurationUnit.Second), - new QuantityValue(1290320, 8896443230521) - ); - yield return new (PressureChangeRateUnit.MegapascalPerMinute, "MegapascalPerMinute", "MegapascalsPerMinute", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(3, 50000) - ); - yield return new (PressureChangeRateUnit.MegapascalPerSecond, "MegapascalPerSecond", "MegapascalsPerSecond", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute, "MegapoundForcePerSquareInchPerMinute", "MegapoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Megapound, time: DurationUnit.Minute), - new QuantityValue(387096, 44482216152605) - ); - yield return new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond, "MegapoundForcePerSquareInchPerSecond", "MegapoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Megapound, time: DurationUnit.Second), - new QuantityValue(32258, 222411080763025) - ); - yield return new (PressureChangeRateUnit.MillibarPerMinute, "MillibarPerMinute", "MillibarsPerMinute", BaseUnits.Undefined, - new QuantityValue(3, 5) - ); - yield return new (PressureChangeRateUnit.MillibarPerSecond, "MillibarPerSecond", "MillibarsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (PressureChangeRateUnit.MillimeterOfMercuryPerSecond, "MillimeterOfMercuryPerSecond", "MillimetersOfMercuryPerSecond", BaseUnits.Undefined, - new QuantityValue(200000000, 26664477483) - ); - yield return new (PressureChangeRateUnit.PascalPerMinute, "PascalPerMinute", "PascalsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - 60 - ); - yield return new (PressureChangeRateUnit.PascalPerSecond, "PascalPerSecond", "PascalsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (PressureChangeRateUnit.PoundForcePerSquareInchPerMinute, "PoundForcePerSquareInchPerMinute", "PoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound, time: DurationUnit.Minute), - new QuantityValue(77419200000, 8896443230521) - ); - yield return new (PressureChangeRateUnit.PoundForcePerSquareInchPerSecond, "PoundForcePerSquareInchPerSecond", "PoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound, time: DurationUnit.Second), - new QuantityValue(1290320000, 8896443230521) - ); + return new UnitDefinition[] + { + new (PressureChangeRateUnit.AtmospherePerSecond, "AtmospherePerSecond", "AtmospheresPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 101325) + ), + new (PressureChangeRateUnit.BarPerMinute, "BarPerMinute", "BarsPerMinute", BaseUnits.Undefined, + new QuantityValue(3, 5000) + ), + new (PressureChangeRateUnit.BarPerSecond, "BarPerSecond", "BarsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 100000) + ), + new (PressureChangeRateUnit.KilopascalPerMinute, "KilopascalPerMinute", "KilopascalsPerMinute", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), + new QuantityValue(3, 50) + ), + new (PressureChangeRateUnit.KilopascalPerSecond, "KilopascalPerSecond", "KilopascalsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute, "KilopoundForcePerSquareInchPerMinute", "KilopoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound, time: DurationUnit.Minute), + new QuantityValue(77419200, 8896443230521) + ), + new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond, "KilopoundForcePerSquareInchPerSecond", "KilopoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound, time: DurationUnit.Second), + new QuantityValue(1290320, 8896443230521) + ), + new (PressureChangeRateUnit.MegapascalPerMinute, "MegapascalPerMinute", "MegapascalsPerMinute", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Minute), + new QuantityValue(3, 50000) + ), + new (PressureChangeRateUnit.MegapascalPerSecond, "MegapascalPerSecond", "MegapascalsPerSecond", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute, "MegapoundForcePerSquareInchPerMinute", "MegapoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Megapound, time: DurationUnit.Minute), + new QuantityValue(387096, 44482216152605) + ), + new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond, "MegapoundForcePerSquareInchPerSecond", "MegapoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Megapound, time: DurationUnit.Second), + new QuantityValue(32258, 222411080763025) + ), + new (PressureChangeRateUnit.MillibarPerMinute, "MillibarPerMinute", "MillibarsPerMinute", BaseUnits.Undefined, + new QuantityValue(3, 5) + ), + new (PressureChangeRateUnit.MillibarPerSecond, "MillibarPerSecond", "MillibarsPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (PressureChangeRateUnit.MillimeterOfMercuryPerSecond, "MillimeterOfMercuryPerSecond", "MillimetersOfMercuryPerSecond", BaseUnits.Undefined, + new QuantityValue(200000000, 26664477483) + ), + new (PressureChangeRateUnit.PascalPerMinute, "PascalPerMinute", "PascalsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), + 60 + ), + new (PressureChangeRateUnit.PascalPerSecond, "PascalPerSecond", "PascalsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (PressureChangeRateUnit.PoundForcePerSquareInchPerMinute, "PoundForcePerSquareInchPerMinute", "PoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound, time: DurationUnit.Minute), + new QuantityValue(77419200000, 8896443230521) + ), + new (PressureChangeRateUnit.PoundForcePerSquareInchPerSecond, "PoundForcePerSquareInchPerSecond", "PoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound, time: DurationUnit.Second), + new QuantityValue(1290320000, 8896443230521) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs index 16b9849dde..74177006cf 100644 --- a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs @@ -118,22 +118,25 @@ public static RadiationEquivalentDoseInfo CreateDefault(FuncAn of representing the default unit mappings for RadiationEquivalentDose. public static IEnumerable> GetDefaultMappings() { - yield return new (RadiationEquivalentDoseUnit.Microsievert, "Microsievert", "Microsieverts", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000000 - ); - yield return new (RadiationEquivalentDoseUnit.MilliroentgenEquivalentMan, "MilliroentgenEquivalentMan", "MilliroentgensEquivalentMan", BaseUnits.Undefined, - 100000 - ); - yield return new (RadiationEquivalentDoseUnit.Millisievert, "Millisievert", "Millisieverts", BaseUnits.Undefined, - 1000 - ); - yield return new (RadiationEquivalentDoseUnit.Nanosievert, "Nanosievert", "Nanosieverts", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RadiationEquivalentDoseUnit.RoentgenEquivalentMan, "RoentgenEquivalentMan", "RoentgensEquivalentMan", BaseUnits.Undefined, - 100 - ); - yield return new (RadiationEquivalentDoseUnit.Sievert, "Sievert", "Sieverts", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); + return new UnitDefinition[] + { + new (RadiationEquivalentDoseUnit.Microsievert, "Microsievert", "Microsieverts", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), + 1000000 + ), + new (RadiationEquivalentDoseUnit.MilliroentgenEquivalentMan, "MilliroentgenEquivalentMan", "MilliroentgensEquivalentMan", BaseUnits.Undefined, + 100000 + ), + new (RadiationEquivalentDoseUnit.Millisievert, "Millisievert", "Millisieverts", BaseUnits.Undefined, + 1000 + ), + new (RadiationEquivalentDoseUnit.Nanosievert, "Nanosievert", "Nanosieverts", BaseUnits.Undefined, + 1000000000 + ), + new (RadiationEquivalentDoseUnit.RoentgenEquivalentMan, "RoentgenEquivalentMan", "RoentgensEquivalentMan", BaseUnits.Undefined, + 100 + ), + new (RadiationEquivalentDoseUnit.Sievert, "Sievert", "Sieverts", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs index fb88e14f29..10a9b124b8 100644 --- a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs @@ -117,34 +117,37 @@ public static RadiationEquivalentDoseRateInfo CreateDefault(FuncAn of representing the default unit mappings for RadiationEquivalentDoseRate. public static IEnumerable> GetDefaultMappings() { - yield return new (RadiationEquivalentDoseRateUnit.MicrosievertPerHour, "MicrosievertPerHour", "MicrosievertsPerHour", BaseUnits.Undefined, - 3600000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.MicrosievertPerSecond, "MicrosievertPerSecond", "MicrosievertsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour, "MilliroentgenEquivalentManPerHour", "MilliroentgensEquivalentManPerHour", BaseUnits.Undefined, - 360000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.MillisievertPerHour, "MillisievertPerHour", "MillisievertsPerHour", BaseUnits.Undefined, - 3600000 - ); - yield return new (RadiationEquivalentDoseRateUnit.MillisievertPerSecond, "MillisievertPerSecond", "MillisievertsPerSecond", BaseUnits.Undefined, - 1000 - ); - yield return new (RadiationEquivalentDoseRateUnit.NanosievertPerHour, "NanosievertPerHour", "NanosievertsPerHour", BaseUnits.Undefined, - 3600000000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.NanosievertPerSecond, "NanosievertPerSecond", "NanosievertsPerSecond", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour, "RoentgenEquivalentManPerHour", "RoentgensEquivalentManPerHour", BaseUnits.Undefined, - 360000 - ); - yield return new (RadiationEquivalentDoseRateUnit.SievertPerHour, "SievertPerHour", "SievertsPerHour", BaseUnits.Undefined, - 3600 - ); - yield return new (RadiationEquivalentDoseRateUnit.SievertPerSecond, "SievertPerSecond", "SievertsPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); + return new UnitDefinition[] + { + new (RadiationEquivalentDoseRateUnit.MicrosievertPerHour, "MicrosievertPerHour", "MicrosievertsPerHour", BaseUnits.Undefined, + 3600000000 + ), + new (RadiationEquivalentDoseRateUnit.MicrosievertPerSecond, "MicrosievertPerSecond", "MicrosievertsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), + 1000000 + ), + new (RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour, "MilliroentgenEquivalentManPerHour", "MilliroentgensEquivalentManPerHour", BaseUnits.Undefined, + 360000000 + ), + new (RadiationEquivalentDoseRateUnit.MillisievertPerHour, "MillisievertPerHour", "MillisievertsPerHour", BaseUnits.Undefined, + 3600000 + ), + new (RadiationEquivalentDoseRateUnit.MillisievertPerSecond, "MillisievertPerSecond", "MillisievertsPerSecond", BaseUnits.Undefined, + 1000 + ), + new (RadiationEquivalentDoseRateUnit.NanosievertPerHour, "NanosievertPerHour", "NanosievertsPerHour", BaseUnits.Undefined, + 3600000000000 + ), + new (RadiationEquivalentDoseRateUnit.NanosievertPerSecond, "NanosievertPerSecond", "NanosievertsPerSecond", BaseUnits.Undefined, + 1000000000 + ), + new (RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour, "RoentgenEquivalentManPerHour", "RoentgensEquivalentManPerHour", BaseUnits.Undefined, + 360000 + ), + new (RadiationEquivalentDoseRateUnit.SievertPerHour, "SievertPerHour", "SievertsPerHour", BaseUnits.Undefined, + 3600 + ), + new (RadiationEquivalentDoseRateUnit.SievertPerSecond, "SievertPerSecond", "SievertsPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs b/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs index 559bbd243f..65de371039 100644 --- a/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs @@ -116,28 +116,31 @@ public static RadiationExposureInfo CreateDefault(FuncAn of representing the default unit mappings for RadiationExposure. public static IEnumerable> GetDefaultMappings() { - yield return new (RadiationExposureUnit.CoulombPerKilogram, "CoulombPerKilogram", "CoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (RadiationExposureUnit.MicrocoulombPerKilogram, "MicrocoulombPerKilogram", "MicrocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - 1000000 - ); - yield return new (RadiationExposureUnit.Microroentgen, "Microroentgen", "Microroentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - new QuantityValue(500000000000, 129) - ); - yield return new (RadiationExposureUnit.MillicoulombPerKilogram, "MillicoulombPerKilogram", "MillicoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000 - ); - yield return new (RadiationExposureUnit.Milliroentgen, "Milliroentgen", "Milliroentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(500000000, 129) - ); - yield return new (RadiationExposureUnit.NanocoulombPerKilogram, "NanocoulombPerKilogram", "NanocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Nanoampere), - 1000000000 - ); - yield return new (RadiationExposureUnit.PicocoulombPerKilogram, "PicocoulombPerKilogram", "PicocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Picoampere), - 1000000000000 - ); - yield return new (RadiationExposureUnit.Roentgen, "Roentgen", "Roentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(500000, 129) - ); + return new UnitDefinition[] + { + new (RadiationExposureUnit.CoulombPerKilogram, "CoulombPerKilogram", "CoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)), + new (RadiationExposureUnit.MicrocoulombPerKilogram, "MicrocoulombPerKilogram", "MicrocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), + 1000000 + ), + new (RadiationExposureUnit.Microroentgen, "Microroentgen", "Microroentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), + new QuantityValue(500000000000, 129) + ), + new (RadiationExposureUnit.MillicoulombPerKilogram, "MillicoulombPerKilogram", "MillicoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + 1000 + ), + new (RadiationExposureUnit.Milliroentgen, "Milliroentgen", "Milliroentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), + new QuantityValue(500000000, 129) + ), + new (RadiationExposureUnit.NanocoulombPerKilogram, "NanocoulombPerKilogram", "NanocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Nanoampere), + 1000000000 + ), + new (RadiationExposureUnit.PicocoulombPerKilogram, "PicocoulombPerKilogram", "PicocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Picoampere), + 1000000000000 + ), + new (RadiationExposureUnit.Roentgen, "Roentgen", "Roentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), + new QuantityValue(500000, 129) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs b/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs index 54151c6769..9d979d1242 100644 --- a/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs @@ -116,91 +116,94 @@ public static RadioactivityInfo CreateDefault(FuncAn of representing the default unit mappings for Radioactivity. public static IEnumerable> GetDefaultMappings() { - yield return new (RadioactivityUnit.Becquerel, "Becquerel", "Becquerels", new BaseUnits(time: DurationUnit.Second)); - yield return new (RadioactivityUnit.Curie, "Curie", "Curies", new BaseUnits(time: DurationUnit.Second), - new QuantityValue(1, 37000000000) - ); - yield return new (RadioactivityUnit.Exabecquerel, "Exabecquerel", "Exabecquerels", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000000) - ); - yield return new (RadioactivityUnit.Gigabecquerel, "Gigabecquerel", "Gigabecquerels", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, 1000000000) - ); - yield return new (RadioactivityUnit.Gigacurie, "Gigacurie", "Gigacuries", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, new BigInteger(37) * QuantityValue.PowerOfTen(18)) - ); - yield return new (RadioactivityUnit.Gigarutherford, "Gigarutherford", "Gigarutherfords", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, 1000000000000000) - ); - yield return new (RadioactivityUnit.Kilobecquerel, "Kilobecquerel", "Kilobecquerels", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 1000) - ); - yield return new (RadioactivityUnit.Kilocurie, "Kilocurie", "Kilocuries", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 37000000000000) - ); - yield return new (RadioactivityUnit.Kilorutherford, "Kilorutherford", "Kilorutherfords", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (RadioactivityUnit.Megabecquerel, "Megabecquerel", "Megabecquerels", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000) - ); - yield return new (RadioactivityUnit.Megacurie, "Megacurie", "Megacuries", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 37000000000000000) - ); - yield return new (RadioactivityUnit.Megarutherford, "Megarutherford", "Megarutherfords", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000000000) - ); - yield return new (RadioactivityUnit.Microbecquerel, "Microbecquerel", "Microbecquerels", BaseUnits.Undefined, - 1000000 - ); - yield return new (RadioactivityUnit.Microcurie, "Microcurie", "Microcuries", BaseUnits.Undefined, - new QuantityValue(1, 37000) - ); - yield return new (RadioactivityUnit.Microrutherford, "Microrutherford", "Microrutherfords", BaseUnits.Undefined, - 1 - ); - yield return new (RadioactivityUnit.Millibecquerel, "Millibecquerel", "Millibecquerels", BaseUnits.Undefined, - 1000 - ); - yield return new (RadioactivityUnit.Millicurie, "Millicurie", "Millicuries", BaseUnits.Undefined, - new QuantityValue(1, 37000000) - ); - yield return new (RadioactivityUnit.Millirutherford, "Millirutherford", "Millirutherfords", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (RadioactivityUnit.Nanobecquerel, "Nanobecquerel", "Nanobecquerels", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RadioactivityUnit.Nanocurie, "Nanocurie", "Nanocuries", BaseUnits.Undefined, - new QuantityValue(1, 37) - ); - yield return new (RadioactivityUnit.Nanorutherford, "Nanorutherford", "Nanorutherfords", BaseUnits.Undefined, - 1000 - ); - yield return new (RadioactivityUnit.Petabecquerel, "Petabecquerel", "Petabecquerels", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (RadioactivityUnit.Picobecquerel, "Picobecquerel", "Picobecquerels", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (RadioactivityUnit.Picocurie, "Picocurie", "Picocuries", BaseUnits.Undefined, - new QuantityValue(1000, 37) - ); - yield return new (RadioactivityUnit.Picorutherford, "Picorutherford", "Picorutherfords", BaseUnits.Undefined, - 1000000 - ); - yield return new (RadioactivityUnit.Rutherford, "Rutherford", "Rutherfords", new BaseUnits(time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (RadioactivityUnit.Terabecquerel, "Terabecquerel", "Terabecquerels", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, 1000000000000) - ); - yield return new (RadioactivityUnit.Teracurie, "Teracurie", "Teracuries", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, new BigInteger(37) * QuantityValue.PowerOfTen(21)) - ); - yield return new (RadioactivityUnit.Terarutherford, "Terarutherford", "Terarutherfords", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, 1000000000000000000) - ); + return new UnitDefinition[] + { + new (RadioactivityUnit.Becquerel, "Becquerel", "Becquerels", new BaseUnits(time: DurationUnit.Second)), + new (RadioactivityUnit.Curie, "Curie", "Curies", new BaseUnits(time: DurationUnit.Second), + new QuantityValue(1, 37000000000) + ), + new (RadioactivityUnit.Exabecquerel, "Exabecquerel", "Exabecquerels", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000000) + ), + new (RadioactivityUnit.Gigabecquerel, "Gigabecquerel", "Gigabecquerels", new BaseUnits(time: DurationUnit.Nanosecond), + new QuantityValue(1, 1000000000) + ), + new (RadioactivityUnit.Gigacurie, "Gigacurie", "Gigacuries", new BaseUnits(time: DurationUnit.Nanosecond), + new QuantityValue(1, new BigInteger(37) * QuantityValue.PowerOfTen(18)) + ), + new (RadioactivityUnit.Gigarutherford, "Gigarutherford", "Gigarutherfords", new BaseUnits(time: DurationUnit.Nanosecond), + new QuantityValue(1, 1000000000000000) + ), + new (RadioactivityUnit.Kilobecquerel, "Kilobecquerel", "Kilobecquerels", new BaseUnits(time: DurationUnit.Millisecond), + new QuantityValue(1, 1000) + ), + new (RadioactivityUnit.Kilocurie, "Kilocurie", "Kilocuries", new BaseUnits(time: DurationUnit.Millisecond), + new QuantityValue(1, 37000000000000) + ), + new (RadioactivityUnit.Kilorutherford, "Kilorutherford", "Kilorutherfords", new BaseUnits(time: DurationUnit.Millisecond), + new QuantityValue(1, 1000000000) + ), + new (RadioactivityUnit.Megabecquerel, "Megabecquerel", "Megabecquerels", new BaseUnits(time: DurationUnit.Microsecond), + new QuantityValue(1, 1000000) + ), + new (RadioactivityUnit.Megacurie, "Megacurie", "Megacuries", new BaseUnits(time: DurationUnit.Microsecond), + new QuantityValue(1, 37000000000000000) + ), + new (RadioactivityUnit.Megarutherford, "Megarutherford", "Megarutherfords", new BaseUnits(time: DurationUnit.Microsecond), + new QuantityValue(1, 1000000000000) + ), + new (RadioactivityUnit.Microbecquerel, "Microbecquerel", "Microbecquerels", BaseUnits.Undefined, + 1000000 + ), + new (RadioactivityUnit.Microcurie, "Microcurie", "Microcuries", BaseUnits.Undefined, + new QuantityValue(1, 37000) + ), + new (RadioactivityUnit.Microrutherford, "Microrutherford", "Microrutherfords", BaseUnits.Undefined, + 1 + ), + new (RadioactivityUnit.Millibecquerel, "Millibecquerel", "Millibecquerels", BaseUnits.Undefined, + 1000 + ), + new (RadioactivityUnit.Millicurie, "Millicurie", "Millicuries", BaseUnits.Undefined, + new QuantityValue(1, 37000000) + ), + new (RadioactivityUnit.Millirutherford, "Millirutherford", "Millirutherfords", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (RadioactivityUnit.Nanobecquerel, "Nanobecquerel", "Nanobecquerels", BaseUnits.Undefined, + 1000000000 + ), + new (RadioactivityUnit.Nanocurie, "Nanocurie", "Nanocuries", BaseUnits.Undefined, + new QuantityValue(1, 37) + ), + new (RadioactivityUnit.Nanorutherford, "Nanorutherford", "Nanorutherfords", BaseUnits.Undefined, + 1000 + ), + new (RadioactivityUnit.Petabecquerel, "Petabecquerel", "Petabecquerels", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000000) + ), + new (RadioactivityUnit.Picobecquerel, "Picobecquerel", "Picobecquerels", BaseUnits.Undefined, + 1000000000000 + ), + new (RadioactivityUnit.Picocurie, "Picocurie", "Picocuries", BaseUnits.Undefined, + new QuantityValue(1000, 37) + ), + new (RadioactivityUnit.Picorutherford, "Picorutherford", "Picorutherfords", BaseUnits.Undefined, + 1000000 + ), + new (RadioactivityUnit.Rutherford, "Rutherford", "Rutherfords", new BaseUnits(time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (RadioactivityUnit.Terabecquerel, "Terabecquerel", "Terabecquerels", new BaseUnits(time: DurationUnit.Picosecond), + new QuantityValue(1, 1000000000000) + ), + new (RadioactivityUnit.Teracurie, "Teracurie", "Teracuries", new BaseUnits(time: DurationUnit.Picosecond), + new QuantityValue(1, new BigInteger(37) * QuantityValue.PowerOfTen(21)) + ), + new (RadioactivityUnit.Terarutherford, "Terarutherford", "Terarutherfords", new BaseUnits(time: DurationUnit.Picosecond), + new QuantityValue(1, 1000000000000000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs index ab58fd3757..8b24c32a9f 100644 --- a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs @@ -120,22 +120,25 @@ public static RatioInfo CreateDefault(Func /// An of representing the default unit mappings for Ratio. public static IEnumerable> GetDefaultMappings() { - yield return new (RatioUnit.DecimalFraction, "DecimalFraction", "DecimalFractions", BaseUnits.Undefined); - yield return new (RatioUnit.PartPerBillion, "PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RatioUnit.PartPerMillion, "PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, - 1000000 - ); - yield return new (RatioUnit.PartPerThousand, "PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, - 1000 - ); - yield return new (RatioUnit.PartPerTrillion, "PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (RatioUnit.Percent, "Percent", "Percent", BaseUnits.Undefined, - 100 - ); + return new UnitDefinition[] + { + new (RatioUnit.DecimalFraction, "DecimalFraction", "DecimalFractions", BaseUnits.Undefined), + new (RatioUnit.PartPerBillion, "PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, + 1000000000 + ), + new (RatioUnit.PartPerMillion, "PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, + 1000000 + ), + new (RatioUnit.PartPerThousand, "PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, + 1000 + ), + new (RatioUnit.PartPerTrillion, "PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, + 1000000000000 + ), + new (RatioUnit.Percent, "Percent", "Percent", BaseUnits.Undefined, + 100 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs index 1371abb5a7..cf918002f1 100644 --- a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs @@ -117,10 +117,13 @@ public static RatioChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for RatioChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (RatioChangeRateUnit.DecimalFractionPerSecond, "DecimalFractionPerSecond", "DecimalFractionsPerSecond", new BaseUnits(time: DurationUnit.Second)); - yield return new (RatioChangeRateUnit.PercentPerSecond, "PercentPerSecond", "PercentsPerSecond", BaseUnits.Undefined, - 100 - ); + return new UnitDefinition[] + { + new (RatioChangeRateUnit.DecimalFractionPerSecond, "DecimalFractionPerSecond", "DecimalFractionsPerSecond", new BaseUnits(time: DurationUnit.Second)), + new (RatioChangeRateUnit.PercentPerSecond, "PercentPerSecond", "PercentsPerSecond", BaseUnits.Undefined, + 100 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs b/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs index 43983fa83a..c463fe9d79 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs @@ -124,37 +124,40 @@ public static ReciprocalAreaInfo CreateDefault(FuncAn of representing the default unit mappings for ReciprocalArea. public static IEnumerable> GetDefaultMappings() { - yield return new (ReciprocalAreaUnit.InverseSquareCentimeter, "InverseSquareCentimeter", "InverseSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - new QuantityValue(1, 10000) - ); - yield return new (ReciprocalAreaUnit.InverseSquareDecimeter, "InverseSquareDecimeter", "InverseSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter), - new QuantityValue(1, 100) - ); - yield return new (ReciprocalAreaUnit.InverseSquareFoot, "InverseSquareFoot", "InverseSquareFeet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(145161, 1562500) - ); - yield return new (ReciprocalAreaUnit.InverseSquareInch, "InverseSquareInch", "InverseSquareInches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(16129, 25000000) - ); - yield return new (ReciprocalAreaUnit.InverseSquareKilometer, "InverseSquareKilometer", "InverseSquareKilometers", new BaseUnits(length: LengthUnit.Kilometer), - 1000000 - ); - yield return new (ReciprocalAreaUnit.InverseSquareMeter, "InverseSquareMeter", "InverseSquareMeters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (ReciprocalAreaUnit.InverseSquareMicrometer, "InverseSquareMicrometer", "InverseSquareMicrometers", new BaseUnits(length: LengthUnit.Micrometer), - new QuantityValue(1, 1000000000000) - ); - yield return new (ReciprocalAreaUnit.InverseSquareMile, "InverseSquareMile", "InverseSquareMiles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(40468564224, 15625) - ); - yield return new (ReciprocalAreaUnit.InverseSquareMillimeter, "InverseSquareMillimeter", "InverseSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter), - new QuantityValue(1, 1000000) - ); - yield return new (ReciprocalAreaUnit.InverseSquareYard, "InverseSquareYard", "InverseSquareYards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1306449, 1562500) - ); - yield return new (ReciprocalAreaUnit.InverseUsSurveySquareFoot, "InverseUsSurveySquareFoot", "InverseUsSurveySquareFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), - new QuantityValue(1440000, 15499969) - ); + return new UnitDefinition[] + { + new (ReciprocalAreaUnit.InverseSquareCentimeter, "InverseSquareCentimeter", "InverseSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), + new QuantityValue(1, 10000) + ), + new (ReciprocalAreaUnit.InverseSquareDecimeter, "InverseSquareDecimeter", "InverseSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter), + new QuantityValue(1, 100) + ), + new (ReciprocalAreaUnit.InverseSquareFoot, "InverseSquareFoot", "InverseSquareFeet", new BaseUnits(length: LengthUnit.Foot), + new QuantityValue(145161, 1562500) + ), + new (ReciprocalAreaUnit.InverseSquareInch, "InverseSquareInch", "InverseSquareInches", new BaseUnits(length: LengthUnit.Inch), + new QuantityValue(16129, 25000000) + ), + new (ReciprocalAreaUnit.InverseSquareKilometer, "InverseSquareKilometer", "InverseSquareKilometers", new BaseUnits(length: LengthUnit.Kilometer), + 1000000 + ), + new (ReciprocalAreaUnit.InverseSquareMeter, "InverseSquareMeter", "InverseSquareMeters", new BaseUnits(length: LengthUnit.Meter)), + new (ReciprocalAreaUnit.InverseSquareMicrometer, "InverseSquareMicrometer", "InverseSquareMicrometers", new BaseUnits(length: LengthUnit.Micrometer), + new QuantityValue(1, 1000000000000) + ), + new (ReciprocalAreaUnit.InverseSquareMile, "InverseSquareMile", "InverseSquareMiles", new BaseUnits(length: LengthUnit.Mile), + new QuantityValue(40468564224, 15625) + ), + new (ReciprocalAreaUnit.InverseSquareMillimeter, "InverseSquareMillimeter", "InverseSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter), + new QuantityValue(1, 1000000) + ), + new (ReciprocalAreaUnit.InverseSquareYard, "InverseSquareYard", "InverseSquareYards", new BaseUnits(length: LengthUnit.Yard), + new QuantityValue(1306449, 1562500) + ), + new (ReciprocalAreaUnit.InverseUsSurveySquareFoot, "InverseUsSurveySquareFoot", "InverseUsSurveySquareFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), + new QuantityValue(1440000, 15499969) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs index 941da74742..6e97d3da52 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs @@ -126,34 +126,37 @@ public static ReciprocalLengthInfo CreateDefault(FuncAn of representing the default unit mappings for ReciprocalLength. public static IEnumerable> GetDefaultMappings() { - yield return new (ReciprocalLengthUnit.InverseCentimeter, "InverseCentimeter", "InverseCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - new QuantityValue(1, 100) - ); - yield return new (ReciprocalLengthUnit.InverseFoot, "InverseFoot", "InverseFeet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(381, 1250) - ); - yield return new (ReciprocalLengthUnit.InverseInch, "InverseInch", "InverseInches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(127, 5000) - ); - yield return new (ReciprocalLengthUnit.InverseMeter, "InverseMeter", "InverseMeters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (ReciprocalLengthUnit.InverseMicroinch, "InverseMicroinch", "InverseMicroinches", new BaseUnits(length: LengthUnit.Microinch), - new QuantityValue(127, 5000000000) - ); - yield return new (ReciprocalLengthUnit.InverseMil, "InverseMil", "InverseMils", new BaseUnits(length: LengthUnit.Mil), - new QuantityValue(127, 5000000) - ); - yield return new (ReciprocalLengthUnit.InverseMile, "InverseMile", "InverseMiles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(201168, 125) - ); - yield return new (ReciprocalLengthUnit.InverseMillimeter, "InverseMillimeter", "InverseMillimeters", new BaseUnits(length: LengthUnit.Millimeter), - new QuantityValue(1, 1000) - ); - yield return new (ReciprocalLengthUnit.InverseUsSurveyFoot, "InverseUsSurveyFoot", "InverseUsSurveyFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), - new QuantityValue(1200, 3937) - ); - yield return new (ReciprocalLengthUnit.InverseYard, "InverseYard", "InverseYards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1143, 1250) - ); + return new UnitDefinition[] + { + new (ReciprocalLengthUnit.InverseCentimeter, "InverseCentimeter", "InverseCentimeters", new BaseUnits(length: LengthUnit.Centimeter), + new QuantityValue(1, 100) + ), + new (ReciprocalLengthUnit.InverseFoot, "InverseFoot", "InverseFeet", new BaseUnits(length: LengthUnit.Foot), + new QuantityValue(381, 1250) + ), + new (ReciprocalLengthUnit.InverseInch, "InverseInch", "InverseInches", new BaseUnits(length: LengthUnit.Inch), + new QuantityValue(127, 5000) + ), + new (ReciprocalLengthUnit.InverseMeter, "InverseMeter", "InverseMeters", new BaseUnits(length: LengthUnit.Meter)), + new (ReciprocalLengthUnit.InverseMicroinch, "InverseMicroinch", "InverseMicroinches", new BaseUnits(length: LengthUnit.Microinch), + new QuantityValue(127, 5000000000) + ), + new (ReciprocalLengthUnit.InverseMil, "InverseMil", "InverseMils", new BaseUnits(length: LengthUnit.Mil), + new QuantityValue(127, 5000000) + ), + new (ReciprocalLengthUnit.InverseMile, "InverseMile", "InverseMiles", new BaseUnits(length: LengthUnit.Mile), + new QuantityValue(201168, 125) + ), + new (ReciprocalLengthUnit.InverseMillimeter, "InverseMillimeter", "InverseMillimeters", new BaseUnits(length: LengthUnit.Millimeter), + new QuantityValue(1, 1000) + ), + new (ReciprocalLengthUnit.InverseUsSurveyFoot, "InverseUsSurveyFoot", "InverseUsSurveyFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), + new QuantityValue(1200, 3937) + ), + new (ReciprocalLengthUnit.InverseYard, "InverseYard", "InverseYards", new BaseUnits(length: LengthUnit.Yard), + new QuantityValue(1143, 1250) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs b/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs index 19b5fc29e9..a7ecc03d03 100644 --- a/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs @@ -116,7 +116,10 @@ public static RelativeHumidityInfo CreateDefault(FuncAn of representing the default unit mappings for RelativeHumidity. public static IEnumerable> GetDefaultMappings() { - yield return new (RelativeHumidityUnit.Percent, "Percent", "Percent", BaseUnits.Undefined); + return new UnitDefinition[] + { + new (RelativeHumidityUnit.Percent, "Percent", "Percent", BaseUnits.Undefined), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs index fad8cfbb48..4e2f4d5cb9 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs @@ -117,16 +117,19 @@ public static RotationalAccelerationInfo CreateDefault(FuncAn of representing the default unit mappings for RotationalAcceleration. public static IEnumerable> GetDefaultMappings() { - yield return new (RotationalAccelerationUnit.DegreePerSecondSquared, "DegreePerSecondSquared", "DegreesPerSecondSquared", BaseUnits.Undefined, - new QuantityValue(180000000000000000, 3141592653589793) - ); - yield return new (RotationalAccelerationUnit.RadianPerSecondSquared, "RadianPerSecondSquared", "RadiansPerSecondSquared", new BaseUnits(time: DurationUnit.Second)); - yield return new (RotationalAccelerationUnit.RevolutionPerMinutePerSecond, "RevolutionPerMinutePerSecond", "RevolutionsPerMinutePerSecond", BaseUnits.Undefined, - new QuantityValue(30000000000000000, 3141592653589793) - ); - yield return new (RotationalAccelerationUnit.RevolutionPerSecondSquared, "RevolutionPerSecondSquared", "RevolutionsPerSecondSquared", BaseUnits.Undefined, - new QuantityValue(500000000000000, 3141592653589793) - ); + return new UnitDefinition[] + { + new (RotationalAccelerationUnit.DegreePerSecondSquared, "DegreePerSecondSquared", "DegreesPerSecondSquared", BaseUnits.Undefined, + new QuantityValue(180000000000000000, 3141592653589793) + ), + new (RotationalAccelerationUnit.RadianPerSecondSquared, "RadianPerSecondSquared", "RadiansPerSecondSquared", new BaseUnits(time: DurationUnit.Second)), + new (RotationalAccelerationUnit.RevolutionPerMinutePerSecond, "RevolutionPerMinutePerSecond", "RevolutionsPerMinutePerSecond", BaseUnits.Undefined, + new QuantityValue(30000000000000000, 3141592653589793) + ), + new (RotationalAccelerationUnit.RevolutionPerSecondSquared, "RevolutionPerSecondSquared", "RevolutionsPerSecondSquared", BaseUnits.Undefined, + new QuantityValue(500000000000000, 3141592653589793) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs index 30d6665ad8..1e9ae458ef 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs @@ -120,43 +120,46 @@ public static RotationalSpeedInfo CreateDefault(FuncAn of representing the default unit mappings for RotationalSpeed. public static IEnumerable> GetDefaultMappings() { - yield return new (RotationalSpeedUnit.CentiradianPerSecond, "CentiradianPerSecond", "CentiradiansPerSecond", BaseUnits.Undefined, - 100 - ); - yield return new (RotationalSpeedUnit.DeciradianPerSecond, "DeciradianPerSecond", "DeciradiansPerSecond", BaseUnits.Undefined, - 10 - ); - yield return new (RotationalSpeedUnit.DegreePerMinute, "DegreePerMinute", "DegreesPerMinute", BaseUnits.Undefined, - new QuantityValue(new BigInteger(108) * QuantityValue.PowerOfTen(17), 3141592653589793) - ); - yield return new (RotationalSpeedUnit.DegreePerSecond, "DegreePerSecond", "DegreesPerSecond", BaseUnits.Undefined, - new QuantityValue(180000000000000000, 3141592653589793) - ); - yield return new (RotationalSpeedUnit.MicrodegreePerSecond, "MicrodegreePerSecond", "MicrodegreesPerSecond", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(22), 3141592653589793) - ); - yield return new (RotationalSpeedUnit.MicroradianPerSecond, "MicroradianPerSecond", "MicroradiansPerSecond", BaseUnits.Undefined, - 1000000 - ); - yield return new (RotationalSpeedUnit.MillidegreePerSecond, "MillidegreePerSecond", "MillidegreesPerSecond", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(19), 3141592653589793) - ); - yield return new (RotationalSpeedUnit.MilliradianPerSecond, "MilliradianPerSecond", "MilliradiansPerSecond", BaseUnits.Undefined, - 1000 - ); - yield return new (RotationalSpeedUnit.NanodegreePerSecond, "NanodegreePerSecond", "NanodegreesPerSecond", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(25), 3141592653589793) - ); - yield return new (RotationalSpeedUnit.NanoradianPerSecond, "NanoradianPerSecond", "NanoradiansPerSecond", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RotationalSpeedUnit.RadianPerSecond, "RadianPerSecond", "RadiansPerSecond", new BaseUnits(time: DurationUnit.Second)); - yield return new (RotationalSpeedUnit.RevolutionPerMinute, "RevolutionPerMinute", "RevolutionsPerMinute", BaseUnits.Undefined, - new QuantityValue(30000000000000000, 3141592653589793) - ); - yield return new (RotationalSpeedUnit.RevolutionPerSecond, "RevolutionPerSecond", "RevolutionsPerSecond", BaseUnits.Undefined, - new QuantityValue(500000000000000, 3141592653589793) - ); + return new UnitDefinition[] + { + new (RotationalSpeedUnit.CentiradianPerSecond, "CentiradianPerSecond", "CentiradiansPerSecond", BaseUnits.Undefined, + 100 + ), + new (RotationalSpeedUnit.DeciradianPerSecond, "DeciradianPerSecond", "DeciradiansPerSecond", BaseUnits.Undefined, + 10 + ), + new (RotationalSpeedUnit.DegreePerMinute, "DegreePerMinute", "DegreesPerMinute", BaseUnits.Undefined, + new QuantityValue(new BigInteger(108) * QuantityValue.PowerOfTen(17), 3141592653589793) + ), + new (RotationalSpeedUnit.DegreePerSecond, "DegreePerSecond", "DegreesPerSecond", BaseUnits.Undefined, + new QuantityValue(180000000000000000, 3141592653589793) + ), + new (RotationalSpeedUnit.MicrodegreePerSecond, "MicrodegreePerSecond", "MicrodegreesPerSecond", BaseUnits.Undefined, + new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(22), 3141592653589793) + ), + new (RotationalSpeedUnit.MicroradianPerSecond, "MicroradianPerSecond", "MicroradiansPerSecond", BaseUnits.Undefined, + 1000000 + ), + new (RotationalSpeedUnit.MillidegreePerSecond, "MillidegreePerSecond", "MillidegreesPerSecond", BaseUnits.Undefined, + new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(19), 3141592653589793) + ), + new (RotationalSpeedUnit.MilliradianPerSecond, "MilliradianPerSecond", "MilliradiansPerSecond", BaseUnits.Undefined, + 1000 + ), + new (RotationalSpeedUnit.NanodegreePerSecond, "NanodegreePerSecond", "NanodegreesPerSecond", BaseUnits.Undefined, + new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(25), 3141592653589793) + ), + new (RotationalSpeedUnit.NanoradianPerSecond, "NanoradianPerSecond", "NanoradiansPerSecond", BaseUnits.Undefined, + 1000000000 + ), + new (RotationalSpeedUnit.RadianPerSecond, "RadianPerSecond", "RadiansPerSecond", new BaseUnits(time: DurationUnit.Second)), + new (RotationalSpeedUnit.RevolutionPerMinute, "RevolutionPerMinute", "RevolutionsPerMinute", BaseUnits.Undefined, + new QuantityValue(30000000000000000, 3141592653589793) + ), + new (RotationalSpeedUnit.RevolutionPerSecond, "RevolutionPerSecond", "RevolutionsPerSecond", BaseUnits.Undefined, + new QuantityValue(500000000000000, 3141592653589793) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs index 3d1253d943..d4e986db90 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs @@ -119,106 +119,109 @@ public static RotationalStiffnessInfo CreateDefault(FuncAn of representing the default unit mappings for RotationalStiffness. public static IEnumerable> GetDefaultMappings() { - yield return new (RotationalStiffnessUnit.CentinewtonMeterPerDegree, "CentinewtonMeterPerDegree", "CentinewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 1800000000000000) - ); - yield return new (RotationalStiffnessUnit.CentinewtonMillimeterPerDegree, "CentinewtonMillimeterPerDegree", "CentinewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 1800000000000) - ); - yield return new (RotationalStiffnessUnit.CentinewtonMillimeterPerRadian, "CentinewtonMillimeterPerRadian", "CentinewtonMillimetersPerRadian", BaseUnits.Undefined, - 100000 - ); - yield return new (RotationalStiffnessUnit.DecanewtonMeterPerDegree, "DecanewtonMeterPerDegree", "DecanewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 1800000000000000000) - ); - yield return new (RotationalStiffnessUnit.DecanewtonMillimeterPerDegree, "DecanewtonMillimeterPerDegree", "DecanewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 1800000000000000) - ); - yield return new (RotationalStiffnessUnit.DecanewtonMillimeterPerRadian, "DecanewtonMillimeterPerRadian", "DecanewtonMillimetersPerRadian", BaseUnits.Undefined, - 100 - ); - yield return new (RotationalStiffnessUnit.DecinewtonMeterPerDegree, "DecinewtonMeterPerDegree", "DecinewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 18000000000000000) - ); - yield return new (RotationalStiffnessUnit.DecinewtonMillimeterPerDegree, "DecinewtonMillimeterPerDegree", "DecinewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 18000000000000) - ); - yield return new (RotationalStiffnessUnit.DecinewtonMillimeterPerRadian, "DecinewtonMillimeterPerRadian", "DecinewtonMillimetersPerRadian", BaseUnits.Undefined, - 10000 - ); - yield return new (RotationalStiffnessUnit.KilonewtonMeterPerDegree, "KilonewtonMeterPerDegree", "KilonewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(19)) - ); - yield return new (RotationalStiffnessUnit.KilonewtonMeterPerRadian, "KilonewtonMeterPerRadian", "KilonewtonMetersPerRadian", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (RotationalStiffnessUnit.KilonewtonMillimeterPerDegree, "KilonewtonMillimeterPerDegree", "KilonewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000000000) - ); - yield return new (RotationalStiffnessUnit.KilonewtonMillimeterPerRadian, "KilonewtonMillimeterPerRadian", "KilonewtonMillimetersPerRadian", BaseUnits.Undefined, - 1 - ); - yield return new (RotationalStiffnessUnit.KilopoundForceFootPerDegrees, "KilopoundForceFootPerDegrees", "KilopoundForceFeetPerDegrees", BaseUnits.Undefined, - new QuantityValue(3141592653589793, QuantityValue.PowerOfTen(3) * new BigInteger(244047230699652072)) - ); - yield return new (RotationalStiffnessUnit.KilopoundForceFootPerRadian, "KilopoundForceFootPerRadian", "KilopoundForceFeetPerRadian", BaseUnits.Undefined, - new QuantityValue(2500000000000, 3389544870828501) - ); - yield return new (RotationalStiffnessUnit.MeganewtonMeterPerDegree, "MeganewtonMeterPerDegree", "MeganewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(22)) - ); - yield return new (RotationalStiffnessUnit.MeganewtonMeterPerRadian, "MeganewtonMeterPerRadian", "MeganewtonMetersPerRadian", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (RotationalStiffnessUnit.MeganewtonMillimeterPerDegree, "MeganewtonMillimeterPerDegree", "MeganewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(19)) - ); - yield return new (RotationalStiffnessUnit.MeganewtonMillimeterPerRadian, "MeganewtonMillimeterPerRadian", "MeganewtonMillimetersPerRadian", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (RotationalStiffnessUnit.MicronewtonMeterPerDegree, "MicronewtonMeterPerDegree", "MicronewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000) - ); - yield return new (RotationalStiffnessUnit.MicronewtonMillimeterPerDegree, "MicronewtonMillimeterPerDegree", "MicronewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000) - ); - yield return new (RotationalStiffnessUnit.MicronewtonMillimeterPerRadian, "MicronewtonMillimeterPerRadian", "MicronewtonMillimetersPerRadian", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RotationalStiffnessUnit.MillinewtonMeterPerDegree, "MillinewtonMeterPerDegree", "MillinewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000000) - ); - yield return new (RotationalStiffnessUnit.MillinewtonMillimeterPerDegree, "MillinewtonMillimeterPerDegree", "MillinewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000) - ); - yield return new (RotationalStiffnessUnit.MillinewtonMillimeterPerRadian, "MillinewtonMillimeterPerRadian", "MillinewtonMillimetersPerRadian", BaseUnits.Undefined, - 1000000 - ); - yield return new (RotationalStiffnessUnit.NanonewtonMeterPerDegree, "NanonewtonMeterPerDegree", "NanonewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000) - ); - yield return new (RotationalStiffnessUnit.NanonewtonMillimeterPerDegree, "NanonewtonMillimeterPerDegree", "NanonewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000) - ); - yield return new (RotationalStiffnessUnit.NanonewtonMillimeterPerRadian, "NanonewtonMillimeterPerRadian", "NanonewtonMillimetersPerRadian", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (RotationalStiffnessUnit.NewtonMeterPerDegree, "NewtonMeterPerDegree", "NewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000000000) - ); - yield return new (RotationalStiffnessUnit.NewtonMeterPerRadian, "NewtonMeterPerRadian", "NewtonMetersPerRadian", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (RotationalStiffnessUnit.NewtonMillimeterPerDegree, "NewtonMillimeterPerDegree", "NewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000000) - ); - yield return new (RotationalStiffnessUnit.NewtonMillimeterPerRadian, "NewtonMillimeterPerRadian", "NewtonMillimetersPerRadian", BaseUnits.Undefined, - 1000 - ); - yield return new (RotationalStiffnessUnit.PoundForceFeetPerRadian, "PoundForceFeetPerRadian", "PoundForceFeetPerRadian", BaseUnits.Undefined, - new QuantityValue(2500000000000000, 3389544870828501) - ); - yield return new (RotationalStiffnessUnit.PoundForceFootPerDegrees, "PoundForceFootPerDegrees", "PoundForceFeetPerDegrees", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 244047230699652072) - ); + return new UnitDefinition[] + { + new (RotationalStiffnessUnit.CentinewtonMeterPerDegree, "CentinewtonMeterPerDegree", "CentinewtonMetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 1800000000000000) + ), + new (RotationalStiffnessUnit.CentinewtonMillimeterPerDegree, "CentinewtonMillimeterPerDegree", "CentinewtonMillimetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 1800000000000) + ), + new (RotationalStiffnessUnit.CentinewtonMillimeterPerRadian, "CentinewtonMillimeterPerRadian", "CentinewtonMillimetersPerRadian", BaseUnits.Undefined, + 100000 + ), + new (RotationalStiffnessUnit.DecanewtonMeterPerDegree, "DecanewtonMeterPerDegree", "DecanewtonMetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 1800000000000000000) + ), + new (RotationalStiffnessUnit.DecanewtonMillimeterPerDegree, "DecanewtonMillimeterPerDegree", "DecanewtonMillimetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 1800000000000000) + ), + new (RotationalStiffnessUnit.DecanewtonMillimeterPerRadian, "DecanewtonMillimeterPerRadian", "DecanewtonMillimetersPerRadian", BaseUnits.Undefined, + 100 + ), + new (RotationalStiffnessUnit.DecinewtonMeterPerDegree, "DecinewtonMeterPerDegree", "DecinewtonMetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 18000000000000000) + ), + new (RotationalStiffnessUnit.DecinewtonMillimeterPerDegree, "DecinewtonMillimeterPerDegree", "DecinewtonMillimetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 18000000000000) + ), + new (RotationalStiffnessUnit.DecinewtonMillimeterPerRadian, "DecinewtonMillimeterPerRadian", "DecinewtonMillimetersPerRadian", BaseUnits.Undefined, + 10000 + ), + new (RotationalStiffnessUnit.KilonewtonMeterPerDegree, "KilonewtonMeterPerDegree", "KilonewtonMetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(19)) + ), + new (RotationalStiffnessUnit.KilonewtonMeterPerRadian, "KilonewtonMeterPerRadian", "KilonewtonMetersPerRadian", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (RotationalStiffnessUnit.KilonewtonMillimeterPerDegree, "KilonewtonMillimeterPerDegree", "KilonewtonMillimetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 180000000000000000) + ), + new (RotationalStiffnessUnit.KilonewtonMillimeterPerRadian, "KilonewtonMillimeterPerRadian", "KilonewtonMillimetersPerRadian", BaseUnits.Undefined, + 1 + ), + new (RotationalStiffnessUnit.KilopoundForceFootPerDegrees, "KilopoundForceFootPerDegrees", "KilopoundForceFeetPerDegrees", BaseUnits.Undefined, + new QuantityValue(3141592653589793, QuantityValue.PowerOfTen(3) * new BigInteger(244047230699652072)) + ), + new (RotationalStiffnessUnit.KilopoundForceFootPerRadian, "KilopoundForceFootPerRadian", "KilopoundForceFeetPerRadian", BaseUnits.Undefined, + new QuantityValue(2500000000000, 3389544870828501) + ), + new (RotationalStiffnessUnit.MeganewtonMeterPerDegree, "MeganewtonMeterPerDegree", "MeganewtonMetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(22)) + ), + new (RotationalStiffnessUnit.MeganewtonMeterPerRadian, "MeganewtonMeterPerRadian", "MeganewtonMetersPerRadian", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (RotationalStiffnessUnit.MeganewtonMillimeterPerDegree, "MeganewtonMillimeterPerDegree", "MeganewtonMillimetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(19)) + ), + new (RotationalStiffnessUnit.MeganewtonMillimeterPerRadian, "MeganewtonMillimeterPerRadian", "MeganewtonMillimetersPerRadian", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (RotationalStiffnessUnit.MicronewtonMeterPerDegree, "MicronewtonMeterPerDegree", "MicronewtonMetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 180000000000) + ), + new (RotationalStiffnessUnit.MicronewtonMillimeterPerDegree, "MicronewtonMillimeterPerDegree", "MicronewtonMillimetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 180000000) + ), + new (RotationalStiffnessUnit.MicronewtonMillimeterPerRadian, "MicronewtonMillimeterPerRadian", "MicronewtonMillimetersPerRadian", BaseUnits.Undefined, + 1000000000 + ), + new (RotationalStiffnessUnit.MillinewtonMeterPerDegree, "MillinewtonMeterPerDegree", "MillinewtonMetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 180000000000000) + ), + new (RotationalStiffnessUnit.MillinewtonMillimeterPerDegree, "MillinewtonMillimeterPerDegree", "MillinewtonMillimetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 180000000000) + ), + new (RotationalStiffnessUnit.MillinewtonMillimeterPerRadian, "MillinewtonMillimeterPerRadian", "MillinewtonMillimetersPerRadian", BaseUnits.Undefined, + 1000000 + ), + new (RotationalStiffnessUnit.NanonewtonMeterPerDegree, "NanonewtonMeterPerDegree", "NanonewtonMetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 180000000) + ), + new (RotationalStiffnessUnit.NanonewtonMillimeterPerDegree, "NanonewtonMillimeterPerDegree", "NanonewtonMillimetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 180000) + ), + new (RotationalStiffnessUnit.NanonewtonMillimeterPerRadian, "NanonewtonMillimeterPerRadian", "NanonewtonMillimetersPerRadian", BaseUnits.Undefined, + 1000000000000 + ), + new (RotationalStiffnessUnit.NewtonMeterPerDegree, "NewtonMeterPerDegree", "NewtonMetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 180000000000000000) + ), + new (RotationalStiffnessUnit.NewtonMeterPerRadian, "NewtonMeterPerRadian", "NewtonMetersPerRadian", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (RotationalStiffnessUnit.NewtonMillimeterPerDegree, "NewtonMillimeterPerDegree", "NewtonMillimetersPerDegree", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 180000000000000) + ), + new (RotationalStiffnessUnit.NewtonMillimeterPerRadian, "NewtonMillimeterPerRadian", "NewtonMillimetersPerRadian", BaseUnits.Undefined, + 1000 + ), + new (RotationalStiffnessUnit.PoundForceFeetPerRadian, "PoundForceFeetPerRadian", "PoundForceFeetPerRadian", BaseUnits.Undefined, + new QuantityValue(2500000000000000, 3389544870828501) + ), + new (RotationalStiffnessUnit.PoundForceFootPerDegrees, "PoundForceFootPerDegrees", "PoundForceFeetPerDegrees", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 244047230699652072) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs index 22a86ee1d6..78ffb108f0 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs @@ -117,19 +117,22 @@ public static RotationalStiffnessPerLengthInfo CreateDefault(FuncAn of representing the default unit mappings for RotationalStiffnessPerLength. public static IEnumerable> GetDefaultMappings() { - yield return new (RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter, "KilonewtonMeterPerRadianPerMeter", "KilonewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot, "KilopoundForceFootPerDegreesPerFoot", "KilopoundForceFeetPerDegreesPerFeet", BaseUnits.Undefined, - new QuantityValue(3141592653589793, QuantityValue.PowerOfTen(7) * new BigInteger(80067989074689)) - ); - yield return new (RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter, "MeganewtonMeterPerRadianPerMeter", "MeganewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, "NewtonMeterPerRadianPerMeter", "NewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot, "PoundForceFootPerDegreesPerFoot", "PoundForceFeetPerDegreesPerFeet", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 800679890746890000) - ); + return new UnitDefinition[] + { + new (RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter, "KilonewtonMeterPerRadianPerMeter", "KilonewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot, "KilopoundForceFootPerDegreesPerFoot", "KilopoundForceFeetPerDegreesPerFeet", BaseUnits.Undefined, + new QuantityValue(3141592653589793, QuantityValue.PowerOfTen(7) * new BigInteger(80067989074689)) + ), + new (RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter, "MeganewtonMeterPerRadianPerMeter", "MeganewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, "NewtonMeterPerRadianPerMeter", "NewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot, "PoundForceFootPerDegreesPerFoot", "PoundForceFeetPerDegreesPerFeet", BaseUnits.Undefined, + new QuantityValue(3141592653589793, 800679890746890000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs b/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs index ea1d538076..c976064910 100644 --- a/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs @@ -116,7 +116,10 @@ public static ScalarInfo CreateDefault(FuncAn of representing the default unit mappings for Scalar. public static IEnumerable> GetDefaultMappings() { - yield return new (ScalarUnit.Amount, "Amount", "Amount", BaseUnits.Undefined); + return new UnitDefinition[] + { + new (ScalarUnit.Amount, "Amount", "Amount", BaseUnits.Undefined), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs b/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs index 9938dabbf2..f1b3910562 100644 --- a/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs @@ -120,7 +120,10 @@ public static SolidAngleInfo CreateDefault(FuncAn of representing the default unit mappings for SolidAngle. public static IEnumerable> GetDefaultMappings() { - yield return new (SolidAngleUnit.Steradian, "Steradian", "Steradians", BaseUnits.Undefined); + return new UnitDefinition[] + { + new (SolidAngleUnit.Steradian, "Steradian", "Steradians", BaseUnits.Undefined), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs index d24fdad7dc..5188333467 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs @@ -125,94 +125,97 @@ public static SpecificEnergyInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificEnergy. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificEnergyUnit.BtuPerPound, "BtuPerPound", "BtuPerPound", BaseUnits.Undefined, - new QuantityValue(1, 2326) - ); - yield return new (SpecificEnergyUnit.CaloriePerGram, "CaloriePerGram", "CaloriesPerGram", BaseUnits.Undefined, - new QuantityValue(1, 4184) - ); - yield return new (SpecificEnergyUnit.GigawattDayPerKilogram, "GigawattDayPerKilogram", "GigawattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000) - ); - yield return new (SpecificEnergyUnit.GigawattDayPerShortTon, "GigawattDayPerShortTon", "GigawattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, 4320000000000000000) - ); - yield return new (SpecificEnergyUnit.GigawattDayPerTonne, "GigawattDayPerTonne", "GigawattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 86400000000) - ); - yield return new (SpecificEnergyUnit.GigawattHourPerKilogram, "GigawattHourPerKilogram", "GigawattHoursPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000) - ); - yield return new (SpecificEnergyUnit.GigawattHourPerPound, "GigawattHourPerPound", "GigawattHoursPerPound", BaseUnits.Undefined, - new QuantityValue(1, 7936640000000) - ); - yield return new (SpecificEnergyUnit.JoulePerKilogram, "JoulePerKilogram", "JoulesPerKilogram", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (SpecificEnergyUnit.KilocaloriePerGram, "KilocaloriePerGram", "KilocaloriesPerGram", BaseUnits.Undefined, - new QuantityValue(1, 4184000) - ); - yield return new (SpecificEnergyUnit.KilojoulePerKilogram, "KilojoulePerKilogram", "KilojoulesPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificEnergyUnit.KilowattDayPerKilogram, "KilowattDayPerKilogram", "KilowattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400000) - ); - yield return new (SpecificEnergyUnit.KilowattDayPerShortTon, "KilowattDayPerShortTon", "KilowattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, 4320000000000) - ); - yield return new (SpecificEnergyUnit.KilowattDayPerTonne, "KilowattDayPerTonne", "KilowattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 86400) - ); - yield return new (SpecificEnergyUnit.KilowattHourPerKilogram, "KilowattHourPerKilogram", "KilowattHoursPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 3600000) - ); - yield return new (SpecificEnergyUnit.KilowattHourPerPound, "KilowattHourPerPound", "KilowattHoursPerPound", BaseUnits.Undefined, - new QuantityValue(1, 7936640) - ); - yield return new (SpecificEnergyUnit.MegajoulePerKilogram, "MegajoulePerKilogram", "MegajoulesPerKilogram", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (SpecificEnergyUnit.MegajoulePerTonne, "MegajoulePerTonne", "MegajoulesPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificEnergyUnit.MegawattDayPerKilogram, "MegawattDayPerKilogram", "MegawattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400000000) - ); - yield return new (SpecificEnergyUnit.MegawattDayPerShortTon, "MegawattDayPerShortTon", "MegawattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, 4320000000000000) - ); - yield return new (SpecificEnergyUnit.MegawattDayPerTonne, "MegawattDayPerTonne", "MegawattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 86400000) - ); - yield return new (SpecificEnergyUnit.MegawattHourPerKilogram, "MegawattHourPerKilogram", "MegawattHoursPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 3600000000) - ); - yield return new (SpecificEnergyUnit.MegawattHourPerPound, "MegawattHourPerPound", "MegawattHoursPerPound", BaseUnits.Undefined, - new QuantityValue(1, 7936640000) - ); - yield return new (SpecificEnergyUnit.TerawattDayPerKilogram, "TerawattDayPerKilogram", "TerawattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000000) - ); - yield return new (SpecificEnergyUnit.TerawattDayPerShortTon, "TerawattDayPerShortTon", "TerawattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, new BigInteger(432) * QuantityValue.PowerOfTen(19)) - ); - yield return new (SpecificEnergyUnit.TerawattDayPerTonne, "TerawattDayPerTonne", "TerawattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000) - ); - yield return new (SpecificEnergyUnit.WattDayPerKilogram, "WattDayPerKilogram", "WattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400) - ); - yield return new (SpecificEnergyUnit.WattDayPerShortTon, "WattDayPerShortTon", "WattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, 4320000000) - ); - yield return new (SpecificEnergyUnit.WattDayPerTonne, "WattDayPerTonne", "WattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(5, 432) - ); - yield return new (SpecificEnergyUnit.WattHourPerKilogram, "WattHourPerKilogram", "WattHoursPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 3600) - ); - yield return new (SpecificEnergyUnit.WattHourPerPound, "WattHourPerPound", "WattHoursPerPound", BaseUnits.Undefined, - new QuantityValue(25, 198416) - ); + return new UnitDefinition[] + { + new (SpecificEnergyUnit.BtuPerPound, "BtuPerPound", "BtuPerPound", BaseUnits.Undefined, + new QuantityValue(1, 2326) + ), + new (SpecificEnergyUnit.CaloriePerGram, "CaloriePerGram", "CaloriesPerGram", BaseUnits.Undefined, + new QuantityValue(1, 4184) + ), + new (SpecificEnergyUnit.GigawattDayPerKilogram, "GigawattDayPerKilogram", "GigawattDaysPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 86400000000000) + ), + new (SpecificEnergyUnit.GigawattDayPerShortTon, "GigawattDayPerShortTon", "GigawattDaysPerShortTon", BaseUnits.Undefined, + new QuantityValue(45359237, 4320000000000000000) + ), + new (SpecificEnergyUnit.GigawattDayPerTonne, "GigawattDayPerTonne", "GigawattDaysPerTonne", BaseUnits.Undefined, + new QuantityValue(1, 86400000000) + ), + new (SpecificEnergyUnit.GigawattHourPerKilogram, "GigawattHourPerKilogram", "GigawattHoursPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 3600000000000) + ), + new (SpecificEnergyUnit.GigawattHourPerPound, "GigawattHourPerPound", "GigawattHoursPerPound", BaseUnits.Undefined, + new QuantityValue(1, 7936640000000) + ), + new (SpecificEnergyUnit.JoulePerKilogram, "JoulePerKilogram", "JoulesPerKilogram", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (SpecificEnergyUnit.KilocaloriePerGram, "KilocaloriePerGram", "KilocaloriesPerGram", BaseUnits.Undefined, + new QuantityValue(1, 4184000) + ), + new (SpecificEnergyUnit.KilojoulePerKilogram, "KilojoulePerKilogram", "KilojoulesPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (SpecificEnergyUnit.KilowattDayPerKilogram, "KilowattDayPerKilogram", "KilowattDaysPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 86400000) + ), + new (SpecificEnergyUnit.KilowattDayPerShortTon, "KilowattDayPerShortTon", "KilowattDaysPerShortTon", BaseUnits.Undefined, + new QuantityValue(45359237, 4320000000000) + ), + new (SpecificEnergyUnit.KilowattDayPerTonne, "KilowattDayPerTonne", "KilowattDaysPerTonne", BaseUnits.Undefined, + new QuantityValue(1, 86400) + ), + new (SpecificEnergyUnit.KilowattHourPerKilogram, "KilowattHourPerKilogram", "KilowattHoursPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 3600000) + ), + new (SpecificEnergyUnit.KilowattHourPerPound, "KilowattHourPerPound", "KilowattHoursPerPound", BaseUnits.Undefined, + new QuantityValue(1, 7936640) + ), + new (SpecificEnergyUnit.MegajoulePerKilogram, "MegajoulePerKilogram", "MegajoulesPerKilogram", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (SpecificEnergyUnit.MegajoulePerTonne, "MegajoulePerTonne", "MegajoulesPerTonne", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (SpecificEnergyUnit.MegawattDayPerKilogram, "MegawattDayPerKilogram", "MegawattDaysPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 86400000000) + ), + new (SpecificEnergyUnit.MegawattDayPerShortTon, "MegawattDayPerShortTon", "MegawattDaysPerShortTon", BaseUnits.Undefined, + new QuantityValue(45359237, 4320000000000000) + ), + new (SpecificEnergyUnit.MegawattDayPerTonne, "MegawattDayPerTonne", "MegawattDaysPerTonne", BaseUnits.Undefined, + new QuantityValue(1, 86400000) + ), + new (SpecificEnergyUnit.MegawattHourPerKilogram, "MegawattHourPerKilogram", "MegawattHoursPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 3600000000) + ), + new (SpecificEnergyUnit.MegawattHourPerPound, "MegawattHourPerPound", "MegawattHoursPerPound", BaseUnits.Undefined, + new QuantityValue(1, 7936640000) + ), + new (SpecificEnergyUnit.TerawattDayPerKilogram, "TerawattDayPerKilogram", "TerawattDaysPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 86400000000000000) + ), + new (SpecificEnergyUnit.TerawattDayPerShortTon, "TerawattDayPerShortTon", "TerawattDaysPerShortTon", BaseUnits.Undefined, + new QuantityValue(45359237, new BigInteger(432) * QuantityValue.PowerOfTen(19)) + ), + new (SpecificEnergyUnit.TerawattDayPerTonne, "TerawattDayPerTonne", "TerawattDaysPerTonne", BaseUnits.Undefined, + new QuantityValue(1, 86400000000000) + ), + new (SpecificEnergyUnit.WattDayPerKilogram, "WattDayPerKilogram", "WattDaysPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 86400) + ), + new (SpecificEnergyUnit.WattDayPerShortTon, "WattDayPerShortTon", "WattDaysPerShortTon", BaseUnits.Undefined, + new QuantityValue(45359237, 4320000000) + ), + new (SpecificEnergyUnit.WattDayPerTonne, "WattDayPerTonne", "WattDaysPerTonne", BaseUnits.Undefined, + new QuantityValue(5, 432) + ), + new (SpecificEnergyUnit.WattHourPerKilogram, "WattHourPerKilogram", "WattHoursPerKilogram", BaseUnits.Undefined, + new QuantityValue(1, 3600) + ), + new (SpecificEnergyUnit.WattHourPerPound, "WattHourPerPound", "WattHoursPerPound", BaseUnits.Undefined, + new QuantityValue(25, 198416) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs index 2cbc4c1091..7c71cd5956 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs @@ -118,31 +118,34 @@ public static SpecificEntropyInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificEntropy. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificEntropyUnit.BtuPerPoundFahrenheit, "BtuPerPoundFahrenheit", "BtusPerPoundFahrenheit", BaseUnits.Undefined, - new QuantityValue(5, 20934) - ); - yield return new (SpecificEntropyUnit.CaloriePerGramKelvin, "CaloriePerGramKelvin", "CaloriesPerGramKelvin", BaseUnits.Undefined, - new QuantityValue(1, 4184) - ); - yield return new (SpecificEntropyUnit.JoulePerKilogramDegreeCelsius, "JoulePerKilogramDegreeCelsius", "JoulesPerKilogramDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (SpecificEntropyUnit.JoulePerKilogramKelvin, "JoulePerKilogramKelvin", "JoulesPerKilogramKelvin", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); - yield return new (SpecificEntropyUnit.KilocaloriePerGramKelvin, "KilocaloriePerGramKelvin", "KilocaloriesPerGramKelvin", BaseUnits.Undefined, - new QuantityValue(1, 4184000) - ); - yield return new (SpecificEntropyUnit.KilojoulePerKilogramDegreeCelsius, "KilojoulePerKilogramDegreeCelsius", "KilojoulesPerKilogramDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificEntropyUnit.KilojoulePerKilogramKelvin, "KilojoulePerKilogramKelvin", "KilojoulesPerKilogramKelvin", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificEntropyUnit.MegajoulePerKilogramDegreeCelsius, "MegajoulePerKilogramDegreeCelsius", "MegajoulesPerKilogramDegreeCelsius", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000000) - ); - yield return new (SpecificEntropyUnit.MegajoulePerKilogramKelvin, "MegajoulePerKilogramKelvin", "MegajoulesPerKilogramKelvin", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000000) - ); + return new UnitDefinition[] + { + new (SpecificEntropyUnit.BtuPerPoundFahrenheit, "BtuPerPoundFahrenheit", "BtusPerPoundFahrenheit", BaseUnits.Undefined, + new QuantityValue(5, 20934) + ), + new (SpecificEntropyUnit.CaloriePerGramKelvin, "CaloriePerGramKelvin", "CaloriesPerGramKelvin", BaseUnits.Undefined, + new QuantityValue(1, 4184) + ), + new (SpecificEntropyUnit.JoulePerKilogramDegreeCelsius, "JoulePerKilogramDegreeCelsius", "JoulesPerKilogramDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), + 1 + ), + new (SpecificEntropyUnit.JoulePerKilogramKelvin, "JoulePerKilogramKelvin", "JoulesPerKilogramKelvin", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)), + new (SpecificEntropyUnit.KilocaloriePerGramKelvin, "KilocaloriePerGramKelvin", "KilocaloriesPerGramKelvin", BaseUnits.Undefined, + new QuantityValue(1, 4184000) + ), + new (SpecificEntropyUnit.KilojoulePerKilogramDegreeCelsius, "KilojoulePerKilogramDegreeCelsius", "KilojoulesPerKilogramDegreeCelsius", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (SpecificEntropyUnit.KilojoulePerKilogramKelvin, "KilojoulePerKilogramKelvin", "KilojoulesPerKilogramKelvin", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (SpecificEntropyUnit.MegajoulePerKilogramDegreeCelsius, "MegajoulePerKilogramDegreeCelsius", "MegajoulesPerKilogramDegreeCelsius", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), + new QuantityValue(1, 1000000) + ), + new (SpecificEntropyUnit.MegajoulePerKilogramKelvin, "MegajoulePerKilogramKelvin", "MegajoulesPerKilogramKelvin", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), + new QuantityValue(1, 1000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs index fd474a2463..3c28ed9a15 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs @@ -119,16 +119,19 @@ public static SpecificFuelConsumptionInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificFuelConsumption. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificFuelConsumptionUnit.GramPerKilonewtonSecond, "GramPerKilonewtonSecond", "GramsPerKilonewtonSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (SpecificFuelConsumptionUnit.KilogramPerKilogramForceHour, "KilogramPerKilogramForceHour", "KilogramsPerKilogramForceHour", BaseUnits.Undefined, - new QuantityValue(1765197, 50000000) - ); - yield return new (SpecificFuelConsumptionUnit.KilogramPerKilonewtonSecond, "KilogramPerKilonewtonSecond", "KilogramsPerKilonewtonSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (SpecificFuelConsumptionUnit.PoundMassPerPoundForceHour, "PoundMassPerPoundForceHour", "PoundsMassPerPoundForceHour", BaseUnits.Undefined, - new QuantityValue(1765197, 50000000) - ); + return new UnitDefinition[] + { + new (SpecificFuelConsumptionUnit.GramPerKilonewtonSecond, "GramPerKilonewtonSecond", "GramsPerKilonewtonSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (SpecificFuelConsumptionUnit.KilogramPerKilogramForceHour, "KilogramPerKilogramForceHour", "KilogramsPerKilogramForceHour", BaseUnits.Undefined, + new QuantityValue(1765197, 50000000) + ), + new (SpecificFuelConsumptionUnit.KilogramPerKilonewtonSecond, "KilogramPerKilonewtonSecond", "KilogramsPerKilonewtonSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (SpecificFuelConsumptionUnit.PoundMassPerPoundForceHour, "PoundMassPerPoundForceHour", "PoundsMassPerPoundForceHour", BaseUnits.Undefined, + new QuantityValue(1765197, 50000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs index d6f636d4b5..9ae2a46ec6 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs @@ -117,13 +117,16 @@ public static SpecificVolumeInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificVolume. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificVolumeUnit.CubicFootPerPound, "CubicFootPerPound", "CubicFeetPerPound", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(28349523125, 1769802912) - ); - yield return new (SpecificVolumeUnit.CubicMeterPerKilogram, "CubicMeterPerKilogram", "CubicMetersPerKilogram", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (SpecificVolumeUnit.CubicMillimeterPerKilogram, "CubicMillimeterPerKilogram", "CubicMillimetersPerKilogram", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - 1000000000 - ); + return new UnitDefinition[] + { + new (SpecificVolumeUnit.CubicFootPerPound, "CubicFootPerPound", "CubicFeetPerPound", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), + new QuantityValue(28349523125, 1769802912) + ), + new (SpecificVolumeUnit.CubicMeterPerKilogram, "CubicMeterPerKilogram", "CubicMetersPerKilogram", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)), + new (SpecificVolumeUnit.CubicMillimeterPerKilogram, "CubicMillimeterPerKilogram", "CubicMillimetersPerKilogram", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), + 1000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs index f1307a54a8..ee1e3c9087 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs @@ -124,55 +124,58 @@ public static SpecificWeightInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificWeight. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificWeightUnit.KilogramForcePerCubicCentimeter, "KilogramForcePerCubicCentimeter", "KilogramsForcePerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650) - ); - yield return new (SpecificWeightUnit.KilogramForcePerCubicMeter, "KilogramForcePerCubicMeter", "KilogramsForcePerCubicMeter", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (SpecificWeightUnit.KilogramForcePerCubicMillimeter, "KilogramForcePerCubicMillimeter", "KilogramsForcePerCubicMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650000) - ); - yield return new (SpecificWeightUnit.KilonewtonPerCubicCentimeter, "KilonewtonPerCubicCentimeter", "KilonewtonsPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (SpecificWeightUnit.KilonewtonPerCubicMeter, "KilonewtonPerCubicMeter", "KilonewtonsPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificWeightUnit.KilonewtonPerCubicMillimeter, "KilonewtonPerCubicMillimeter", "KilonewtonsPerCubicMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (SpecificWeightUnit.KilopoundForcePerCubicFoot, "KilopoundForcePerCubicFoot", "KilopoundsForcePerCubicFoot", BaseUnits.Undefined, - new QuantityValue(7079211648, 1112055403815125) - ); - yield return new (SpecificWeightUnit.KilopoundForcePerCubicInch, "KilopoundForcePerCubicInch", "KilopoundsForcePerCubicInch", BaseUnits.Undefined, - new QuantityValue(4096766, 1112055403815125) - ); - yield return new (SpecificWeightUnit.MeganewtonPerCubicMeter, "MeganewtonPerCubicMeter", "MeganewtonsPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (SpecificWeightUnit.NewtonPerCubicCentimeter, "NewtonPerCubicCentimeter", "NewtonsPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (SpecificWeightUnit.NewtonPerCubicMeter, "NewtonPerCubicMeter", "NewtonsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (SpecificWeightUnit.NewtonPerCubicMillimeter, "NewtonPerCubicMillimeter", "NewtonsPerCubicMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (SpecificWeightUnit.PoundForcePerCubicFoot, "PoundForcePerCubicFoot", "PoundsForcePerCubicFoot", BaseUnits.Undefined, - new QuantityValue(56633693184, 8896443230521) - ); - yield return new (SpecificWeightUnit.PoundForcePerCubicInch, "PoundForcePerCubicInch", "PoundsForcePerCubicInch", BaseUnits.Undefined, - new QuantityValue(32774128, 8896443230521) - ); - yield return new (SpecificWeightUnit.TonneForcePerCubicCentimeter, "TonneForcePerCubicCentimeter", "TonnesForcePerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650000) - ); - yield return new (SpecificWeightUnit.TonneForcePerCubicMeter, "TonneForcePerCubicMeter", "TonnesForcePerCubicMeter", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (SpecificWeightUnit.TonneForcePerCubicMillimeter, "TonneForcePerCubicMillimeter", "TonnesForcePerCubicMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650000000) - ); + return new UnitDefinition[] + { + new (SpecificWeightUnit.KilogramForcePerCubicCentimeter, "KilogramForcePerCubicCentimeter", "KilogramsForcePerCubicCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 9806650) + ), + new (SpecificWeightUnit.KilogramForcePerCubicMeter, "KilogramForcePerCubicMeter", "KilogramsForcePerCubicMeter", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + new (SpecificWeightUnit.KilogramForcePerCubicMillimeter, "KilogramForcePerCubicMillimeter", "KilogramsForcePerCubicMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 9806650000) + ), + new (SpecificWeightUnit.KilonewtonPerCubicCentimeter, "KilonewtonPerCubicCentimeter", "KilonewtonsPerCubicCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (SpecificWeightUnit.KilonewtonPerCubicMeter, "KilonewtonPerCubicMeter", "KilonewtonsPerCubicMeter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (SpecificWeightUnit.KilonewtonPerCubicMillimeter, "KilonewtonPerCubicMillimeter", "KilonewtonsPerCubicMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000000) + ), + new (SpecificWeightUnit.KilopoundForcePerCubicFoot, "KilopoundForcePerCubicFoot", "KilopoundsForcePerCubicFoot", BaseUnits.Undefined, + new QuantityValue(7079211648, 1112055403815125) + ), + new (SpecificWeightUnit.KilopoundForcePerCubicInch, "KilopoundForcePerCubicInch", "KilopoundsForcePerCubicInch", BaseUnits.Undefined, + new QuantityValue(4096766, 1112055403815125) + ), + new (SpecificWeightUnit.MeganewtonPerCubicMeter, "MeganewtonPerCubicMeter", "MeganewtonsPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (SpecificWeightUnit.NewtonPerCubicCentimeter, "NewtonPerCubicCentimeter", "NewtonsPerCubicCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000) + ), + new (SpecificWeightUnit.NewtonPerCubicMeter, "NewtonPerCubicMeter", "NewtonsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (SpecificWeightUnit.NewtonPerCubicMillimeter, "NewtonPerCubicMillimeter", "NewtonsPerCubicMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 1000000000) + ), + new (SpecificWeightUnit.PoundForcePerCubicFoot, "PoundForcePerCubicFoot", "PoundsForcePerCubicFoot", BaseUnits.Undefined, + new QuantityValue(56633693184, 8896443230521) + ), + new (SpecificWeightUnit.PoundForcePerCubicInch, "PoundForcePerCubicInch", "PoundsForcePerCubicInch", BaseUnits.Undefined, + new QuantityValue(32774128, 8896443230521) + ), + new (SpecificWeightUnit.TonneForcePerCubicCentimeter, "TonneForcePerCubicCentimeter", "TonnesForcePerCubicCentimeter", BaseUnits.Undefined, + new QuantityValue(1, 9806650000) + ), + new (SpecificWeightUnit.TonneForcePerCubicMeter, "TonneForcePerCubicMeter", "TonnesForcePerCubicMeter", BaseUnits.Undefined, + new QuantityValue(20, 196133) + ), + new (SpecificWeightUnit.TonneForcePerCubicMillimeter, "TonneForcePerCubicMillimeter", "TonnesForcePerCubicMillimeter", BaseUnits.Undefined, + new QuantityValue(1, 9806650000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Speed.g.cs b/UnitsNet/GeneratedCode/Quantities/Speed.g.cs index 8575899a62..67c0cc4bf4 100644 --- a/UnitsNet/GeneratedCode/Quantities/Speed.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Speed.g.cs @@ -124,103 +124,106 @@ public static SpeedInfo CreateDefault(Func /// An of representing the default unit mappings for Speed. public static IEnumerable> GetDefaultMappings() { - yield return new (SpeedUnit.CentimeterPerHour, "CentimeterPerHour", "CentimetersPerHour", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Hour), - 360000 - ); - yield return new (SpeedUnit.CentimeterPerMinute, "CentimeterPerMinute", "CentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), - 6000 - ); - yield return new (SpeedUnit.CentimeterPerSecond, "CentimeterPerSecond", "CentimetersPerSecond", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), - 100 - ); - yield return new (SpeedUnit.DecimeterPerMinute, "DecimeterPerMinute", "DecimetersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), - 600 - ); - yield return new (SpeedUnit.DecimeterPerSecond, "DecimeterPerSecond", "DecimetersPerSecond", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), - 10 - ); - yield return new (SpeedUnit.FootPerHour, "FootPerHour", "FeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), - new QuantityValue(1500000, 127) - ); - yield return new (SpeedUnit.FootPerMinute, "FootPerMinute", "FeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), - new QuantityValue(25000, 127) - ); - yield return new (SpeedUnit.FootPerSecond, "FootPerSecond", "FeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1250, 381) - ); - yield return new (SpeedUnit.InchPerHour, "InchPerHour", "InchesPerHour", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Hour), - new QuantityValue(18000000, 127) - ); - yield return new (SpeedUnit.InchPerMinute, "InchPerMinute", "InchesPerMinute", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Minute), - new QuantityValue(300000, 127) - ); - yield return new (SpeedUnit.InchPerSecond, "InchPerSecond", "InchesPerSecond", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), - new QuantityValue(5000, 127) - ); - yield return new (SpeedUnit.KilometerPerHour, "KilometerPerHour", "KilometersPerHour", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Hour), - new QuantityValue(18, 5) - ); - yield return new (SpeedUnit.KilometerPerMinute, "KilometerPerMinute", "KilometersPerMinute", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Minute), - new QuantityValue(3, 50) - ); - yield return new (SpeedUnit.KilometerPerSecond, "KilometerPerSecond", "KilometersPerSecond", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (SpeedUnit.Knot, "Knot", "Knots", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Hour), - new QuantityValue(900, 463) - ); - yield return new (SpeedUnit.Mach, "Mach", "Mach", BaseUnits.Undefined, - new QuantityValue(100, 34029) - ); - yield return new (SpeedUnit.MeterPerHour, "MeterPerHour", "MetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), - 3600 - ); - yield return new (SpeedUnit.MeterPerMinute, "MeterPerMinute", "MetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), - 60 - ); - yield return new (SpeedUnit.MeterPerSecond, "MeterPerSecond", "MetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (SpeedUnit.MicrometerPerMinute, "MicrometerPerMinute", "MicrometersPerMinute", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Minute), - 60000000 - ); - yield return new (SpeedUnit.MicrometerPerSecond, "MicrometerPerSecond", "MicrometersPerSecond", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), - 1000000 - ); - yield return new (SpeedUnit.MilePerHour, "MilePerHour", "MilesPerHour", new BaseUnits(length: LengthUnit.Mile, time: DurationUnit.Hour), - new QuantityValue(3125, 1397) - ); - yield return new (SpeedUnit.MillimeterPerHour, "MillimeterPerHour", "MillimetersPerHour", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Hour), - 3600000 - ); - yield return new (SpeedUnit.MillimeterPerMinute, "MillimeterPerMinute", "MillimetersPerMinute", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Minute), - 60000 - ); - yield return new (SpeedUnit.MillimeterPerSecond, "MillimeterPerSecond", "MillimetersPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000 - ); - yield return new (SpeedUnit.NanometerPerMinute, "NanometerPerMinute", "NanometersPerMinute", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Minute), - 60000000000 - ); - yield return new (SpeedUnit.NanometerPerSecond, "NanometerPerSecond", "NanometersPerSecond", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), - 1000000000 - ); - yield return new (SpeedUnit.UsSurveyFootPerHour, "UsSurveyFootPerHour", "UsSurveyFeetPerHour", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Hour), - 11811 - ); - yield return new (SpeedUnit.UsSurveyFootPerMinute, "UsSurveyFootPerMinute", "UsSurveyFeetPerMinute", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Minute), - new QuantityValue(3937, 20) - ); - yield return new (SpeedUnit.UsSurveyFootPerSecond, "UsSurveyFootPerSecond", "UsSurveyFeetPerSecond", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Second), - new QuantityValue(3937, 1200) - ); - yield return new (SpeedUnit.YardPerHour, "YardPerHour", "YardsPerHour", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Hour), - new QuantityValue(500000, 127) - ); - yield return new (SpeedUnit.YardPerMinute, "YardPerMinute", "YardsPerMinute", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Minute), - new QuantityValue(25000, 381) - ); - yield return new (SpeedUnit.YardPerSecond, "YardPerSecond", "YardsPerSecond", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Second), - new QuantityValue(1250, 1143) - ); + return new UnitDefinition[] + { + new (SpeedUnit.CentimeterPerHour, "CentimeterPerHour", "CentimetersPerHour", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Hour), + 360000 + ), + new (SpeedUnit.CentimeterPerMinute, "CentimeterPerMinute", "CentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), + 6000 + ), + new (SpeedUnit.CentimeterPerSecond, "CentimeterPerSecond", "CentimetersPerSecond", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), + 100 + ), + new (SpeedUnit.DecimeterPerMinute, "DecimeterPerMinute", "DecimetersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), + 600 + ), + new (SpeedUnit.DecimeterPerSecond, "DecimeterPerSecond", "DecimetersPerSecond", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), + 10 + ), + new (SpeedUnit.FootPerHour, "FootPerHour", "FeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), + new QuantityValue(1500000, 127) + ), + new (SpeedUnit.FootPerMinute, "FootPerMinute", "FeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), + new QuantityValue(25000, 127) + ), + new (SpeedUnit.FootPerSecond, "FootPerSecond", "FeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), + new QuantityValue(1250, 381) + ), + new (SpeedUnit.InchPerHour, "InchPerHour", "InchesPerHour", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Hour), + new QuantityValue(18000000, 127) + ), + new (SpeedUnit.InchPerMinute, "InchPerMinute", "InchesPerMinute", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Minute), + new QuantityValue(300000, 127) + ), + new (SpeedUnit.InchPerSecond, "InchPerSecond", "InchesPerSecond", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), + new QuantityValue(5000, 127) + ), + new (SpeedUnit.KilometerPerHour, "KilometerPerHour", "KilometersPerHour", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Hour), + new QuantityValue(18, 5) + ), + new (SpeedUnit.KilometerPerMinute, "KilometerPerMinute", "KilometersPerMinute", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Minute), + new QuantityValue(3, 50) + ), + new (SpeedUnit.KilometerPerSecond, "KilometerPerSecond", "KilometersPerSecond", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), + new QuantityValue(1, 1000) + ), + new (SpeedUnit.Knot, "Knot", "Knots", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Hour), + new QuantityValue(900, 463) + ), + new (SpeedUnit.Mach, "Mach", "Mach", BaseUnits.Undefined, + new QuantityValue(100, 34029) + ), + new (SpeedUnit.MeterPerHour, "MeterPerHour", "MetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), + 3600 + ), + new (SpeedUnit.MeterPerMinute, "MeterPerMinute", "MetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), + 60 + ), + new (SpeedUnit.MeterPerSecond, "MeterPerSecond", "MetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (SpeedUnit.MicrometerPerMinute, "MicrometerPerMinute", "MicrometersPerMinute", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Minute), + 60000000 + ), + new (SpeedUnit.MicrometerPerSecond, "MicrometerPerSecond", "MicrometersPerSecond", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), + 1000000 + ), + new (SpeedUnit.MilePerHour, "MilePerHour", "MilesPerHour", new BaseUnits(length: LengthUnit.Mile, time: DurationUnit.Hour), + new QuantityValue(3125, 1397) + ), + new (SpeedUnit.MillimeterPerHour, "MillimeterPerHour", "MillimetersPerHour", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Hour), + 3600000 + ), + new (SpeedUnit.MillimeterPerMinute, "MillimeterPerMinute", "MillimetersPerMinute", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Minute), + 60000 + ), + new (SpeedUnit.MillimeterPerSecond, "MillimeterPerSecond", "MillimetersPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), + 1000 + ), + new (SpeedUnit.NanometerPerMinute, "NanometerPerMinute", "NanometersPerMinute", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Minute), + 60000000000 + ), + new (SpeedUnit.NanometerPerSecond, "NanometerPerSecond", "NanometersPerSecond", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), + 1000000000 + ), + new (SpeedUnit.UsSurveyFootPerHour, "UsSurveyFootPerHour", "UsSurveyFeetPerHour", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Hour), + 11811 + ), + new (SpeedUnit.UsSurveyFootPerMinute, "UsSurveyFootPerMinute", "UsSurveyFeetPerMinute", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Minute), + new QuantityValue(3937, 20) + ), + new (SpeedUnit.UsSurveyFootPerSecond, "UsSurveyFootPerSecond", "UsSurveyFeetPerSecond", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Second), + new QuantityValue(3937, 1200) + ), + new (SpeedUnit.YardPerHour, "YardPerHour", "YardsPerHour", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Hour), + new QuantityValue(500000, 127) + ), + new (SpeedUnit.YardPerMinute, "YardPerMinute", "YardsPerMinute", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Minute), + new QuantityValue(25000, 381) + ), + new (SpeedUnit.YardPerSecond, "YardPerSecond", "YardsPerSecond", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Second), + new QuantityValue(1250, 1143) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs index 1abc8c9f8c..8794f4b6c6 100644 --- a/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs @@ -116,31 +116,34 @@ public static StandardVolumeFlowInfo CreateDefault(FuncAn of representing the default unit mappings for StandardVolumeFlow. public static IEnumerable> GetDefaultMappings() { - yield return new (StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute, "StandardCubicCentimeterPerMinute", "StandardCubicCentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), - 60000000 - ); - yield return new (StandardVolumeFlowUnit.StandardCubicFootPerHour, "StandardCubicFootPerHour", "StandardCubicFeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), - new QuantityValue(781250000000, 6145149) - ); - yield return new (StandardVolumeFlowUnit.StandardCubicFootPerMinute, "StandardCubicFootPerMinute", "StandardCubicFeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), - new QuantityValue(39062500000, 18435447) - ); - yield return new (StandardVolumeFlowUnit.StandardCubicFootPerSecond, "StandardCubicFootPerSecond", "StandardCubicFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1953125000, 55306341) - ); - yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerDay, "StandardCubicMeterPerDay", "StandardCubicMetersPerDay", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Day), - 86400 - ); - yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerHour, "StandardCubicMeterPerHour", "StandardCubicMetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), - 3600 - ); - yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerMinute, "StandardCubicMeterPerMinute", "StandardCubicMetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), - 60 - ); - yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, "StandardCubicMeterPerSecond", "StandardCubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (StandardVolumeFlowUnit.StandardLiterPerMinute, "StandardLiterPerMinute", "StandardLitersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), - 60000 - ); + return new UnitDefinition[] + { + new (StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute, "StandardCubicCentimeterPerMinute", "StandardCubicCentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), + 60000000 + ), + new (StandardVolumeFlowUnit.StandardCubicFootPerHour, "StandardCubicFootPerHour", "StandardCubicFeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), + new QuantityValue(781250000000, 6145149) + ), + new (StandardVolumeFlowUnit.StandardCubicFootPerMinute, "StandardCubicFootPerMinute", "StandardCubicFeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), + new QuantityValue(39062500000, 18435447) + ), + new (StandardVolumeFlowUnit.StandardCubicFootPerSecond, "StandardCubicFootPerSecond", "StandardCubicFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), + new QuantityValue(1953125000, 55306341) + ), + new (StandardVolumeFlowUnit.StandardCubicMeterPerDay, "StandardCubicMeterPerDay", "StandardCubicMetersPerDay", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Day), + 86400 + ), + new (StandardVolumeFlowUnit.StandardCubicMeterPerHour, "StandardCubicMeterPerHour", "StandardCubicMetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), + 3600 + ), + new (StandardVolumeFlowUnit.StandardCubicMeterPerMinute, "StandardCubicMeterPerMinute", "StandardCubicMetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), + 60 + ), + new (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, "StandardCubicMeterPerSecond", "StandardCubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (StandardVolumeFlowUnit.StandardLiterPerMinute, "StandardLiterPerMinute", "StandardLitersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), + 60000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs b/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs index a4d01e36c7..7636eed1af 100644 --- a/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs @@ -115,41 +115,44 @@ public static TemperatureInfo CreateDefault(FuncAn of representing the default unit mappings for Temperature. public static IEnumerable> GetDefaultMappings() { - yield return new (TemperatureUnit.DegreeCelsius, "DegreeCelsius", "DegreesCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), - new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(-5463, 20)), - new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(5463, 20)) - ); - yield return new (TemperatureUnit.DegreeDelisle, "DegreeDelisle", "DegreesDelisle", new BaseUnits(temperature: TemperatureUnit.DegreeDelisle), - new ConversionExpression(coefficient: new QuantityValue(-3, 2), constantTerm: new QuantityValue(22389, 40)), - new ConversionExpression(coefficient: new QuantityValue(-2, 3), constantTerm: new QuantityValue(7463, 20)) - ); - yield return new (TemperatureUnit.DegreeFahrenheit, "DegreeFahrenheit", "DegreesFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), - new ConversionExpression(coefficient: new QuantityValue(9, 5), constantTerm: new QuantityValue(-45967, 100)), - new ConversionExpression(coefficient: new QuantityValue(5, 9), constantTerm: new QuantityValue(45967, 180)) - ); - yield return new (TemperatureUnit.DegreeNewton, "DegreeNewton", "DegreesNewton", new BaseUnits(temperature: TemperatureUnit.DegreeNewton), - new ConversionExpression(coefficient: new QuantityValue(33, 100), constantTerm: new QuantityValue(-180279, 2000)), - new ConversionExpression(coefficient: new QuantityValue(100, 33), constantTerm: new QuantityValue(5463, 20)) - ); - yield return new (TemperatureUnit.DegreeRankine, "DegreeRankine", "DegreesRankine", new BaseUnits(temperature: TemperatureUnit.DegreeRankine), - new QuantityValue(9, 5) - ); - yield return new (TemperatureUnit.DegreeReaumur, "DegreeReaumur", "DegreesReaumur", new BaseUnits(temperature: TemperatureUnit.DegreeReaumur), - new ConversionExpression(coefficient: new QuantityValue(4, 5), constantTerm: new QuantityValue(-5463, 25)), - new ConversionExpression(coefficient: new QuantityValue(5, 4), constantTerm: new QuantityValue(5463, 20)) - ); - yield return new (TemperatureUnit.DegreeRoemer, "DegreeRoemer", "DegreesRoemer", new BaseUnits(temperature: TemperatureUnit.DegreeRoemer), - new ConversionExpression(coefficient: new QuantityValue(21, 40), constantTerm: new QuantityValue(-108723, 800)), - new ConversionExpression(coefficient: new QuantityValue(40, 21), constantTerm: new QuantityValue(36241, 140)) - ); - yield return new (TemperatureUnit.Kelvin, "Kelvin", "Kelvins", new BaseUnits(temperature: TemperatureUnit.Kelvin)); - yield return new (TemperatureUnit.MillidegreeCelsius, "MillidegreeCelsius", "MillidegreesCelsius", new BaseUnits(temperature: TemperatureUnit.MillidegreeCelsius), - new ConversionExpression(coefficient: 1000, constantTerm: -273150), - new ConversionExpression(coefficient: new QuantityValue(1, 1000), constantTerm: new QuantityValue(5463, 20)) - ); - yield return new (TemperatureUnit.SolarTemperature, "SolarTemperature", "SolarTemperatures", new BaseUnits(temperature: TemperatureUnit.SolarTemperature), - new QuantityValue(1, 5778) - ); + return new UnitDefinition[] + { + new (TemperatureUnit.DegreeCelsius, "DegreeCelsius", "DegreesCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), + new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(-5463, 20)), + new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(5463, 20)) + ), + new (TemperatureUnit.DegreeDelisle, "DegreeDelisle", "DegreesDelisle", new BaseUnits(temperature: TemperatureUnit.DegreeDelisle), + new ConversionExpression(coefficient: new QuantityValue(-3, 2), constantTerm: new QuantityValue(22389, 40)), + new ConversionExpression(coefficient: new QuantityValue(-2, 3), constantTerm: new QuantityValue(7463, 20)) + ), + new (TemperatureUnit.DegreeFahrenheit, "DegreeFahrenheit", "DegreesFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), + new ConversionExpression(coefficient: new QuantityValue(9, 5), constantTerm: new QuantityValue(-45967, 100)), + new ConversionExpression(coefficient: new QuantityValue(5, 9), constantTerm: new QuantityValue(45967, 180)) + ), + new (TemperatureUnit.DegreeNewton, "DegreeNewton", "DegreesNewton", new BaseUnits(temperature: TemperatureUnit.DegreeNewton), + new ConversionExpression(coefficient: new QuantityValue(33, 100), constantTerm: new QuantityValue(-180279, 2000)), + new ConversionExpression(coefficient: new QuantityValue(100, 33), constantTerm: new QuantityValue(5463, 20)) + ), + new (TemperatureUnit.DegreeRankine, "DegreeRankine", "DegreesRankine", new BaseUnits(temperature: TemperatureUnit.DegreeRankine), + new QuantityValue(9, 5) + ), + new (TemperatureUnit.DegreeReaumur, "DegreeReaumur", "DegreesReaumur", new BaseUnits(temperature: TemperatureUnit.DegreeReaumur), + new ConversionExpression(coefficient: new QuantityValue(4, 5), constantTerm: new QuantityValue(-5463, 25)), + new ConversionExpression(coefficient: new QuantityValue(5, 4), constantTerm: new QuantityValue(5463, 20)) + ), + new (TemperatureUnit.DegreeRoemer, "DegreeRoemer", "DegreesRoemer", new BaseUnits(temperature: TemperatureUnit.DegreeRoemer), + new ConversionExpression(coefficient: new QuantityValue(21, 40), constantTerm: new QuantityValue(-108723, 800)), + new ConversionExpression(coefficient: new QuantityValue(40, 21), constantTerm: new QuantityValue(36241, 140)) + ), + new (TemperatureUnit.Kelvin, "Kelvin", "Kelvins", new BaseUnits(temperature: TemperatureUnit.Kelvin)), + new (TemperatureUnit.MillidegreeCelsius, "MillidegreeCelsius", "MillidegreesCelsius", new BaseUnits(temperature: TemperatureUnit.MillidegreeCelsius), + new ConversionExpression(coefficient: 1000, constantTerm: -273150), + new ConversionExpression(coefficient: new QuantityValue(1, 1000), constantTerm: new QuantityValue(5463, 20)) + ), + new (TemperatureUnit.SolarTemperature, "SolarTemperature", "SolarTemperatures", new BaseUnits(temperature: TemperatureUnit.SolarTemperature), + new QuantityValue(1, 5778) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs index 654fea94fb..166a241389 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs @@ -117,55 +117,58 @@ public static TemperatureChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for TemperatureChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond, "CentidegreeCelsiusPerSecond", "CentidegreesCelsiusPerSecond", BaseUnits.Undefined, - 100 - ); - yield return new (TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond, "DecadegreeCelsiusPerSecond", "DecadegreesCelsiusPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond, "DecidegreeCelsiusPerSecond", "DecidegreesCelsiusPerSecond", BaseUnits.Undefined, - 10 - ); - yield return new (TemperatureChangeRateUnit.DegreeCelsiusPerHour, "DegreeCelsiusPerHour", "DegreesCelsiusPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.DegreeCelsius), - 3600 - ); - yield return new (TemperatureChangeRateUnit.DegreeCelsiusPerMinute, "DegreeCelsiusPerMinute", "DegreesCelsiusPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.DegreeCelsius), - 60 - ); - yield return new (TemperatureChangeRateUnit.DegreeCelsiusPerSecond, "DegreeCelsiusPerSecond", "DegreesCelsiusPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius)); - yield return new (TemperatureChangeRateUnit.DegreeFahrenheitPerHour, "DegreeFahrenheitPerHour", "DegreesFahrenheitPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.DegreeFahrenheit), - 6480 - ); - yield return new (TemperatureChangeRateUnit.DegreeFahrenheitPerMinute, "DegreeFahrenheitPerMinute", "DegreesFahrenheitPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.DegreeFahrenheit), - 108 - ); - yield return new (TemperatureChangeRateUnit.DegreeFahrenheitPerSecond, "DegreeFahrenheitPerSecond", "DegreesFahrenheitPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.DegreeFahrenheit), - new QuantityValue(9, 5) - ); - yield return new (TemperatureChangeRateUnit.DegreeKelvinPerHour, "DegreeKelvinPerHour", "DegreesKelvinPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.Kelvin), - 3600 - ); - yield return new (TemperatureChangeRateUnit.DegreeKelvinPerMinute, "DegreeKelvinPerMinute", "DegreesKelvinPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.Kelvin), - 60 - ); - yield return new (TemperatureChangeRateUnit.DegreeKelvinPerSecond, "DegreeKelvinPerSecond", "DegreesKelvinPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - 1 - ); - yield return new (TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond, "HectodegreeCelsiusPerSecond", "HectodegreesCelsiusPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond, "KilodegreeCelsiusPerSecond", "KilodegreesCelsiusPerSecond", new BaseUnits(time: DurationUnit.Millisecond, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000) - ); - yield return new (TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond, "MicrodegreeCelsiusPerSecond", "MicrodegreesCelsiusPerSecond", BaseUnits.Undefined, - 1000000 - ); - yield return new (TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond, "MillidegreeCelsiusPerSecond", "MillidegreesCelsiusPerSecond", BaseUnits.Undefined, - 1000 - ); - yield return new (TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond, "NanodegreeCelsiusPerSecond", "NanodegreesCelsiusPerSecond", BaseUnits.Undefined, - 1000000000 - ); + return new UnitDefinition[] + { + new (TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond, "CentidegreeCelsiusPerSecond", "CentidegreesCelsiusPerSecond", BaseUnits.Undefined, + 100 + ), + new (TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond, "DecadegreeCelsiusPerSecond", "DecadegreesCelsiusPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond, "DecidegreeCelsiusPerSecond", "DecidegreesCelsiusPerSecond", BaseUnits.Undefined, + 10 + ), + new (TemperatureChangeRateUnit.DegreeCelsiusPerHour, "DegreeCelsiusPerHour", "DegreesCelsiusPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.DegreeCelsius), + 3600 + ), + new (TemperatureChangeRateUnit.DegreeCelsiusPerMinute, "DegreeCelsiusPerMinute", "DegreesCelsiusPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.DegreeCelsius), + 60 + ), + new (TemperatureChangeRateUnit.DegreeCelsiusPerSecond, "DegreeCelsiusPerSecond", "DegreesCelsiusPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius)), + new (TemperatureChangeRateUnit.DegreeFahrenheitPerHour, "DegreeFahrenheitPerHour", "DegreesFahrenheitPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.DegreeFahrenheit), + 6480 + ), + new (TemperatureChangeRateUnit.DegreeFahrenheitPerMinute, "DegreeFahrenheitPerMinute", "DegreesFahrenheitPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.DegreeFahrenheit), + 108 + ), + new (TemperatureChangeRateUnit.DegreeFahrenheitPerSecond, "DegreeFahrenheitPerSecond", "DegreesFahrenheitPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.DegreeFahrenheit), + new QuantityValue(9, 5) + ), + new (TemperatureChangeRateUnit.DegreeKelvinPerHour, "DegreeKelvinPerHour", "DegreesKelvinPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.Kelvin), + 3600 + ), + new (TemperatureChangeRateUnit.DegreeKelvinPerMinute, "DegreeKelvinPerMinute", "DegreesKelvinPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.Kelvin), + 60 + ), + new (TemperatureChangeRateUnit.DegreeKelvinPerSecond, "DegreeKelvinPerSecond", "DegreesKelvinPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), + 1 + ), + new (TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond, "HectodegreeCelsiusPerSecond", "HectodegreesCelsiusPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond, "KilodegreeCelsiusPerSecond", "KilodegreesCelsiusPerSecond", new BaseUnits(time: DurationUnit.Millisecond, temperature: TemperatureUnit.DegreeCelsius), + new QuantityValue(1, 1000) + ), + new (TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond, "MicrodegreeCelsiusPerSecond", "MicrodegreesCelsiusPerSecond", BaseUnits.Undefined, + 1000000 + ), + new (TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond, "MillidegreeCelsiusPerSecond", "MillidegreesCelsiusPerSecond", BaseUnits.Undefined, + 1000 + ), + new (TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond, "NanodegreeCelsiusPerSecond", "NanodegreesCelsiusPerSecond", BaseUnits.Undefined, + 1000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs index 96ae1fe2c3..03d6a78e68 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs @@ -129,31 +129,34 @@ public static TemperatureDeltaInfo CreateDefault(FuncAn of representing the default unit mappings for TemperatureDelta. public static IEnumerable> GetDefaultMappings() { - yield return new (TemperatureDeltaUnit.DegreeCelsius, "DegreeCelsius", "DegreesCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (TemperatureDeltaUnit.DegreeDelisle, "DegreeDelisle", "DegreesDelisle", new BaseUnits(temperature: TemperatureUnit.DegreeDelisle), - new QuantityValue(-3, 2) - ); - yield return new (TemperatureDeltaUnit.DegreeFahrenheit, "DegreeFahrenheit", "DegreesFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), - new QuantityValue(9, 5) - ); - yield return new (TemperatureDeltaUnit.DegreeNewton, "DegreeNewton", "DegreesNewton", new BaseUnits(temperature: TemperatureUnit.DegreeNewton), - new QuantityValue(33, 100) - ); - yield return new (TemperatureDeltaUnit.DegreeRankine, "DegreeRankine", "DegreesRankine", new BaseUnits(temperature: TemperatureUnit.DegreeRankine), - new QuantityValue(9, 5) - ); - yield return new (TemperatureDeltaUnit.DegreeReaumur, "DegreeReaumur", "DegreesReaumur", new BaseUnits(temperature: TemperatureUnit.DegreeReaumur), - new QuantityValue(4, 5) - ); - yield return new (TemperatureDeltaUnit.DegreeRoemer, "DegreeRoemer", "DegreesRoemer", new BaseUnits(temperature: TemperatureUnit.DegreeRoemer), - new QuantityValue(21, 40) - ); - yield return new (TemperatureDeltaUnit.Kelvin, "Kelvin", "Kelvins", new BaseUnits(temperature: TemperatureUnit.Kelvin)); - yield return new (TemperatureDeltaUnit.MillidegreeCelsius, "MillidegreeCelsius", "MillidegreesCelsius", BaseUnits.Undefined, - 1000 - ); + return new UnitDefinition[] + { + new (TemperatureDeltaUnit.DegreeCelsius, "DegreeCelsius", "DegreesCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), + 1 + ), + new (TemperatureDeltaUnit.DegreeDelisle, "DegreeDelisle", "DegreesDelisle", new BaseUnits(temperature: TemperatureUnit.DegreeDelisle), + new QuantityValue(-3, 2) + ), + new (TemperatureDeltaUnit.DegreeFahrenheit, "DegreeFahrenheit", "DegreesFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), + new QuantityValue(9, 5) + ), + new (TemperatureDeltaUnit.DegreeNewton, "DegreeNewton", "DegreesNewton", new BaseUnits(temperature: TemperatureUnit.DegreeNewton), + new QuantityValue(33, 100) + ), + new (TemperatureDeltaUnit.DegreeRankine, "DegreeRankine", "DegreesRankine", new BaseUnits(temperature: TemperatureUnit.DegreeRankine), + new QuantityValue(9, 5) + ), + new (TemperatureDeltaUnit.DegreeReaumur, "DegreeReaumur", "DegreesReaumur", new BaseUnits(temperature: TemperatureUnit.DegreeReaumur), + new QuantityValue(4, 5) + ), + new (TemperatureDeltaUnit.DegreeRoemer, "DegreeRoemer", "DegreesRoemer", new BaseUnits(temperature: TemperatureUnit.DegreeRoemer), + new QuantityValue(21, 40) + ), + new (TemperatureDeltaUnit.Kelvin, "Kelvin", "Kelvins", new BaseUnits(temperature: TemperatureUnit.Kelvin)), + new (TemperatureDeltaUnit.MillidegreeCelsius, "MillidegreeCelsius", "MillidegreesCelsius", BaseUnits.Undefined, + 1000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs index 1ca57bfa9d..b07ae5cab8 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs @@ -117,16 +117,19 @@ public static TemperatureGradientInfo CreateDefault(FuncAn of representing the default unit mappings for TemperatureGradient. public static IEnumerable> GetDefaultMappings() { - yield return new (TemperatureGradientUnit.DegreeCelsiusPerKilometer, "DegreeCelsiusPerKilometer", "DegreesCelsiusPerKilometer", new BaseUnits(length: LengthUnit.Kilometer, temperature: TemperatureUnit.DegreeCelsius), - 1000 - ); - yield return new (TemperatureGradientUnit.DegreeCelsiusPerMeter, "DegreeCelsiusPerMeter", "DegreesCelsiusPerMeter", new BaseUnits(length: LengthUnit.Meter, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (TemperatureGradientUnit.DegreeFahrenheitPerFoot, "DegreeFahrenheitPerFoot", "DegreesFahrenheitPerFoot", new BaseUnits(length: LengthUnit.Foot, temperature: TemperatureUnit.DegreeFahrenheit), - new QuantityValue(3429, 6250) - ); - yield return new (TemperatureGradientUnit.KelvinPerMeter, "KelvinPerMeter", "KelvinsPerMeter", new BaseUnits(length: LengthUnit.Meter, temperature: TemperatureUnit.Kelvin)); + return new UnitDefinition[] + { + new (TemperatureGradientUnit.DegreeCelsiusPerKilometer, "DegreeCelsiusPerKilometer", "DegreesCelsiusPerKilometer", new BaseUnits(length: LengthUnit.Kilometer, temperature: TemperatureUnit.DegreeCelsius), + 1000 + ), + new (TemperatureGradientUnit.DegreeCelsiusPerMeter, "DegreeCelsiusPerMeter", "DegreesCelsiusPerMeter", new BaseUnits(length: LengthUnit.Meter, temperature: TemperatureUnit.DegreeCelsius), + 1 + ), + new (TemperatureGradientUnit.DegreeFahrenheitPerFoot, "DegreeFahrenheitPerFoot", "DegreesFahrenheitPerFoot", new BaseUnits(length: LengthUnit.Foot, temperature: TemperatureUnit.DegreeFahrenheit), + new QuantityValue(3429, 6250) + ), + new (TemperatureGradientUnit.KelvinPerMeter, "KelvinPerMeter", "KelvinsPerMeter", new BaseUnits(length: LengthUnit.Meter, temperature: TemperatureUnit.Kelvin)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs index 7e3b9d58cb..79598dfd54 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs @@ -119,13 +119,16 @@ public static ThermalConductivityInfo CreateDefault(FuncAn of representing the default unit mappings for ThermalConductivity. public static IEnumerable> GetDefaultMappings() { - yield return new (ThermalConductivityUnit.BtuPerHourFootFahrenheit, "BtuPerHourFootFahrenheit", "BtusPerHourFootFahrenheit", BaseUnits.Undefined, - new QuantityValue(30480000000, 52752792631) - ); - yield return new (ThermalConductivityUnit.BtuPerSecondInchFahrenheit, "BtuPerSecondInchFahrenheit", "BtusPerSecondInchFahrenheit", BaseUnits.Undefined, - new QuantityValue(6350000, 474775133679) - ); - yield return new (ThermalConductivityUnit.WattPerMeterKelvin, "WattPerMeterKelvin", "WattsPerMeterKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); + return new UnitDefinition[] + { + new (ThermalConductivityUnit.BtuPerHourFootFahrenheit, "BtuPerHourFootFahrenheit", "BtusPerHourFootFahrenheit", BaseUnits.Undefined, + new QuantityValue(30480000000, 52752792631) + ), + new (ThermalConductivityUnit.BtuPerSecondInchFahrenheit, "BtuPerSecondInchFahrenheit", "BtusPerSecondInchFahrenheit", BaseUnits.Undefined, + new QuantityValue(6350000, 474775133679) + ), + new (ThermalConductivityUnit.WattPerMeterKelvin, "WattPerMeterKelvin", "WattsPerMeterKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs index 7aeb1c1152..900113f3d1 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs @@ -117,25 +117,28 @@ public static ThermalInsulanceInfo CreateDefault(FuncAn of representing the default unit mappings for ThermalInsulance. public static IEnumerable> GetDefaultMappings() { - yield return new (ThermalInsulanceUnit.HourSquareFeetDegreeFahrenheitPerBtu, "HourSquareFeetDegreeFahrenheitPerBtu", "HourSquareFeetDegreesFahrenheitPerBtu", BaseUnits.Undefined, - new QuantityValue(52752792631, 9290304000000) - ); - yield return new (ThermalInsulanceUnit.SquareCentimeterHourDegreeCelsiusPerKilocalorie, "SquareCentimeterHourDegreeCelsiusPerKilocalorie", "SquareCentimeterHourDegreesCelsiusPerKilocalorie", BaseUnits.Undefined, - new QuantityValue(523, 45) - ); - yield return new (ThermalInsulanceUnit.SquareCentimeterKelvinPerWatt, "SquareCentimeterKelvinPerWatt", "SquareCentimeterKelvinsPerWatt", BaseUnits.Undefined, - 10 - ); - yield return new (ThermalInsulanceUnit.SquareMeterDegreeCelsiusPerWatt, "SquareMeterDegreeCelsiusPerWatt", "SquareMeterDegreesCelsiusPerWatt", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000) - ); - yield return new (ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt, "SquareMeterKelvinPerKilowatt", "SquareMeterKelvinsPerKilowatt", BaseUnits.Undefined); - yield return new (ThermalInsulanceUnit.SquareMeterKelvinPerWatt, "SquareMeterKelvinPerWatt", "SquareMeterKelvinsPerWatt", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000) - ); - yield return new (ThermalInsulanceUnit.SquareMillimeterKelvinPerWatt, "SquareMillimeterKelvinPerWatt", "SquareMillimeterKelvinsPerWatt", BaseUnits.Undefined, - 1000 - ); + return new UnitDefinition[] + { + new (ThermalInsulanceUnit.HourSquareFeetDegreeFahrenheitPerBtu, "HourSquareFeetDegreeFahrenheitPerBtu", "HourSquareFeetDegreesFahrenheitPerBtu", BaseUnits.Undefined, + new QuantityValue(52752792631, 9290304000000) + ), + new (ThermalInsulanceUnit.SquareCentimeterHourDegreeCelsiusPerKilocalorie, "SquareCentimeterHourDegreeCelsiusPerKilocalorie", "SquareCentimeterHourDegreesCelsiusPerKilocalorie", BaseUnits.Undefined, + new QuantityValue(523, 45) + ), + new (ThermalInsulanceUnit.SquareCentimeterKelvinPerWatt, "SquareCentimeterKelvinPerWatt", "SquareCentimeterKelvinsPerWatt", BaseUnits.Undefined, + 10 + ), + new (ThermalInsulanceUnit.SquareMeterDegreeCelsiusPerWatt, "SquareMeterDegreeCelsiusPerWatt", "SquareMeterDegreesCelsiusPerWatt", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), + new QuantityValue(1, 1000) + ), + new (ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt, "SquareMeterKelvinPerKilowatt", "SquareMeterKelvinsPerKilowatt", BaseUnits.Undefined), + new (ThermalInsulanceUnit.SquareMeterKelvinPerWatt, "SquareMeterKelvinPerWatt", "SquareMeterKelvinsPerWatt", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), + new QuantityValue(1, 1000) + ), + new (ThermalInsulanceUnit.SquareMillimeterKelvinPerWatt, "SquareMillimeterKelvinPerWatt", "SquareMillimeterKelvinsPerWatt", BaseUnits.Undefined, + 1000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs index eebfec6887..7b4e654c8f 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs @@ -117,10 +117,13 @@ public static ThermalResistanceInfo CreateDefault(FuncAn of representing the default unit mappings for ThermalResistance. public static IEnumerable> GetDefaultMappings() { - yield return new (ThermalResistanceUnit.DegreeCelsiusPerWatt, "DegreeCelsiusPerWatt", "DegreesCelsiusPerWatt", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (ThermalResistanceUnit.KelvinPerWatt, "KelvinPerWatt", "KelvinsPerWatt", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); + return new UnitDefinition[] + { + new (ThermalResistanceUnit.DegreeCelsiusPerWatt, "DegreeCelsiusPerWatt", "DegreesCelsiusPerWatt", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), + 1 + ), + new (ThermalResistanceUnit.KelvinPerWatt, "KelvinPerWatt", "KelvinsPerWatt", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs index 6bcd17d8d5..696bb0aa9a 100644 --- a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs @@ -123,85 +123,88 @@ public static TorqueInfo CreateDefault(FuncAn of representing the default unit mappings for Torque. public static IEnumerable> GetDefaultMappings() { - yield return new (TorqueUnit.GramForceCentimeter, "GramForceCentimeter", "GramForceCentimeters", BaseUnits.Undefined, - new QuantityValue(2000000000, 196133) - ); - yield return new (TorqueUnit.GramForceMeter, "GramForceMeter", "GramForceMeters", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (TorqueUnit.GramForceMillimeter, "GramForceMillimeter", "GramForceMillimeters", BaseUnits.Undefined, - new QuantityValue(20000000000, 196133) - ); - yield return new (TorqueUnit.KilogramForceCentimeter, "KilogramForceCentimeter", "KilogramForceCentimeters", BaseUnits.Undefined, - new QuantityValue(2000000, 196133) - ); - yield return new (TorqueUnit.KilogramForceMeter, "KilogramForceMeter", "KilogramForceMeters", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (TorqueUnit.KilogramForceMillimeter, "KilogramForceMillimeter", "KilogramForceMillimeters", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (TorqueUnit.KilonewtonCentimeter, "KilonewtonCentimeter", "KilonewtonCentimeters", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (TorqueUnit.KilonewtonMeter, "KilonewtonMeter", "KilonewtonMeters", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (TorqueUnit.KilonewtonMillimeter, "KilonewtonMillimeter", "KilonewtonMillimeters", BaseUnits.Undefined, - 1 - ); - yield return new (TorqueUnit.KilopoundForceFoot, "KilopoundForceFoot", "KilopoundForceFeet", BaseUnits.Undefined, - new QuantityValue(2500000000000, 3389544870828501) - ); - yield return new (TorqueUnit.KilopoundForceInch, "KilopoundForceInch", "KilopoundForceInches", BaseUnits.Undefined, - new QuantityValue(10000000000000, 1129848290276167) - ); - yield return new (TorqueUnit.MeganewtonCentimeter, "MeganewtonCentimeter", "MeganewtonCentimeters", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (TorqueUnit.MeganewtonMeter, "MeganewtonMeter", "MeganewtonMeters", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (TorqueUnit.MeganewtonMillimeter, "MeganewtonMillimeter", "MeganewtonMillimeters", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (TorqueUnit.MegapoundForceFoot, "MegapoundForceFoot", "MegapoundForceFeet", BaseUnits.Undefined, - new QuantityValue(2500000000, 3389544870828501) - ); - yield return new (TorqueUnit.MegapoundForceInch, "MegapoundForceInch", "MegapoundForceInches", BaseUnits.Undefined, - new QuantityValue(10000000000, 1129848290276167) - ); - yield return new (TorqueUnit.NewtonCentimeter, "NewtonCentimeter", "NewtonCentimeters", BaseUnits.Undefined, - 100 - ); - yield return new (TorqueUnit.NewtonMeter, "NewtonMeter", "NewtonMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (TorqueUnit.NewtonMillimeter, "NewtonMillimeter", "NewtonMillimeters", BaseUnits.Undefined, - 1000 - ); - yield return new (TorqueUnit.OunceForceFoot, "OunceForceFoot", "OunceForceFeet", BaseUnits.Undefined, - new QuantityValue(40000000000000000, 3389544870828501) - ); - yield return new (TorqueUnit.OunceForceInch, "OunceForceInch", "OunceForceInches", BaseUnits.Undefined, - new QuantityValue(160000000000000000, 1129848290276167) - ); - yield return new (TorqueUnit.PoundalFoot, "PoundalFoot", "PoundalFeet", BaseUnits.Undefined, - new QuantityValue(156250000000000, 6584392202157) - ); - yield return new (TorqueUnit.PoundForceFoot, "PoundForceFoot", "PoundForceFeet", BaseUnits.Undefined, - new QuantityValue(2500000000000000, 3389544870828501) - ); - yield return new (TorqueUnit.PoundForceInch, "PoundForceInch", "PoundForceInches", BaseUnits.Undefined, - new QuantityValue(10000000000000000, 1129848290276167) - ); - yield return new (TorqueUnit.TonneForceCentimeter, "TonneForceCentimeter", "TonneForceCentimeters", BaseUnits.Undefined, - new QuantityValue(2000, 196133) - ); - yield return new (TorqueUnit.TonneForceMeter, "TonneForceMeter", "TonneForceMeters", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (TorqueUnit.TonneForceMillimeter, "TonneForceMillimeter", "TonneForceMillimeters", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); + return new UnitDefinition[] + { + new (TorqueUnit.GramForceCentimeter, "GramForceCentimeter", "GramForceCentimeters", BaseUnits.Undefined, + new QuantityValue(2000000000, 196133) + ), + new (TorqueUnit.GramForceMeter, "GramForceMeter", "GramForceMeters", BaseUnits.Undefined, + new QuantityValue(20000000, 196133) + ), + new (TorqueUnit.GramForceMillimeter, "GramForceMillimeter", "GramForceMillimeters", BaseUnits.Undefined, + new QuantityValue(20000000000, 196133) + ), + new (TorqueUnit.KilogramForceCentimeter, "KilogramForceCentimeter", "KilogramForceCentimeters", BaseUnits.Undefined, + new QuantityValue(2000000, 196133) + ), + new (TorqueUnit.KilogramForceMeter, "KilogramForceMeter", "KilogramForceMeters", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + new (TorqueUnit.KilogramForceMillimeter, "KilogramForceMillimeter", "KilogramForceMillimeters", BaseUnits.Undefined, + new QuantityValue(20000000, 196133) + ), + new (TorqueUnit.KilonewtonCentimeter, "KilonewtonCentimeter", "KilonewtonCentimeters", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (TorqueUnit.KilonewtonMeter, "KilonewtonMeter", "KilonewtonMeters", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (TorqueUnit.KilonewtonMillimeter, "KilonewtonMillimeter", "KilonewtonMillimeters", BaseUnits.Undefined, + 1 + ), + new (TorqueUnit.KilopoundForceFoot, "KilopoundForceFoot", "KilopoundForceFeet", BaseUnits.Undefined, + new QuantityValue(2500000000000, 3389544870828501) + ), + new (TorqueUnit.KilopoundForceInch, "KilopoundForceInch", "KilopoundForceInches", BaseUnits.Undefined, + new QuantityValue(10000000000000, 1129848290276167) + ), + new (TorqueUnit.MeganewtonCentimeter, "MeganewtonCentimeter", "MeganewtonCentimeters", BaseUnits.Undefined, + new QuantityValue(1, 10000) + ), + new (TorqueUnit.MeganewtonMeter, "MeganewtonMeter", "MeganewtonMeters", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), + new QuantityValue(1, 1000000) + ), + new (TorqueUnit.MeganewtonMillimeter, "MeganewtonMillimeter", "MeganewtonMillimeters", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (TorqueUnit.MegapoundForceFoot, "MegapoundForceFoot", "MegapoundForceFeet", BaseUnits.Undefined, + new QuantityValue(2500000000, 3389544870828501) + ), + new (TorqueUnit.MegapoundForceInch, "MegapoundForceInch", "MegapoundForceInches", BaseUnits.Undefined, + new QuantityValue(10000000000, 1129848290276167) + ), + new (TorqueUnit.NewtonCentimeter, "NewtonCentimeter", "NewtonCentimeters", BaseUnits.Undefined, + 100 + ), + new (TorqueUnit.NewtonMeter, "NewtonMeter", "NewtonMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)), + new (TorqueUnit.NewtonMillimeter, "NewtonMillimeter", "NewtonMillimeters", BaseUnits.Undefined, + 1000 + ), + new (TorqueUnit.OunceForceFoot, "OunceForceFoot", "OunceForceFeet", BaseUnits.Undefined, + new QuantityValue(40000000000000000, 3389544870828501) + ), + new (TorqueUnit.OunceForceInch, "OunceForceInch", "OunceForceInches", BaseUnits.Undefined, + new QuantityValue(160000000000000000, 1129848290276167) + ), + new (TorqueUnit.PoundalFoot, "PoundalFoot", "PoundalFeet", BaseUnits.Undefined, + new QuantityValue(156250000000000, 6584392202157) + ), + new (TorqueUnit.PoundForceFoot, "PoundForceFoot", "PoundForceFeet", BaseUnits.Undefined, + new QuantityValue(2500000000000000, 3389544870828501) + ), + new (TorqueUnit.PoundForceInch, "PoundForceInch", "PoundForceInches", BaseUnits.Undefined, + new QuantityValue(10000000000000000, 1129848290276167) + ), + new (TorqueUnit.TonneForceCentimeter, "TonneForceCentimeter", "TonneForceCentimeters", BaseUnits.Undefined, + new QuantityValue(2000, 196133) + ), + new (TorqueUnit.TonneForceMeter, "TonneForceMeter", "TonneForceMeters", BaseUnits.Undefined, + new QuantityValue(20, 196133) + ), + new (TorqueUnit.TonneForceMillimeter, "TonneForceMillimeter", "TonneForceMillimeters", BaseUnits.Undefined, + new QuantityValue(20000, 196133) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs b/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs index 130640e9e8..a06cdcd510 100644 --- a/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs @@ -119,7 +119,10 @@ public static TurbidityInfo CreateDefault(FuncAn of representing the default unit mappings for Turbidity. public static IEnumerable> GetDefaultMappings() { - yield return new (TurbidityUnit.NTU, "NTU", "NTU", BaseUnits.Undefined); + return new UnitDefinition[] + { + new (TurbidityUnit.NTU, "NTU", "NTU", BaseUnits.Undefined), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs b/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs index f08e9633a7..cc84df8d46 100644 --- a/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs @@ -116,7 +116,10 @@ public static VitaminAInfo CreateDefault(FuncAn of representing the default unit mappings for VitaminA. public static IEnumerable> GetDefaultMappings() { - yield return new (VitaminAUnit.InternationalUnit, "InternationalUnit", "InternationalUnits", BaseUnits.Undefined); + return new UnitDefinition[] + { + new (VitaminAUnit.InternationalUnit, "InternationalUnit", "InternationalUnits", BaseUnits.Undefined), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs index 5fae8578a3..fb7a240cc6 100644 --- a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs @@ -132,166 +132,169 @@ public static VolumeInfo CreateDefault(FuncAn of representing the default unit mappings for Volume. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumeUnit.AcreFoot, "AcreFoot", "AcreFeet", BaseUnits.Undefined, - new QuantityValue(48828125, 60228605349) - ); - yield return new (VolumeUnit.AuTablespoon, "AuTablespoon", "AuTablespoons", BaseUnits.Undefined, - 50000 - ); - yield return new (VolumeUnit.BoardFoot, "BoardFoot", "BoardFeet", BaseUnits.Undefined, - new QuantityValue(7812500000, 18435447) - ); - yield return new (VolumeUnit.Centiliter, "Centiliter", "Centiliters", BaseUnits.Undefined, - 100000 - ); - yield return new (VolumeUnit.CubicCentimeter, "CubicCentimeter", "CubicCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - 1000000 - ); - yield return new (VolumeUnit.CubicDecimeter, "CubicDecimeter", "CubicDecimeters", new BaseUnits(length: LengthUnit.Decimeter), - 1000 - ); - yield return new (VolumeUnit.CubicFoot, "CubicFoot", "CubicFeet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(1953125000, 55306341) - ); - yield return new (VolumeUnit.CubicHectometer, "CubicHectometer", "CubicHectometers", new BaseUnits(length: LengthUnit.Hectometer), - new QuantityValue(1, 1000000) - ); - yield return new (VolumeUnit.CubicInch, "CubicInch", "CubicInches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(125000000000, 2048383) - ); - yield return new (VolumeUnit.CubicKilometer, "CubicKilometer", "CubicKilometers", new BaseUnits(length: LengthUnit.Kilometer), - new QuantityValue(1, 1000000000) - ); - yield return new (VolumeUnit.CubicMeter, "CubicMeter", "CubicMeters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (VolumeUnit.CubicMicrometer, "CubicMicrometer", "CubicMicrometers", new BaseUnits(length: LengthUnit.Micrometer), - 1000000000000000000 - ); - yield return new (VolumeUnit.CubicMile, "CubicMile", "CubicMiles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(1953125, 8140980127813632) - ); - yield return new (VolumeUnit.CubicMillimeter, "CubicMillimeter", "CubicMillimeters", new BaseUnits(length: LengthUnit.Millimeter), - 1000000000 - ); - yield return new (VolumeUnit.CubicYard, "CubicYard", "CubicYards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1953125000, 1493271207) - ); - yield return new (VolumeUnit.Decaliter, "Decaliter", "Decaliters", BaseUnits.Undefined, - 100 - ); - yield return new (VolumeUnit.DecausGallon, "DecausGallon", "DecausGallons", BaseUnits.Undefined, - new QuantityValue(12500000000, 473176473) - ); - yield return new (VolumeUnit.Deciliter, "Deciliter", "Deciliters", BaseUnits.Undefined, - 10000 - ); - yield return new (VolumeUnit.DeciusGallon, "DeciusGallon", "DeciusGallons", BaseUnits.Undefined, - new QuantityValue(1250000000000, 473176473) - ); - yield return new (VolumeUnit.Hectoliter, "Hectoliter", "Hectoliters", BaseUnits.Undefined, - 10 - ); - yield return new (VolumeUnit.HectousGallon, "HectousGallon", "HectousGallons", BaseUnits.Undefined, - new QuantityValue(1250000000, 473176473) - ); - yield return new (VolumeUnit.HundredCubicFoot, "HundredCubicFoot", "HundredCubicFeet", BaseUnits.Undefined, - new QuantityValue(19531250, 55306341) - ); - yield return new (VolumeUnit.ImperialBeerBarrel, "ImperialBeerBarrel", "ImperialBeerBarrels", BaseUnits.Undefined, - new QuantityValue(25000000, 4091481) - ); - yield return new (VolumeUnit.ImperialGallon, "ImperialGallon", "ImperialGallons", BaseUnits.Undefined, - new QuantityValue(100000000, 454609) - ); - yield return new (VolumeUnit.ImperialOunce, "ImperialOunce", "ImperialOunces", BaseUnits.Undefined, - new QuantityValue(16000000000, 454609) - ); - yield return new (VolumeUnit.ImperialPint, "ImperialPint", "ImperialPints", BaseUnits.Undefined, - new QuantityValue(800000000, 454609) - ); - yield return new (VolumeUnit.ImperialQuart, "ImperialQuart", "ImperialQuarts", BaseUnits.Undefined, - new QuantityValue(400000000, 454609) - ); - yield return new (VolumeUnit.KiloimperialGallon, "KiloimperialGallon", "KiloimperialGallons", BaseUnits.Undefined, - new QuantityValue(100000, 454609) - ); - yield return new (VolumeUnit.Kiloliter, "Kiloliter", "Kiloliters", new BaseUnits(length: LengthUnit.Meter), - 1 - ); - yield return new (VolumeUnit.KilousGallon, "KilousGallon", "KilousGallons", BaseUnits.Undefined, - new QuantityValue(125000000, 473176473) - ); - yield return new (VolumeUnit.Liter, "Liter", "Liters", new BaseUnits(length: LengthUnit.Decimeter), - 1000 - ); - yield return new (VolumeUnit.MegaimperialGallon, "MegaimperialGallon", "MegaimperialGallons", BaseUnits.Undefined, - new QuantityValue(100, 454609) - ); - yield return new (VolumeUnit.Megaliter, "Megaliter", "Megaliters", new BaseUnits(length: LengthUnit.Decameter), - new QuantityValue(1, 1000) - ); - yield return new (VolumeUnit.MegausGallon, "MegausGallon", "MegausGallons", BaseUnits.Undefined, - new QuantityValue(125000, 473176473) - ); - yield return new (VolumeUnit.MetricCup, "MetricCup", "MetricCups", BaseUnits.Undefined, - 4000 - ); - yield return new (VolumeUnit.MetricTablespoon, "MetricTablespoon", "MetricTablespoons", BaseUnits.Undefined, - new QuantityValue(200000, 3) - ); - yield return new (VolumeUnit.MetricTeaspoon, "MetricTeaspoon", "MetricTeaspoons", BaseUnits.Undefined, - 200000 - ); - yield return new (VolumeUnit.Microliter, "Microliter", "Microliters", new BaseUnits(length: LengthUnit.Millimeter), - 1000000000 - ); - yield return new (VolumeUnit.Milliliter, "Milliliter", "Milliliters", new BaseUnits(length: LengthUnit.Centimeter), - 1000000 - ); - yield return new (VolumeUnit.MillionCubicFoot, "MillionCubicFoot", "MillionCubicFeet", BaseUnits.Undefined, - new QuantityValue(15625, 442450728) - ); - yield return new (VolumeUnit.Nanoliter, "Nanoliter", "Nanoliters", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (VolumeUnit.OilBarrel, "OilBarrel", "OilBarrels", BaseUnits.Undefined, - new QuantityValue(62500000000, 9936705933) - ); - yield return new (VolumeUnit.ThousandCubicFoot, "ThousandCubicFoot", "ThousandCubicFeet", BaseUnits.Undefined, - new QuantityValue(1953125, 55306341) - ); - yield return new (VolumeUnit.ThousandCubicMeter, "ThousandCubicMeter", "ThousandCubicMeters", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (VolumeUnit.UkTablespoon, "UkTablespoon", "UkTablespoons", BaseUnits.Undefined, - new QuantityValue(200000, 3) - ); - yield return new (VolumeUnit.UsBeerBarrel, "UsBeerBarrel", "UsBeerBarrels", BaseUnits.Undefined, - new QuantityValue(125000000000, 14668470663) - ); - yield return new (VolumeUnit.UsCustomaryCup, "UsCustomaryCup", "UsCustomaryCups", BaseUnits.Undefined, - new QuantityValue(2000000000000, 473176473) - ); - yield return new (VolumeUnit.UsGallon, "UsGallon", "UsGallons", BaseUnits.Undefined, - new QuantityValue(125000000000, 473176473) - ); - yield return new (VolumeUnit.UsLegalCup, "UsLegalCup", "UsLegalCups", BaseUnits.Undefined, - new QuantityValue(12500, 3) - ); - yield return new (VolumeUnit.UsOunce, "UsOunce", "UsOunces", BaseUnits.Undefined, - new QuantityValue(16000000000000, 473176473) - ); - yield return new (VolumeUnit.UsPint, "UsPint", "UsPints", BaseUnits.Undefined, - new QuantityValue(1000000000000, 473176473) - ); - yield return new (VolumeUnit.UsQuart, "UsQuart", "UsQuarts", BaseUnits.Undefined, - new QuantityValue(500000000000, 473176473) - ); - yield return new (VolumeUnit.UsTablespoon, "UsTablespoon", "UsTablespoons", BaseUnits.Undefined, - new QuantityValue(32000000000000, 473176473) - ); - yield return new (VolumeUnit.UsTeaspoon, "UsTeaspoon", "UsTeaspoons", BaseUnits.Undefined, - new QuantityValue(32000000000000, 157725491) - ); + return new UnitDefinition[] + { + new (VolumeUnit.AcreFoot, "AcreFoot", "AcreFeet", BaseUnits.Undefined, + new QuantityValue(48828125, 60228605349) + ), + new (VolumeUnit.AuTablespoon, "AuTablespoon", "AuTablespoons", BaseUnits.Undefined, + 50000 + ), + new (VolumeUnit.BoardFoot, "BoardFoot", "BoardFeet", BaseUnits.Undefined, + new QuantityValue(7812500000, 18435447) + ), + new (VolumeUnit.Centiliter, "Centiliter", "Centiliters", BaseUnits.Undefined, + 100000 + ), + new (VolumeUnit.CubicCentimeter, "CubicCentimeter", "CubicCentimeters", new BaseUnits(length: LengthUnit.Centimeter), + 1000000 + ), + new (VolumeUnit.CubicDecimeter, "CubicDecimeter", "CubicDecimeters", new BaseUnits(length: LengthUnit.Decimeter), + 1000 + ), + new (VolumeUnit.CubicFoot, "CubicFoot", "CubicFeet", new BaseUnits(length: LengthUnit.Foot), + new QuantityValue(1953125000, 55306341) + ), + new (VolumeUnit.CubicHectometer, "CubicHectometer", "CubicHectometers", new BaseUnits(length: LengthUnit.Hectometer), + new QuantityValue(1, 1000000) + ), + new (VolumeUnit.CubicInch, "CubicInch", "CubicInches", new BaseUnits(length: LengthUnit.Inch), + new QuantityValue(125000000000, 2048383) + ), + new (VolumeUnit.CubicKilometer, "CubicKilometer", "CubicKilometers", new BaseUnits(length: LengthUnit.Kilometer), + new QuantityValue(1, 1000000000) + ), + new (VolumeUnit.CubicMeter, "CubicMeter", "CubicMeters", new BaseUnits(length: LengthUnit.Meter)), + new (VolumeUnit.CubicMicrometer, "CubicMicrometer", "CubicMicrometers", new BaseUnits(length: LengthUnit.Micrometer), + 1000000000000000000 + ), + new (VolumeUnit.CubicMile, "CubicMile", "CubicMiles", new BaseUnits(length: LengthUnit.Mile), + new QuantityValue(1953125, 8140980127813632) + ), + new (VolumeUnit.CubicMillimeter, "CubicMillimeter", "CubicMillimeters", new BaseUnits(length: LengthUnit.Millimeter), + 1000000000 + ), + new (VolumeUnit.CubicYard, "CubicYard", "CubicYards", new BaseUnits(length: LengthUnit.Yard), + new QuantityValue(1953125000, 1493271207) + ), + new (VolumeUnit.Decaliter, "Decaliter", "Decaliters", BaseUnits.Undefined, + 100 + ), + new (VolumeUnit.DecausGallon, "DecausGallon", "DecausGallons", BaseUnits.Undefined, + new QuantityValue(12500000000, 473176473) + ), + new (VolumeUnit.Deciliter, "Deciliter", "Deciliters", BaseUnits.Undefined, + 10000 + ), + new (VolumeUnit.DeciusGallon, "DeciusGallon", "DeciusGallons", BaseUnits.Undefined, + new QuantityValue(1250000000000, 473176473) + ), + new (VolumeUnit.Hectoliter, "Hectoliter", "Hectoliters", BaseUnits.Undefined, + 10 + ), + new (VolumeUnit.HectousGallon, "HectousGallon", "HectousGallons", BaseUnits.Undefined, + new QuantityValue(1250000000, 473176473) + ), + new (VolumeUnit.HundredCubicFoot, "HundredCubicFoot", "HundredCubicFeet", BaseUnits.Undefined, + new QuantityValue(19531250, 55306341) + ), + new (VolumeUnit.ImperialBeerBarrel, "ImperialBeerBarrel", "ImperialBeerBarrels", BaseUnits.Undefined, + new QuantityValue(25000000, 4091481) + ), + new (VolumeUnit.ImperialGallon, "ImperialGallon", "ImperialGallons", BaseUnits.Undefined, + new QuantityValue(100000000, 454609) + ), + new (VolumeUnit.ImperialOunce, "ImperialOunce", "ImperialOunces", BaseUnits.Undefined, + new QuantityValue(16000000000, 454609) + ), + new (VolumeUnit.ImperialPint, "ImperialPint", "ImperialPints", BaseUnits.Undefined, + new QuantityValue(800000000, 454609) + ), + new (VolumeUnit.ImperialQuart, "ImperialQuart", "ImperialQuarts", BaseUnits.Undefined, + new QuantityValue(400000000, 454609) + ), + new (VolumeUnit.KiloimperialGallon, "KiloimperialGallon", "KiloimperialGallons", BaseUnits.Undefined, + new QuantityValue(100000, 454609) + ), + new (VolumeUnit.Kiloliter, "Kiloliter", "Kiloliters", new BaseUnits(length: LengthUnit.Meter), + 1 + ), + new (VolumeUnit.KilousGallon, "KilousGallon", "KilousGallons", BaseUnits.Undefined, + new QuantityValue(125000000, 473176473) + ), + new (VolumeUnit.Liter, "Liter", "Liters", new BaseUnits(length: LengthUnit.Decimeter), + 1000 + ), + new (VolumeUnit.MegaimperialGallon, "MegaimperialGallon", "MegaimperialGallons", BaseUnits.Undefined, + new QuantityValue(100, 454609) + ), + new (VolumeUnit.Megaliter, "Megaliter", "Megaliters", new BaseUnits(length: LengthUnit.Decameter), + new QuantityValue(1, 1000) + ), + new (VolumeUnit.MegausGallon, "MegausGallon", "MegausGallons", BaseUnits.Undefined, + new QuantityValue(125000, 473176473) + ), + new (VolumeUnit.MetricCup, "MetricCup", "MetricCups", BaseUnits.Undefined, + 4000 + ), + new (VolumeUnit.MetricTablespoon, "MetricTablespoon", "MetricTablespoons", BaseUnits.Undefined, + new QuantityValue(200000, 3) + ), + new (VolumeUnit.MetricTeaspoon, "MetricTeaspoon", "MetricTeaspoons", BaseUnits.Undefined, + 200000 + ), + new (VolumeUnit.Microliter, "Microliter", "Microliters", new BaseUnits(length: LengthUnit.Millimeter), + 1000000000 + ), + new (VolumeUnit.Milliliter, "Milliliter", "Milliliters", new BaseUnits(length: LengthUnit.Centimeter), + 1000000 + ), + new (VolumeUnit.MillionCubicFoot, "MillionCubicFoot", "MillionCubicFeet", BaseUnits.Undefined, + new QuantityValue(15625, 442450728) + ), + new (VolumeUnit.Nanoliter, "Nanoliter", "Nanoliters", BaseUnits.Undefined, + 1000000000000 + ), + new (VolumeUnit.OilBarrel, "OilBarrel", "OilBarrels", BaseUnits.Undefined, + new QuantityValue(62500000000, 9936705933) + ), + new (VolumeUnit.ThousandCubicFoot, "ThousandCubicFoot", "ThousandCubicFeet", BaseUnits.Undefined, + new QuantityValue(1953125, 55306341) + ), + new (VolumeUnit.ThousandCubicMeter, "ThousandCubicMeter", "ThousandCubicMeters", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (VolumeUnit.UkTablespoon, "UkTablespoon", "UkTablespoons", BaseUnits.Undefined, + new QuantityValue(200000, 3) + ), + new (VolumeUnit.UsBeerBarrel, "UsBeerBarrel", "UsBeerBarrels", BaseUnits.Undefined, + new QuantityValue(125000000000, 14668470663) + ), + new (VolumeUnit.UsCustomaryCup, "UsCustomaryCup", "UsCustomaryCups", BaseUnits.Undefined, + new QuantityValue(2000000000000, 473176473) + ), + new (VolumeUnit.UsGallon, "UsGallon", "UsGallons", BaseUnits.Undefined, + new QuantityValue(125000000000, 473176473) + ), + new (VolumeUnit.UsLegalCup, "UsLegalCup", "UsLegalCups", BaseUnits.Undefined, + new QuantityValue(12500, 3) + ), + new (VolumeUnit.UsOunce, "UsOunce", "UsOunces", BaseUnits.Undefined, + new QuantityValue(16000000000000, 473176473) + ), + new (VolumeUnit.UsPint, "UsPint", "UsPints", BaseUnits.Undefined, + new QuantityValue(1000000000000, 473176473) + ), + new (VolumeUnit.UsQuart, "UsQuart", "UsQuarts", BaseUnits.Undefined, + new QuantityValue(500000000000, 473176473) + ), + new (VolumeUnit.UsTablespoon, "UsTablespoon", "UsTablespoons", BaseUnits.Undefined, + new QuantityValue(32000000000000, 473176473) + ), + new (VolumeUnit.UsTeaspoon, "UsTeaspoon", "UsTeaspoons", BaseUnits.Undefined, + new QuantityValue(32000000000000, 157725491) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs index ab7a1cdc96..de1426c4fb 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs @@ -121,64 +121,67 @@ public static VolumeConcentrationInfo CreateDefault(FuncAn of representing the default unit mappings for VolumeConcentration. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumeConcentrationUnit.CentiliterPerLiter, "CentiliterPerLiter", "CentilitersPerLiter", BaseUnits.Undefined, - 100 - ); - yield return new (VolumeConcentrationUnit.CentiliterPerMilliliter, "CentiliterPerMilliliter", "CentilitersPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (VolumeConcentrationUnit.DeciliterPerLiter, "DeciliterPerLiter", "DecilitersPerLiter", BaseUnits.Undefined, - 10 - ); - yield return new (VolumeConcentrationUnit.DeciliterPerMilliliter, "DeciliterPerMilliliter", "DecilitersPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (VolumeConcentrationUnit.DecimalFraction, "DecimalFraction", "DecimalFractions", BaseUnits.Undefined); - yield return new (VolumeConcentrationUnit.LiterPerLiter, "LiterPerLiter", "LitersPerLiter", BaseUnits.Undefined, - 1 - ); - yield return new (VolumeConcentrationUnit.LiterPerMilliliter, "LiterPerMilliliter", "LitersPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (VolumeConcentrationUnit.MicroliterPerLiter, "MicroliterPerLiter", "MicrolitersPerLiter", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumeConcentrationUnit.MicroliterPerMilliliter, "MicroliterPerMilliliter", "MicrolitersPerMilliliter", BaseUnits.Undefined, - 1000 - ); - yield return new (VolumeConcentrationUnit.MilliliterPerLiter, "MilliliterPerLiter", "MillilitersPerLiter", BaseUnits.Undefined, - 1000 - ); - yield return new (VolumeConcentrationUnit.MilliliterPerMilliliter, "MilliliterPerMilliliter", "MillilitersPerMilliliter", BaseUnits.Undefined, - 1 - ); - yield return new (VolumeConcentrationUnit.NanoliterPerLiter, "NanoliterPerLiter", "NanolitersPerLiter", BaseUnits.Undefined, - 1000000000 - ); - yield return new (VolumeConcentrationUnit.NanoliterPerMilliliter, "NanoliterPerMilliliter", "NanolitersPerMilliliter", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumeConcentrationUnit.PartPerBillion, "PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, - 1000000000 - ); - yield return new (VolumeConcentrationUnit.PartPerMillion, "PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumeConcentrationUnit.PartPerThousand, "PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, - 1000 - ); - yield return new (VolumeConcentrationUnit.PartPerTrillion, "PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (VolumeConcentrationUnit.Percent, "Percent", "Percent", BaseUnits.Undefined, - 100 - ); - yield return new (VolumeConcentrationUnit.PicoliterPerLiter, "PicoliterPerLiter", "PicolitersPerLiter", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (VolumeConcentrationUnit.PicoliterPerMilliliter, "PicoliterPerMilliliter", "PicolitersPerMilliliter", BaseUnits.Undefined, - 1000000000 - ); + return new UnitDefinition[] + { + new (VolumeConcentrationUnit.CentiliterPerLiter, "CentiliterPerLiter", "CentilitersPerLiter", BaseUnits.Undefined, + 100 + ), + new (VolumeConcentrationUnit.CentiliterPerMilliliter, "CentiliterPerMilliliter", "CentilitersPerMilliliter", BaseUnits.Undefined, + new QuantityValue(1, 10) + ), + new (VolumeConcentrationUnit.DeciliterPerLiter, "DeciliterPerLiter", "DecilitersPerLiter", BaseUnits.Undefined, + 10 + ), + new (VolumeConcentrationUnit.DeciliterPerMilliliter, "DeciliterPerMilliliter", "DecilitersPerMilliliter", BaseUnits.Undefined, + new QuantityValue(1, 100) + ), + new (VolumeConcentrationUnit.DecimalFraction, "DecimalFraction", "DecimalFractions", BaseUnits.Undefined), + new (VolumeConcentrationUnit.LiterPerLiter, "LiterPerLiter", "LitersPerLiter", BaseUnits.Undefined, + 1 + ), + new (VolumeConcentrationUnit.LiterPerMilliliter, "LiterPerMilliliter", "LitersPerMilliliter", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (VolumeConcentrationUnit.MicroliterPerLiter, "MicroliterPerLiter", "MicrolitersPerLiter", BaseUnits.Undefined, + 1000000 + ), + new (VolumeConcentrationUnit.MicroliterPerMilliliter, "MicroliterPerMilliliter", "MicrolitersPerMilliliter", BaseUnits.Undefined, + 1000 + ), + new (VolumeConcentrationUnit.MilliliterPerLiter, "MilliliterPerLiter", "MillilitersPerLiter", BaseUnits.Undefined, + 1000 + ), + new (VolumeConcentrationUnit.MilliliterPerMilliliter, "MilliliterPerMilliliter", "MillilitersPerMilliliter", BaseUnits.Undefined, + 1 + ), + new (VolumeConcentrationUnit.NanoliterPerLiter, "NanoliterPerLiter", "NanolitersPerLiter", BaseUnits.Undefined, + 1000000000 + ), + new (VolumeConcentrationUnit.NanoliterPerMilliliter, "NanoliterPerMilliliter", "NanolitersPerMilliliter", BaseUnits.Undefined, + 1000000 + ), + new (VolumeConcentrationUnit.PartPerBillion, "PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, + 1000000000 + ), + new (VolumeConcentrationUnit.PartPerMillion, "PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, + 1000000 + ), + new (VolumeConcentrationUnit.PartPerThousand, "PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, + 1000 + ), + new (VolumeConcentrationUnit.PartPerTrillion, "PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, + 1000000000000 + ), + new (VolumeConcentrationUnit.Percent, "Percent", "Percent", BaseUnits.Undefined, + 100 + ), + new (VolumeConcentrationUnit.PicoliterPerLiter, "PicoliterPerLiter", "PicolitersPerLiter", BaseUnits.Undefined, + 1000000000000 + ), + new (VolumeConcentrationUnit.PicoliterPerMilliliter, "PicoliterPerMilliliter", "PicolitersPerMilliliter", BaseUnits.Undefined, + 1000000000 + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs index 884e08ce77..aee613e642 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs @@ -123,238 +123,241 @@ public static VolumeFlowInfo CreateDefault(FuncAn of representing the default unit mappings for VolumeFlow. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumeFlowUnit.AcreFootPerDay, "AcreFootPerDay", "AcreFeetPerDay", BaseUnits.Undefined, - new QuantityValue(156250000000, 2230689087) - ); - yield return new (VolumeFlowUnit.AcreFootPerHour, "AcreFootPerHour", "AcreFeetPerHour", BaseUnits.Undefined, - new QuantityValue(19531250000, 6692067261) - ); - yield return new (VolumeFlowUnit.AcreFootPerMinute, "AcreFootPerMinute", "AcreFeetPerMinute", BaseUnits.Undefined, - new QuantityValue(976562500, 20076201783) - ); - yield return new (VolumeFlowUnit.AcreFootPerSecond, "AcreFootPerSecond", "AcreFeetPerSecond", BaseUnits.Undefined, - new QuantityValue(48828125, 60228605349) - ); - yield return new (VolumeFlowUnit.CentiliterPerDay, "CentiliterPerDay", "CentilitersPerDay", BaseUnits.Undefined, - 8640000000 - ); - yield return new (VolumeFlowUnit.CentiliterPerHour, "CentiliterPerHour", "CentilitersPerHour", BaseUnits.Undefined, - 360000000 - ); - yield return new (VolumeFlowUnit.CentiliterPerMinute, "CentiliterPerMinute", "CentilitersPerMinute", BaseUnits.Undefined, - 6000000 - ); - yield return new (VolumeFlowUnit.CentiliterPerSecond, "CentiliterPerSecond", "CentilitersPerSecond", BaseUnits.Undefined, - 100000 - ); - yield return new (VolumeFlowUnit.CubicCentimeterPerMinute, "CubicCentimeterPerMinute", "CubicCentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), - 60000000 - ); - yield return new (VolumeFlowUnit.CubicDecimeterPerMinute, "CubicDecimeterPerMinute", "CubicDecimetersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), - 60000 - ); - yield return new (VolumeFlowUnit.CubicFootPerHour, "CubicFootPerHour", "CubicFeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), - new QuantityValue(781250000000, 6145149) - ); - yield return new (VolumeFlowUnit.CubicFootPerMinute, "CubicFootPerMinute", "CubicFeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), - new QuantityValue(39062500000, 18435447) - ); - yield return new (VolumeFlowUnit.CubicFootPerSecond, "CubicFootPerSecond", "CubicFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1953125000, 55306341) - ); - yield return new (VolumeFlowUnit.CubicInchPerMinute, "CubicInchPerMinute", "CubicInchesPerMinute", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Minute), - new QuantityValue(7500000000000, 2048383) - ); - yield return new (VolumeFlowUnit.CubicInchPerSecond, "CubicInchPerSecond", "CubicInchesPerSecond", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), - new QuantityValue(125000000000, 2048383) - ); - yield return new (VolumeFlowUnit.CubicMeterPerDay, "CubicMeterPerDay", "CubicMetersPerDay", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Day), - 86400 - ); - yield return new (VolumeFlowUnit.CubicMeterPerHour, "CubicMeterPerHour", "CubicMetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), - 3600 - ); - yield return new (VolumeFlowUnit.CubicMeterPerMinute, "CubicMeterPerMinute", "CubicMetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), - 60 - ); - yield return new (VolumeFlowUnit.CubicMeterPerSecond, "CubicMeterPerSecond", "CubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (VolumeFlowUnit.CubicMillimeterPerMinute, "CubicMillimeterPerMinute", "CubicMillimetersPerMinute", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Minute), - 60000000000 - ); - yield return new (VolumeFlowUnit.CubicMillimeterPerSecond, "CubicMillimeterPerSecond", "CubicMillimetersPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000000000 - ); - yield return new (VolumeFlowUnit.CubicYardPerDay, "CubicYardPerDay", "CubicYardsPerDay", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Day), - new QuantityValue(6250000000000, 55306341) - ); - yield return new (VolumeFlowUnit.CubicYardPerHour, "CubicYardPerHour", "CubicYardsPerHour", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Hour), - new QuantityValue(781250000000, 165919023) - ); - yield return new (VolumeFlowUnit.CubicYardPerMinute, "CubicYardPerMinute", "CubicYardsPerMinute", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Minute), - new QuantityValue(39062500000, 497757069) - ); - yield return new (VolumeFlowUnit.CubicYardPerSecond, "CubicYardPerSecond", "CubicYardsPerSecond", BaseUnits.Undefined, - new QuantityValue(1953125000, 1493271207) - ); - yield return new (VolumeFlowUnit.DecaliterPerDay, "DecaliterPerDay", "DecalitersPerDay", BaseUnits.Undefined, - 8640000 - ); - yield return new (VolumeFlowUnit.DecaliterPerHour, "DecaliterPerHour", "DecalitersPerHour", BaseUnits.Undefined, - 360000 - ); - yield return new (VolumeFlowUnit.DecaliterPerMinute, "DecaliterPerMinute", "DecalitersPerMinute", BaseUnits.Undefined, - 6000 - ); - yield return new (VolumeFlowUnit.DecaliterPerSecond, "DecaliterPerSecond", "DecalitersPerSecond", BaseUnits.Undefined, - 100 - ); - yield return new (VolumeFlowUnit.DeciliterPerDay, "DeciliterPerDay", "DecilitersPerDay", BaseUnits.Undefined, - 864000000 - ); - yield return new (VolumeFlowUnit.DeciliterPerHour, "DeciliterPerHour", "DecilitersPerHour", BaseUnits.Undefined, - 36000000 - ); - yield return new (VolumeFlowUnit.DeciliterPerMinute, "DeciliterPerMinute", "DecilitersPerMinute", BaseUnits.Undefined, - 600000 - ); - yield return new (VolumeFlowUnit.DeciliterPerSecond, "DeciliterPerSecond", "DecilitersPerSecond", BaseUnits.Undefined, - 10000 - ); - yield return new (VolumeFlowUnit.HectoliterPerDay, "HectoliterPerDay", "HectolitersPerDay", BaseUnits.Undefined, - 864000 - ); - yield return new (VolumeFlowUnit.HectoliterPerHour, "HectoliterPerHour", "HectolitersPerHour", BaseUnits.Undefined, - 36000 - ); - yield return new (VolumeFlowUnit.HectoliterPerMinute, "HectoliterPerMinute", "HectolitersPerMinute", BaseUnits.Undefined, - 600 - ); - yield return new (VolumeFlowUnit.HectoliterPerSecond, "HectoliterPerSecond", "HectolitersPerSecond", BaseUnits.Undefined, - 10 - ); - yield return new (VolumeFlowUnit.KiloliterPerDay, "KiloliterPerDay", "KilolitersPerDay", BaseUnits.Undefined, - 86400 - ); - yield return new (VolumeFlowUnit.KiloliterPerHour, "KiloliterPerHour", "KilolitersPerHour", BaseUnits.Undefined, - 3600 - ); - yield return new (VolumeFlowUnit.KiloliterPerMinute, "KiloliterPerMinute", "KilolitersPerMinute", BaseUnits.Undefined, - 60 - ); - yield return new (VolumeFlowUnit.KiloliterPerSecond, "KiloliterPerSecond", "KilolitersPerSecond", BaseUnits.Undefined, - 1 - ); - yield return new (VolumeFlowUnit.KilousGallonPerMinute, "KilousGallonPerMinute", "KilousGallonsPerMinute", BaseUnits.Undefined, - new QuantityValue(2500000000, 157725491) - ); - yield return new (VolumeFlowUnit.LiterPerDay, "LiterPerDay", "LitersPerDay", BaseUnits.Undefined, - 86400000 - ); - yield return new (VolumeFlowUnit.LiterPerHour, "LiterPerHour", "LitersPerHour", BaseUnits.Undefined, - 3600000 - ); - yield return new (VolumeFlowUnit.LiterPerMinute, "LiterPerMinute", "LitersPerMinute", BaseUnits.Undefined, - 60000 - ); - yield return new (VolumeFlowUnit.LiterPerSecond, "LiterPerSecond", "LitersPerSecond", BaseUnits.Undefined, - 1000 - ); - yield return new (VolumeFlowUnit.MegaliterPerDay, "MegaliterPerDay", "MegalitersPerDay", BaseUnits.Undefined, - new QuantityValue(432, 5) - ); - yield return new (VolumeFlowUnit.MegaliterPerHour, "MegaliterPerHour", "MegalitersPerHour", BaseUnits.Undefined, - new QuantityValue(18, 5) - ); - yield return new (VolumeFlowUnit.MegaliterPerMinute, "MegaliterPerMinute", "MegalitersPerMinute", BaseUnits.Undefined, - new QuantityValue(3, 50) - ); - yield return new (VolumeFlowUnit.MegaliterPerSecond, "MegaliterPerSecond", "MegalitersPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (VolumeFlowUnit.MegaukGallonPerDay, "MegaukGallonPerDay", "MegaukGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(8640000, 454609) - ); - yield return new (VolumeFlowUnit.MegaukGallonPerSecond, "MegaukGallonPerSecond", "MegaukGallonsPerSecond", BaseUnits.Undefined, - new QuantityValue(100, 454609) - ); - yield return new (VolumeFlowUnit.MegausGallonPerDay, "MegausGallonPerDay", "MegausGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(3600000000, 157725491) - ); - yield return new (VolumeFlowUnit.MicroliterPerDay, "MicroliterPerDay", "MicrolitersPerDay", BaseUnits.Undefined, - 86400000000000 - ); - yield return new (VolumeFlowUnit.MicroliterPerHour, "MicroliterPerHour", "MicrolitersPerHour", BaseUnits.Undefined, - 3600000000000 - ); - yield return new (VolumeFlowUnit.MicroliterPerMinute, "MicroliterPerMinute", "MicrolitersPerMinute", BaseUnits.Undefined, - 60000000000 - ); - yield return new (VolumeFlowUnit.MicroliterPerSecond, "MicroliterPerSecond", "MicrolitersPerSecond", BaseUnits.Undefined, - 1000000000 - ); - yield return new (VolumeFlowUnit.MilliliterPerDay, "MilliliterPerDay", "MillilitersPerDay", BaseUnits.Undefined, - 86400000000 - ); - yield return new (VolumeFlowUnit.MilliliterPerHour, "MilliliterPerHour", "MillilitersPerHour", BaseUnits.Undefined, - 3600000000 - ); - yield return new (VolumeFlowUnit.MilliliterPerMinute, "MilliliterPerMinute", "MillilitersPerMinute", BaseUnits.Undefined, - 60000000 - ); - yield return new (VolumeFlowUnit.MilliliterPerSecond, "MilliliterPerSecond", "MillilitersPerSecond", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumeFlowUnit.MillionUsGallonPerDay, "MillionUsGallonPerDay", "MillionUsGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(3600000000, 157725491) - ); - yield return new (VolumeFlowUnit.NanoliterPerDay, "NanoliterPerDay", "NanolitersPerDay", BaseUnits.Undefined, - 86400000000000000 - ); - yield return new (VolumeFlowUnit.NanoliterPerHour, "NanoliterPerHour", "NanolitersPerHour", BaseUnits.Undefined, - 3600000000000000 - ); - yield return new (VolumeFlowUnit.NanoliterPerMinute, "NanoliterPerMinute", "NanolitersPerMinute", BaseUnits.Undefined, - 60000000000000 - ); - yield return new (VolumeFlowUnit.NanoliterPerSecond, "NanoliterPerSecond", "NanolitersPerSecond", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (VolumeFlowUnit.OilBarrelPerDay, "OilBarrelPerDay", "OilBarrelsPerDay", BaseUnits.Undefined, - new QuantityValue(600000000000000, 1104078437) - ); - yield return new (VolumeFlowUnit.OilBarrelPerHour, "OilBarrelPerHour", "OilBarrelsPerHour", BaseUnits.Undefined, - new QuantityValue(25000000000000, 1104078437) - ); - yield return new (VolumeFlowUnit.OilBarrelPerMinute, "OilBarrelPerMinute", "OilBarrelsPerMinute", BaseUnits.Undefined, - new QuantityValue(1250000000000, 3312235311) - ); - yield return new (VolumeFlowUnit.OilBarrelPerSecond, "OilBarrelPerSecond", "OilBarrelsPerSecond", BaseUnits.Undefined, - new QuantityValue(62500000000, 9936705933) - ); - yield return new (VolumeFlowUnit.UkGallonPerDay, "UkGallonPerDay", "UkGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(8640000000000, 454609) - ); - yield return new (VolumeFlowUnit.UkGallonPerHour, "UkGallonPerHour", "UkGallonsPerHour", BaseUnits.Undefined, - new QuantityValue(360000000000, 454609) - ); - yield return new (VolumeFlowUnit.UkGallonPerMinute, "UkGallonPerMinute", "UkGallonsPerMinute", BaseUnits.Undefined, - new QuantityValue(6000000000, 454609) - ); - yield return new (VolumeFlowUnit.UkGallonPerSecond, "UkGallonPerSecond", "UkGallonsPerSecond", BaseUnits.Undefined, - new QuantityValue(100000000, 454609) - ); - yield return new (VolumeFlowUnit.UsGallonPerDay, "UsGallonPerDay", "UsGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(3600000000000000, 157725491) - ); - yield return new (VolumeFlowUnit.UsGallonPerHour, "UsGallonPerHour", "UsGallonsPerHour", BaseUnits.Undefined, - new QuantityValue(150000000000000, 157725491) - ); - yield return new (VolumeFlowUnit.UsGallonPerMinute, "UsGallonPerMinute", "UsGallonsPerMinute", BaseUnits.Undefined, - new QuantityValue(2500000000000, 157725491) - ); - yield return new (VolumeFlowUnit.UsGallonPerSecond, "UsGallonPerSecond", "UsGallonsPerSecond", BaseUnits.Undefined, - new QuantityValue(125000000000, 473176473) - ); + return new UnitDefinition[] + { + new (VolumeFlowUnit.AcreFootPerDay, "AcreFootPerDay", "AcreFeetPerDay", BaseUnits.Undefined, + new QuantityValue(156250000000, 2230689087) + ), + new (VolumeFlowUnit.AcreFootPerHour, "AcreFootPerHour", "AcreFeetPerHour", BaseUnits.Undefined, + new QuantityValue(19531250000, 6692067261) + ), + new (VolumeFlowUnit.AcreFootPerMinute, "AcreFootPerMinute", "AcreFeetPerMinute", BaseUnits.Undefined, + new QuantityValue(976562500, 20076201783) + ), + new (VolumeFlowUnit.AcreFootPerSecond, "AcreFootPerSecond", "AcreFeetPerSecond", BaseUnits.Undefined, + new QuantityValue(48828125, 60228605349) + ), + new (VolumeFlowUnit.CentiliterPerDay, "CentiliterPerDay", "CentilitersPerDay", BaseUnits.Undefined, + 8640000000 + ), + new (VolumeFlowUnit.CentiliterPerHour, "CentiliterPerHour", "CentilitersPerHour", BaseUnits.Undefined, + 360000000 + ), + new (VolumeFlowUnit.CentiliterPerMinute, "CentiliterPerMinute", "CentilitersPerMinute", BaseUnits.Undefined, + 6000000 + ), + new (VolumeFlowUnit.CentiliterPerSecond, "CentiliterPerSecond", "CentilitersPerSecond", BaseUnits.Undefined, + 100000 + ), + new (VolumeFlowUnit.CubicCentimeterPerMinute, "CubicCentimeterPerMinute", "CubicCentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), + 60000000 + ), + new (VolumeFlowUnit.CubicDecimeterPerMinute, "CubicDecimeterPerMinute", "CubicDecimetersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), + 60000 + ), + new (VolumeFlowUnit.CubicFootPerHour, "CubicFootPerHour", "CubicFeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), + new QuantityValue(781250000000, 6145149) + ), + new (VolumeFlowUnit.CubicFootPerMinute, "CubicFootPerMinute", "CubicFeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), + new QuantityValue(39062500000, 18435447) + ), + new (VolumeFlowUnit.CubicFootPerSecond, "CubicFootPerSecond", "CubicFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), + new QuantityValue(1953125000, 55306341) + ), + new (VolumeFlowUnit.CubicInchPerMinute, "CubicInchPerMinute", "CubicInchesPerMinute", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Minute), + new QuantityValue(7500000000000, 2048383) + ), + new (VolumeFlowUnit.CubicInchPerSecond, "CubicInchPerSecond", "CubicInchesPerSecond", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), + new QuantityValue(125000000000, 2048383) + ), + new (VolumeFlowUnit.CubicMeterPerDay, "CubicMeterPerDay", "CubicMetersPerDay", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Day), + 86400 + ), + new (VolumeFlowUnit.CubicMeterPerHour, "CubicMeterPerHour", "CubicMetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), + 3600 + ), + new (VolumeFlowUnit.CubicMeterPerMinute, "CubicMeterPerMinute", "CubicMetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), + 60 + ), + new (VolumeFlowUnit.CubicMeterPerSecond, "CubicMeterPerSecond", "CubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + new (VolumeFlowUnit.CubicMillimeterPerMinute, "CubicMillimeterPerMinute", "CubicMillimetersPerMinute", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Minute), + 60000000000 + ), + new (VolumeFlowUnit.CubicMillimeterPerSecond, "CubicMillimeterPerSecond", "CubicMillimetersPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), + 1000000000 + ), + new (VolumeFlowUnit.CubicYardPerDay, "CubicYardPerDay", "CubicYardsPerDay", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Day), + new QuantityValue(6250000000000, 55306341) + ), + new (VolumeFlowUnit.CubicYardPerHour, "CubicYardPerHour", "CubicYardsPerHour", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Hour), + new QuantityValue(781250000000, 165919023) + ), + new (VolumeFlowUnit.CubicYardPerMinute, "CubicYardPerMinute", "CubicYardsPerMinute", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Minute), + new QuantityValue(39062500000, 497757069) + ), + new (VolumeFlowUnit.CubicYardPerSecond, "CubicYardPerSecond", "CubicYardsPerSecond", BaseUnits.Undefined, + new QuantityValue(1953125000, 1493271207) + ), + new (VolumeFlowUnit.DecaliterPerDay, "DecaliterPerDay", "DecalitersPerDay", BaseUnits.Undefined, + 8640000 + ), + new (VolumeFlowUnit.DecaliterPerHour, "DecaliterPerHour", "DecalitersPerHour", BaseUnits.Undefined, + 360000 + ), + new (VolumeFlowUnit.DecaliterPerMinute, "DecaliterPerMinute", "DecalitersPerMinute", BaseUnits.Undefined, + 6000 + ), + new (VolumeFlowUnit.DecaliterPerSecond, "DecaliterPerSecond", "DecalitersPerSecond", BaseUnits.Undefined, + 100 + ), + new (VolumeFlowUnit.DeciliterPerDay, "DeciliterPerDay", "DecilitersPerDay", BaseUnits.Undefined, + 864000000 + ), + new (VolumeFlowUnit.DeciliterPerHour, "DeciliterPerHour", "DecilitersPerHour", BaseUnits.Undefined, + 36000000 + ), + new (VolumeFlowUnit.DeciliterPerMinute, "DeciliterPerMinute", "DecilitersPerMinute", BaseUnits.Undefined, + 600000 + ), + new (VolumeFlowUnit.DeciliterPerSecond, "DeciliterPerSecond", "DecilitersPerSecond", BaseUnits.Undefined, + 10000 + ), + new (VolumeFlowUnit.HectoliterPerDay, "HectoliterPerDay", "HectolitersPerDay", BaseUnits.Undefined, + 864000 + ), + new (VolumeFlowUnit.HectoliterPerHour, "HectoliterPerHour", "HectolitersPerHour", BaseUnits.Undefined, + 36000 + ), + new (VolumeFlowUnit.HectoliterPerMinute, "HectoliterPerMinute", "HectolitersPerMinute", BaseUnits.Undefined, + 600 + ), + new (VolumeFlowUnit.HectoliterPerSecond, "HectoliterPerSecond", "HectolitersPerSecond", BaseUnits.Undefined, + 10 + ), + new (VolumeFlowUnit.KiloliterPerDay, "KiloliterPerDay", "KilolitersPerDay", BaseUnits.Undefined, + 86400 + ), + new (VolumeFlowUnit.KiloliterPerHour, "KiloliterPerHour", "KilolitersPerHour", BaseUnits.Undefined, + 3600 + ), + new (VolumeFlowUnit.KiloliterPerMinute, "KiloliterPerMinute", "KilolitersPerMinute", BaseUnits.Undefined, + 60 + ), + new (VolumeFlowUnit.KiloliterPerSecond, "KiloliterPerSecond", "KilolitersPerSecond", BaseUnits.Undefined, + 1 + ), + new (VolumeFlowUnit.KilousGallonPerMinute, "KilousGallonPerMinute", "KilousGallonsPerMinute", BaseUnits.Undefined, + new QuantityValue(2500000000, 157725491) + ), + new (VolumeFlowUnit.LiterPerDay, "LiterPerDay", "LitersPerDay", BaseUnits.Undefined, + 86400000 + ), + new (VolumeFlowUnit.LiterPerHour, "LiterPerHour", "LitersPerHour", BaseUnits.Undefined, + 3600000 + ), + new (VolumeFlowUnit.LiterPerMinute, "LiterPerMinute", "LitersPerMinute", BaseUnits.Undefined, + 60000 + ), + new (VolumeFlowUnit.LiterPerSecond, "LiterPerSecond", "LitersPerSecond", BaseUnits.Undefined, + 1000 + ), + new (VolumeFlowUnit.MegaliterPerDay, "MegaliterPerDay", "MegalitersPerDay", BaseUnits.Undefined, + new QuantityValue(432, 5) + ), + new (VolumeFlowUnit.MegaliterPerHour, "MegaliterPerHour", "MegalitersPerHour", BaseUnits.Undefined, + new QuantityValue(18, 5) + ), + new (VolumeFlowUnit.MegaliterPerMinute, "MegaliterPerMinute", "MegalitersPerMinute", BaseUnits.Undefined, + new QuantityValue(3, 50) + ), + new (VolumeFlowUnit.MegaliterPerSecond, "MegaliterPerSecond", "MegalitersPerSecond", BaseUnits.Undefined, + new QuantityValue(1, 1000) + ), + new (VolumeFlowUnit.MegaukGallonPerDay, "MegaukGallonPerDay", "MegaukGallonsPerDay", BaseUnits.Undefined, + new QuantityValue(8640000, 454609) + ), + new (VolumeFlowUnit.MegaukGallonPerSecond, "MegaukGallonPerSecond", "MegaukGallonsPerSecond", BaseUnits.Undefined, + new QuantityValue(100, 454609) + ), + new (VolumeFlowUnit.MegausGallonPerDay, "MegausGallonPerDay", "MegausGallonsPerDay", BaseUnits.Undefined, + new QuantityValue(3600000000, 157725491) + ), + new (VolumeFlowUnit.MicroliterPerDay, "MicroliterPerDay", "MicrolitersPerDay", BaseUnits.Undefined, + 86400000000000 + ), + new (VolumeFlowUnit.MicroliterPerHour, "MicroliterPerHour", "MicrolitersPerHour", BaseUnits.Undefined, + 3600000000000 + ), + new (VolumeFlowUnit.MicroliterPerMinute, "MicroliterPerMinute", "MicrolitersPerMinute", BaseUnits.Undefined, + 60000000000 + ), + new (VolumeFlowUnit.MicroliterPerSecond, "MicroliterPerSecond", "MicrolitersPerSecond", BaseUnits.Undefined, + 1000000000 + ), + new (VolumeFlowUnit.MilliliterPerDay, "MilliliterPerDay", "MillilitersPerDay", BaseUnits.Undefined, + 86400000000 + ), + new (VolumeFlowUnit.MilliliterPerHour, "MilliliterPerHour", "MillilitersPerHour", BaseUnits.Undefined, + 3600000000 + ), + new (VolumeFlowUnit.MilliliterPerMinute, "MilliliterPerMinute", "MillilitersPerMinute", BaseUnits.Undefined, + 60000000 + ), + new (VolumeFlowUnit.MilliliterPerSecond, "MilliliterPerSecond", "MillilitersPerSecond", BaseUnits.Undefined, + 1000000 + ), + new (VolumeFlowUnit.MillionUsGallonPerDay, "MillionUsGallonPerDay", "MillionUsGallonsPerDay", BaseUnits.Undefined, + new QuantityValue(3600000000, 157725491) + ), + new (VolumeFlowUnit.NanoliterPerDay, "NanoliterPerDay", "NanolitersPerDay", BaseUnits.Undefined, + 86400000000000000 + ), + new (VolumeFlowUnit.NanoliterPerHour, "NanoliterPerHour", "NanolitersPerHour", BaseUnits.Undefined, + 3600000000000000 + ), + new (VolumeFlowUnit.NanoliterPerMinute, "NanoliterPerMinute", "NanolitersPerMinute", BaseUnits.Undefined, + 60000000000000 + ), + new (VolumeFlowUnit.NanoliterPerSecond, "NanoliterPerSecond", "NanolitersPerSecond", BaseUnits.Undefined, + 1000000000000 + ), + new (VolumeFlowUnit.OilBarrelPerDay, "OilBarrelPerDay", "OilBarrelsPerDay", BaseUnits.Undefined, + new QuantityValue(600000000000000, 1104078437) + ), + new (VolumeFlowUnit.OilBarrelPerHour, "OilBarrelPerHour", "OilBarrelsPerHour", BaseUnits.Undefined, + new QuantityValue(25000000000000, 1104078437) + ), + new (VolumeFlowUnit.OilBarrelPerMinute, "OilBarrelPerMinute", "OilBarrelsPerMinute", BaseUnits.Undefined, + new QuantityValue(1250000000000, 3312235311) + ), + new (VolumeFlowUnit.OilBarrelPerSecond, "OilBarrelPerSecond", "OilBarrelsPerSecond", BaseUnits.Undefined, + new QuantityValue(62500000000, 9936705933) + ), + new (VolumeFlowUnit.UkGallonPerDay, "UkGallonPerDay", "UkGallonsPerDay", BaseUnits.Undefined, + new QuantityValue(8640000000000, 454609) + ), + new (VolumeFlowUnit.UkGallonPerHour, "UkGallonPerHour", "UkGallonsPerHour", BaseUnits.Undefined, + new QuantityValue(360000000000, 454609) + ), + new (VolumeFlowUnit.UkGallonPerMinute, "UkGallonPerMinute", "UkGallonsPerMinute", BaseUnits.Undefined, + new QuantityValue(6000000000, 454609) + ), + new (VolumeFlowUnit.UkGallonPerSecond, "UkGallonPerSecond", "UkGallonsPerSecond", BaseUnits.Undefined, + new QuantityValue(100000000, 454609) + ), + new (VolumeFlowUnit.UsGallonPerDay, "UsGallonPerDay", "UsGallonsPerDay", BaseUnits.Undefined, + new QuantityValue(3600000000000000, 157725491) + ), + new (VolumeFlowUnit.UsGallonPerHour, "UsGallonPerHour", "UsGallonsPerHour", BaseUnits.Undefined, + new QuantityValue(150000000000000, 157725491) + ), + new (VolumeFlowUnit.UsGallonPerMinute, "UsGallonPerMinute", "UsGallonsPerMinute", BaseUnits.Undefined, + new QuantityValue(2500000000000, 157725491) + ), + new (VolumeFlowUnit.UsGallonPerSecond, "UsGallonPerSecond", "UsGallonsPerSecond", BaseUnits.Undefined, + new QuantityValue(125000000000, 473176473) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs index 1800e157d8..17644c0842 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs @@ -117,10 +117,13 @@ public static VolumeFlowPerAreaInfo CreateDefault(FuncAn of representing the default unit mappings for VolumeFlowPerArea. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot, "CubicFootPerMinutePerSquareFoot", "CubicFeetPerMinutePerSquareFoot", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), - new QuantityValue(25000, 127) - ); - yield return new (VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter, "CubicMeterPerSecondPerSquareMeter", "CubicMetersPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); + return new UnitDefinition[] + { + new (VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot, "CubicFootPerMinutePerSquareFoot", "CubicFeetPerMinutePerSquareFoot", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), + new QuantityValue(25000, 127) + ), + new (VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter, "CubicMeterPerSecondPerSquareMeter", "CubicMetersPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs index 28c22481d5..0bd0563dd0 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs @@ -117,31 +117,34 @@ public static VolumePerLengthInfo CreateDefault(FuncAn of representing the default unit mappings for VolumePerLength. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumePerLengthUnit.CubicMeterPerMeter, "CubicMeterPerMeter", "CubicMetersPerMeter", new BaseUnits(length: LengthUnit.Meter)); - yield return new (VolumePerLengthUnit.CubicYardPerFoot, "CubicYardPerFoot", "CubicYardsPerFoot", BaseUnits.Undefined, - new QuantityValue(1562500, 3919347) - ); - yield return new (VolumePerLengthUnit.CubicYardPerUsSurveyFoot, "CubicYardPerUsSurveyFoot", "CubicYardsPerUsSurveyFoot", BaseUnits.Undefined, - new QuantityValue(781250000000, 1959669580653) - ); - yield return new (VolumePerLengthUnit.ImperialGallonPerMile, "ImperialGallonPerMile", "ImperialGallonsPerMile", BaseUnits.Undefined, - new QuantityValue(160934400000, 454609) - ); - yield return new (VolumePerLengthUnit.LiterPerKilometer, "LiterPerKilometer", "LitersPerKilometer", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumePerLengthUnit.LiterPerMeter, "LiterPerMeter", "LitersPerMeter", new BaseUnits(length: LengthUnit.Decimeter), - 1000 - ); - yield return new (VolumePerLengthUnit.LiterPerMillimeter, "LiterPerMillimeter", "LitersPerMillimeter", BaseUnits.Undefined, - 1 - ); - yield return new (VolumePerLengthUnit.OilBarrelPerFoot, "OilBarrelPerFoot", "OilBarrelsPerFoot", BaseUnits.Undefined, - new QuantityValue(50000000, 26080593) - ); - yield return new (VolumePerLengthUnit.UsGallonPerMile, "UsGallonPerMile", "UsGallonsPerMile", BaseUnits.Undefined, - new QuantityValue(48000000000, 112903) - ); + return new UnitDefinition[] + { + new (VolumePerLengthUnit.CubicMeterPerMeter, "CubicMeterPerMeter", "CubicMetersPerMeter", new BaseUnits(length: LengthUnit.Meter)), + new (VolumePerLengthUnit.CubicYardPerFoot, "CubicYardPerFoot", "CubicYardsPerFoot", BaseUnits.Undefined, + new QuantityValue(1562500, 3919347) + ), + new (VolumePerLengthUnit.CubicYardPerUsSurveyFoot, "CubicYardPerUsSurveyFoot", "CubicYardsPerUsSurveyFoot", BaseUnits.Undefined, + new QuantityValue(781250000000, 1959669580653) + ), + new (VolumePerLengthUnit.ImperialGallonPerMile, "ImperialGallonPerMile", "ImperialGallonsPerMile", BaseUnits.Undefined, + new QuantityValue(160934400000, 454609) + ), + new (VolumePerLengthUnit.LiterPerKilometer, "LiterPerKilometer", "LitersPerKilometer", BaseUnits.Undefined, + 1000000 + ), + new (VolumePerLengthUnit.LiterPerMeter, "LiterPerMeter", "LitersPerMeter", new BaseUnits(length: LengthUnit.Decimeter), + 1000 + ), + new (VolumePerLengthUnit.LiterPerMillimeter, "LiterPerMillimeter", "LitersPerMillimeter", BaseUnits.Undefined, + 1 + ), + new (VolumePerLengthUnit.OilBarrelPerFoot, "OilBarrelPerFoot", "OilBarrelsPerFoot", BaseUnits.Undefined, + new QuantityValue(50000000, 26080593) + ), + new (VolumePerLengthUnit.UsGallonPerMile, "UsGallonPerMile", "UsGallonsPerMile", BaseUnits.Undefined, + new QuantityValue(48000000000, 112903) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs index e9ea8a0dc5..c5ac795dd6 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs @@ -120,31 +120,34 @@ public static VolumetricHeatCapacityInfo CreateDefault(FuncAn of representing the default unit mappings for VolumetricHeatCapacity. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumetricHeatCapacityUnit.BtuPerCubicFootDegreeFahrenheit, "BtuPerCubicFootDegreeFahrenheit", "BtusPerCubicFootDegreeFahrenheit", BaseUnits.Undefined, - new QuantityValue(98322384, 6594099078875) - ); - yield return new (VolumetricHeatCapacityUnit.CaloriePerCubicCentimeterDegreeCelsius, "CaloriePerCubicCentimeterDegreeCelsius", "CaloriesPerCubicCentimeterDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(1, 4184000) - ); - yield return new (VolumetricHeatCapacityUnit.JoulePerCubicMeterDegreeCelsius, "JoulePerCubicMeterDegreeCelsius", "JoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin, "JoulePerCubicMeterKelvin", "JoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); - yield return new (VolumetricHeatCapacityUnit.KilocaloriePerCubicCentimeterDegreeCelsius, "KilocaloriePerCubicCentimeterDegreeCelsius", "KilocaloriesPerCubicCentimeterDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(1, 4184000000) - ); - yield return new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterDegreeCelsius, "KilojoulePerCubicMeterDegreeCelsius", "KilojoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000) - ); - yield return new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterKelvin, "KilojoulePerCubicMeterKelvin", "KilojoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000) - ); - yield return new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterDegreeCelsius, "MegajoulePerCubicMeterDegreeCelsius", "MegajoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000000) - ); - yield return new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterKelvin, "MegajoulePerCubicMeterKelvin", "MegajoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000000) - ); + return new UnitDefinition[] + { + new (VolumetricHeatCapacityUnit.BtuPerCubicFootDegreeFahrenheit, "BtuPerCubicFootDegreeFahrenheit", "BtusPerCubicFootDegreeFahrenheit", BaseUnits.Undefined, + new QuantityValue(98322384, 6594099078875) + ), + new (VolumetricHeatCapacityUnit.CaloriePerCubicCentimeterDegreeCelsius, "CaloriePerCubicCentimeterDegreeCelsius", "CaloriesPerCubicCentimeterDegreeCelsius", BaseUnits.Undefined, + new QuantityValue(1, 4184000) + ), + new (VolumetricHeatCapacityUnit.JoulePerCubicMeterDegreeCelsius, "JoulePerCubicMeterDegreeCelsius", "JoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), + 1 + ), + new (VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin, "JoulePerCubicMeterKelvin", "JoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)), + new (VolumetricHeatCapacityUnit.KilocaloriePerCubicCentimeterDegreeCelsius, "KilocaloriePerCubicCentimeterDegreeCelsius", "KilocaloriesPerCubicCentimeterDegreeCelsius", BaseUnits.Undefined, + new QuantityValue(1, 4184000000) + ), + new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterDegreeCelsius, "KilojoulePerCubicMeterDegreeCelsius", "KilojoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), + new QuantityValue(1, 1000) + ), + new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterKelvin, "KilojoulePerCubicMeterKelvin", "KilojoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), + new QuantityValue(1, 1000) + ), + new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterDegreeCelsius, "MegajoulePerCubicMeterDegreeCelsius", "MegajoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), + new QuantityValue(1, 1000000) + ), + new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterKelvin, "MegajoulePerCubicMeterKelvin", "MegajoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), + new QuantityValue(1, 1000000) + ), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs index 0789620514..154339b4ab 100644 --- a/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs @@ -116,22 +116,25 @@ public static WarpingMomentOfInertiaInfo CreateDefault(FuncAn of representing the default unit mappings for WarpingMomentOfInertia. public static IEnumerable> GetDefaultMappings() { - yield return new (WarpingMomentOfInertiaUnit.CentimeterToTheSixth, "CentimeterToTheSixth", "CentimetersToTheSixth", new BaseUnits(length: LengthUnit.Centimeter), - 1000000000000 - ); - yield return new (WarpingMomentOfInertiaUnit.DecimeterToTheSixth, "DecimeterToTheSixth", "DecimetersToTheSixth", new BaseUnits(length: LengthUnit.Decimeter), - 1000000 - ); - yield return new (WarpingMomentOfInertiaUnit.FootToTheSixth, "FootToTheSixth", "FeetToTheSixth", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(3814697265625000000, 3058791354808281) - ); - yield return new (WarpingMomentOfInertiaUnit.InchToTheSixth, "InchToTheSixth", "InchesToTheSixth", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(new BigInteger(15625) * QuantityValue.PowerOfTen(18), 4195872914689) - ); - yield return new (WarpingMomentOfInertiaUnit.MeterToTheSixth, "MeterToTheSixth", "MetersToTheSixth", new BaseUnits(length: LengthUnit.Meter)); - yield return new (WarpingMomentOfInertiaUnit.MillimeterToTheSixth, "MillimeterToTheSixth", "MillimetersToTheSixth", new BaseUnits(length: LengthUnit.Millimeter), - 1000000000000000000 - ); + return new UnitDefinition[] + { + new (WarpingMomentOfInertiaUnit.CentimeterToTheSixth, "CentimeterToTheSixth", "CentimetersToTheSixth", new BaseUnits(length: LengthUnit.Centimeter), + 1000000000000 + ), + new (WarpingMomentOfInertiaUnit.DecimeterToTheSixth, "DecimeterToTheSixth", "DecimetersToTheSixth", new BaseUnits(length: LengthUnit.Decimeter), + 1000000 + ), + new (WarpingMomentOfInertiaUnit.FootToTheSixth, "FootToTheSixth", "FeetToTheSixth", new BaseUnits(length: LengthUnit.Foot), + new QuantityValue(3814697265625000000, 3058791354808281) + ), + new (WarpingMomentOfInertiaUnit.InchToTheSixth, "InchToTheSixth", "InchesToTheSixth", new BaseUnits(length: LengthUnit.Inch), + new QuantityValue(new BigInteger(15625) * QuantityValue.PowerOfTen(18), 4195872914689) + ), + new (WarpingMomentOfInertiaUnit.MeterToTheSixth, "MeterToTheSixth", "MetersToTheSixth", new BaseUnits(length: LengthUnit.Meter)), + new (WarpingMomentOfInertiaUnit.MillimeterToTheSixth, "MillimeterToTheSixth", "MillimetersToTheSixth", new BaseUnits(length: LengthUnit.Millimeter), + 1000000000000000000 + ), + }; } } From be726e9270e0014132fac10206b051ddce9b6c8f Mon Sep 17 00:00:00 2001 From: Tristan Milnthorp <5693174+tmilnthorp@users.noreply.github.com> Date: Tue, 6 Oct 2026 13:51:07 -0400 Subject: [PATCH 3/8] Convert quantities to and from a UnitOf UnitOf describes a unit of a quantity by its names, base units and conversions, without a unit enum value. Quantities can be converted to it with As(UnitOf), and created from a value in it with QuantityInfo.From(value, UnitOf), which returns the quantity in its base unit. Since the unit is tied to its quantity, using it with another quantity doesn't compile. This makes it possible to use units that UnitsNet doesn't define, without a unit enum value or any setup. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012XKhDsyHDc5BHrmibxScqG --- Docs/extending-with-custom-units.md | 14 +++ UnitsNet.Tests/UnitOfTests.cs | 94 +++++++++++++++++++ .../CustomCode/QuantityInfo/Units/UnitOf.cs | 94 +++++++++++++++++++ UnitsNet/Extensions/QuantityExtensions.cs | 14 +++ UnitsNet/QuantityInfo.cs | 16 ++++ 5 files changed, 232 insertions(+) create mode 100644 UnitsNet.Tests/UnitOfTests.cs create mode 100644 UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs diff --git a/Docs/extending-with-custom-units.md b/Docs/extending-with-custom-units.md index cfbba73989..73478a4d31 100644 --- a/Docs/extending-with-custom-units.md +++ b/Docs/extending-with-custom-units.md @@ -25,6 +25,20 @@ To add new quantities or units to the `UnitsNet` nuget, please see [Adding a New You miss out on the statically generated code for members like `Length.FromMeters(1)` and `myLength.Meters`. Conversion methods like `myLength.As()` and `myLength.ToUnit()` currently only support their respective unit enums, in this case `LengthUnit`. +### Convert to and from your own unit + +To convert a quantity to or from a unit that UnitsNet doesn't define, describe the unit with a `UnitOf`. You give the conversion from the base unit of the quantity, and UnitsNet uses it directly, without a unit enum value or any setup. + +```c# +// 1 furlong = 201.168 m, so there are 1000/201168 furlongs in a meter +var furlong = new UnitOf("Furlong", "Furlongs", BaseUnits.Undefined, QuantityValue.FromTerms(1000, 201168)); + +QuantityValue furlongs = Length.FromMiles(1).As(furlong); // 8 +Length length = Length.Info.From(2, furlong); // 402.336 m, in the base unit +``` + +The unit is tied to its quantity, so `Mass.FromKilograms(1).As(furlong)` doesn't compile. For units with an offset, such as temperatures, pass both conversion expressions to the constructor. `From` returns the quantity in its base unit, since a quantity can only be in one of its own units. + ### Can I add a custom unit to an existing quantity in UnitsNet? Currently, no. diff --git a/UnitsNet.Tests/UnitOfTests.cs b/UnitsNet.Tests/UnitOfTests.cs new file mode 100644 index 0000000000..5993d9d7f3 --- /dev/null +++ b/UnitsNet.Tests/UnitOfTests.cs @@ -0,0 +1,94 @@ +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +using System; +using UnitsNet.Units; +using Xunit; + +namespace UnitsNet.Tests; + +public class UnitOfTests +{ + // 1 furlong = 201.168 m, so there are 1000/201168 furlongs in a meter. + private static readonly UnitOf Furlong = new("Furlong", "Furlongs", BaseUnits.Undefined, QuantityValue.FromTerms(1000, 201168)); + + // Same conversions as TemperatureUnit.DegreeFahrenheit, to compare against. + private static readonly UnitOf Fahrenheit = new("Fahrenheit", "Fahrenheits", BaseUnits.Undefined, + new ConversionExpression(coefficient: QuantityValue.FromTerms(9, 5), constantTerm: QuantityValue.FromTerms(-45967, 100)), + new ConversionExpression(coefficient: QuantityValue.FromTerms(5, 9), constantTerm: QuantityValue.FromTerms(45967, 180))); + + [Fact] + public void Constructor_WithCoefficient_DerivesTheInverseConversion() + { + Assert.Equal("Furlong", Furlong.Name); + Assert.Equal("Furlongs", Furlong.PluralName); + Assert.Equal(BaseUnits.Undefined, Furlong.BaseUnits); + Assert.Equal(QuantityValue.FromTerms(1000, 201168), Furlong.ConversionFromBase.Evaluate(QuantityValue.One)); + Assert.Equal(QuantityValue.FromTerms(201168, 1000), Furlong.ConversionToBase.Evaluate(QuantityValue.One)); + } + + [Fact] + public void Constructor_WithNullArguments_ThrowsArgumentNullException() + { + Assert.Throws(() => new UnitOf(null!, "Furlongs", BaseUnits.Undefined, 1)); + Assert.Throws(() => new UnitOf("Furlong", null!, BaseUnits.Undefined, 1)); + Assert.Throws(() => new UnitOf("Furlong", "Furlongs", null!, 1)); + } + + [Fact] + public void ToString_ReturnsName() + { + Assert.Equal("Furlong", Furlong.ToString()); + } + + [Fact] + public void As_ReturnsValueInThatUnit() + { + Assert.Equal(QuantityValue.One, Length.FromFeet(660).As(Furlong)); + Assert.Equal(new QuantityValue(8), Length.FromMiles(1).As(Furlong)); + } + + [Fact] + public void As_AffineUnit_ReturnsValueInThatUnit() + { + Temperature temperature = Temperature.FromDegreesCelsius(37); + + Assert.Equal(temperature.DegreesFahrenheit, temperature.As(Fahrenheit)); + } + + [Fact] + public void As_NullUnit_ThrowsArgumentNullException() + { + Assert.Throws(() => Length.FromMeters(1).As((UnitOf)null!)); + } + + [Fact] + public void From_ReturnsQuantityInBaseUnit() + { + Length length = Length.Info.From(2, Furlong); + + Assert.Equal(LengthUnit.Meter, length.Unit); + Assert.Equal(QuantityValue.FromTerms(402336, 1000), length.Value); + } + + [Fact] + public void From_AffineUnit_ReturnsQuantityInBaseUnit() + { + Temperature temperature = Temperature.Info.From(QuantityValue.FromTerms(986, 10), Fahrenheit); + + Assert.Equal(Temperature.BaseUnit, temperature.Unit); + Assert.Equal(Temperature.FromDegreesFahrenheit(QuantityValue.FromTerms(986, 10)).Kelvins, temperature.Value); + } + + [Fact] + public void From_RoundTripsWithAs() + { + Assert.Equal(new QuantityValue(42), Length.Info.From(42, Furlong).As(Furlong)); + } + + [Fact] + public void From_NullUnit_ThrowsArgumentNullException() + { + Assert.Throws(() => Length.Info.From(1, (UnitOf)null!)); + } +} diff --git a/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs new file mode 100644 index 0000000000..7b93da2094 --- /dev/null +++ b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs @@ -0,0 +1,94 @@ +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +using System; +using System.Diagnostics; + +namespace UnitsNet; + +/// +/// A unit of , described by its names, base units and conversions, such as a furlong +/// of . +/// +/// +/// Quantities can be converted to and from the unit with +/// and +/// . +/// Since the unit is tied to its quantity, using it with another quantity doesn't compile. +/// +/// The quantity this is a unit of, such as . +[DebuggerDisplay("{Name}")] +public sealed class UnitOf : IUnitDefinition + where TQuantity : IQuantity +{ + /// + /// Initializes a new instance of the class. + /// + /// The singular name of the unit, such as "Furlong". + /// The plural name of the unit, such as "Furlongs". + /// The associated with this unit. + /// + /// The conversion coefficient from the base unit of the quantity to this unit, such as 100 for centimeters of a + /// length. + /// + /// + /// Thrown when , , or is + /// null. + /// + public UnitOf(string singularName, string pluralName, BaseUnits baseUnits, QuantityValue conversionFromBase) + : this(singularName, pluralName, baseUnits, conversionFromBase, QuantityValue.Inverse(conversionFromBase)) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The singular name of the unit, such as "Furlong". + /// The plural name of the unit, such as "Furlongs". + /// The associated with this unit. + /// The conversion expression from the base unit of the quantity to this unit. + /// The conversion expression from this unit to the base unit of the quantity. + /// + /// Thrown when , , or is + /// null. + /// + public UnitOf(string singularName, string pluralName, BaseUnits baseUnits, + ConversionExpression conversionFromBase, + ConversionExpression conversionToBase) + { + Name = singularName ?? throw new ArgumentNullException(nameof(singularName)); + PluralName = pluralName ?? throw new ArgumentNullException(nameof(pluralName)); + BaseUnits = baseUnits ?? throw new ArgumentNullException(nameof(baseUnits)); + ConversionFromBase = conversionFromBase; + ConversionToBase = conversionToBase; + } + + /// + /// The singular name of the unit, such as "Furlong". + /// + public string Name { get; } + + /// + /// The plural name of the unit, such as "Furlongs". + /// + public string PluralName { get; } + + /// + /// Gets the for this unit. + /// + public BaseUnits BaseUnits { get; } + + /// + public ConversionExpression ConversionFromBase { get; } + + /// + public ConversionExpression ConversionToBase { get; } + + /// + /// Returns the name of the unit. + /// + public override string ToString() + { + return Name; + } +} diff --git a/UnitsNet/Extensions/QuantityExtensions.cs b/UnitsNet/Extensions/QuantityExtensions.cs index 0e8f40255f..5c0db75238 100644 --- a/UnitsNet/Extensions/QuantityExtensions.cs +++ b/UnitsNet/Extensions/QuantityExtensions.cs @@ -112,6 +112,20 @@ public static QuantityValue As(this TQuantity quantity, TUnit return UnitConverter.Default.ConvertValue(quantity, unit); } + /// + /// Gets the value of the quantity in a , such as a furlong of . + /// + /// The quantity to convert. + /// The unit to get the value in. + /// The value in . + /// is null. + public static QuantityValue As(this TQuantity quantity, UnitOf unit) + where TQuantity : IQuantity + { + if (unit is null) throw new ArgumentNullException(nameof(unit)); + return unit.ConversionFromBase.Evaluate(quantity.GetUnitInfo().ConvertValueToBaseUnit(quantity.Value)); + } + /// /// The quantity to convert. /// The target unit. diff --git a/UnitsNet/QuantityInfo.cs b/UnitsNet/QuantityInfo.cs index 25a337e04f..967dba9496 100644 --- a/UnitsNet/QuantityInfo.cs +++ b/UnitsNet/QuantityInfo.cs @@ -308,6 +308,22 @@ protected QuantityInfoBase(string name, TQuantity zero, BaseDimensions baseDimen return FromDelegate(value, unit); } + /// + /// Creates an instance of the quantity from a value in a , such as a furlong of + /// . + /// + /// The numerical value in . + /// The unit of the value. + /// + /// The quantity in its base unit, since a quantity can only be in a unit of . + /// + /// is null. + public TQuantity From(QuantityValue value, UnitOf unit) + { + if (unit is null) throw new ArgumentNullException(nameof(unit)); + return From(unit.ConversionToBase.Evaluate(value), BaseUnitInfo.Value); + } + /// TQuantity IQuantityInstanceInfo.Create(QuantityValue value, UnitKey unitKey) { From ab571daafde85eedcc6024834c76daac556404fa Mon Sep 17 00:00:00 2001 From: Tristan Milnthorp <5693174+tmilnthorp@users.noreply.github.com> Date: Tue, 6 Oct 2026 14:10:39 -0400 Subject: [PATCH 4/8] Remove the base units parameter from UnitOf Base units are made of unit enum values, which a unit that UnitsNet doesn't define has none of, and nothing reads them yet. UnitOf still implements IUnitDefinition, with BaseUnits.Undefined as an explicit implementation. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012XKhDsyHDc5BHrmibxScqG --- Docs/extending-with-custom-units.md | 2 +- UnitsNet.Tests/UnitOfTests.cs | 18 +++++++---- .../CustomCode/QuantityInfo/Units/UnitOf.cs | 31 +++++++------------ 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/Docs/extending-with-custom-units.md b/Docs/extending-with-custom-units.md index 73478a4d31..bc5c9ac4f2 100644 --- a/Docs/extending-with-custom-units.md +++ b/Docs/extending-with-custom-units.md @@ -31,7 +31,7 @@ To convert a quantity to or from a unit that UnitsNet doesn't define, describe t ```c# // 1 furlong = 201.168 m, so there are 1000/201168 furlongs in a meter -var furlong = new UnitOf("Furlong", "Furlongs", BaseUnits.Undefined, QuantityValue.FromTerms(1000, 201168)); +var furlong = new UnitOf("Furlong", "Furlongs", QuantityValue.FromTerms(1000, 201168)); QuantityValue furlongs = Length.FromMiles(1).As(furlong); // 8 Length length = Length.Info.From(2, furlong); // 402.336 m, in the base unit diff --git a/UnitsNet.Tests/UnitOfTests.cs b/UnitsNet.Tests/UnitOfTests.cs index 5993d9d7f3..ca63f9e0f9 100644 --- a/UnitsNet.Tests/UnitOfTests.cs +++ b/UnitsNet.Tests/UnitOfTests.cs @@ -10,10 +10,10 @@ namespace UnitsNet.Tests; public class UnitOfTests { // 1 furlong = 201.168 m, so there are 1000/201168 furlongs in a meter. - private static readonly UnitOf Furlong = new("Furlong", "Furlongs", BaseUnits.Undefined, QuantityValue.FromTerms(1000, 201168)); + private static readonly UnitOf Furlong = new("Furlong", "Furlongs", QuantityValue.FromTerms(1000, 201168)); // Same conversions as TemperatureUnit.DegreeFahrenheit, to compare against. - private static readonly UnitOf Fahrenheit = new("Fahrenheit", "Fahrenheits", BaseUnits.Undefined, + private static readonly UnitOf Fahrenheit = new("Fahrenheit", "Fahrenheits", new ConversionExpression(coefficient: QuantityValue.FromTerms(9, 5), constantTerm: QuantityValue.FromTerms(-45967, 100)), new ConversionExpression(coefficient: QuantityValue.FromTerms(5, 9), constantTerm: QuantityValue.FromTerms(45967, 180))); @@ -22,7 +22,6 @@ public void Constructor_WithCoefficient_DerivesTheInverseConversion() { Assert.Equal("Furlong", Furlong.Name); Assert.Equal("Furlongs", Furlong.PluralName); - Assert.Equal(BaseUnits.Undefined, Furlong.BaseUnits); Assert.Equal(QuantityValue.FromTerms(1000, 201168), Furlong.ConversionFromBase.Evaluate(QuantityValue.One)); Assert.Equal(QuantityValue.FromTerms(201168, 1000), Furlong.ConversionToBase.Evaluate(QuantityValue.One)); } @@ -30,9 +29,16 @@ public void Constructor_WithCoefficient_DerivesTheInverseConversion() [Fact] public void Constructor_WithNullArguments_ThrowsArgumentNullException() { - Assert.Throws(() => new UnitOf(null!, "Furlongs", BaseUnits.Undefined, 1)); - Assert.Throws(() => new UnitOf("Furlong", null!, BaseUnits.Undefined, 1)); - Assert.Throws(() => new UnitOf("Furlong", "Furlongs", null!, 1)); + Assert.Throws(() => new UnitOf(null!, "Furlongs", 1)); + Assert.Throws(() => new UnitOf("Furlong", null!, 1)); + } + + [Fact] + public void BaseUnits_AsUnitDefinition_IsUndefined() + { + IUnitDefinition unitDefinition = Furlong; + + Assert.Equal(BaseUnits.Undefined, unitDefinition.BaseUnits); } [Fact] diff --git a/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs index 7b93da2094..0c2be97cef 100644 --- a/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs +++ b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs @@ -7,8 +7,8 @@ namespace UnitsNet; /// -/// A unit of , described by its names, base units and conversions, such as a furlong -/// of . +/// A unit of , described by its names and conversions, such as a furlong of +/// . /// /// /// Quantities can be converted to and from the unit with @@ -26,17 +26,15 @@ public sealed class UnitOf : IUnitDefinition /// /// The singular name of the unit, such as "Furlong". /// The plural name of the unit, such as "Furlongs". - /// The associated with this unit. /// /// The conversion coefficient from the base unit of the quantity to this unit, such as 100 for centimeters of a /// length. /// /// - /// Thrown when , , or is - /// null. + /// Thrown when or is null. /// - public UnitOf(string singularName, string pluralName, BaseUnits baseUnits, QuantityValue conversionFromBase) - : this(singularName, pluralName, baseUnits, conversionFromBase, QuantityValue.Inverse(conversionFromBase)) + public UnitOf(string singularName, string pluralName, QuantityValue conversionFromBase) + : this(singularName, pluralName, conversionFromBase, QuantityValue.Inverse(conversionFromBase)) { } @@ -45,20 +43,15 @@ public UnitOf(string singularName, string pluralName, BaseUnits baseUnits, Quant /// /// The singular name of the unit, such as "Furlong". /// The plural name of the unit, such as "Furlongs". - /// The associated with this unit. /// The conversion expression from the base unit of the quantity to this unit. /// The conversion expression from this unit to the base unit of the quantity. /// - /// Thrown when , , or is - /// null. + /// Thrown when or is null. /// - public UnitOf(string singularName, string pluralName, BaseUnits baseUnits, - ConversionExpression conversionFromBase, - ConversionExpression conversionToBase) + public UnitOf(string singularName, string pluralName, ConversionExpression conversionFromBase, ConversionExpression conversionToBase) { Name = singularName ?? throw new ArgumentNullException(nameof(singularName)); PluralName = pluralName ?? throw new ArgumentNullException(nameof(pluralName)); - BaseUnits = baseUnits ?? throw new ArgumentNullException(nameof(baseUnits)); ConversionFromBase = conversionFromBase; ConversionToBase = conversionToBase; } @@ -73,17 +66,17 @@ public UnitOf(string singularName, string pluralName, BaseUnits baseUnits, /// public string PluralName { get; } - /// - /// Gets the for this unit. - /// - public BaseUnits BaseUnits { get; } - /// public ConversionExpression ConversionFromBase { get; } /// public ConversionExpression ConversionToBase { get; } + /// + /// Always , since base units are made of the units that UnitsNet defines. + /// + BaseUnits IUnitDefinition.BaseUnits => BaseUnits.Undefined; + /// /// Returns the name of the unit. /// From 18d67e90eb4fdffdf45e7e2edf316fc38de3edc4 Mon Sep 17 00:00:00 2001 From: Tristan Milnthorp <5693174+tmilnthorp@users.noreply.github.com> Date: Tue, 6 Oct 2026 14:14:06 -0400 Subject: [PATCH 5/8] Create a UnitOf from its value in the base unit The constructor took the conversion from the base unit, so a furlong needed the fraction 1000/201168. Taking the value of one unit in the base unit instead lets it be written as 201.168, as units are usually described. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012XKhDsyHDc5BHrmibxScqG --- Docs/extending-with-custom-units.md | 8 ++++---- UnitsNet.Tests/UnitOfTests.cs | 16 ++++++++-------- UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Docs/extending-with-custom-units.md b/Docs/extending-with-custom-units.md index bc5c9ac4f2..8e77cd625d 100644 --- a/Docs/extending-with-custom-units.md +++ b/Docs/extending-with-custom-units.md @@ -27,17 +27,17 @@ Conversion methods like `myLength.As()` and `myLength.ToUnit()` currently only s ### Convert to and from your own unit -To convert a quantity to or from a unit that UnitsNet doesn't define, describe the unit with a `UnitOf`. You give the conversion from the base unit of the quantity, and UnitsNet uses it directly, without a unit enum value or any setup. +To convert a quantity to or from a unit that UnitsNet doesn't define, describe the unit with a `UnitOf`. You give the value of one of the unit in the base unit of the quantity, and UnitsNet uses it directly, without a unit enum value or any setup. ```c# -// 1 furlong = 201.168 m, so there are 1000/201168 furlongs in a meter -var furlong = new UnitOf("Furlong", "Furlongs", QuantityValue.FromTerms(1000, 201168)); +// 1 furlong = 201.168 m +var furlong = new UnitOf("Furlong", "Furlongs", 201.168); QuantityValue furlongs = Length.FromMiles(1).As(furlong); // 8 Length length = Length.Info.From(2, furlong); // 402.336 m, in the base unit ``` -The unit is tied to its quantity, so `Mass.FromKilograms(1).As(furlong)` doesn't compile. For units with an offset, such as temperatures, pass both conversion expressions to the constructor. `From` returns the quantity in its base unit, since a quantity can only be in one of its own units. +The unit is tied to its quantity, so `Mass.FromKilograms(1).As(furlong)` doesn't compile. For units with an offset, such as temperatures, pass the conversion expressions from and to the base unit instead. `From` returns the quantity in its base unit, since a quantity can only be in one of its own units. ### Can I add a custom unit to an existing quantity in UnitsNet? diff --git a/UnitsNet.Tests/UnitOfTests.cs b/UnitsNet.Tests/UnitOfTests.cs index ca63f9e0f9..5ed4c3ac04 100644 --- a/UnitsNet.Tests/UnitOfTests.cs +++ b/UnitsNet.Tests/UnitOfTests.cs @@ -9,21 +9,21 @@ namespace UnitsNet.Tests; public class UnitOfTests { - // 1 furlong = 201.168 m, so there are 1000/201168 furlongs in a meter. - private static readonly UnitOf Furlong = new("Furlong", "Furlongs", QuantityValue.FromTerms(1000, 201168)); + // 1 furlong = 201.168 m + private static readonly UnitOf Furlong = new("Furlong", "Furlongs", 201.168); // Same conversions as TemperatureUnit.DegreeFahrenheit, to compare against. private static readonly UnitOf Fahrenheit = new("Fahrenheit", "Fahrenheits", - new ConversionExpression(coefficient: QuantityValue.FromTerms(9, 5), constantTerm: QuantityValue.FromTerms(-45967, 100)), + new ConversionExpression(coefficient: 1.8, constantTerm: -459.67), new ConversionExpression(coefficient: QuantityValue.FromTerms(5, 9), constantTerm: QuantityValue.FromTerms(45967, 180))); [Fact] - public void Constructor_WithCoefficient_DerivesTheInverseConversion() + public void Constructor_WithValueInBaseUnit_DerivesTheConversionFromBase() { Assert.Equal("Furlong", Furlong.Name); Assert.Equal("Furlongs", Furlong.PluralName); + Assert.Equal(201.168m, Furlong.ConversionToBase.Evaluate(QuantityValue.One)); Assert.Equal(QuantityValue.FromTerms(1000, 201168), Furlong.ConversionFromBase.Evaluate(QuantityValue.One)); - Assert.Equal(QuantityValue.FromTerms(201168, 1000), Furlong.ConversionToBase.Evaluate(QuantityValue.One)); } [Fact] @@ -74,16 +74,16 @@ public void From_ReturnsQuantityInBaseUnit() Length length = Length.Info.From(2, Furlong); Assert.Equal(LengthUnit.Meter, length.Unit); - Assert.Equal(QuantityValue.FromTerms(402336, 1000), length.Value); + Assert.Equal(402.336m, length.Value); } [Fact] public void From_AffineUnit_ReturnsQuantityInBaseUnit() { - Temperature temperature = Temperature.Info.From(QuantityValue.FromTerms(986, 10), Fahrenheit); + Temperature temperature = Temperature.Info.From(98.6, Fahrenheit); Assert.Equal(Temperature.BaseUnit, temperature.Unit); - Assert.Equal(Temperature.FromDegreesFahrenheit(QuantityValue.FromTerms(986, 10)).Kelvins, temperature.Value); + Assert.Equal(Temperature.FromDegreesFahrenheit(98.6).Kelvins, temperature.Value); } [Fact] diff --git a/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs index 0c2be97cef..c21ea277dc 100644 --- a/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs +++ b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs @@ -26,15 +26,15 @@ public sealed class UnitOf : IUnitDefinition /// /// The singular name of the unit, such as "Furlong". /// The plural name of the unit, such as "Furlongs". - /// - /// The conversion coefficient from the base unit of the quantity to this unit, such as 100 for centimeters of a - /// length. + /// + /// The value of one of this unit in the base unit of the quantity, such as 201.168 for a furlong, which is 201.168 + /// meters. /// /// /// Thrown when or is null. /// - public UnitOf(string singularName, string pluralName, QuantityValue conversionFromBase) - : this(singularName, pluralName, conversionFromBase, QuantityValue.Inverse(conversionFromBase)) + public UnitOf(string singularName, string pluralName, QuantityValue valueInBaseUnit) + : this(singularName, pluralName, QuantityValue.Inverse(valueInBaseUnit), valueInBaseUnit) { } From f3eaa8fdd3d0724e54ed2e113b158aad8c89e397 Mon Sep 17 00:00:00 2001 From: Tristan Milnthorp <5693174+tmilnthorp@users.noreply.github.com> Date: Tue, 6 Oct 2026 14:17:45 -0400 Subject: [PATCH 6/8] Create a UnitOf from the base units it's made of A unit that UnitsNet doesn't define can still be made of the base units it does, such as feet per day of speed. New constructor overloads take its base units, which UnitOf now exposes; the others leave them undefined. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012XKhDsyHDc5BHrmibxScqG --- UnitsNet.Tests/UnitOfTests.cs | 16 +++++-- .../CustomCode/QuantityInfo/Units/UnitOf.cs | 44 +++++++++++++++++-- 2 files changed, 54 insertions(+), 6 deletions(-) diff --git a/UnitsNet.Tests/UnitOfTests.cs b/UnitsNet.Tests/UnitOfTests.cs index 5ed4c3ac04..b2ff778136 100644 --- a/UnitsNet.Tests/UnitOfTests.cs +++ b/UnitsNet.Tests/UnitOfTests.cs @@ -31,14 +31,24 @@ public void Constructor_WithNullArguments_ThrowsArgumentNullException() { Assert.Throws(() => new UnitOf(null!, "Furlongs", 1)); Assert.Throws(() => new UnitOf("Furlong", null!, 1)); + Assert.Throws(() => new UnitOf("Furlong", "Furlongs", (BaseUnits)null!, 1)); } [Fact] - public void BaseUnits_AsUnitDefinition_IsUndefined() + public void BaseUnits_WhenNotGiven_IsUndefined() { - IUnitDefinition unitDefinition = Furlong; + Assert.Equal(BaseUnits.Undefined, Furlong.BaseUnits); + } + + [Fact] + public void Constructor_WithBaseUnits_KeepsThem() + { + var baseUnits = new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Day); + var footPerDay = new UnitOf("FootPerDay", "FeetPerDay", baseUnits, (Length.FromFeet(1) / Duration.FromDays(1)).MetersPerSecond); - Assert.Equal(BaseUnits.Undefined, unitDefinition.BaseUnits); + Assert.Equal(baseUnits, footPerDay.BaseUnits); + Assert.Equal(baseUnits, ((IUnitDefinition)footPerDay).BaseUnits); + Assert.Equal(new QuantityValue(86400), Speed.FromFeetPerSecond(1).As(footPerDay)); } [Fact] diff --git a/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs index c21ea277dc..c2fc8536cb 100644 --- a/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs +++ b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs @@ -34,7 +34,24 @@ public sealed class UnitOf : IUnitDefinition /// Thrown when or is null. /// public UnitOf(string singularName, string pluralName, QuantityValue valueInBaseUnit) - : this(singularName, pluralName, QuantityValue.Inverse(valueInBaseUnit), valueInBaseUnit) + : this(singularName, pluralName, BaseUnits.Undefined, valueInBaseUnit) + { + } + + /// + /// Initializes a new instance of the class for a unit made of the base units of + /// UnitsNet, such as feet per day of . + /// + /// The singular name of the unit, such as "FootPerDay". + /// The plural name of the unit, such as "FeetPerDay". + /// The base units the unit is made of, such as feet and days. + /// The value of one of this unit in the base unit of the quantity. + /// + /// Thrown when , , or is + /// null. + /// + public UnitOf(string singularName, string pluralName, BaseUnits baseUnits, QuantityValue valueInBaseUnit) + : this(singularName, pluralName, baseUnits, QuantityValue.Inverse(valueInBaseUnit), valueInBaseUnit) { } @@ -49,9 +66,29 @@ public UnitOf(string singularName, string pluralName, QuantityValue valueInBaseU /// Thrown when or is null. /// public UnitOf(string singularName, string pluralName, ConversionExpression conversionFromBase, ConversionExpression conversionToBase) + : this(singularName, pluralName, BaseUnits.Undefined, conversionFromBase, conversionToBase) + { + } + + /// + /// Initializes a new instance of the class for a unit made of the base units of + /// UnitsNet. + /// + /// The singular name of the unit. + /// The plural name of the unit. + /// The base units the unit is made of. + /// The conversion expression from the base unit of the quantity to this unit. + /// The conversion expression from this unit to the base unit of the quantity. + /// + /// Thrown when , , or is + /// null. + /// + public UnitOf(string singularName, string pluralName, BaseUnits baseUnits, + ConversionExpression conversionFromBase, ConversionExpression conversionToBase) { Name = singularName ?? throw new ArgumentNullException(nameof(singularName)); PluralName = pluralName ?? throw new ArgumentNullException(nameof(pluralName)); + BaseUnits = baseUnits ?? throw new ArgumentNullException(nameof(baseUnits)); ConversionFromBase = conversionFromBase; ConversionToBase = conversionToBase; } @@ -73,9 +110,10 @@ public UnitOf(string singularName, string pluralName, ConversionExpression conve public ConversionExpression ConversionToBase { get; } /// - /// Always , since base units are made of the units that UnitsNet defines. + /// The base units the unit is made of, or if it isn't made of the base + /// units of UnitsNet, such as a furlong. /// - BaseUnits IUnitDefinition.BaseUnits => BaseUnits.Undefined; + public BaseUnits BaseUnits { get; } /// /// Returns the name of the unit. From e3f115e3ee03966a85d086eea8366908f4122ff9 Mon Sep 17 00:00:00 2001 From: Tristan Milnthorp <5693174+tmilnthorp@users.noreply.github.com> Date: Tue, 6 Oct 2026 14:49:23 -0400 Subject: [PATCH 7/8] Generate the units of each quantity as UnitOf, such as LengthUnits.Meter Each quantity gets a static class of its units, such as LengthUnits.Meter, as UnitOf instances with their names, base units and conversions. The default unit mappings are created from them, so the data is generated once. Quantities can be converted to and from them with As and QuantityInfo.From like custom units, and a built-in unit converts through its UnitInfo, respecting the configuration. UnitOf now derives from a non-generic UnitOf, which holds its data, so its code isn't compiled again for each quantity. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012XKhDsyHDc5BHrmibxScqG --- .../UnitsNetGen/QuantityGenerator.cs | 52 +-------- .../UnitsNetGen/UnitsClassGenerator.cs | 108 ++++++++++++++++++ CodeGen/Generators/UnitsNetGenerator.cs | 7 ++ .../Helpers/ExpressionEvaluationHelpers.cs | 9 ++ UnitsNet.Tests/UnitOfTests.cs | 64 +++++++++++ .../QuantityInfo/Units/UnitDefinition.cs | 15 +++ .../CustomCode/QuantityInfo/Units/UnitOf.cs | 16 ++- UnitsNet/Extensions/QuantityExtensions.cs | 8 +- UnitsNet/QuantityInfo.cs | 43 ++++++- UnitsNet/UnitInfo.cs | 6 + 10 files changed, 274 insertions(+), 54 deletions(-) create mode 100644 CodeGen/Generators/UnitsNetGen/UnitsClassGenerator.cs diff --git a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs index 985a8f5ebb..fe798725af 100644 --- a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs +++ b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs @@ -231,56 +231,8 @@ public sealed class {quantityInfoClassName}: QuantityInfo<{_quantity.Name}, {_un foreach (Unit unit in _quantity.Units) { - BaseUnits? baseUnits = unit.BaseUnits; - string baseUnitsFormat; - if (baseUnits == null) - { - baseUnitsFormat = "BaseUnits.Undefined"; - } - else - { - baseUnitsFormat = $"new BaseUnits({string.Join(", ", - new[] - { - baseUnits.L != null ? $"length: LengthUnit.{baseUnits.L}" : null, - baseUnits.M != null ? $"mass: MassUnit.{baseUnits.M}" : null, - baseUnits.T != null ? $"time: DurationUnit.{baseUnits.T}" : null, - baseUnits.I != null ? $"current: ElectricCurrentUnit.{baseUnits.I}" : null, - baseUnits.Θ != null ? $"temperature: TemperatureUnit.{baseUnits.Θ}" : null, - baseUnits.N != null ? $"amount: AmountOfSubstanceUnit.{baseUnits.N}" : null, - baseUnits.J != null ? $"luminousIntensity: LuminousIntensityUnit.{baseUnits.J}" : null - }.Where(str => str != null))})"; - } - - // the UnitInfo constructor has 3 overloads: - // - one for the base unit without conversion expressions - // - one for units with only FromBaseToUnit conversion expression (with the FromUnitToBase expression assumed to be the inverse) - // - one for units with both FromBaseToUnit and FromUnitToBase conversion expressions (required when the conversion is not a simple inverse, e.g. affine conversions) - if (unit.SingularName == _quantity.BaseUnit) - { - Writer.WL($@" - yield return new ({_unitEnumName}.{unit.SingularName}, ""{unit.SingularName}"", ""{unit.PluralName}"", {baseUnitsFormat});"); - } - else - { - CompositeExpression expressionFromBaseToUnit = ExpressionEvaluator.Evaluate(unit.FromBaseToUnitFunc, "{x}"); - // Check if FromUnitToBase is simply the inverse of FromBaseToUnit - if (expressionFromBaseToUnit.Terms.Count == 1 && expressionFromBaseToUnit.Degree == Fraction.One) - { - Writer.WL($@" - yield return new ({_unitEnumName}.{unit.SingularName}, ""{unit.SingularName}"", ""{unit.PluralName}"", {baseUnitsFormat}, - {expressionFromBaseToUnit.GetConversionExpressionFormat()} - );"); - } - else - { - Writer.WL($@" - yield return new ({_unitEnumName}.{unit.SingularName}, ""{unit.SingularName}"", ""{unit.PluralName}"", {baseUnitsFormat}, - {expressionFromBaseToUnit.GetConversionExpressionFormat()}, - {unit.GetUnitToBaseConversionExpressionFormat()} - );"); - } - } + Writer.WL($@" + yield return new ({_unitEnumName}.{unit.SingularName}, {_quantity.Name}Units.{unit.SingularName});"); } Writer.WL($@" diff --git a/CodeGen/Generators/UnitsNetGen/UnitsClassGenerator.cs b/CodeGen/Generators/UnitsNetGen/UnitsClassGenerator.cs new file mode 100644 index 0000000000..474a02d85a --- /dev/null +++ b/CodeGen/Generators/UnitsNetGen/UnitsClassGenerator.cs @@ -0,0 +1,108 @@ +using System.Linq; +using CodeGen.Helpers; +using CodeGen.Helpers.ExpressionAnalyzer; +using CodeGen.Helpers.ExpressionAnalyzer.Expressions; +using CodeGen.JsonTypes; +using Fractions; + +namespace CodeGen.Generators.UnitsNetGen +{ + /// + /// Generates the static class of the units of a quantity as UnitOf<TQuantity>, such as + /// LengthUnits.Meter, with their names, base units and conversions. + /// + internal class UnitsClassGenerator : GeneratorBase + { + private readonly Quantity _quantity; + private readonly string _unitEnumName; + + public UnitsClassGenerator(Quantity quantity) + { + _quantity = quantity; + _unitEnumName = $"{quantity.Name}Unit"; + } + + public string Generate() + { + Writer.WL(GeneratedFileHeader); + Writer.WL($@" +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{{ + /// + /// The units of , such as . + /// "); + Writer.WLIfText(1, GetObsoleteAttributeOrNull(_quantity.ObsoleteText)); + Writer.WL($@" + public static class {_quantity.Name}Units + {{"); + var isFirst = true; + foreach (Unit unit in _quantity.Units) + { + if (!isFirst) + { + Writer.WL(); + } + + isFirst = false; + Writer.WL($@" + /// + /// The unit of . + /// "); + Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit.ObsoleteText)); + Writer.WL($@" + public static readonly UnitOf<{_quantity.Name}> {unit.SingularName} = new(""{unit.SingularName}"", ""{unit.PluralName}"", {GetBaseUnitsFormat(unit)},{GetConversionFormat(unit)});"); + } + + Writer.WL($@" + }} +}}"); + return Writer.ToString(); + } + + private string GetConversionFormat(Unit unit) + { + if (unit.SingularName == _quantity.BaseUnit) + { + return " 1"; + } + + CompositeExpression expressionFromBaseToUnit = ExpressionEvaluator.Evaluate(unit.FromBaseToUnitFunc, "{x}"); + // A conversion with a single term is described by the value of the unit in the base unit, the reciprocal of its + // coefficient. Otherwise, such as for units with an offset, it needs both conversion expressions. + if (expressionFromBaseToUnit.Terms.Count == 1 && expressionFromBaseToUnit.Degree == Fraction.One) + { + return " " + expressionFromBaseToUnit.GetReciprocalCoefficientFormat(); + } + + return $@" + {expressionFromBaseToUnit.GetConversionExpressionFormat()}, + {unit.GetUnitToBaseConversionExpressionFormat()}"; + } + + private static string GetBaseUnitsFormat(Unit unit) + { + BaseUnits? baseUnits = unit.BaseUnits; + if (baseUnits == null) + { + return "BaseUnits.Undefined"; + } + + return $"new BaseUnits({string.Join(", ", + new[] + { + baseUnits.L != null ? $"length: LengthUnit.{baseUnits.L}" : null, + baseUnits.M != null ? $"mass: MassUnit.{baseUnits.M}" : null, + baseUnits.T != null ? $"time: DurationUnit.{baseUnits.T}" : null, + baseUnits.I != null ? $"current: ElectricCurrentUnit.{baseUnits.I}" : null, + baseUnits.Θ != null ? $"temperature: TemperatureUnit.{baseUnits.Θ}" : null, + baseUnits.N != null ? $"amount: AmountOfSubstanceUnit.{baseUnits.N}" : null, + baseUnits.J != null ? $"luminousIntensity: LuminousIntensityUnit.{baseUnits.J}" : null + }.Where(str => str != null))})"; + } + + private static string? GetObsoleteAttributeOrNull(string? obsoleteText) => string.IsNullOrWhiteSpace(obsoleteText) + ? null + : $"[System.Obsolete(\"{obsoleteText}\")]"; + } +} diff --git a/CodeGen/Generators/UnitsNetGenerator.cs b/CodeGen/Generators/UnitsNetGenerator.cs index a2d5ed9ce6..cf650772a9 100644 --- a/CodeGen/Generators/UnitsNetGenerator.cs +++ b/CodeGen/Generators/UnitsNetGenerator.cs @@ -61,6 +61,7 @@ public static void Generate(string rootDir, Quantity[] quantities, QuantityNameT GenerateQuantity(quantity, $"{outputDir}/Quantities/{quantity.Name}.g.cs"); GenerateUnitType(quantity, $"{outputDir}/Units/{quantity.Name}Unit.g.cs", unitEnumValues); + GenerateUnitsClass(quantity, $"{outputDir}/Units/{quantity.Name}Units.g.cs"); GenerateNumberToExtensions(quantity, $"{extensionsOutputDir}/NumberTo{quantity.Name}Extensions.g.cs"); GenerateNumberToExtensionsTestClass(quantity, $"{extensionsTestOutputDir}/NumberTo{quantity.Name}ExtensionsTest.g.cs"); GenerateNumberToExtensionsCS14(quantity, $"{extensionsCs14OutputDir}/NumberTo{quantity.Name}Extensions.g.cs"); @@ -126,6 +127,12 @@ private static void GenerateNumberToExtensionsCS14TestClass(Quantity quantity, s CodeGenFile.WriteAllText(filePath, content); } + private static void GenerateUnitsClass(Quantity quantity, string filePath) + { + var content = new UnitsClassGenerator(quantity).Generate(); + CodeGenFile.WriteAllText(filePath, content); + } + private static void GenerateUnitType(Quantity quantity, string filePath, UnitEnumNameToValue unitEnumValues) { var content = new UnitTypeGenerator(quantity, unitEnumValues).Generate(); diff --git a/CodeGen/Helpers/ExpressionEvaluationHelpers.cs b/CodeGen/Helpers/ExpressionEvaluationHelpers.cs index 78b2ad3d36..ab4046f444 100644 --- a/CodeGen/Helpers/ExpressionEvaluationHelpers.cs +++ b/CodeGen/Helpers/ExpressionEvaluationHelpers.cs @@ -170,6 +170,15 @@ private static string GetLongConstantFormat(this Fraction coefficient) return expandedExpression; } + /// + /// Gets the format of the reciprocal of the coefficient of a conversion with a single term, such as the value of a + /// unit in the base unit from the conversion from the base unit to the unit. + /// + public static string GetReciprocalCoefficientFormat(this CompositeExpression expression) + { + return expression.Terms.Single().Coefficient.Reciprocal().GetFractionalConstantFormat(); + } + private static string GetFractionalConstantFormat(this Fraction coefficient) { coefficient = coefficient.Reduce(); diff --git a/UnitsNet.Tests/UnitOfTests.cs b/UnitsNet.Tests/UnitOfTests.cs index b2ff778136..781792fcfa 100644 --- a/UnitsNet.Tests/UnitOfTests.cs +++ b/UnitsNet.Tests/UnitOfTests.cs @@ -2,6 +2,8 @@ // Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. using System; +using System.Linq; +using System.Reflection; using UnitsNet.Units; using Xunit; @@ -102,6 +104,68 @@ public void From_RoundTripsWithAs() Assert.Equal(new QuantityValue(42), Length.Info.From(42, Furlong).As(Furlong)); } + [Fact] + public void BuiltInUnit_HasTheNamesOfTheUnit() + { + Assert.Equal("Foot", LengthUnits.Foot.Name); + Assert.Equal("Feet", LengthUnits.Foot.PluralName); + } + + [Fact] + public void BuiltInUnit_IsTheSameInstanceEveryTime() + { + Assert.Same(LengthUnits.Foot, LengthUnits.Foot); + } + + [Fact] + public void As_BuiltInUnit_ReturnsSameValueAsUnitEnum() + { + Length length = Length.FromMeters(3); + + Assert.Equal(length.Feet, length.As(LengthUnits.Foot)); + } + + [Fact] + public void As_BuiltInAffineUnit_ReturnsSameValueAsUnitEnum() + { + Temperature temperature = Temperature.FromDegreesCelsius(37); + + Assert.Equal(temperature.DegreesFahrenheit, temperature.As(TemperatureUnits.DegreeFahrenheit)); + } + + [Fact] + public void From_BuiltInUnit_ReturnsQuantityInThatUnit() + { + Length length = Length.Info.From(2, LengthUnits.Foot); + + Assert.Equal(Length.FromFeet(2), length); + Assert.Equal(LengthUnit.Foot, length.Unit); + } + + [Fact] + public void BuiltInUnits_MatchTheUnitEnumOfEveryQuantity() + { + Assert.All(Quantity.Infos, quantityInfo => + { + Type unitsType = typeof(LengthUnits).Assembly.GetType($"UnitsNet.Units.{quantityInfo.Name}Units", throwOnError: true)!; + FieldInfo[] fields = unitsType.GetFields(BindingFlags.Public | BindingFlags.Static); + + Assert.Equal(quantityInfo.UnitInfos.Select(unitInfo => unitInfo.Name).OrderBy(name => name), + fields.Select(field => field.Name).OrderBy(name => name)); + Assert.All(quantityInfo.UnitInfos, unitInfo => + { + object unit = fields.Single(field => field.Name == unitInfo.Name).GetValue(null)!; + Assert.Equal(typeof(UnitOf<>).MakeGenericType(quantityInfo.QuantityType), unit.GetType()); + + var definition = (IUnitDefinition)unit; + Assert.Equal(unitInfo.Name, definition.Name); + Assert.Equal(unitInfo.PluralName, definition.PluralName); + Assert.Equal(unitInfo.BaseUnits, definition.BaseUnits); + Assert.Equal(unitInfo.ConversionFromBase.Evaluate(QuantityValue.One), definition.ConversionFromBase.Evaluate(QuantityValue.One)); + }); + }); + } + [Fact] public void From_NullUnit_ThrowsArgumentNullException() { diff --git a/UnitsNet/CustomCode/QuantityInfo/Units/UnitDefinition.cs b/UnitsNet/CustomCode/QuantityInfo/Units/UnitDefinition.cs index f0af1cdbbd..ee2cb9f1a3 100644 --- a/UnitsNet/CustomCode/QuantityInfo/Units/UnitDefinition.cs +++ b/UnitsNet/CustomCode/QuantityInfo/Units/UnitDefinition.cs @@ -108,11 +108,26 @@ public UnitDefinition(TUnit value, string singularName, string pluralName, BaseU ConversionToBase = conversionToBase; } + /// + /// Initializes a new instance of the class for the unit enum value of a unit + /// given by another definition, such as . + /// + internal UnitDefinition(TUnit value, IUnitDefinition definition) + : this(value, definition.Name, definition.PluralName, definition.BaseUnits, definition.ConversionFromBase, definition.ConversionToBase) + { + Source = definition; + } + /// /// The enum value of the unit, such as . /// public TUnit Value { get; } + /// + /// The definition this unit was created from, such as , if any. + /// + internal IUnitDefinition? Source { get; } + /// /// The singular name of the unit, such as "Centimeter". /// diff --git a/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs index c2fc8536cb..ab00551d37 100644 --- a/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs +++ b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs @@ -17,8 +17,7 @@ namespace UnitsNet; /// Since the unit is tied to its quantity, using it with another quantity doesn't compile. /// /// The quantity this is a unit of, such as . -[DebuggerDisplay("{Name}")] -public sealed class UnitOf : IUnitDefinition +public sealed class UnitOf : UnitOf where TQuantity : IQuantity { /// @@ -85,6 +84,19 @@ public UnitOf(string singularName, string pluralName, ConversionExpression conve /// public UnitOf(string singularName, string pluralName, BaseUnits baseUnits, ConversionExpression conversionFromBase, ConversionExpression conversionToBase) + : base(singularName, pluralName, baseUnits, conversionFromBase, conversionToBase) + { + } +} + +/// +/// A unit of a quantity, described by its names and conversions. See . +/// +[DebuggerDisplay("{Name}")] +public abstract class UnitOf : IUnitDefinition +{ + private protected UnitOf(string singularName, string pluralName, BaseUnits baseUnits, + ConversionExpression conversionFromBase, ConversionExpression conversionToBase) { Name = singularName ?? throw new ArgumentNullException(nameof(singularName)); PluralName = pluralName ?? throw new ArgumentNullException(nameof(pluralName)); diff --git a/UnitsNet/Extensions/QuantityExtensions.cs b/UnitsNet/Extensions/QuantityExtensions.cs index 5c0db75238..dbf26d391d 100644 --- a/UnitsNet/Extensions/QuantityExtensions.cs +++ b/UnitsNet/Extensions/QuantityExtensions.cs @@ -123,7 +123,13 @@ public static QuantityValue As(this TQuantity quantity, UnitOf diff --git a/UnitsNet/QuantityInfo.cs b/UnitsNet/QuantityInfo.cs index 967dba9496..a9ce99332b 100644 --- a/UnitsNet/QuantityInfo.cs +++ b/UnitsNet/QuantityInfo.cs @@ -2,6 +2,7 @@ // Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. using System.Linq; +using System.Threading; using System.Resources; namespace UnitsNet; @@ -78,6 +79,15 @@ public IReadOnlyList UnitInfos /// public abstract UnitInfo this[UnitKey unit] { get; } + /// + /// Finds the unit of this quantity that was created from a definition, such as . + /// + /// The unit, or null if no unit was created from . + internal virtual UnitInfo? FindUnitInfo(IUnitDefinition unit) + { + return null; + } + /// public UnitInfo GetUnitInfoFor(BaseUnits baseUnits) { @@ -315,12 +325,19 @@ protected QuantityInfoBase(string name, TQuantity zero, BaseDimensions baseDimen /// The numerical value in . /// The unit of the value. /// - /// The quantity in its base unit, since a quantity can only be in a unit of . + /// The quantity in if it's one of the units of this quantity, such as + /// . Otherwise the quantity in its base unit, since a quantity can only be in a unit + /// of . /// /// is null. public TQuantity From(QuantityValue value, UnitOf unit) { if (unit is null) throw new ArgumentNullException(nameof(unit)); + if (FindUnitInfo(unit) is UnitInfo unitInfo) + { + return From(value, unitInfo.Value); + } + return From(unit.ConversionToBase.Evaluate(value), BaseUnitInfo.Value); } @@ -377,6 +394,7 @@ public class QuantityInfo : QuantityInfoBase> _unitMappings; + private Dictionary>? _unitsBySource; #if NET @@ -503,6 +521,29 @@ public QuantityInfo(string name, TUnit baseUnit, IEnumerable + internal override UnitInfo? FindUnitInfo(IUnitDefinition unit) + { + // Created on first use, since few applications look up units by their definition. + Dictionary> unitsBySource = Volatile.Read(ref _unitsBySource) ?? CreateUnitsBySource(); + return unitsBySource.TryGetValue(unit, out UnitInfo? unitInfo) ? unitInfo : null; + } + + private Dictionary> CreateUnitsBySource() + { + var unitsBySource = new Dictionary>(); + foreach (UnitInfo unitInfo in _unitInfos) + { + if (unitInfo.Source is { } source) + { + unitsBySource[source] = unitInfo; + } + } + + Volatile.Write(ref _unitsBySource, unitsBySource); + return unitsBySource; + } + /// /// Gets a read-only collection of the units associated with this quantity. /// diff --git a/UnitsNet/UnitInfo.cs b/UnitsNet/UnitInfo.cs index 131487f606..13ab1e729c 100644 --- a/UnitsNet/UnitInfo.cs +++ b/UnitsNet/UnitInfo.cs @@ -209,11 +209,17 @@ protected UnitInfo(IUnitDefinition mapping) : base(mapping) { Value = mapping.Value; + Source = (mapping as UnitDefinition)?.Source; } /// [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)] public new TUnit Value { get; } + + /// + /// The definition this unit was created from, such as , if any. + /// + internal IUnitDefinition? Source { get; } } /// From 135b9028c177148698052c5e4e4639d5663dc7a0 Mon Sep 17 00:00:00 2001 From: Tristan Milnthorp <5693174+tmilnthorp@users.noreply.github.com> Date: Tue, 6 Oct 2026 14:49:23 -0400 Subject: [PATCH 8/8] Regenerate code Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012XKhDsyHDc5BHrmibxScqG --- .../AbsorbedDoseOfIonizingRadiation.g.cs | 66 +-- .../Quantities/Acceleration.g.cs | 54 +-- .../Quantities/AmountOfSubstance.g.cs | 66 +-- .../Quantities/AmplitudeRatio.g.cs | 17 +- UnitsNet/GeneratedCode/Quantities/Angle.g.cs | 58 +-- UnitsNet/GeneratedCode/Quantities/Area.g.cs | 54 +-- .../GeneratedCode/Quantities/AreaDensity.g.cs | 18 +- .../Quantities/AreaMomentOfInertia.g.cs | 22 +- .../Quantities/AreaPerLength.g.cs | 22 +- .../GeneratedCode/Quantities/BitRate.g.cs | 154 ++----- .../BrakeSpecificFuelConsumption.g.cs | 10 +- .../CoefficientOfThermalExpansion.g.cs | 22 +- .../Quantities/Compressibility.g.cs | 26 +- .../GeneratedCode/Quantities/Density.g.cs | 222 +++------- .../Quantities/DoseAreaProduct.g.cs | 98 ++-- .../GeneratedCode/Quantities/Duration.g.cs | 50 +-- .../Quantities/DynamicViscosity.g.cs | 38 +- .../Quantities/ElectricAdmittance.g.cs | 62 +-- .../Quantities/ElectricApparentEnergy.g.cs | 10 +- .../Quantities/ElectricApparentPower.g.cs | 22 +- .../Quantities/ElectricCapacitance.g.cs | 26 +- .../Quantities/ElectricCharge.g.cs | 42 +- .../Quantities/ElectricChargeDensity.g.cs | 2 +- .../Quantities/ElectricConductance.g.cs | 62 +-- .../Quantities/ElectricConductivity.g.cs | 22 +- .../Quantities/ElectricCurrent.g.cs | 34 +- .../Quantities/ElectricCurrentDensity.g.cs | 10 +- .../Quantities/ElectricCurrentGradient.g.cs | 26 +- .../Quantities/ElectricField.g.cs | 2 +- .../Quantities/ElectricImpedance.g.cs | 30 +- .../Quantities/ElectricInductance.g.cs | 18 +- .../Quantities/ElectricPotential.g.cs | 22 +- .../ElectricPotentialChangeRate.g.cs | 78 +--- .../Quantities/ElectricReactance.g.cs | 30 +- .../Quantities/ElectricReactiveEnergy.g.cs | 10 +- .../Quantities/ElectricReactivePower.g.cs | 14 +- .../Quantities/ElectricResistance.g.cs | 30 +- .../Quantities/ElectricResistivity.g.cs | 54 +-- .../ElectricSurfaceChargeDensity.g.cs | 10 +- .../Quantities/ElectricSusceptance.g.cs | 62 +-- UnitsNet/GeneratedCode/Quantities/Energy.g.cs | 158 ++----- .../Quantities/EnergyDensity.g.cs | 46 +- .../GeneratedCode/Quantities/Entropy.g.cs | 26 +- .../Quantities/FluidResistance.g.cs | 74 +--- UnitsNet/GeneratedCode/Quantities/Force.g.cs | 62 +-- .../Quantities/ForceChangeRate.g.cs | 58 +-- .../Quantities/ForcePerLength.g.cs | 150 ++----- .../GeneratedCode/Quantities/Frequency.g.cs | 46 +- .../Quantities/FuelEfficiency.g.cs | 15 +- .../GeneratedCode/Quantities/HeatFlux.g.cs | 98 ++-- .../Quantities/HeatTransferCoefficient.g.cs | 22 +- .../GeneratedCode/Quantities/Illuminance.g.cs | 14 +- .../GeneratedCode/Quantities/Impulse.g.cs | 50 +-- .../GeneratedCode/Quantities/Information.g.cs | 154 ++----- .../GeneratedCode/Quantities/Irradiance.g.cs | 54 +-- .../GeneratedCode/Quantities/Irradiation.g.cs | 34 +- UnitsNet/GeneratedCode/Quantities/Jerk.g.cs | 42 +- .../Quantities/KinematicViscosity.g.cs | 34 +- .../GeneratedCode/Quantities/LeakRate.g.cs | 14 +- UnitsNet/GeneratedCode/Quantities/Length.g.cs | 166 ++----- UnitsNet/GeneratedCode/Quantities/Level.g.cs | 6 +- .../Quantities/LinearDensity.g.cs | 70 +-- .../Quantities/LinearPowerDensity.g.cs | 98 ++-- .../GeneratedCode/Quantities/Luminance.g.cs | 38 +- .../GeneratedCode/Quantities/Luminosity.g.cs | 54 +-- .../Quantities/LuminousFlux.g.cs | 2 +- .../Quantities/LuminousIntensity.g.cs | 2 +- .../Quantities/MagneticField.g.cs | 22 +- .../Quantities/MagneticFlux.g.cs | 2 +- .../Quantities/Magnetization.g.cs | 2 +- UnitsNet/GeneratedCode/Quantities/Mass.g.cs | 122 ++--- .../Quantities/MassConcentration.g.cs | 194 ++------ .../GeneratedCode/Quantities/MassFlow.g.cs | 130 ++---- .../GeneratedCode/Quantities/MassFlux.g.cs | 46 +- .../Quantities/MassFraction.g.cs | 94 +--- .../Quantities/MassMomentOfInertia.g.cs | 110 ++--- .../GeneratedCode/Quantities/Molality.g.cs | 10 +- .../GeneratedCode/Quantities/MolarEnergy.g.cs | 10 +- .../Quantities/MolarEntropy.g.cs | 10 +- .../GeneratedCode/Quantities/MolarFlow.g.cs | 34 +- .../GeneratedCode/Quantities/MolarMass.g.cs | 54 +-- .../GeneratedCode/Quantities/Molarity.g.cs | 42 +- .../Quantities/Permeability.g.cs | 2 +- .../Quantities/Permittivity.g.cs | 2 +- .../Quantities/PorousMediumPermeability.g.cs | 18 +- UnitsNet/GeneratedCode/Quantities/Power.g.cs | 106 ++--- .../Quantities/PowerDensity.g.cs | 182 ++------ .../GeneratedCode/Quantities/PowerRatio.g.cs | 7 +- .../GeneratedCode/Quantities/Pressure.g.cs | 198 +++------ .../Quantities/PressureChangeRate.g.cs | 70 +-- .../Quantities/RadiationEquivalentDose.g.cs | 22 +- .../RadiationEquivalentDoseRate.g.cs | 38 +- .../Quantities/RadiationExposure.g.cs | 30 +- .../Quantities/Radioactivity.g.cs | 114 ++--- UnitsNet/GeneratedCode/Quantities/Ratio.g.cs | 22 +- .../Quantities/RatioChangeRate.g.cs | 6 +- .../Quantities/ReciprocalArea.g.cs | 42 +- .../Quantities/ReciprocalLength.g.cs | 38 +- .../Quantities/RelativeHumidity.g.cs | 2 +- .../Quantities/RotationalAcceleration.g.cs | 14 +- .../Quantities/RotationalSpeed.g.cs | 50 +-- .../Quantities/RotationalStiffness.g.cs | 134 ++---- .../RotationalStiffnessPerLength.g.cs | 18 +- UnitsNet/GeneratedCode/Quantities/Scalar.g.cs | 2 +- .../GeneratedCode/Quantities/SolidAngle.g.cs | 2 +- .../Quantities/SpecificEnergy.g.cs | 118 ++--- .../Quantities/SpecificEntropy.g.cs | 34 +- .../Quantities/SpecificFuelConsumption.g.cs | 14 +- .../Quantities/SpecificVolume.g.cs | 10 +- .../Quantities/SpecificWeight.g.cs | 66 +-- UnitsNet/GeneratedCode/Quantities/Speed.g.cs | 130 ++---- .../Quantities/StandardVolumeFlow.g.cs | 34 +- .../GeneratedCode/Quantities/Temperature.g.cs | 45 +- .../Quantities/TemperatureChangeRate.g.cs | 66 +-- .../Quantities/TemperatureDelta.g.cs | 34 +- .../Quantities/TemperatureGradient.g.cs | 14 +- .../Quantities/ThermalConductivity.g.cs | 10 +- .../Quantities/ThermalInsulance.g.cs | 26 +- .../Quantities/ThermalResistance.g.cs | 6 +- UnitsNet/GeneratedCode/Quantities/Torque.g.cs | 106 ++--- .../GeneratedCode/Quantities/Turbidity.g.cs | 2 +- .../GeneratedCode/Quantities/VitaminA.g.cs | 2 +- UnitsNet/GeneratedCode/Quantities/Volume.g.cs | 214 +++------ .../Quantities/VolumeConcentration.g.cs | 78 +--- .../GeneratedCode/Quantities/VolumeFlow.g.cs | 310 ++++--------- .../Quantities/VolumeFlowPerArea.g.cs | 6 +- .../Quantities/VolumePerLength.g.cs | 34 +- .../Quantities/VolumetricHeatCapacity.g.cs | 34 +- .../Quantities/WarpingMomentOfInertia.g.cs | 22 +- .../AbsorbedDoseOfIonizingRadiationUnits.g.cs | 113 +++++ .../Units/AccelerationUnits.g.cs | 98 ++++ .../Units/AmountOfSubstanceUnits.g.cs | 113 +++++ .../Units/AmplitudeRatioUnits.g.cs | 54 +++ UnitsNet/GeneratedCode/Units/AngleUnits.g.cs | 103 +++++ .../GeneratedCode/Units/AreaDensityUnits.g.cs | 53 +++ .../Units/AreaMomentOfInertiaUnits.g.cs | 58 +++ .../Units/AreaPerLengthUnits.g.cs | 58 +++ UnitsNet/GeneratedCode/Units/AreaUnits.g.cs | 98 ++++ .../GeneratedCode/Units/BitRateUnits.g.cs | 223 ++++++++++ .../BrakeSpecificFuelConsumptionUnits.g.cs | 43 ++ .../CoefficientOfThermalExpansionUnits.g.cs | 58 +++ .../Units/CompressibilityUnits.g.cs | 63 +++ .../GeneratedCode/Units/DensityUnits.g.cs | 308 +++++++++++++ .../Units/DoseAreaProductUnits.g.cs | 153 +++++++ .../GeneratedCode/Units/DurationUnits.g.cs | 93 ++++ .../Units/DynamicViscosityUnits.g.cs | 78 ++++ .../Units/ElectricAdmittanceUnits.g.cs | 109 +++++ .../Units/ElectricApparentEnergyUnits.g.cs | 43 ++ .../Units/ElectricApparentPowerUnits.g.cs | 58 +++ .../Units/ElectricCapacitanceUnits.g.cs | 63 +++ .../Units/ElectricChargeDensityUnits.g.cs | 33 ++ .../Units/ElectricChargeUnits.g.cs | 83 ++++ .../Units/ElectricConductanceUnits.g.cs | 108 +++++ .../Units/ElectricConductivityUnits.g.cs | 58 +++ .../Units/ElectricCurrentDensityUnits.g.cs | 43 ++ .../Units/ElectricCurrentGradientUnits.g.cs | 63 +++ .../Units/ElectricCurrentUnits.g.cs | 73 +++ .../Units/ElectricFieldUnits.g.cs | 33 ++ .../Units/ElectricImpedanceUnits.g.cs | 69 +++ .../Units/ElectricInductanceUnits.g.cs | 53 +++ .../ElectricPotentialChangeRateUnits.g.cs | 128 ++++++ .../Units/ElectricPotentialUnits.g.cs | 58 +++ .../Units/ElectricReactanceUnits.g.cs | 68 +++ .../Units/ElectricReactiveEnergyUnits.g.cs | 43 ++ .../Units/ElectricReactivePowerUnits.g.cs | 48 ++ .../Units/ElectricResistanceUnits.g.cs | 68 +++ .../Units/ElectricResistivityUnits.g.cs | 98 ++++ .../ElectricSurfaceChargeDensityUnits.g.cs | 43 ++ .../Units/ElectricSusceptanceUnits.g.cs | 108 +++++ .../Units/EnergyDensityUnits.g.cs | 88 ++++ UnitsNet/GeneratedCode/Units/EnergyUnits.g.cs | 228 ++++++++++ .../GeneratedCode/Units/EntropyUnits.g.cs | 63 +++ .../Units/FluidResistanceUnits.g.cs | 123 ++++++ .../Units/ForceChangeRateUnits.g.cs | 103 +++++ .../Units/ForcePerLengthUnits.g.cs | 218 +++++++++ UnitsNet/GeneratedCode/Units/ForceUnits.g.cs | 108 +++++ .../GeneratedCode/Units/FrequencyUnits.g.cs | 88 ++++ .../Units/FuelEfficiencyUnits.g.cs | 50 +++ .../GeneratedCode/Units/HeatFluxUnits.g.cs | 153 +++++++ .../Units/HeatTransferCoefficientUnits.g.cs | 58 +++ .../GeneratedCode/Units/IlluminanceUnits.g.cs | 48 ++ .../GeneratedCode/Units/ImpulseUnits.g.cs | 93 ++++ .../GeneratedCode/Units/InformationUnits.g.cs | 223 ++++++++++ .../GeneratedCode/Units/IrradianceUnits.g.cs | 98 ++++ .../GeneratedCode/Units/IrradiationUnits.g.cs | 73 +++ UnitsNet/GeneratedCode/Units/JerkUnits.g.cs | 83 ++++ .../Units/KinematicViscosityUnits.g.cs | 73 +++ .../GeneratedCode/Units/LeakRateUnits.g.cs | 48 ++ UnitsNet/GeneratedCode/Units/LengthUnits.g.cs | 238 ++++++++++ UnitsNet/GeneratedCode/Units/LevelUnits.g.cs | 38 ++ .../Units/LinearDensityUnits.g.cs | 118 +++++ .../Units/LinearPowerDensityUnits.g.cs | 153 +++++++ .../GeneratedCode/Units/LuminanceUnits.g.cs | 78 ++++ .../GeneratedCode/Units/LuminosityUnits.g.cs | 98 ++++ .../Units/LuminousFluxUnits.g.cs | 33 ++ .../Units/LuminousIntensityUnits.g.cs | 33 ++ .../Units/MagneticFieldUnits.g.cs | 58 +++ .../Units/MagneticFluxUnits.g.cs | 33 ++ .../Units/MagnetizationUnits.g.cs | 33 ++ .../Units/MassConcentrationUnits.g.cs | 273 ++++++++++++ .../GeneratedCode/Units/MassFlowUnits.g.cs | 193 ++++++++ .../GeneratedCode/Units/MassFluxUnits.g.cs | 88 ++++ .../Units/MassFractionUnits.g.cs | 148 +++++++ .../Units/MassMomentOfInertiaUnits.g.cs | 168 +++++++ UnitsNet/GeneratedCode/Units/MassUnits.g.cs | 183 ++++++++ .../GeneratedCode/Units/MolalityUnits.g.cs | 43 ++ .../GeneratedCode/Units/MolarEnergyUnits.g.cs | 43 ++ .../Units/MolarEntropyUnits.g.cs | 43 ++ .../GeneratedCode/Units/MolarFlowUnits.g.cs | 73 +++ .../GeneratedCode/Units/MolarMassUnits.g.cs | 98 ++++ .../GeneratedCode/Units/MolarityUnits.g.cs | 83 ++++ .../Units/PermeabilityUnits.g.cs | 33 ++ .../Units/PermittivityUnits.g.cs | 33 ++ .../Units/PorousMediumPermeabilityUnits.g.cs | 53 +++ .../Units/PowerDensityUnits.g.cs | 258 +++++++++++ .../GeneratedCode/Units/PowerRatioUnits.g.cs | 40 ++ UnitsNet/GeneratedCode/Units/PowerUnits.g.cs | 163 +++++++ .../Units/PressureChangeRateUnits.g.cs | 118 +++++ .../GeneratedCode/Units/PressureUnits.g.cs | 278 ++++++++++++ .../RadiationEquivalentDoseRateUnits.g.cs | 78 ++++ .../Units/RadiationEquivalentDoseUnits.g.cs | 58 +++ .../Units/RadiationExposureUnits.g.cs | 68 +++ .../Units/RadioactivityUnits.g.cs | 173 ++++++++ .../Units/RatioChangeRateUnits.g.cs | 38 ++ UnitsNet/GeneratedCode/Units/RatioUnits.g.cs | 58 +++ .../Units/ReciprocalAreaUnits.g.cs | 83 ++++ .../Units/ReciprocalLengthUnits.g.cs | 78 ++++ .../Units/RelativeHumidityUnits.g.cs | 33 ++ .../Units/RotationalAccelerationUnits.g.cs | 48 ++ .../Units/RotationalSpeedUnits.g.cs | 93 ++++ .../RotationalStiffnessPerLengthUnits.g.cs | 53 +++ .../Units/RotationalStiffnessUnits.g.cs | 198 +++++++++ UnitsNet/GeneratedCode/Units/ScalarUnits.g.cs | 33 ++ .../GeneratedCode/Units/SolidAngleUnits.g.cs | 33 ++ .../Units/SpecificEnergyUnits.g.cs | 178 ++++++++ .../Units/SpecificEntropyUnits.g.cs | 73 +++ .../Units/SpecificFuelConsumptionUnits.g.cs | 48 ++ .../Units/SpecificVolumeUnits.g.cs | 43 ++ .../Units/SpecificWeightUnits.g.cs | 113 +++++ UnitsNet/GeneratedCode/Units/SpeedUnits.g.cs | 193 ++++++++ .../Units/StandardVolumeFlowUnits.g.cs | 73 +++ .../Units/TemperatureChangeRateUnits.g.cs | 113 +++++ .../Units/TemperatureDeltaUnits.g.cs | 73 +++ .../Units/TemperatureGradientUnits.g.cs | 48 ++ .../GeneratedCode/Units/TemperatureUnits.g.cs | 92 ++++ .../Units/ThermalConductivityUnits.g.cs | 43 ++ .../Units/ThermalInsulanceUnits.g.cs | 63 +++ .../Units/ThermalResistanceUnits.g.cs | 38 ++ UnitsNet/GeneratedCode/Units/TorqueUnits.g.cs | 163 +++++++ .../GeneratedCode/Units/TurbidityUnits.g.cs | 33 ++ .../GeneratedCode/Units/VitaminAUnits.g.cs | 33 ++ .../Units/VolumeConcentrationUnits.g.cs | 128 ++++++ .../Units/VolumeFlowPerAreaUnits.g.cs | 38 ++ .../GeneratedCode/Units/VolumeFlowUnits.g.cs | 418 ++++++++++++++++++ .../Units/VolumePerLengthUnits.g.cs | 73 +++ UnitsNet/GeneratedCode/Units/VolumeUnits.g.cs | 298 +++++++++++++ .../Units/VolumetricHeatCapacityUnits.g.cs | 73 +++ .../Units/WarpingMomentOfInertiaUnits.g.cs | 58 +++ 258 files changed, 14024 insertions(+), 4947 deletions(-) create mode 100644 UnitsNet/GeneratedCode/Units/AbsorbedDoseOfIonizingRadiationUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/AccelerationUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/AmountOfSubstanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/AmplitudeRatioUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/AngleUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/AreaDensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/AreaMomentOfInertiaUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/AreaPerLengthUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/AreaUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/BitRateUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/BrakeSpecificFuelConsumptionUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/CoefficientOfThermalExpansionUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/CompressibilityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/DensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/DoseAreaProductUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/DurationUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/DynamicViscosityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricAdmittanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricApparentEnergyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricApparentPowerUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricCapacitanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricChargeDensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricChargeUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricConductanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricConductivityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricCurrentDensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricCurrentGradientUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricCurrentUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricFieldUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricImpedanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricInductanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricPotentialChangeRateUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricPotentialUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricReactanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricReactiveEnergyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricReactivePowerUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricResistanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricResistivityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricSurfaceChargeDensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ElectricSusceptanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/EnergyDensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/EnergyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/EntropyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/FluidResistanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ForceChangeRateUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ForcePerLengthUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ForceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/FrequencyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/FuelEfficiencyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/HeatFluxUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/HeatTransferCoefficientUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/IlluminanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ImpulseUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/InformationUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/IrradianceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/IrradiationUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/JerkUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/KinematicViscosityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/LeakRateUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/LengthUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/LevelUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/LinearDensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/LinearPowerDensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/LuminanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/LuminosityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/LuminousFluxUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/LuminousIntensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MagneticFieldUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MagneticFluxUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MagnetizationUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MassConcentrationUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MassFlowUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MassFluxUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MassFractionUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MassMomentOfInertiaUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MassUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MolalityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MolarEnergyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MolarEntropyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MolarFlowUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MolarMassUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/MolarityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/PermeabilityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/PermittivityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/PorousMediumPermeabilityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/PowerDensityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/PowerRatioUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/PowerUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/PressureChangeRateUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/PressureUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RadiationEquivalentDoseRateUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RadiationEquivalentDoseUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RadiationExposureUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RadioactivityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RatioChangeRateUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RatioUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ReciprocalAreaUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ReciprocalLengthUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RelativeHumidityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RotationalAccelerationUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RotationalSpeedUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RotationalStiffnessPerLengthUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/RotationalStiffnessUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ScalarUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/SolidAngleUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/SpecificEnergyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/SpecificEntropyUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/SpecificFuelConsumptionUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/SpecificVolumeUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/SpecificWeightUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/SpeedUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/StandardVolumeFlowUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/TemperatureChangeRateUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/TemperatureDeltaUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/TemperatureGradientUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/TemperatureUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ThermalConductivityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ThermalInsulanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/ThermalResistanceUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/TorqueUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/TurbidityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/VitaminAUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/VolumeConcentrationUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/VolumeFlowPerAreaUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/VolumeFlowUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/VolumePerLengthUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/VolumeUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/VolumetricHeatCapacityUnits.g.cs create mode 100644 UnitsNet/GeneratedCode/Units/WarpingMomentOfInertiaUnits.g.cs diff --git a/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs b/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs index f4fd3d7330..32948762b6 100644 --- a/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs @@ -120,55 +120,23 @@ public static AbsorbedDoseOfIonizingRadiationInfo CreateDefault(FuncAn of representing the default unit mappings for AbsorbedDoseOfIonizingRadiation. public static IEnumerable> GetDefaultMappings() { - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Centigray, "Centigray", "Centigrays", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), - 100 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Decigray, "Decigray", "Decigrays", BaseUnits.Undefined, - 10 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Femtogray, "Femtogray", "Femtograys", BaseUnits.Undefined, - 1000000000000000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Gigagray, "Gigagray", "Gigagrays", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Gray, "Gray", "Grays", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Kilogray, "Kilogray", "Kilograys", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Kilorad, "Kilorad", "Kilorads", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Megagray, "Megagray", "Megagrays", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Megarad, "Megarad", "Megarads", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Microgray, "Microgray", "Micrograys", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Milligray, "Milligray", "Milligrays", BaseUnits.Undefined, - 1000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Millirad, "Millirad", "Millirads", BaseUnits.Undefined, - 100000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Nanogray, "Nanogray", "Nanograys", BaseUnits.Undefined, - 1000000000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Petagray, "Petagray", "Petagrays", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Picogray, "Picogray", "Picograys", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Rad, "Rad", "Rads", BaseUnits.Undefined, - 100 - ); - yield return new (AbsorbedDoseOfIonizingRadiationUnit.Teragray, "Teragray", "Teragrays", new BaseUnits(length: LengthUnit.Megameter, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Centigray, AbsorbedDoseOfIonizingRadiationUnits.Centigray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Decigray, AbsorbedDoseOfIonizingRadiationUnits.Decigray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Femtogray, AbsorbedDoseOfIonizingRadiationUnits.Femtogray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Gigagray, AbsorbedDoseOfIonizingRadiationUnits.Gigagray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Gray, AbsorbedDoseOfIonizingRadiationUnits.Gray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Kilogray, AbsorbedDoseOfIonizingRadiationUnits.Kilogray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Kilorad, AbsorbedDoseOfIonizingRadiationUnits.Kilorad); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Megagray, AbsorbedDoseOfIonizingRadiationUnits.Megagray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Megarad, AbsorbedDoseOfIonizingRadiationUnits.Megarad); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Microgray, AbsorbedDoseOfIonizingRadiationUnits.Microgray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Milligray, AbsorbedDoseOfIonizingRadiationUnits.Milligray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Millirad, AbsorbedDoseOfIonizingRadiationUnits.Millirad); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Nanogray, AbsorbedDoseOfIonizingRadiationUnits.Nanogray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Petagray, AbsorbedDoseOfIonizingRadiationUnits.Petagray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Picogray, AbsorbedDoseOfIonizingRadiationUnits.Picogray); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Rad, AbsorbedDoseOfIonizingRadiationUnits.Rad); + yield return new (AbsorbedDoseOfIonizingRadiationUnit.Teragray, AbsorbedDoseOfIonizingRadiationUnits.Teragray); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs index debceb5f65..8558e493b2 100644 --- a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs @@ -123,46 +123,20 @@ public static AccelerationInfo CreateDefault(FuncAn of representing the default unit mappings for Acceleration. public static IEnumerable> GetDefaultMappings() { - yield return new (AccelerationUnit.CentimeterPerSecondSquared, "CentimeterPerSecondSquared", "CentimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), - 100 - ); - yield return new (AccelerationUnit.DecimeterPerSecondSquared, "DecimeterPerSecondSquared", "DecimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), - 10 - ); - yield return new (AccelerationUnit.FootPerSecondSquared, "FootPerSecondSquared", "FeetPerSecondSquared", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1250, 381) - ); - yield return new (AccelerationUnit.InchPerSecondSquared, "InchPerSecondSquared", "InchesPerSecondSquared", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), - new QuantityValue(5000, 127) - ); - yield return new (AccelerationUnit.KilometerPerSecondSquared, "KilometerPerSecondSquared", "KilometersPerSecondSquared", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (AccelerationUnit.KnotPerHour, "KnotPerHour", "KnotsPerHour", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Hour), - new QuantityValue(3240000, 463) - ); - yield return new (AccelerationUnit.KnotPerMinute, "KnotPerMinute", "KnotsPerMinute", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Minute), - new QuantityValue(54000, 463) - ); - yield return new (AccelerationUnit.KnotPerSecond, "KnotPerSecond", "KnotsPerSecond", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Second), - new QuantityValue(900, 463) - ); - yield return new (AccelerationUnit.MeterPerSecondSquared, "MeterPerSecondSquared", "MetersPerSecondSquared", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (AccelerationUnit.MicrometerPerSecondSquared, "MicrometerPerSecondSquared", "MicrometersPerSecondSquared", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), - 1000000 - ); - yield return new (AccelerationUnit.MillimeterPerSecondSquared, "MillimeterPerSecondSquared", "MillimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000 - ); - yield return new (AccelerationUnit.MillistandardGravity, "MillistandardGravity", "MillistandardGravity", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (AccelerationUnit.NanometerPerSecondSquared, "NanometerPerSecondSquared", "NanometersPerSecondSquared", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), - 1000000000 - ); - yield return new (AccelerationUnit.StandardGravity, "StandardGravity", "StandardGravity", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); + yield return new (AccelerationUnit.CentimeterPerSecondSquared, AccelerationUnits.CentimeterPerSecondSquared); + yield return new (AccelerationUnit.DecimeterPerSecondSquared, AccelerationUnits.DecimeterPerSecondSquared); + yield return new (AccelerationUnit.FootPerSecondSquared, AccelerationUnits.FootPerSecondSquared); + yield return new (AccelerationUnit.InchPerSecondSquared, AccelerationUnits.InchPerSecondSquared); + yield return new (AccelerationUnit.KilometerPerSecondSquared, AccelerationUnits.KilometerPerSecondSquared); + yield return new (AccelerationUnit.KnotPerHour, AccelerationUnits.KnotPerHour); + yield return new (AccelerationUnit.KnotPerMinute, AccelerationUnits.KnotPerMinute); + yield return new (AccelerationUnit.KnotPerSecond, AccelerationUnits.KnotPerSecond); + yield return new (AccelerationUnit.MeterPerSecondSquared, AccelerationUnits.MeterPerSecondSquared); + yield return new (AccelerationUnit.MicrometerPerSecondSquared, AccelerationUnits.MicrometerPerSecondSquared); + yield return new (AccelerationUnit.MillimeterPerSecondSquared, AccelerationUnits.MillimeterPerSecondSquared); + yield return new (AccelerationUnit.MillistandardGravity, AccelerationUnits.MillistandardGravity); + yield return new (AccelerationUnit.NanometerPerSecondSquared, AccelerationUnits.NanometerPerSecondSquared); + yield return new (AccelerationUnit.StandardGravity, AccelerationUnits.StandardGravity); } } diff --git a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs index 11f278d0af..459fd43655 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs @@ -122,55 +122,23 @@ public static AmountOfSubstanceInfo CreateDefault(FuncAn of representing the default unit mappings for AmountOfSubstance. public static IEnumerable> GetDefaultMappings() { - yield return new (AmountOfSubstanceUnit.Centimole, "Centimole", "Centimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Centimole), - 100 - ); - yield return new (AmountOfSubstanceUnit.CentipoundMole, "CentipoundMole", "CentipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.CentipoundMole), - new QuantityValue(10000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Decimole, "Decimole", "Decimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Decimole), - 10 - ); - yield return new (AmountOfSubstanceUnit.DecipoundMole, "DecipoundMole", "DecipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.DecipoundMole), - new QuantityValue(1000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Femtomole, "Femtomole", "Femtomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Femtomole), - 1000000000000000 - ); - yield return new (AmountOfSubstanceUnit.Kilomole, "Kilomole", "Kilomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(1, 1000) - ); - yield return new (AmountOfSubstanceUnit.KilopoundMole, "KilopoundMole", "KilopoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.KilopoundMole), - new QuantityValue(100, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Megamole, "Megamole", "Megamoles", new BaseUnits(amount: AmountOfSubstanceUnit.Megamole), - new QuantityValue(1, 1000000) - ); - yield return new (AmountOfSubstanceUnit.Micromole, "Micromole", "Micromoles", new BaseUnits(amount: AmountOfSubstanceUnit.Micromole), - 1000000 - ); - yield return new (AmountOfSubstanceUnit.MicropoundMole, "MicropoundMole", "MicropoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.MicropoundMole), - new QuantityValue(100000000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Millimole, "Millimole", "Millimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Millimole), - 1000 - ); - yield return new (AmountOfSubstanceUnit.MillipoundMole, "MillipoundMole", "MillipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.MillipoundMole), - new QuantityValue(100000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Mole, "Mole", "Moles", new BaseUnits(amount: AmountOfSubstanceUnit.Mole)); - yield return new (AmountOfSubstanceUnit.Nanomole, "Nanomole", "Nanomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Nanomole), - 1000000000 - ); - yield return new (AmountOfSubstanceUnit.NanopoundMole, "NanopoundMole", "NanopoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.NanopoundMole), - new QuantityValue(100000000000000, 45359237) - ); - yield return new (AmountOfSubstanceUnit.Picomole, "Picomole", "Picomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Picomole), - 1000000000000 - ); - yield return new (AmountOfSubstanceUnit.PoundMole, "PoundMole", "PoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(100000, 45359237) - ); + yield return new (AmountOfSubstanceUnit.Centimole, AmountOfSubstanceUnits.Centimole); + yield return new (AmountOfSubstanceUnit.CentipoundMole, AmountOfSubstanceUnits.CentipoundMole); + yield return new (AmountOfSubstanceUnit.Decimole, AmountOfSubstanceUnits.Decimole); + yield return new (AmountOfSubstanceUnit.DecipoundMole, AmountOfSubstanceUnits.DecipoundMole); + yield return new (AmountOfSubstanceUnit.Femtomole, AmountOfSubstanceUnits.Femtomole); + yield return new (AmountOfSubstanceUnit.Kilomole, AmountOfSubstanceUnits.Kilomole); + yield return new (AmountOfSubstanceUnit.KilopoundMole, AmountOfSubstanceUnits.KilopoundMole); + yield return new (AmountOfSubstanceUnit.Megamole, AmountOfSubstanceUnits.Megamole); + yield return new (AmountOfSubstanceUnit.Micromole, AmountOfSubstanceUnits.Micromole); + yield return new (AmountOfSubstanceUnit.MicropoundMole, AmountOfSubstanceUnits.MicropoundMole); + yield return new (AmountOfSubstanceUnit.Millimole, AmountOfSubstanceUnits.Millimole); + yield return new (AmountOfSubstanceUnit.MillipoundMole, AmountOfSubstanceUnits.MillipoundMole); + yield return new (AmountOfSubstanceUnit.Mole, AmountOfSubstanceUnits.Mole); + yield return new (AmountOfSubstanceUnit.Nanomole, AmountOfSubstanceUnits.Nanomole); + yield return new (AmountOfSubstanceUnit.NanopoundMole, AmountOfSubstanceUnits.NanopoundMole); + yield return new (AmountOfSubstanceUnit.Picomole, AmountOfSubstanceUnits.Picomole); + yield return new (AmountOfSubstanceUnit.PoundMole, AmountOfSubstanceUnits.PoundMole); } } diff --git a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs index 285feba890..6269833f44 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs @@ -116,19 +116,10 @@ public static AmplitudeRatioInfo CreateDefault(FuncAn of representing the default unit mappings for AmplitudeRatio. public static IEnumerable> GetDefaultMappings() { - yield return new (AmplitudeRatioUnit.DecibelMicrovolt, "DecibelMicrovolt", "DecibelMicrovolts", BaseUnits.Undefined, - new ConversionExpression(coefficient: 1, constantTerm: 120), - new ConversionExpression(coefficient: 1, constantTerm: -120) - ); - yield return new (AmplitudeRatioUnit.DecibelMillivolt, "DecibelMillivolt", "DecibelMillivolts", BaseUnits.Undefined, - new ConversionExpression(coefficient: 1, constantTerm: 60), - new ConversionExpression(coefficient: 1, constantTerm: -60) - ); - yield return new (AmplitudeRatioUnit.DecibelUnloaded, "DecibelUnloaded", "DecibelsUnloaded", BaseUnits.Undefined, - new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(2218487499, 1000000000)), - new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(-2218487499, 1000000000)) - ); - yield return new (AmplitudeRatioUnit.DecibelVolt, "DecibelVolt", "DecibelVolts", BaseUnits.Undefined); + yield return new (AmplitudeRatioUnit.DecibelMicrovolt, AmplitudeRatioUnits.DecibelMicrovolt); + yield return new (AmplitudeRatioUnit.DecibelMillivolt, AmplitudeRatioUnits.DecibelMillivolt); + yield return new (AmplitudeRatioUnit.DecibelUnloaded, AmplitudeRatioUnits.DecibelUnloaded); + yield return new (AmplitudeRatioUnit.DecibelVolt, AmplitudeRatioUnits.DecibelVolt); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs index f41544faa7..d632ff007b 100644 --- a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs @@ -119,49 +119,21 @@ public static AngleInfo CreateDefault(Func /// An of representing the default unit mappings for Angle. public static IEnumerable> GetDefaultMappings() { - yield return new (AngleUnit.Arcminute, "Arcminute", "Arcminutes", BaseUnits.Undefined, - new QuantityValue(new BigInteger(108) * QuantityValue.PowerOfTen(17), 3141592653589793) - ); - yield return new (AngleUnit.Arcsecond, "Arcsecond", "Arcseconds", BaseUnits.Undefined, - new QuantityValue(new BigInteger(648) * QuantityValue.PowerOfTen(18), 3141592653589793) - ); - yield return new (AngleUnit.Centiradian, "Centiradian", "Centiradians", BaseUnits.Undefined, - 100 - ); - yield return new (AngleUnit.Deciradian, "Deciradian", "Deciradians", BaseUnits.Undefined, - 10 - ); - yield return new (AngleUnit.Degree, "Degree", "Degrees", BaseUnits.Undefined, - new QuantityValue(180000000000000000, 3141592653589793) - ); - yield return new (AngleUnit.Gradian, "Gradian", "Gradians", BaseUnits.Undefined, - new QuantityValue(200000000000000000, 3141592653589793) - ); - yield return new (AngleUnit.Microdegree, "Microdegree", "Microdegrees", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(22), 3141592653589793) - ); - yield return new (AngleUnit.Microradian, "Microradian", "Microradians", BaseUnits.Undefined, - 1000000 - ); - yield return new (AngleUnit.Millidegree, "Millidegree", "Millidegrees", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(19), 3141592653589793) - ); - yield return new (AngleUnit.Milliradian, "Milliradian", "Milliradians", BaseUnits.Undefined, - 1000 - ); - yield return new (AngleUnit.Nanodegree, "Nanodegree", "Nanodegrees", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(25), 3141592653589793) - ); - yield return new (AngleUnit.Nanoradian, "Nanoradian", "Nanoradians", BaseUnits.Undefined, - 1000000000 - ); - yield return new (AngleUnit.NatoMil, "NatoMil", "NatoMils", BaseUnits.Undefined, - new QuantityValue(3200000000000000000, 3141592653589793) - ); - yield return new (AngleUnit.Radian, "Radian", "Radians", BaseUnits.Undefined); - yield return new (AngleUnit.Revolution, "Revolution", "Revolutions", BaseUnits.Undefined, - new QuantityValue(500000000000000, 3141592653589793) - ); + yield return new (AngleUnit.Arcminute, AngleUnits.Arcminute); + yield return new (AngleUnit.Arcsecond, AngleUnits.Arcsecond); + yield return new (AngleUnit.Centiradian, AngleUnits.Centiradian); + yield return new (AngleUnit.Deciradian, AngleUnits.Deciradian); + yield return new (AngleUnit.Degree, AngleUnits.Degree); + yield return new (AngleUnit.Gradian, AngleUnits.Gradian); + yield return new (AngleUnit.Microdegree, AngleUnits.Microdegree); + yield return new (AngleUnit.Microradian, AngleUnits.Microradian); + yield return new (AngleUnit.Millidegree, AngleUnits.Millidegree); + yield return new (AngleUnit.Milliradian, AngleUnits.Milliradian); + yield return new (AngleUnit.Nanodegree, AngleUnits.Nanodegree); + yield return new (AngleUnit.Nanoradian, AngleUnits.Nanoradian); + yield return new (AngleUnit.NatoMil, AngleUnits.NatoMil); + yield return new (AngleUnit.Radian, AngleUnits.Radian); + yield return new (AngleUnit.Revolution, AngleUnits.Revolution); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Area.g.cs b/UnitsNet/GeneratedCode/Quantities/Area.g.cs index 0db6e3a84a..9d9eac4ee9 100644 --- a/UnitsNet/GeneratedCode/Quantities/Area.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Area.g.cs @@ -138,46 +138,20 @@ public static AreaInfo CreateDefault(Func>, /// An of representing the default unit mappings for Area. public static IEnumerable> GetDefaultMappings() { - yield return new (AreaUnit.Acre, "Acre", "Acres", BaseUnits.Undefined, - new QuantityValue(78125, 316160658) - ); - yield return new (AreaUnit.Hectare, "Hectare", "Hectares", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (AreaUnit.SquareCentimeter, "SquareCentimeter", "SquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - 10000 - ); - yield return new (AreaUnit.SquareDecimeter, "SquareDecimeter", "SquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter), - 100 - ); - yield return new (AreaUnit.SquareFoot, "SquareFoot", "SquareFeet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(1562500, 145161) - ); - yield return new (AreaUnit.SquareInch, "SquareInch", "SquareInches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(25000000, 16129) - ); - yield return new (AreaUnit.SquareKilometer, "SquareKilometer", "SquareKilometers", new BaseUnits(length: LengthUnit.Kilometer), - new QuantityValue(1, 1000000) - ); - yield return new (AreaUnit.SquareMeter, "SquareMeter", "SquareMeters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (AreaUnit.SquareMicrometer, "SquareMicrometer", "SquareMicrometers", new BaseUnits(length: LengthUnit.Micrometer), - 1000000000000 - ); - yield return new (AreaUnit.SquareMile, "SquareMile", "SquareMiles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(15625, 40468564224) - ); - yield return new (AreaUnit.SquareMillimeter, "SquareMillimeter", "SquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter), - 1000000 - ); - yield return new (AreaUnit.SquareNauticalMile, "SquareNauticalMile", "SquareNauticalMiles", BaseUnits.Undefined, - new QuantityValue(1, 3429904) - ); - yield return new (AreaUnit.SquareYard, "SquareYard", "SquareYards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1562500, 1306449) - ); - yield return new (AreaUnit.UsSurveySquareFoot, "UsSurveySquareFoot", "UsSurveySquareFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), - new QuantityValue(15499969, 1440000) - ); + yield return new (AreaUnit.Acre, AreaUnits.Acre); + yield return new (AreaUnit.Hectare, AreaUnits.Hectare); + yield return new (AreaUnit.SquareCentimeter, AreaUnits.SquareCentimeter); + yield return new (AreaUnit.SquareDecimeter, AreaUnits.SquareDecimeter); + yield return new (AreaUnit.SquareFoot, AreaUnits.SquareFoot); + yield return new (AreaUnit.SquareInch, AreaUnits.SquareInch); + yield return new (AreaUnit.SquareKilometer, AreaUnits.SquareKilometer); + yield return new (AreaUnit.SquareMeter, AreaUnits.SquareMeter); + yield return new (AreaUnit.SquareMicrometer, AreaUnits.SquareMicrometer); + yield return new (AreaUnit.SquareMile, AreaUnits.SquareMile); + yield return new (AreaUnit.SquareMillimeter, AreaUnits.SquareMillimeter); + yield return new (AreaUnit.SquareNauticalMile, AreaUnits.SquareNauticalMile); + yield return new (AreaUnit.SquareYard, AreaUnits.SquareYard); + yield return new (AreaUnit.UsSurveySquareFoot, AreaUnits.UsSurveySquareFoot); } } diff --git a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs index 5e304a5a93..9184cb8a5b 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs @@ -121,19 +121,11 @@ public static AreaDensityInfo CreateDefault(FuncAn of representing the default unit mappings for AreaDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (AreaDensityUnit.GramPerSquareMeter, "GramPerSquareMeter", "GramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (AreaDensityUnit.KilogramPerSquareMeter, "KilogramPerSquareMeter", "KilogramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (AreaDensityUnit.MilligramPerSquareMeter, "MilligramPerSquareMeter", "MilligramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (AreaDensityUnit.PoundPerSquareFoot, "PoundPerSquareFoot", "PoundsPerSquareFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(9290304, 45359237) - ); - yield return new (AreaDensityUnit.PoundPerThousandSquareFeet, "PoundPerThousandSquareFeet", "PoundsPerThousandSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(9290304000, 45359237) - ); + yield return new (AreaDensityUnit.GramPerSquareMeter, AreaDensityUnits.GramPerSquareMeter); + yield return new (AreaDensityUnit.KilogramPerSquareMeter, AreaDensityUnits.KilogramPerSquareMeter); + yield return new (AreaDensityUnit.MilligramPerSquareMeter, AreaDensityUnits.MilligramPerSquareMeter); + yield return new (AreaDensityUnit.PoundPerSquareFoot, AreaDensityUnits.PoundPerSquareFoot); + yield return new (AreaDensityUnit.PoundPerThousandSquareFeet, AreaDensityUnits.PoundPerThousandSquareFeet); } } diff --git a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs index 9d040c557d..e0ae7668a0 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs @@ -119,22 +119,12 @@ public static AreaMomentOfInertiaInfo CreateDefault(FuncAn of representing the default unit mappings for AreaMomentOfInertia. public static IEnumerable> GetDefaultMappings() { - yield return new (AreaMomentOfInertiaUnit.CentimeterToTheFourth, "CentimeterToTheFourth", "CentimetersToTheFourth", new BaseUnits(length: LengthUnit.Centimeter), - 100000000 - ); - yield return new (AreaMomentOfInertiaUnit.DecimeterToTheFourth, "DecimeterToTheFourth", "DecimetersToTheFourth", new BaseUnits(length: LengthUnit.Decimeter), - 10000 - ); - yield return new (AreaMomentOfInertiaUnit.FootToTheFourth, "FootToTheFourth", "FeetToTheFourth", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(2441406250000, 21071715921) - ); - yield return new (AreaMomentOfInertiaUnit.InchToTheFourth, "InchToTheFourth", "InchesToTheFourth", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(625000000000000, 260144641) - ); - yield return new (AreaMomentOfInertiaUnit.MeterToTheFourth, "MeterToTheFourth", "MetersToTheFourth", new BaseUnits(length: LengthUnit.Meter)); - yield return new (AreaMomentOfInertiaUnit.MillimeterToTheFourth, "MillimeterToTheFourth", "MillimetersToTheFourth", new BaseUnits(length: LengthUnit.Millimeter), - 1000000000000 - ); + yield return new (AreaMomentOfInertiaUnit.CentimeterToTheFourth, AreaMomentOfInertiaUnits.CentimeterToTheFourth); + yield return new (AreaMomentOfInertiaUnit.DecimeterToTheFourth, AreaMomentOfInertiaUnits.DecimeterToTheFourth); + yield return new (AreaMomentOfInertiaUnit.FootToTheFourth, AreaMomentOfInertiaUnits.FootToTheFourth); + yield return new (AreaMomentOfInertiaUnit.InchToTheFourth, AreaMomentOfInertiaUnits.InchToTheFourth); + yield return new (AreaMomentOfInertiaUnit.MeterToTheFourth, AreaMomentOfInertiaUnits.MeterToTheFourth); + yield return new (AreaMomentOfInertiaUnit.MillimeterToTheFourth, AreaMomentOfInertiaUnits.MillimeterToTheFourth); } } diff --git a/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs index cab8674135..044d95abe8 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs @@ -117,22 +117,12 @@ public static AreaPerLengthInfo CreateDefault(FuncAn of representing the default unit mappings for AreaPerLength. public static IEnumerable> GetDefaultMappings() { - yield return new (AreaPerLengthUnit.SquareCentimeterPerMeter, "SquareCentimeterPerMeter", "SquareCentimetersPerMeter", BaseUnits.Undefined, - 10000 - ); - yield return new (AreaPerLengthUnit.SquareFootPerFoot, "SquareFootPerFoot", "SquareFeetPerFoot", BaseUnits.Undefined, - new QuantityValue(1250, 381) - ); - yield return new (AreaPerLengthUnit.SquareInchPerFoot, "SquareInchPerFoot", "SquareInchesPerFoot", BaseUnits.Undefined, - new QuantityValue(60000, 127) - ); - yield return new (AreaPerLengthUnit.SquareInchPerInch, "SquareInchPerInch", "SquareInchesPerInch", BaseUnits.Undefined, - new QuantityValue(5000, 127) - ); - yield return new (AreaPerLengthUnit.SquareMeterPerMeter, "SquareMeterPerMeter", "SquareMetersPerMeter", new BaseUnits(length: LengthUnit.Meter)); - yield return new (AreaPerLengthUnit.SquareMillimeterPerMeter, "SquareMillimeterPerMeter", "SquareMillimetersPerMeter", BaseUnits.Undefined, - 1000000 - ); + yield return new (AreaPerLengthUnit.SquareCentimeterPerMeter, AreaPerLengthUnits.SquareCentimeterPerMeter); + yield return new (AreaPerLengthUnit.SquareFootPerFoot, AreaPerLengthUnits.SquareFootPerFoot); + yield return new (AreaPerLengthUnit.SquareInchPerFoot, AreaPerLengthUnits.SquareInchPerFoot); + yield return new (AreaPerLengthUnit.SquareInchPerInch, AreaPerLengthUnits.SquareInchPerInch); + yield return new (AreaPerLengthUnit.SquareMeterPerMeter, AreaPerLengthUnits.SquareMeterPerMeter); + yield return new (AreaPerLengthUnit.SquareMillimeterPerMeter, AreaPerLengthUnits.SquareMillimeterPerMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs index c94befb97b..38d236bb26 100644 --- a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs @@ -122,121 +122,45 @@ public static BitRateInfo CreateDefault(FuncAn of representing the default unit mappings for BitRate. public static IEnumerable> GetDefaultMappings() { - yield return new (BitRateUnit.BitPerSecond, "BitPerSecond", "BitsPerSecond", new BaseUnits(time: DurationUnit.Second)); - yield return new (BitRateUnit.BytePerSecond, "BytePerSecond", "BytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8) - ); - yield return new (BitRateUnit.ExabitPerSecond, "ExabitPerSecond", "ExabitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000000) - ); - yield return new (BitRateUnit.ExabytePerSecond, "ExabytePerSecond", "ExabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000000) - ); - yield return new (BitRateUnit.ExaoctetPerSecond, "ExaoctetPerSecond", "ExaoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000000) - ); - yield return new (BitRateUnit.ExbibitPerSecond, "ExbibitPerSecond", "ExbibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1152921504606846976) - ); - yield return new (BitRateUnit.ExbibytePerSecond, "ExbibytePerSecond", "ExbibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, BigInteger.Pow(2, 63)) - ); - yield return new (BitRateUnit.ExbioctetPerSecond, "ExbioctetPerSecond", "ExbioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, BigInteger.Pow(2, 63)) - ); - yield return new (BitRateUnit.GibibitPerSecond, "GibibitPerSecond", "GibibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1073741824) - ); - yield return new (BitRateUnit.GibibytePerSecond, "GibibytePerSecond", "GibibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8589934592) - ); - yield return new (BitRateUnit.GibioctetPerSecond, "GibioctetPerSecond", "GibioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8589934592) - ); - yield return new (BitRateUnit.GigabitPerSecond, "GigabitPerSecond", "GigabitsPerSecond", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, 1000000000) - ); - yield return new (BitRateUnit.GigabytePerSecond, "GigabytePerSecond", "GigabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000) - ); - yield return new (BitRateUnit.GigaoctetPerSecond, "GigaoctetPerSecond", "GigaoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000) - ); - yield return new (BitRateUnit.KibibitPerSecond, "KibibitPerSecond", "KibibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1024) - ); - yield return new (BitRateUnit.KibibytePerSecond, "KibibytePerSecond", "KibibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8192) - ); - yield return new (BitRateUnit.KibioctetPerSecond, "KibioctetPerSecond", "KibioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8192) - ); - yield return new (BitRateUnit.KilobitPerSecond, "KilobitPerSecond", "KilobitsPerSecond", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 1000) - ); - yield return new (BitRateUnit.KilobytePerSecond, "KilobytePerSecond", "KilobytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000) - ); - yield return new (BitRateUnit.KilooctetPerSecond, "KilooctetPerSecond", "KilooctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000) - ); - yield return new (BitRateUnit.MebibitPerSecond, "MebibitPerSecond", "MebibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1048576) - ); - yield return new (BitRateUnit.MebibytePerSecond, "MebibytePerSecond", "MebibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8388608) - ); - yield return new (BitRateUnit.MebioctetPerSecond, "MebioctetPerSecond", "MebioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8388608) - ); - yield return new (BitRateUnit.MegabitPerSecond, "MegabitPerSecond", "MegabitsPerSecond", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000) - ); - yield return new (BitRateUnit.MegabytePerSecond, "MegabytePerSecond", "MegabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000) - ); - yield return new (BitRateUnit.MegaoctetPerSecond, "MegaoctetPerSecond", "MegaoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000) - ); - yield return new (BitRateUnit.OctetPerSecond, "OctetPerSecond", "OctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8) - ); - yield return new (BitRateUnit.PebibitPerSecond, "PebibitPerSecond", "PebibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1125899906842624) - ); - yield return new (BitRateUnit.PebibytePerSecond, "PebibytePerSecond", "PebibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 9007199254740992) - ); - yield return new (BitRateUnit.PebioctetPerSecond, "PebioctetPerSecond", "PebioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 9007199254740992) - ); - yield return new (BitRateUnit.PetabitPerSecond, "PetabitPerSecond", "PetabitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (BitRateUnit.PetabytePerSecond, "PetabytePerSecond", "PetabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000) - ); - yield return new (BitRateUnit.PetaoctetPerSecond, "PetaoctetPerSecond", "PetaoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000) - ); - yield return new (BitRateUnit.TebibitPerSecond, "TebibitPerSecond", "TebibitsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1099511627776) - ); - yield return new (BitRateUnit.TebibytePerSecond, "TebibytePerSecond", "TebibytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8796093022208) - ); - yield return new (BitRateUnit.TebioctetPerSecond, "TebioctetPerSecond", "TebioctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8796093022208) - ); - yield return new (BitRateUnit.TerabitPerSecond, "TerabitPerSecond", "TerabitsPerSecond", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, 1000000000000) - ); - yield return new (BitRateUnit.TerabytePerSecond, "TerabytePerSecond", "TerabytesPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000) - ); - yield return new (BitRateUnit.TeraoctetPerSecond, "TeraoctetPerSecond", "TeraoctetsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000) - ); + yield return new (BitRateUnit.BitPerSecond, BitRateUnits.BitPerSecond); + yield return new (BitRateUnit.BytePerSecond, BitRateUnits.BytePerSecond); + yield return new (BitRateUnit.ExabitPerSecond, BitRateUnits.ExabitPerSecond); + yield return new (BitRateUnit.ExabytePerSecond, BitRateUnits.ExabytePerSecond); + yield return new (BitRateUnit.ExaoctetPerSecond, BitRateUnits.ExaoctetPerSecond); + yield return new (BitRateUnit.ExbibitPerSecond, BitRateUnits.ExbibitPerSecond); + yield return new (BitRateUnit.ExbibytePerSecond, BitRateUnits.ExbibytePerSecond); + yield return new (BitRateUnit.ExbioctetPerSecond, BitRateUnits.ExbioctetPerSecond); + yield return new (BitRateUnit.GibibitPerSecond, BitRateUnits.GibibitPerSecond); + yield return new (BitRateUnit.GibibytePerSecond, BitRateUnits.GibibytePerSecond); + yield return new (BitRateUnit.GibioctetPerSecond, BitRateUnits.GibioctetPerSecond); + yield return new (BitRateUnit.GigabitPerSecond, BitRateUnits.GigabitPerSecond); + yield return new (BitRateUnit.GigabytePerSecond, BitRateUnits.GigabytePerSecond); + yield return new (BitRateUnit.GigaoctetPerSecond, BitRateUnits.GigaoctetPerSecond); + yield return new (BitRateUnit.KibibitPerSecond, BitRateUnits.KibibitPerSecond); + yield return new (BitRateUnit.KibibytePerSecond, BitRateUnits.KibibytePerSecond); + yield return new (BitRateUnit.KibioctetPerSecond, BitRateUnits.KibioctetPerSecond); + yield return new (BitRateUnit.KilobitPerSecond, BitRateUnits.KilobitPerSecond); + yield return new (BitRateUnit.KilobytePerSecond, BitRateUnits.KilobytePerSecond); + yield return new (BitRateUnit.KilooctetPerSecond, BitRateUnits.KilooctetPerSecond); + yield return new (BitRateUnit.MebibitPerSecond, BitRateUnits.MebibitPerSecond); + yield return new (BitRateUnit.MebibytePerSecond, BitRateUnits.MebibytePerSecond); + yield return new (BitRateUnit.MebioctetPerSecond, BitRateUnits.MebioctetPerSecond); + yield return new (BitRateUnit.MegabitPerSecond, BitRateUnits.MegabitPerSecond); + yield return new (BitRateUnit.MegabytePerSecond, BitRateUnits.MegabytePerSecond); + yield return new (BitRateUnit.MegaoctetPerSecond, BitRateUnits.MegaoctetPerSecond); + yield return new (BitRateUnit.OctetPerSecond, BitRateUnits.OctetPerSecond); + yield return new (BitRateUnit.PebibitPerSecond, BitRateUnits.PebibitPerSecond); + yield return new (BitRateUnit.PebibytePerSecond, BitRateUnits.PebibytePerSecond); + yield return new (BitRateUnit.PebioctetPerSecond, BitRateUnits.PebioctetPerSecond); + yield return new (BitRateUnit.PetabitPerSecond, BitRateUnits.PetabitPerSecond); + yield return new (BitRateUnit.PetabytePerSecond, BitRateUnits.PetabytePerSecond); + yield return new (BitRateUnit.PetaoctetPerSecond, BitRateUnits.PetaoctetPerSecond); + yield return new (BitRateUnit.TebibitPerSecond, BitRateUnits.TebibitPerSecond); + yield return new (BitRateUnit.TebibytePerSecond, BitRateUnits.TebibytePerSecond); + yield return new (BitRateUnit.TebioctetPerSecond, BitRateUnits.TebioctetPerSecond); + yield return new (BitRateUnit.TerabitPerSecond, BitRateUnits.TerabitPerSecond); + yield return new (BitRateUnit.TerabytePerSecond, BitRateUnits.TerabytePerSecond); + yield return new (BitRateUnit.TeraoctetPerSecond, BitRateUnits.TeraoctetPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs index c50c4dc245..599e99904a 100644 --- a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs @@ -118,13 +118,9 @@ public static BrakeSpecificFuelConsumptionInfo CreateDefault(FuncAn of representing the default unit mappings for BrakeSpecificFuelConsumption. public static IEnumerable> GetDefaultMappings() { - yield return new (BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour, "GramPerKiloWattHour", "GramsPerKiloWattHour", BaseUnits.Undefined, - 3600000000 - ); - yield return new (BrakeSpecificFuelConsumptionUnit.KilogramPerJoule, "KilogramPerJoule", "KilogramsPerJoule", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour, "PoundPerMechanicalHorsepowerHour", "PoundsPerMechanicalHorsepowerHour", BaseUnits.Undefined, - new QuantityValue(191751395532579, 32399455) - ); + yield return new (BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour, BrakeSpecificFuelConsumptionUnits.GramPerKiloWattHour); + yield return new (BrakeSpecificFuelConsumptionUnit.KilogramPerJoule, BrakeSpecificFuelConsumptionUnits.KilogramPerJoule); + yield return new (BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour, BrakeSpecificFuelConsumptionUnits.PoundPerMechanicalHorsepowerHour); } } diff --git a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs index f9f8add9d4..6bd1978e5a 100644 --- a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs @@ -117,22 +117,12 @@ public static CoefficientOfThermalExpansionInfo CreateDefault(FuncAn of representing the default unit mappings for CoefficientOfThermalExpansion. public static IEnumerable> GetDefaultMappings() { - yield return new (CoefficientOfThermalExpansionUnit.PerDegreeCelsius, "PerDegreeCelsius", "PerDegreeCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (CoefficientOfThermalExpansionUnit.PerDegreeFahrenheit, "PerDegreeFahrenheit", "PerDegreeFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), - new QuantityValue(5, 9) - ); - yield return new (CoefficientOfThermalExpansionUnit.PerKelvin, "PerKelvin", "PerKelvin", new BaseUnits(temperature: TemperatureUnit.Kelvin)); - yield return new (CoefficientOfThermalExpansionUnit.PpmPerDegreeCelsius, "PpmPerDegreeCelsius", "PpmPerDegreeCelsius", BaseUnits.Undefined, - 1000000 - ); - yield return new (CoefficientOfThermalExpansionUnit.PpmPerDegreeFahrenheit, "PpmPerDegreeFahrenheit", "PpmPerDegreeFahrenheit", BaseUnits.Undefined, - new QuantityValue(5000000, 9) - ); - yield return new (CoefficientOfThermalExpansionUnit.PpmPerKelvin, "PpmPerKelvin", "PpmPerKelvin", BaseUnits.Undefined, - 1000000 - ); + yield return new (CoefficientOfThermalExpansionUnit.PerDegreeCelsius, CoefficientOfThermalExpansionUnits.PerDegreeCelsius); + yield return new (CoefficientOfThermalExpansionUnit.PerDegreeFahrenheit, CoefficientOfThermalExpansionUnits.PerDegreeFahrenheit); + yield return new (CoefficientOfThermalExpansionUnit.PerKelvin, CoefficientOfThermalExpansionUnits.PerKelvin); + yield return new (CoefficientOfThermalExpansionUnit.PpmPerDegreeCelsius, CoefficientOfThermalExpansionUnits.PpmPerDegreeCelsius); + yield return new (CoefficientOfThermalExpansionUnit.PpmPerDegreeFahrenheit, CoefficientOfThermalExpansionUnits.PpmPerDegreeFahrenheit); + yield return new (CoefficientOfThermalExpansionUnit.PpmPerKelvin, CoefficientOfThermalExpansionUnits.PpmPerKelvin); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs b/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs index 2a24174364..b2e4ec7c42 100644 --- a/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs @@ -117,25 +117,13 @@ public static CompressibilityInfo CreateDefault(FuncAn of representing the default unit mappings for Compressibility. public static IEnumerable> GetDefaultMappings() { - yield return new (CompressibilityUnit.InverseAtmosphere, "InverseAtmosphere", "InverseAtmospheres", BaseUnits.Undefined, - 101325 - ); - yield return new (CompressibilityUnit.InverseBar, "InverseBar", "InverseBars", BaseUnits.Undefined, - 100000 - ); - yield return new (CompressibilityUnit.InverseKilopascal, "InverseKilopascal", "InverseKilopascals", BaseUnits.Undefined, - 1000 - ); - yield return new (CompressibilityUnit.InverseMegapascal, "InverseMegapascal", "InverseMegapascals", BaseUnits.Undefined, - 1000000 - ); - yield return new (CompressibilityUnit.InverseMillibar, "InverseMillibar", "InverseMillibars", BaseUnits.Undefined, - 100 - ); - yield return new (CompressibilityUnit.InversePascal, "InversePascal", "InversePascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (CompressibilityUnit.InversePoundForcePerSquareInch, "InversePoundForcePerSquareInch", "InversePoundsForcePerSquareInch", BaseUnits.Undefined, - new QuantityValue(6894757293168361, 1000000000000) - ); + yield return new (CompressibilityUnit.InverseAtmosphere, CompressibilityUnits.InverseAtmosphere); + yield return new (CompressibilityUnit.InverseBar, CompressibilityUnits.InverseBar); + yield return new (CompressibilityUnit.InverseKilopascal, CompressibilityUnits.InverseKilopascal); + yield return new (CompressibilityUnit.InverseMegapascal, CompressibilityUnits.InverseMegapascal); + yield return new (CompressibilityUnit.InverseMillibar, CompressibilityUnits.InverseMillibar); + yield return new (CompressibilityUnit.InversePascal, CompressibilityUnits.InversePascal); + yield return new (CompressibilityUnit.InversePoundForcePerSquareInch, CompressibilityUnits.InversePoundForcePerSquareInch); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Density.g.cs b/UnitsNet/GeneratedCode/Quantities/Density.g.cs index c934fdc2d3..24641c3b88 100644 --- a/UnitsNet/GeneratedCode/Quantities/Density.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Density.g.cs @@ -127,172 +127,62 @@ public static DensityInfo CreateDefault(FuncAn of representing the default unit mappings for Density. public static IEnumerable> GetDefaultMappings() { - yield return new (DensityUnit.CentigramPerDeciliter, "CentigramPerDeciliter", "CentigramsPerDeciliter", BaseUnits.Undefined, - 10 - ); - yield return new (DensityUnit.CentigramPerLiter, "CentigramPerLiter", "CentigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Centigram), - 100 - ); - yield return new (DensityUnit.CentigramPerMilliliter, "CentigramPerMilliliter", "CentigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Centigram), - new QuantityValue(1, 10) - ); - yield return new (DensityUnit.DecigramPerDeciliter, "DecigramPerDeciliter", "DecigramsPerDeciliter", BaseUnits.Undefined, - 1 - ); - yield return new (DensityUnit.DecigramPerLiter, "DecigramPerLiter", "DecigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Decigram), - 10 - ); - yield return new (DensityUnit.DecigramPerMilliliter, "DecigramPerMilliliter", "DecigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Decigram), - new QuantityValue(1, 100) - ); - yield return new (DensityUnit.FemtogramPerDeciliter, "FemtogramPerDeciliter", "FemtogramsPerDeciliter", BaseUnits.Undefined, - 100000000000000 - ); - yield return new (DensityUnit.FemtogramPerLiter, "FemtogramPerLiter", "FemtogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Femtogram), - 1000000000000000 - ); - yield return new (DensityUnit.FemtogramPerMilliliter, "FemtogramPerMilliliter", "FemtogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Femtogram), - 1000000000000 - ); - yield return new (DensityUnit.GramPerCubicCentimeter, "GramPerCubicCentimeter", "GramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000) - ); - yield return new (DensityUnit.GramPerCubicFoot, "GramPerCubicFoot", "GramsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Gram), - new QuantityValue(55306341, 1953125) - ); - yield return new (DensityUnit.GramPerCubicInch, "GramPerCubicInch", "GramsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Gram), - new QuantityValue(2048383, 125000000) - ); - yield return new (DensityUnit.GramPerCubicMeter, "GramPerCubicMeter", "GramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (DensityUnit.GramPerCubicMillimeter, "GramPerCubicMillimeter", "GramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000000) - ); - yield return new (DensityUnit.GramPerDeciliter, "GramPerDeciliter", "GramsPerDeciliter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (DensityUnit.GramPerLiter, "GramPerLiter", "GramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), - 1 - ); - yield return new (DensityUnit.GramPerMilliliter, "GramPerMilliliter", "GramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000) - ); - yield return new (DensityUnit.KilogramPerCubicCentimeter, "KilogramPerCubicCentimeter", "KilogramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000000) - ); - yield return new (DensityUnit.KilogramPerCubicMeter, "KilogramPerCubicMeter", "KilogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (DensityUnit.KilogramPerCubicMillimeter, "KilogramPerCubicMillimeter", "KilogramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000000000) - ); - yield return new (DensityUnit.KilogramPerLiter, "KilogramPerLiter", "KilogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000) - ); - yield return new (DensityUnit.KilopoundPerCubicFoot, "KilopoundPerCubicFoot", "KilopoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilopound), - new QuantityValue(221225364, 3543690390625) - ); - yield return new (DensityUnit.KilopoundPerCubicInch, "KilopoundPerCubicInch", "KilopoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound), - new QuantityValue(2048383, 56699046250000) - ); - yield return new (DensityUnit.KilopoundPerCubicYard, "KilopoundPerCubicYard", "KilopoundsPerCubicYard", new BaseUnits(length: LengthUnit.Yard, mass: MassUnit.Kilopound), - new QuantityValue(5973084828, 3543690390625) - ); - yield return new (DensityUnit.MicrogramPerCubicMeter, "MicrogramPerCubicMeter", "MicrogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), - 1000000000 - ); - yield return new (DensityUnit.MicrogramPerDeciliter, "MicrogramPerDeciliter", "MicrogramsPerDeciliter", BaseUnits.Undefined, - 100000 - ); - yield return new (DensityUnit.MicrogramPerLiter, "MicrogramPerLiter", "MicrogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Microgram), - 1000000 - ); - yield return new (DensityUnit.MicrogramPerMilliliter, "MicrogramPerMilliliter", "MicrogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), - 1000 - ); - yield return new (DensityUnit.MilligramPerCubicMeter, "MilligramPerCubicMeter", "MilligramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (DensityUnit.MilligramPerDeciliter, "MilligramPerDeciliter", "MilligramsPerDeciliter", BaseUnits.Undefined, - 100 - ); - yield return new (DensityUnit.MilligramPerLiter, "MilligramPerLiter", "MilligramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), - 1000 - ); - yield return new (DensityUnit.MilligramPerMilliliter, "MilligramPerMilliliter", "MilligramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), - 1 - ); - yield return new (DensityUnit.NanogramPerDeciliter, "NanogramPerDeciliter", "NanogramsPerDeciliter", BaseUnits.Undefined, - 100000000 - ); - yield return new (DensityUnit.NanogramPerLiter, "NanogramPerLiter", "NanogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Nanogram), - 1000000000 - ); - yield return new (DensityUnit.NanogramPerMilliliter, "NanogramPerMilliliter", "NanogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Nanogram), - 1000000 - ); - yield return new (DensityUnit.PicogramPerDeciliter, "PicogramPerDeciliter", "PicogramsPerDeciliter", BaseUnits.Undefined, - 100000000000 - ); - yield return new (DensityUnit.PicogramPerLiter, "PicogramPerLiter", "PicogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Picogram), - 1000000000000 - ); - yield return new (DensityUnit.PicogramPerMilliliter, "PicogramPerMilliliter", "PicogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Picogram), - 1000000000 - ); - yield return new (DensityUnit.PoundPerCubicCentimeter, "PoundPerCubicCentimeter", "PoundsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Pound), - new QuantityValue(100, 45359237) - ); - yield return new (DensityUnit.PoundPerCubicFoot, "PoundPerCubicFoot", "PoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(1769802912, 28349523125) - ); - yield return new (DensityUnit.PoundPerCubicInch, "PoundPerCubicInch", "PoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), - new QuantityValue(2048383, 56699046250) - ); - yield return new (DensityUnit.PoundPerCubicMeter, "PoundPerCubicMeter", "PoundsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Pound), - new QuantityValue(100000000, 45359237) - ); - yield return new (DensityUnit.PoundPerCubicMillimeter, "PoundPerCubicMillimeter", "PoundsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Pound), - new QuantityValue(1, 453592370) - ); - yield return new (DensityUnit.PoundPerCubicYard, "PoundPerCubicYard", "PoundsPerCubicYard", new BaseUnits(length: LengthUnit.Yard, mass: MassUnit.Pound), - new QuantityValue(47784678624, 28349523125) - ); - yield return new (DensityUnit.PoundPerImperialGallon, "PoundPerImperialGallon", "PoundsPerImperialGallon", BaseUnits.Undefined, - new QuantityValue(454609, 45359237) - ); - yield return new (DensityUnit.PoundPerUSGallon, "PoundPerUSGallon", "PoundsPerUSGallon", BaseUnits.Undefined, - new QuantityValue(6145149, 736351250) - ); - yield return new (DensityUnit.SlugPerCubicCentimeter, "SlugPerCubicCentimeter", "SlugsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Slug), - new QuantityValue(609600, 8896443230521) - ); - yield return new (DensityUnit.SlugPerCubicFoot, "SlugPerCubicFoot", "SlugsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), - new QuantityValue(10788718551552, 5560277019075625) - ); - yield return new (DensityUnit.SlugPerCubicInch, "SlugPerCubicInch", "SlugsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Slug), - new QuantityValue(6243471384, 5560277019075625) - ); - yield return new (DensityUnit.SlugPerCubicMeter, "SlugPerCubicMeter", "SlugsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Slug), - new QuantityValue(609600000000, 8896443230521) - ); - yield return new (DensityUnit.SlugPerCubicMillimeter, "SlugPerCubicMillimeter", "SlugsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Slug), - new QuantityValue(3048, 44482216152605) - ); - yield return new (DensityUnit.TonnePerCubicCentimeter, "TonnePerCubicCentimeter", "TonnesPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000000000) - ); - yield return new (DensityUnit.TonnePerCubicFoot, "TonnePerCubicFoot", "TonnesPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Tonne), - new QuantityValue(55306341, 1953125000000) - ); - yield return new (DensityUnit.TonnePerCubicInch, "TonnePerCubicInch", "TonnesPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Tonne), - new QuantityValue(2048383, 125000000000000) - ); - yield return new (DensityUnit.TonnePerCubicMeter, "TonnePerCubicMeter", "TonnesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000) - ); - yield return new (DensityUnit.TonnePerCubicMillimeter, "TonnePerCubicMillimeter", "TonnesPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000000000000) - ); + yield return new (DensityUnit.CentigramPerDeciliter, DensityUnits.CentigramPerDeciliter); + yield return new (DensityUnit.CentigramPerLiter, DensityUnits.CentigramPerLiter); + yield return new (DensityUnit.CentigramPerMilliliter, DensityUnits.CentigramPerMilliliter); + yield return new (DensityUnit.DecigramPerDeciliter, DensityUnits.DecigramPerDeciliter); + yield return new (DensityUnit.DecigramPerLiter, DensityUnits.DecigramPerLiter); + yield return new (DensityUnit.DecigramPerMilliliter, DensityUnits.DecigramPerMilliliter); + yield return new (DensityUnit.FemtogramPerDeciliter, DensityUnits.FemtogramPerDeciliter); + yield return new (DensityUnit.FemtogramPerLiter, DensityUnits.FemtogramPerLiter); + yield return new (DensityUnit.FemtogramPerMilliliter, DensityUnits.FemtogramPerMilliliter); + yield return new (DensityUnit.GramPerCubicCentimeter, DensityUnits.GramPerCubicCentimeter); + yield return new (DensityUnit.GramPerCubicFoot, DensityUnits.GramPerCubicFoot); + yield return new (DensityUnit.GramPerCubicInch, DensityUnits.GramPerCubicInch); + yield return new (DensityUnit.GramPerCubicMeter, DensityUnits.GramPerCubicMeter); + yield return new (DensityUnit.GramPerCubicMillimeter, DensityUnits.GramPerCubicMillimeter); + yield return new (DensityUnit.GramPerDeciliter, DensityUnits.GramPerDeciliter); + yield return new (DensityUnit.GramPerLiter, DensityUnits.GramPerLiter); + yield return new (DensityUnit.GramPerMilliliter, DensityUnits.GramPerMilliliter); + yield return new (DensityUnit.KilogramPerCubicCentimeter, DensityUnits.KilogramPerCubicCentimeter); + yield return new (DensityUnit.KilogramPerCubicMeter, DensityUnits.KilogramPerCubicMeter); + yield return new (DensityUnit.KilogramPerCubicMillimeter, DensityUnits.KilogramPerCubicMillimeter); + yield return new (DensityUnit.KilogramPerLiter, DensityUnits.KilogramPerLiter); + yield return new (DensityUnit.KilopoundPerCubicFoot, DensityUnits.KilopoundPerCubicFoot); + yield return new (DensityUnit.KilopoundPerCubicInch, DensityUnits.KilopoundPerCubicInch); + yield return new (DensityUnit.KilopoundPerCubicYard, DensityUnits.KilopoundPerCubicYard); + yield return new (DensityUnit.MicrogramPerCubicMeter, DensityUnits.MicrogramPerCubicMeter); + yield return new (DensityUnit.MicrogramPerDeciliter, DensityUnits.MicrogramPerDeciliter); + yield return new (DensityUnit.MicrogramPerLiter, DensityUnits.MicrogramPerLiter); + yield return new (DensityUnit.MicrogramPerMilliliter, DensityUnits.MicrogramPerMilliliter); + yield return new (DensityUnit.MilligramPerCubicMeter, DensityUnits.MilligramPerCubicMeter); + yield return new (DensityUnit.MilligramPerDeciliter, DensityUnits.MilligramPerDeciliter); + yield return new (DensityUnit.MilligramPerLiter, DensityUnits.MilligramPerLiter); + yield return new (DensityUnit.MilligramPerMilliliter, DensityUnits.MilligramPerMilliliter); + yield return new (DensityUnit.NanogramPerDeciliter, DensityUnits.NanogramPerDeciliter); + yield return new (DensityUnit.NanogramPerLiter, DensityUnits.NanogramPerLiter); + yield return new (DensityUnit.NanogramPerMilliliter, DensityUnits.NanogramPerMilliliter); + yield return new (DensityUnit.PicogramPerDeciliter, DensityUnits.PicogramPerDeciliter); + yield return new (DensityUnit.PicogramPerLiter, DensityUnits.PicogramPerLiter); + yield return new (DensityUnit.PicogramPerMilliliter, DensityUnits.PicogramPerMilliliter); + yield return new (DensityUnit.PoundPerCubicCentimeter, DensityUnits.PoundPerCubicCentimeter); + yield return new (DensityUnit.PoundPerCubicFoot, DensityUnits.PoundPerCubicFoot); + yield return new (DensityUnit.PoundPerCubicInch, DensityUnits.PoundPerCubicInch); + yield return new (DensityUnit.PoundPerCubicMeter, DensityUnits.PoundPerCubicMeter); + yield return new (DensityUnit.PoundPerCubicMillimeter, DensityUnits.PoundPerCubicMillimeter); + yield return new (DensityUnit.PoundPerCubicYard, DensityUnits.PoundPerCubicYard); + yield return new (DensityUnit.PoundPerImperialGallon, DensityUnits.PoundPerImperialGallon); + yield return new (DensityUnit.PoundPerUSGallon, DensityUnits.PoundPerUSGallon); + yield return new (DensityUnit.SlugPerCubicCentimeter, DensityUnits.SlugPerCubicCentimeter); + yield return new (DensityUnit.SlugPerCubicFoot, DensityUnits.SlugPerCubicFoot); + yield return new (DensityUnit.SlugPerCubicInch, DensityUnits.SlugPerCubicInch); + yield return new (DensityUnit.SlugPerCubicMeter, DensityUnits.SlugPerCubicMeter); + yield return new (DensityUnit.SlugPerCubicMillimeter, DensityUnits.SlugPerCubicMillimeter); + yield return new (DensityUnit.TonnePerCubicCentimeter, DensityUnits.TonnePerCubicCentimeter); + yield return new (DensityUnit.TonnePerCubicFoot, DensityUnits.TonnePerCubicFoot); + yield return new (DensityUnit.TonnePerCubicInch, DensityUnits.TonnePerCubicInch); + yield return new (DensityUnit.TonnePerCubicMeter, DensityUnits.TonnePerCubicMeter); + yield return new (DensityUnit.TonnePerCubicMillimeter, DensityUnits.TonnePerCubicMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs b/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs index 21ced4f1b9..9a9471e27d 100644 --- a/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs @@ -121,79 +121,31 @@ public static DoseAreaProductInfo CreateDefault(FuncAn of representing the default unit mappings for DoseAreaProduct. public static IEnumerable> GetDefaultMappings() { - yield return new (DoseAreaProductUnit.CentigraySquareCentimeter, "CentigraySquareCentimeter", "CentigraySquareCentimeters", BaseUnits.Undefined, - 1000000 - ); - yield return new (DoseAreaProductUnit.CentigraySquareDecimeter, "CentigraySquareDecimeter", "CentigraySquareDecimeters", BaseUnits.Undefined, - 10000 - ); - yield return new (DoseAreaProductUnit.CentigraySquareMeter, "CentigraySquareMeter", "CentigraySquareMeters", BaseUnits.Undefined, - 100 - ); - yield return new (DoseAreaProductUnit.CentigraySquareMicrometer, "CentigraySquareMicrometer", "CentigraySquareMicrometers", BaseUnits.Undefined, - 100000000000000 - ); - yield return new (DoseAreaProductUnit.CentigraySquareMillimeter, "CentigraySquareMillimeter", "CentigraySquareMillimeters", BaseUnits.Undefined, - 100000000 - ); - yield return new (DoseAreaProductUnit.DecigraySquareCentimeter, "DecigraySquareCentimeter", "DecigraySquareCentimeters", BaseUnits.Undefined, - 100000 - ); - yield return new (DoseAreaProductUnit.DecigraySquareDecimeter, "DecigraySquareDecimeter", "DecigraySquareDecimeters", BaseUnits.Undefined, - 1000 - ); - yield return new (DoseAreaProductUnit.DecigraySquareMeter, "DecigraySquareMeter", "DecigraySquareMeters", BaseUnits.Undefined, - 10 - ); - yield return new (DoseAreaProductUnit.DecigraySquareMicrometer, "DecigraySquareMicrometer", "DecigraySquareMicrometers", BaseUnits.Undefined, - 10000000000000 - ); - yield return new (DoseAreaProductUnit.DecigraySquareMillimeter, "DecigraySquareMillimeter", "DecigraySquareMillimeters", BaseUnits.Undefined, - 10000000 - ); - yield return new (DoseAreaProductUnit.GraySquareCentimeter, "GraySquareCentimeter", "GraySquareCentimeters", BaseUnits.Undefined, - 10000 - ); - yield return new (DoseAreaProductUnit.GraySquareDecimeter, "GraySquareDecimeter", "GraySquareDecimeters", BaseUnits.Undefined, - 100 - ); - yield return new (DoseAreaProductUnit.GraySquareMeter, "GraySquareMeter", "GraySquareMeters", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (DoseAreaProductUnit.GraySquareMicrometer, "GraySquareMicrometer", "GraySquareMicrometers", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (DoseAreaProductUnit.GraySquareMillimeter, "GraySquareMillimeter", "GraySquareMillimeters", BaseUnits.Undefined, - 1000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareCentimeter, "MicrograySquareCentimeter", "MicrograySquareCentimeters", BaseUnits.Undefined, - 10000000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareDecimeter, "MicrograySquareDecimeter", "MicrograySquareDecimeters", BaseUnits.Undefined, - 100000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareMeter, "MicrograySquareMeter", "MicrograySquareMeters", BaseUnits.Undefined, - 1000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareMicrometer, "MicrograySquareMicrometer", "MicrograySquareMicrometers", BaseUnits.Undefined, - 1000000000000000000 - ); - yield return new (DoseAreaProductUnit.MicrograySquareMillimeter, "MicrograySquareMillimeter", "MicrograySquareMillimeters", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareCentimeter, "MilligraySquareCentimeter", "MilligraySquareCentimeters", BaseUnits.Undefined, - 10000000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareDecimeter, "MilligraySquareDecimeter", "MilligraySquareDecimeters", BaseUnits.Undefined, - 100000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareMeter, "MilligraySquareMeter", "MilligraySquareMeters", BaseUnits.Undefined, - 1000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareMicrometer, "MilligraySquareMicrometer", "MilligraySquareMicrometers", BaseUnits.Undefined, - 1000000000000000 - ); - yield return new (DoseAreaProductUnit.MilligraySquareMillimeter, "MilligraySquareMillimeter", "MilligraySquareMillimeters", BaseUnits.Undefined, - 1000000000 - ); + yield return new (DoseAreaProductUnit.CentigraySquareCentimeter, DoseAreaProductUnits.CentigraySquareCentimeter); + yield return new (DoseAreaProductUnit.CentigraySquareDecimeter, DoseAreaProductUnits.CentigraySquareDecimeter); + yield return new (DoseAreaProductUnit.CentigraySquareMeter, DoseAreaProductUnits.CentigraySquareMeter); + yield return new (DoseAreaProductUnit.CentigraySquareMicrometer, DoseAreaProductUnits.CentigraySquareMicrometer); + yield return new (DoseAreaProductUnit.CentigraySquareMillimeter, DoseAreaProductUnits.CentigraySquareMillimeter); + yield return new (DoseAreaProductUnit.DecigraySquareCentimeter, DoseAreaProductUnits.DecigraySquareCentimeter); + yield return new (DoseAreaProductUnit.DecigraySquareDecimeter, DoseAreaProductUnits.DecigraySquareDecimeter); + yield return new (DoseAreaProductUnit.DecigraySquareMeter, DoseAreaProductUnits.DecigraySquareMeter); + yield return new (DoseAreaProductUnit.DecigraySquareMicrometer, DoseAreaProductUnits.DecigraySquareMicrometer); + yield return new (DoseAreaProductUnit.DecigraySquareMillimeter, DoseAreaProductUnits.DecigraySquareMillimeter); + yield return new (DoseAreaProductUnit.GraySquareCentimeter, DoseAreaProductUnits.GraySquareCentimeter); + yield return new (DoseAreaProductUnit.GraySquareDecimeter, DoseAreaProductUnits.GraySquareDecimeter); + yield return new (DoseAreaProductUnit.GraySquareMeter, DoseAreaProductUnits.GraySquareMeter); + yield return new (DoseAreaProductUnit.GraySquareMicrometer, DoseAreaProductUnits.GraySquareMicrometer); + yield return new (DoseAreaProductUnit.GraySquareMillimeter, DoseAreaProductUnits.GraySquareMillimeter); + yield return new (DoseAreaProductUnit.MicrograySquareCentimeter, DoseAreaProductUnits.MicrograySquareCentimeter); + yield return new (DoseAreaProductUnit.MicrograySquareDecimeter, DoseAreaProductUnits.MicrograySquareDecimeter); + yield return new (DoseAreaProductUnit.MicrograySquareMeter, DoseAreaProductUnits.MicrograySquareMeter); + yield return new (DoseAreaProductUnit.MicrograySquareMicrometer, DoseAreaProductUnits.MicrograySquareMicrometer); + yield return new (DoseAreaProductUnit.MicrograySquareMillimeter, DoseAreaProductUnits.MicrograySquareMillimeter); + yield return new (DoseAreaProductUnit.MilligraySquareCentimeter, DoseAreaProductUnits.MilligraySquareCentimeter); + yield return new (DoseAreaProductUnit.MilligraySquareDecimeter, DoseAreaProductUnits.MilligraySquareDecimeter); + yield return new (DoseAreaProductUnit.MilligraySquareMeter, DoseAreaProductUnits.MilligraySquareMeter); + yield return new (DoseAreaProductUnit.MilligraySquareMicrometer, DoseAreaProductUnits.MilligraySquareMicrometer); + yield return new (DoseAreaProductUnit.MilligraySquareMillimeter, DoseAreaProductUnits.MilligraySquareMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs index 5a1dee5c57..c6adb2522b 100644 --- a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs @@ -139,43 +139,19 @@ public static DurationInfo CreateDefault(FuncAn of representing the default unit mappings for Duration. public static IEnumerable> GetDefaultMappings() { - yield return new (DurationUnit.Day, "Day", "Days", new BaseUnits(time: DurationUnit.Day), - new QuantityValue(1, 86400) - ); - yield return new (DurationUnit.Hour, "Hour", "Hours", new BaseUnits(time: DurationUnit.Hour), - new QuantityValue(1, 3600) - ); - yield return new (DurationUnit.JulianYear, "JulianYear", "JulianYears", new BaseUnits(time: DurationUnit.JulianYear), - new QuantityValue(1, 31557600) - ); - yield return new (DurationUnit.Microsecond, "Microsecond", "Microseconds", new BaseUnits(time: DurationUnit.Microsecond), - 1000000 - ); - yield return new (DurationUnit.Millisecond, "Millisecond", "Milliseconds", new BaseUnits(time: DurationUnit.Millisecond), - 1000 - ); - yield return new (DurationUnit.Minute, "Minute", "Minutes", new BaseUnits(time: DurationUnit.Minute), - new QuantityValue(1, 60) - ); - yield return new (DurationUnit.Month30, "Month30", "Months30", new BaseUnits(time: DurationUnit.Month30), - new QuantityValue(1, 2592000) - ); - yield return new (DurationUnit.Nanosecond, "Nanosecond", "Nanoseconds", new BaseUnits(time: DurationUnit.Nanosecond), - 1000000000 - ); - yield return new (DurationUnit.Picosecond, "Picosecond", "Picoseconds", new BaseUnits(time: DurationUnit.Picosecond), - 1000000000000 - ); - yield return new (DurationUnit.Second, "Second", "Seconds", new BaseUnits(time: DurationUnit.Second)); - yield return new (DurationUnit.Sol, "Sol", "Sols", new BaseUnits(time: DurationUnit.Sol), - new QuantityValue(250, 22193811) - ); - yield return new (DurationUnit.Week, "Week", "Weeks", new BaseUnits(time: DurationUnit.Week), - new QuantityValue(1, 604800) - ); - yield return new (DurationUnit.Year365, "Year365", "Years365", new BaseUnits(time: DurationUnit.Year365), - new QuantityValue(1, 31536000) - ); + yield return new (DurationUnit.Day, DurationUnits.Day); + yield return new (DurationUnit.Hour, DurationUnits.Hour); + yield return new (DurationUnit.JulianYear, DurationUnits.JulianYear); + yield return new (DurationUnit.Microsecond, DurationUnits.Microsecond); + yield return new (DurationUnit.Millisecond, DurationUnits.Millisecond); + yield return new (DurationUnit.Minute, DurationUnits.Minute); + yield return new (DurationUnit.Month30, DurationUnits.Month30); + yield return new (DurationUnit.Nanosecond, DurationUnits.Nanosecond); + yield return new (DurationUnit.Picosecond, DurationUnits.Picosecond); + yield return new (DurationUnit.Second, DurationUnits.Second); + yield return new (DurationUnit.Sol, DurationUnits.Sol); + yield return new (DurationUnit.Week, DurationUnits.Week); + yield return new (DurationUnit.Year365, DurationUnits.Year365); } } diff --git a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs index dde593ef6f..a2fa904fbc 100644 --- a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs @@ -121,34 +121,16 @@ public static DynamicViscosityInfo CreateDefault(FuncAn of representing the default unit mappings for DynamicViscosity. public static IEnumerable> GetDefaultMappings() { - yield return new (DynamicViscosityUnit.Centipoise, "Centipoise", "Centipoise", BaseUnits.Undefined, - 1000 - ); - yield return new (DynamicViscosityUnit.MicropascalSecond, "MicropascalSecond", "MicropascalSeconds", BaseUnits.Undefined, - 1000000 - ); - yield return new (DynamicViscosityUnit.MillipascalSecond, "MillipascalSecond", "MillipascalSeconds", BaseUnits.Undefined, - 1000 - ); - yield return new (DynamicViscosityUnit.NewtonSecondPerMeterSquared, "NewtonSecondPerMeterSquared", "NewtonSecondsPerMeterSquared", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (DynamicViscosityUnit.PascalSecond, "PascalSecond", "PascalSeconds", BaseUnits.Undefined, - 1 - ); - yield return new (DynamicViscosityUnit.Poise, "Poise", "Poise", BaseUnits.Undefined, - 10 - ); - yield return new (DynamicViscosityUnit.PoundForceSecondPerSquareFoot, "PoundForceSecondPerSquareFoot", "PoundsForceSecondPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(185806080000, 8896443230521) - ); - yield return new (DynamicViscosityUnit.PoundForceSecondPerSquareInch, "PoundForceSecondPerSquareInch", "PoundsForceSecondPerSquareInch", BaseUnits.Undefined, - new QuantityValue(1290320000, 8896443230521) - ); - yield return new (DynamicViscosityUnit.PoundPerFootSecond, "PoundPerFootSecond", "PoundsPerFootSecond", BaseUnits.Undefined, - new QuantityValue(30480000, 45359237) - ); - yield return new (DynamicViscosityUnit.Reyn, "Reyn", "Reyns", BaseUnits.Undefined, - new QuantityValue(1290320000, 8896443230521) - ); + yield return new (DynamicViscosityUnit.Centipoise, DynamicViscosityUnits.Centipoise); + yield return new (DynamicViscosityUnit.MicropascalSecond, DynamicViscosityUnits.MicropascalSecond); + yield return new (DynamicViscosityUnit.MillipascalSecond, DynamicViscosityUnits.MillipascalSecond); + yield return new (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnits.NewtonSecondPerMeterSquared); + yield return new (DynamicViscosityUnit.PascalSecond, DynamicViscosityUnits.PascalSecond); + yield return new (DynamicViscosityUnit.Poise, DynamicViscosityUnits.Poise); + yield return new (DynamicViscosityUnit.PoundForceSecondPerSquareFoot, DynamicViscosityUnits.PoundForceSecondPerSquareFoot); + yield return new (DynamicViscosityUnit.PoundForceSecondPerSquareInch, DynamicViscosityUnits.PoundForceSecondPerSquareInch); + yield return new (DynamicViscosityUnit.PoundPerFootSecond, DynamicViscosityUnits.PoundPerFootSecond); + yield return new (DynamicViscosityUnit.Reyn, DynamicViscosityUnits.Reyn); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs index 778fcfcbb9..1916dead87 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs @@ -120,52 +120,22 @@ public static ElectricAdmittanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricAdmittance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricAdmittanceUnit.Gigamho, "Gigamho", "Gigamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricAdmittanceUnit.Gigasiemens, "Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricAdmittanceUnit.Kilomho, "Kilomho", "Kilomhos", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricAdmittanceUnit.Kilosiemens, "Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricAdmittanceUnit.Megamho, "Megamho", "Megamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricAdmittanceUnit.Megasiemens, "Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricAdmittanceUnit.Mho, "Mho", "Mhos", BaseUnits.Undefined, - 1 - ); - yield return new (ElectricAdmittanceUnit.Micromho, "Micromho", "Micromhos", BaseUnits.Undefined, - 1000000 - ); - yield return new (ElectricAdmittanceUnit.Microsiemens, "Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000000 - ); - yield return new (ElectricAdmittanceUnit.Millimho, "Millimho", "Millimhos", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricAdmittanceUnit.Millisiemens, "Millisiemens", "Millisiemens", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricAdmittanceUnit.Nanomho, "Nanomho", "Nanomhos", BaseUnits.Undefined, - 1000000000 - ); - yield return new (ElectricAdmittanceUnit.Nanosiemens, "Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricAdmittanceUnit.Siemens, "Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricAdmittanceUnit.Teramho, "Teramho", "Teramhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (ElectricAdmittanceUnit.Terasiemens, "Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + yield return new (ElectricAdmittanceUnit.Gigamho, ElectricAdmittanceUnits.Gigamho); + yield return new (ElectricAdmittanceUnit.Gigasiemens, ElectricAdmittanceUnits.Gigasiemens); + yield return new (ElectricAdmittanceUnit.Kilomho, ElectricAdmittanceUnits.Kilomho); + yield return new (ElectricAdmittanceUnit.Kilosiemens, ElectricAdmittanceUnits.Kilosiemens); + yield return new (ElectricAdmittanceUnit.Megamho, ElectricAdmittanceUnits.Megamho); + yield return new (ElectricAdmittanceUnit.Megasiemens, ElectricAdmittanceUnits.Megasiemens); + yield return new (ElectricAdmittanceUnit.Mho, ElectricAdmittanceUnits.Mho); + yield return new (ElectricAdmittanceUnit.Micromho, ElectricAdmittanceUnits.Micromho); + yield return new (ElectricAdmittanceUnit.Microsiemens, ElectricAdmittanceUnits.Microsiemens); + yield return new (ElectricAdmittanceUnit.Millimho, ElectricAdmittanceUnits.Millimho); + yield return new (ElectricAdmittanceUnit.Millisiemens, ElectricAdmittanceUnits.Millisiemens); + yield return new (ElectricAdmittanceUnit.Nanomho, ElectricAdmittanceUnits.Nanomho); + yield return new (ElectricAdmittanceUnit.Nanosiemens, ElectricAdmittanceUnits.Nanosiemens); + yield return new (ElectricAdmittanceUnit.Siemens, ElectricAdmittanceUnits.Siemens); + yield return new (ElectricAdmittanceUnit.Teramho, ElectricAdmittanceUnits.Teramho); + yield return new (ElectricAdmittanceUnit.Terasiemens, ElectricAdmittanceUnits.Terasiemens); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs index b74b86ae15..21a82e9103 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs @@ -118,13 +118,9 @@ public static ElectricApparentEnergyInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricApparentEnergy. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricApparentEnergyUnit.KilovoltampereHour, "KilovoltampereHour", "KilovoltampereHours", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricApparentEnergyUnit.MegavoltampereHour, "MegavoltampereHour", "MegavoltampereHours", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricApparentEnergyUnit.VoltampereHour, "VoltampereHour", "VoltampereHours", BaseUnits.Undefined); + yield return new (ElectricApparentEnergyUnit.KilovoltampereHour, ElectricApparentEnergyUnits.KilovoltampereHour); + yield return new (ElectricApparentEnergyUnit.MegavoltampereHour, ElectricApparentEnergyUnits.MegavoltampereHour); + yield return new (ElectricApparentEnergyUnit.VoltampereHour, ElectricApparentEnergyUnits.VoltampereHour); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs index cc39059cae..18c6a17961 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs @@ -120,22 +120,12 @@ public static ElectricApparentPowerInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricApparentPower. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricApparentPowerUnit.Gigavoltampere, "Gigavoltampere", "Gigavoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricApparentPowerUnit.Kilovoltampere, "Kilovoltampere", "Kilovoltamperes", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricApparentPowerUnit.Megavoltampere, "Megavoltampere", "Megavoltamperes", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricApparentPowerUnit.Microvoltampere, "Microvoltampere", "Microvoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ElectricApparentPowerUnit.Millivoltampere, "Millivoltampere", "Millivoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (ElectricApparentPowerUnit.Voltampere, "Voltampere", "Voltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); + yield return new (ElectricApparentPowerUnit.Gigavoltampere, ElectricApparentPowerUnits.Gigavoltampere); + yield return new (ElectricApparentPowerUnit.Kilovoltampere, ElectricApparentPowerUnits.Kilovoltampere); + yield return new (ElectricApparentPowerUnit.Megavoltampere, ElectricApparentPowerUnits.Megavoltampere); + yield return new (ElectricApparentPowerUnit.Microvoltampere, ElectricApparentPowerUnits.Microvoltampere); + yield return new (ElectricApparentPowerUnit.Millivoltampere, ElectricApparentPowerUnits.Millivoltampere); + yield return new (ElectricApparentPowerUnit.Voltampere, ElectricApparentPowerUnits.Voltampere); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs index a639eddcae..388fcf07ad 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs @@ -120,25 +120,13 @@ public static ElectricCapacitanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCapacitance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricCapacitanceUnit.Farad, "Farad", "Farads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricCapacitanceUnit.Kilofarad, "Kilofarad", "Kilofarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricCapacitanceUnit.Megafarad, "Megafarad", "Megafarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricCapacitanceUnit.Microfarad, "Microfarad", "Microfarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000000 - ); - yield return new (ElectricCapacitanceUnit.Millifarad, "Millifarad", "Millifarads", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricCapacitanceUnit.Nanofarad, "Nanofarad", "Nanofarads", BaseUnits.Undefined, - 1000000000 - ); - yield return new (ElectricCapacitanceUnit.Picofarad, "Picofarad", "Picofarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - 1000000000000 - ); + yield return new (ElectricCapacitanceUnit.Farad, ElectricCapacitanceUnits.Farad); + yield return new (ElectricCapacitanceUnit.Kilofarad, ElectricCapacitanceUnits.Kilofarad); + yield return new (ElectricCapacitanceUnit.Megafarad, ElectricCapacitanceUnits.Megafarad); + yield return new (ElectricCapacitanceUnit.Microfarad, ElectricCapacitanceUnits.Microfarad); + yield return new (ElectricCapacitanceUnit.Millifarad, ElectricCapacitanceUnits.Millifarad); + yield return new (ElectricCapacitanceUnit.Nanofarad, ElectricCapacitanceUnits.Nanofarad); + yield return new (ElectricCapacitanceUnit.Picofarad, ElectricCapacitanceUnits.Picofarad); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs index c3af99af9e..48c24ee1c4 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs @@ -128,37 +128,17 @@ public static ElectricChargeInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCharge. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricChargeUnit.AmpereHour, "AmpereHour", "AmpereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 3600) - ); - yield return new (ElectricChargeUnit.Coulomb, "Coulomb", "Coulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricChargeUnit.KiloampereHour, "KiloampereHour", "KiloampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Kiloampere), - new QuantityValue(1, 3600000) - ); - yield return new (ElectricChargeUnit.Kilocoulomb, "Kilocoulomb", "Kilocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Kiloampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricChargeUnit.MegaampereHour, "MegaampereHour", "MegaampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Megaampere), - new QuantityValue(1, 3600000000) - ); - yield return new (ElectricChargeUnit.Megacoulomb, "Megacoulomb", "Megacoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Megaampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricChargeUnit.Microcoulomb, "Microcoulomb", "Microcoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - 1000000 - ); - yield return new (ElectricChargeUnit.MilliampereHour, "MilliampereHour", "MilliampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(5, 18) - ); - yield return new (ElectricChargeUnit.Millicoulomb, "Millicoulomb", "Millicoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000 - ); - yield return new (ElectricChargeUnit.Nanocoulomb, "Nanocoulomb", "Nanocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Nanoampere), - 1000000000 - ); - yield return new (ElectricChargeUnit.Picocoulomb, "Picocoulomb", "Picocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Picoampere), - 1000000000000 - ); + yield return new (ElectricChargeUnit.AmpereHour, ElectricChargeUnits.AmpereHour); + yield return new (ElectricChargeUnit.Coulomb, ElectricChargeUnits.Coulomb); + yield return new (ElectricChargeUnit.KiloampereHour, ElectricChargeUnits.KiloampereHour); + yield return new (ElectricChargeUnit.Kilocoulomb, ElectricChargeUnits.Kilocoulomb); + yield return new (ElectricChargeUnit.MegaampereHour, ElectricChargeUnits.MegaampereHour); + yield return new (ElectricChargeUnit.Megacoulomb, ElectricChargeUnits.Megacoulomb); + yield return new (ElectricChargeUnit.Microcoulomb, ElectricChargeUnits.Microcoulomb); + yield return new (ElectricChargeUnit.MilliampereHour, ElectricChargeUnits.MilliampereHour); + yield return new (ElectricChargeUnit.Millicoulomb, ElectricChargeUnits.Millicoulomb); + yield return new (ElectricChargeUnit.Nanocoulomb, ElectricChargeUnits.Nanocoulomb); + yield return new (ElectricChargeUnit.Picocoulomb, ElectricChargeUnits.Picocoulomb); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs index ff23698f29..04b0bdf26e 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs @@ -120,7 +120,7 @@ public static ElectricChargeDensityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricChargeDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricChargeDensityUnit.CoulombPerCubicMeter, "CoulombPerCubicMeter", "CoulombsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + yield return new (ElectricChargeDensityUnit.CoulombPerCubicMeter, ElectricChargeDensityUnits.CoulombPerCubicMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs index 9b34f2e776..666667293c 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs @@ -120,52 +120,22 @@ public static ElectricConductanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricConductance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricConductanceUnit.Gigamho, "Gigamho", "Gigamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricConductanceUnit.Gigasiemens, "Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricConductanceUnit.Kilomho, "Kilomho", "Kilomhos", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricConductanceUnit.Kilosiemens, "Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricConductanceUnit.Megamho, "Megamho", "Megamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricConductanceUnit.Megasiemens, "Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricConductanceUnit.Mho, "Mho", "Mhos", BaseUnits.Undefined, - 1 - ); - yield return new (ElectricConductanceUnit.Micromho, "Micromho", "Micromhos", BaseUnits.Undefined, - 1000000 - ); - yield return new (ElectricConductanceUnit.Microsiemens, "Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000000 - ); - yield return new (ElectricConductanceUnit.Millimho, "Millimho", "Millimhos", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricConductanceUnit.Millisiemens, "Millisiemens", "Millisiemens", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricConductanceUnit.Nanomho, "Nanomho", "Nanomhos", BaseUnits.Undefined, - 1000000000 - ); - yield return new (ElectricConductanceUnit.Nanosiemens, "Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricConductanceUnit.Siemens, "Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricConductanceUnit.Teramho, "Teramho", "Teramhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (ElectricConductanceUnit.Terasiemens, "Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + yield return new (ElectricConductanceUnit.Gigamho, ElectricConductanceUnits.Gigamho); + yield return new (ElectricConductanceUnit.Gigasiemens, ElectricConductanceUnits.Gigasiemens); + yield return new (ElectricConductanceUnit.Kilomho, ElectricConductanceUnits.Kilomho); + yield return new (ElectricConductanceUnit.Kilosiemens, ElectricConductanceUnits.Kilosiemens); + yield return new (ElectricConductanceUnit.Megamho, ElectricConductanceUnits.Megamho); + yield return new (ElectricConductanceUnit.Megasiemens, ElectricConductanceUnits.Megasiemens); + yield return new (ElectricConductanceUnit.Mho, ElectricConductanceUnits.Mho); + yield return new (ElectricConductanceUnit.Micromho, ElectricConductanceUnits.Micromho); + yield return new (ElectricConductanceUnit.Microsiemens, ElectricConductanceUnits.Microsiemens); + yield return new (ElectricConductanceUnit.Millimho, ElectricConductanceUnits.Millimho); + yield return new (ElectricConductanceUnit.Millisiemens, ElectricConductanceUnits.Millisiemens); + yield return new (ElectricConductanceUnit.Nanomho, ElectricConductanceUnits.Nanomho); + yield return new (ElectricConductanceUnit.Nanosiemens, ElectricConductanceUnits.Nanosiemens); + yield return new (ElectricConductanceUnit.Siemens, ElectricConductanceUnits.Siemens); + yield return new (ElectricConductanceUnit.Teramho, ElectricConductanceUnits.Teramho); + yield return new (ElectricConductanceUnit.Terasiemens, ElectricConductanceUnits.Terasiemens); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs index 491d5de364..dafdb8793d 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs @@ -119,22 +119,12 @@ public static ElectricConductivityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricConductivity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricConductivityUnit.MicrosiemensPerCentimeter, "MicrosiemensPerCentimeter", "MicrosiemensPerCentimeter", BaseUnits.Undefined, - 10000 - ); - yield return new (ElectricConductivityUnit.MillisiemensPerCentimeter, "MillisiemensPerCentimeter", "MillisiemensPerCentimeter", BaseUnits.Undefined, - 10 - ); - yield return new (ElectricConductivityUnit.SiemensPerCentimeter, "SiemensPerCentimeter", "SiemensPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (ElectricConductivityUnit.SiemensPerFoot, "SiemensPerFoot", "SiemensPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250) - ); - yield return new (ElectricConductivityUnit.SiemensPerInch, "SiemensPerInch", "SiemensPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000) - ); - yield return new (ElectricConductivityUnit.SiemensPerMeter, "SiemensPerMeter", "SiemensPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + yield return new (ElectricConductivityUnit.MicrosiemensPerCentimeter, ElectricConductivityUnits.MicrosiemensPerCentimeter); + yield return new (ElectricConductivityUnit.MillisiemensPerCentimeter, ElectricConductivityUnits.MillisiemensPerCentimeter); + yield return new (ElectricConductivityUnit.SiemensPerCentimeter, ElectricConductivityUnits.SiemensPerCentimeter); + yield return new (ElectricConductivityUnit.SiemensPerFoot, ElectricConductivityUnits.SiemensPerFoot); + yield return new (ElectricConductivityUnit.SiemensPerInch, ElectricConductivityUnits.SiemensPerInch); + yield return new (ElectricConductivityUnit.SiemensPerMeter, ElectricConductivityUnits.SiemensPerMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs index 29db343b7d..d3a57a1bbc 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs @@ -128,31 +128,15 @@ public static ElectricCurrentInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCurrent. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricCurrentUnit.Ampere, "Ampere", "Amperes", new BaseUnits(current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricCurrentUnit.Centiampere, "Centiampere", "Centiamperes", new BaseUnits(current: ElectricCurrentUnit.Centiampere), - 100 - ); - yield return new (ElectricCurrentUnit.Femtoampere, "Femtoampere", "Femtoamperes", new BaseUnits(current: ElectricCurrentUnit.Femtoampere), - 1000000000000000 - ); - yield return new (ElectricCurrentUnit.Kiloampere, "Kiloampere", "Kiloamperes", new BaseUnits(current: ElectricCurrentUnit.Kiloampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricCurrentUnit.Megaampere, "Megaampere", "Megaamperes", new BaseUnits(current: ElectricCurrentUnit.Megaampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricCurrentUnit.Microampere, "Microampere", "Microamperes", new BaseUnits(current: ElectricCurrentUnit.Microampere), - 1000000 - ); - yield return new (ElectricCurrentUnit.Milliampere, "Milliampere", "Milliamperes", new BaseUnits(current: ElectricCurrentUnit.Milliampere), - 1000 - ); - yield return new (ElectricCurrentUnit.Nanoampere, "Nanoampere", "Nanoamperes", new BaseUnits(current: ElectricCurrentUnit.Nanoampere), - 1000000000 - ); - yield return new (ElectricCurrentUnit.Picoampere, "Picoampere", "Picoamperes", new BaseUnits(current: ElectricCurrentUnit.Picoampere), - 1000000000000 - ); + yield return new (ElectricCurrentUnit.Ampere, ElectricCurrentUnits.Ampere); + yield return new (ElectricCurrentUnit.Centiampere, ElectricCurrentUnits.Centiampere); + yield return new (ElectricCurrentUnit.Femtoampere, ElectricCurrentUnits.Femtoampere); + yield return new (ElectricCurrentUnit.Kiloampere, ElectricCurrentUnits.Kiloampere); + yield return new (ElectricCurrentUnit.Megaampere, ElectricCurrentUnits.Megaampere); + yield return new (ElectricCurrentUnit.Microampere, ElectricCurrentUnits.Microampere); + yield return new (ElectricCurrentUnit.Milliampere, ElectricCurrentUnits.Milliampere); + yield return new (ElectricCurrentUnit.Nanoampere, ElectricCurrentUnits.Nanoampere); + yield return new (ElectricCurrentUnit.Picoampere, ElectricCurrentUnits.Picoampere); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs index c20bdef8e4..231f830bed 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs @@ -120,13 +120,9 @@ public static ElectricCurrentDensityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCurrentDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricCurrentDensityUnit.AmperePerSquareFoot, "AmperePerSquareFoot", "AmperesPerSquareFoot", new BaseUnits(length: LengthUnit.Foot, current: ElectricCurrentUnit.Ampere), - new QuantityValue(145161, 1562500) - ); - yield return new (ElectricCurrentDensityUnit.AmperePerSquareInch, "AmperePerSquareInch", "AmperesPerSquareInch", new BaseUnits(length: LengthUnit.Inch, current: ElectricCurrentUnit.Ampere), - new QuantityValue(16129, 25000000) - ); - yield return new (ElectricCurrentDensityUnit.AmperePerSquareMeter, "AmperePerSquareMeter", "AmperesPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, current: ElectricCurrentUnit.Ampere)); + yield return new (ElectricCurrentDensityUnit.AmperePerSquareFoot, ElectricCurrentDensityUnits.AmperePerSquareFoot); + yield return new (ElectricCurrentDensityUnit.AmperePerSquareInch, ElectricCurrentDensityUnits.AmperePerSquareInch); + yield return new (ElectricCurrentDensityUnit.AmperePerSquareMeter, ElectricCurrentDensityUnits.AmperePerSquareMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs index d218226373..c92492503c 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs @@ -117,25 +117,13 @@ public static ElectricCurrentGradientInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricCurrentGradient. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricCurrentGradientUnit.AmperePerMicrosecond, "AmperePerMicrosecond", "AmperesPerMicrosecond", new BaseUnits(time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricCurrentGradientUnit.AmperePerMillisecond, "AmperePerMillisecond", "AmperesPerMillisecond", new BaseUnits(time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricCurrentGradientUnit.AmperePerMinute, "AmperePerMinute", "AmperesPerMinute", new BaseUnits(time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), - 60 - ); - yield return new (ElectricCurrentGradientUnit.AmperePerNanosecond, "AmperePerNanosecond", "AmperesPerNanosecond", new BaseUnits(time: DurationUnit.Nanosecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricCurrentGradientUnit.AmperePerSecond, "AmperePerSecond", "AmperesPerSecond", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricCurrentGradientUnit.MilliamperePerMinute, "MilliamperePerMinute", "MilliamperesPerMinute", new BaseUnits(time: DurationUnit.Minute, current: ElectricCurrentUnit.Milliampere), - 60000 - ); - yield return new (ElectricCurrentGradientUnit.MilliamperePerSecond, "MilliamperePerSecond", "MilliamperesPerSecond", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000 - ); + yield return new (ElectricCurrentGradientUnit.AmperePerMicrosecond, ElectricCurrentGradientUnits.AmperePerMicrosecond); + yield return new (ElectricCurrentGradientUnit.AmperePerMillisecond, ElectricCurrentGradientUnits.AmperePerMillisecond); + yield return new (ElectricCurrentGradientUnit.AmperePerMinute, ElectricCurrentGradientUnits.AmperePerMinute); + yield return new (ElectricCurrentGradientUnit.AmperePerNanosecond, ElectricCurrentGradientUnits.AmperePerNanosecond); + yield return new (ElectricCurrentGradientUnit.AmperePerSecond, ElectricCurrentGradientUnits.AmperePerSecond); + yield return new (ElectricCurrentGradientUnit.MilliamperePerMinute, ElectricCurrentGradientUnits.MilliamperePerMinute); + yield return new (ElectricCurrentGradientUnit.MilliamperePerSecond, ElectricCurrentGradientUnits.MilliamperePerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs index efb660104d..a0166704e8 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs @@ -120,7 +120,7 @@ public static ElectricFieldInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricField. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricFieldUnit.VoltPerMeter, "VoltPerMeter", "VoltsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + yield return new (ElectricFieldUnit.VoltPerMeter, ElectricFieldUnits.VoltPerMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs index 71835b09c7..9cd6379614 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs @@ -120,28 +120,14 @@ public static ElectricImpedanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricImpedance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricImpedanceUnit.Gigaohm, "Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricImpedanceUnit.Kiloohm, "Kiloohm", "Kiloohms", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricImpedanceUnit.Megaohm, "Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricImpedanceUnit.Microohm, "Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricImpedanceUnit.Milliohm, "Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricImpedanceUnit.Nanoohm, "Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricImpedanceUnit.Ohm, "Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricImpedanceUnit.Teraohm, "Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + yield return new (ElectricImpedanceUnit.Gigaohm, ElectricImpedanceUnits.Gigaohm); + yield return new (ElectricImpedanceUnit.Kiloohm, ElectricImpedanceUnits.Kiloohm); + yield return new (ElectricImpedanceUnit.Megaohm, ElectricImpedanceUnits.Megaohm); + yield return new (ElectricImpedanceUnit.Microohm, ElectricImpedanceUnits.Microohm); + yield return new (ElectricImpedanceUnit.Milliohm, ElectricImpedanceUnits.Milliohm); + yield return new (ElectricImpedanceUnit.Nanoohm, ElectricImpedanceUnits.Nanoohm); + yield return new (ElectricImpedanceUnit.Ohm, ElectricImpedanceUnits.Ohm); + yield return new (ElectricImpedanceUnit.Teraohm, ElectricImpedanceUnits.Teraohm); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs index 0ed85fa627..76f3c814bf 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs @@ -119,19 +119,11 @@ public static ElectricInductanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricInductance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricInductanceUnit.Henry, "Henry", "Henries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricInductanceUnit.Microhenry, "Microhenry", "Microhenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricInductanceUnit.Millihenry, "Millihenry", "Millihenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricInductanceUnit.Nanohenry, "Nanohenry", "Nanohenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricInductanceUnit.Picohenry, "Picohenry", "Picohenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000000 - ); + yield return new (ElectricInductanceUnit.Henry, ElectricInductanceUnits.Henry); + yield return new (ElectricInductanceUnit.Microhenry, ElectricInductanceUnits.Microhenry); + yield return new (ElectricInductanceUnit.Millihenry, ElectricInductanceUnits.Millihenry); + yield return new (ElectricInductanceUnit.Nanohenry, ElectricInductanceUnits.Nanohenry); + yield return new (ElectricInductanceUnit.Picohenry, ElectricInductanceUnits.Picohenry); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs index f849778462..5d08d68f86 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs @@ -129,22 +129,12 @@ public static ElectricPotentialInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricPotential. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricPotentialUnit.Kilovolt, "Kilovolt", "Kilovolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricPotentialUnit.Megavolt, "Megavolt", "Megavolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricPotentialUnit.Microvolt, "Microvolt", "Microvolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricPotentialUnit.Millivolt, "Millivolt", "Millivolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricPotentialUnit.Nanovolt, "Nanovolt", "Nanovolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricPotentialUnit.Volt, "Volt", "Volts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + yield return new (ElectricPotentialUnit.Kilovolt, ElectricPotentialUnits.Kilovolt); + yield return new (ElectricPotentialUnit.Megavolt, ElectricPotentialUnits.Megavolt); + yield return new (ElectricPotentialUnit.Microvolt, ElectricPotentialUnits.Microvolt); + yield return new (ElectricPotentialUnit.Millivolt, ElectricPotentialUnits.Millivolt); + yield return new (ElectricPotentialUnit.Nanovolt, ElectricPotentialUnits.Nanovolt); + yield return new (ElectricPotentialUnit.Volt, ElectricPotentialUnits.Volt); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs index e175d42d45..c0692adf33 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs @@ -117,64 +117,26 @@ public static ElectricPotentialChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricPotentialChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricPotentialChangeRateUnit.KilovoltPerHour, "KilovoltPerHour", "KilovoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(18, 5) - ); - yield return new (ElectricPotentialChangeRateUnit.KilovoltPerMicrosecond, "KilovoltPerMicrosecond", "KilovoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricPotentialChangeRateUnit.KilovoltPerMinute, "KilovoltPerMinute", "KilovoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(3, 50) - ); - yield return new (ElectricPotentialChangeRateUnit.KilovoltPerSecond, "KilovoltPerSecond", "KilovoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricPotentialChangeRateUnit.MegavoltPerHour, "MegavoltPerHour", "MegavoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Microampere), - new QuantityValue(9, 2500) - ); - yield return new (ElectricPotentialChangeRateUnit.MegavoltPerMicrosecond, "MegavoltPerMicrosecond", "MegavoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Microampere), - new QuantityValue(1, 1000000000000) - ); - yield return new (ElectricPotentialChangeRateUnit.MegavoltPerMinute, "MegavoltPerMinute", "MegavoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Microampere), - new QuantityValue(3, 50000) - ); - yield return new (ElectricPotentialChangeRateUnit.MegavoltPerSecond, "MegavoltPerSecond", "MegavoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerHour, "MicrovoltPerHour", "MicrovoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), - 3600000000 - ); - yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerMicrosecond, "MicrovoltPerMicrosecond", "MicrovoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), - 1 - ); - yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerMinute, "MicrovoltPerMinute", "MicrovoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), - 60000000 - ); - yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerSecond, "MicrovoltPerSecond", "MicrovoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricPotentialChangeRateUnit.MillivoltPerHour, "MillivoltPerHour", "MillivoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), - 3600000 - ); - yield return new (ElectricPotentialChangeRateUnit.MillivoltPerMicrosecond, "MillivoltPerMicrosecond", "MillivoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricPotentialChangeRateUnit.MillivoltPerMinute, "MillivoltPerMinute", "MillivoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), - 60000 - ); - yield return new (ElectricPotentialChangeRateUnit.MillivoltPerSecond, "MillivoltPerSecond", "MillivoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricPotentialChangeRateUnit.VoltPerHour, "VoltPerHour", "VoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), - 3600 - ); - yield return new (ElectricPotentialChangeRateUnit.VoltPerMicrosecond, "VoltPerMicrosecond", "VoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricPotentialChangeRateUnit.VoltPerMinute, "VoltPerMinute", "VoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), - 60 - ); - yield return new (ElectricPotentialChangeRateUnit.VoltPerSecond, "VoltPerSecond", "VoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + yield return new (ElectricPotentialChangeRateUnit.KilovoltPerHour, ElectricPotentialChangeRateUnits.KilovoltPerHour); + yield return new (ElectricPotentialChangeRateUnit.KilovoltPerMicrosecond, ElectricPotentialChangeRateUnits.KilovoltPerMicrosecond); + yield return new (ElectricPotentialChangeRateUnit.KilovoltPerMinute, ElectricPotentialChangeRateUnits.KilovoltPerMinute); + yield return new (ElectricPotentialChangeRateUnit.KilovoltPerSecond, ElectricPotentialChangeRateUnits.KilovoltPerSecond); + yield return new (ElectricPotentialChangeRateUnit.MegavoltPerHour, ElectricPotentialChangeRateUnits.MegavoltPerHour); + yield return new (ElectricPotentialChangeRateUnit.MegavoltPerMicrosecond, ElectricPotentialChangeRateUnits.MegavoltPerMicrosecond); + yield return new (ElectricPotentialChangeRateUnit.MegavoltPerMinute, ElectricPotentialChangeRateUnits.MegavoltPerMinute); + yield return new (ElectricPotentialChangeRateUnit.MegavoltPerSecond, ElectricPotentialChangeRateUnits.MegavoltPerSecond); + yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerHour, ElectricPotentialChangeRateUnits.MicrovoltPerHour); + yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerMicrosecond, ElectricPotentialChangeRateUnits.MicrovoltPerMicrosecond); + yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerMinute, ElectricPotentialChangeRateUnits.MicrovoltPerMinute); + yield return new (ElectricPotentialChangeRateUnit.MicrovoltPerSecond, ElectricPotentialChangeRateUnits.MicrovoltPerSecond); + yield return new (ElectricPotentialChangeRateUnit.MillivoltPerHour, ElectricPotentialChangeRateUnits.MillivoltPerHour); + yield return new (ElectricPotentialChangeRateUnit.MillivoltPerMicrosecond, ElectricPotentialChangeRateUnits.MillivoltPerMicrosecond); + yield return new (ElectricPotentialChangeRateUnit.MillivoltPerMinute, ElectricPotentialChangeRateUnits.MillivoltPerMinute); + yield return new (ElectricPotentialChangeRateUnit.MillivoltPerSecond, ElectricPotentialChangeRateUnits.MillivoltPerSecond); + yield return new (ElectricPotentialChangeRateUnit.VoltPerHour, ElectricPotentialChangeRateUnits.VoltPerHour); + yield return new (ElectricPotentialChangeRateUnit.VoltPerMicrosecond, ElectricPotentialChangeRateUnits.VoltPerMicrosecond); + yield return new (ElectricPotentialChangeRateUnit.VoltPerMinute, ElectricPotentialChangeRateUnits.VoltPerMinute); + yield return new (ElectricPotentialChangeRateUnit.VoltPerSecond, ElectricPotentialChangeRateUnits.VoltPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs index 3559d695f0..76627471da 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs @@ -119,28 +119,14 @@ public static ElectricReactanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricReactance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricReactanceUnit.Gigaohm, "Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricReactanceUnit.Kiloohm, "Kiloohm", "Kiloohms", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricReactanceUnit.Megaohm, "Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricReactanceUnit.Microohm, "Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricReactanceUnit.Milliohm, "Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricReactanceUnit.Nanoohm, "Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricReactanceUnit.Ohm, "Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricReactanceUnit.Teraohm, "Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + yield return new (ElectricReactanceUnit.Gigaohm, ElectricReactanceUnits.Gigaohm); + yield return new (ElectricReactanceUnit.Kiloohm, ElectricReactanceUnits.Kiloohm); + yield return new (ElectricReactanceUnit.Megaohm, ElectricReactanceUnits.Megaohm); + yield return new (ElectricReactanceUnit.Microohm, ElectricReactanceUnits.Microohm); + yield return new (ElectricReactanceUnit.Milliohm, ElectricReactanceUnits.Milliohm); + yield return new (ElectricReactanceUnit.Nanoohm, ElectricReactanceUnits.Nanoohm); + yield return new (ElectricReactanceUnit.Ohm, ElectricReactanceUnits.Ohm); + yield return new (ElectricReactanceUnit.Teraohm, ElectricReactanceUnits.Teraohm); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs index 23a644d3f1..cf21f4cd26 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs @@ -118,13 +118,9 @@ public static ElectricReactiveEnergyInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricReactiveEnergy. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricReactiveEnergyUnit.KilovoltampereReactiveHour, "KilovoltampereReactiveHour", "KilovoltampereReactiveHours", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricReactiveEnergyUnit.MegavoltampereReactiveHour, "MegavoltampereReactiveHour", "MegavoltampereReactiveHours", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricReactiveEnergyUnit.VoltampereReactiveHour, "VoltampereReactiveHour", "VoltampereReactiveHours", BaseUnits.Undefined); + yield return new (ElectricReactiveEnergyUnit.KilovoltampereReactiveHour, ElectricReactiveEnergyUnits.KilovoltampereReactiveHour); + yield return new (ElectricReactiveEnergyUnit.MegavoltampereReactiveHour, ElectricReactiveEnergyUnits.MegavoltampereReactiveHour); + yield return new (ElectricReactiveEnergyUnit.VoltampereReactiveHour, ElectricReactiveEnergyUnits.VoltampereReactiveHour); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs index c21c011153..b007f58b01 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs @@ -120,16 +120,10 @@ public static ElectricReactivePowerInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricReactivePower. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricReactivePowerUnit.GigavoltampereReactive, "GigavoltampereReactive", "GigavoltamperesReactive", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricReactivePowerUnit.KilovoltampereReactive, "KilovoltampereReactive", "KilovoltamperesReactive", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricReactivePowerUnit.MegavoltampereReactive, "MegavoltampereReactive", "MegavoltamperesReactive", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricReactivePowerUnit.VoltampereReactive, "VoltampereReactive", "VoltamperesReactive", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); + yield return new (ElectricReactivePowerUnit.GigavoltampereReactive, ElectricReactivePowerUnits.GigavoltampereReactive); + yield return new (ElectricReactivePowerUnit.KilovoltampereReactive, ElectricReactivePowerUnits.KilovoltampereReactive); + yield return new (ElectricReactivePowerUnit.MegavoltampereReactive, ElectricReactivePowerUnits.MegavoltampereReactive); + yield return new (ElectricReactivePowerUnit.VoltampereReactive, ElectricReactivePowerUnits.VoltampereReactive); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs index 0ff74bacd3..b1f988209e 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs @@ -120,28 +120,14 @@ public static ElectricResistanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricResistance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricResistanceUnit.Gigaohm, "Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricResistanceUnit.Kiloohm, "Kiloohm", "Kiloohms", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricResistanceUnit.Megaohm, "Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricResistanceUnit.Microohm, "Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricResistanceUnit.Milliohm, "Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricResistanceUnit.Nanoohm, "Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricResistanceUnit.Ohm, "Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricResistanceUnit.Teraohm, "Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + yield return new (ElectricResistanceUnit.Gigaohm, ElectricResistanceUnits.Gigaohm); + yield return new (ElectricResistanceUnit.Kiloohm, ElectricResistanceUnits.Kiloohm); + yield return new (ElectricResistanceUnit.Megaohm, ElectricResistanceUnits.Megaohm); + yield return new (ElectricResistanceUnit.Microohm, ElectricResistanceUnits.Microohm); + yield return new (ElectricResistanceUnit.Milliohm, ElectricResistanceUnits.Milliohm); + yield return new (ElectricResistanceUnit.Nanoohm, ElectricResistanceUnits.Nanoohm); + yield return new (ElectricResistanceUnit.Ohm, ElectricResistanceUnits.Ohm); + yield return new (ElectricResistanceUnit.Teraohm, ElectricResistanceUnits.Teraohm); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs index 109518382d..157c55fc32 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs @@ -119,46 +119,20 @@ public static ElectricResistivityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricResistivity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricResistivityUnit.KiloohmCentimeter, "KiloohmCentimeter", "KiloohmsCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (ElectricResistivityUnit.KiloohmMeter, "KiloohmMeter", "KiloohmMeters", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricResistivityUnit.MegaohmCentimeter, "MegaohmCentimeter", "MegaohmsCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (ElectricResistivityUnit.MegaohmMeter, "MegaohmMeter", "MegaohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricResistivityUnit.MicroohmCentimeter, "MicroohmCentimeter", "MicroohmsCentimeter", BaseUnits.Undefined, - 100000000 - ); - yield return new (ElectricResistivityUnit.MicroohmMeter, "MicroohmMeter", "MicroohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (ElectricResistivityUnit.MilliohmCentimeter, "MilliohmCentimeter", "MilliohmsCentimeter", BaseUnits.Undefined, - 100000 - ); - yield return new (ElectricResistivityUnit.MilliohmMeter, "MilliohmMeter", "MilliohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (ElectricResistivityUnit.NanoohmCentimeter, "NanoohmCentimeter", "NanoohmsCentimeter", BaseUnits.Undefined, - 100000000000 - ); - yield return new (ElectricResistivityUnit.NanoohmMeter, "NanoohmMeter", "NanoohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricResistivityUnit.OhmCentimeter, "OhmCentimeter", "OhmsCentimeter", BaseUnits.Undefined, - 100 - ); - yield return new (ElectricResistivityUnit.OhmMeter, "OhmMeter", "OhmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricResistivityUnit.PicoohmCentimeter, "PicoohmCentimeter", "PicoohmsCentimeter", BaseUnits.Undefined, - 100000000000000 - ); - yield return new (ElectricResistivityUnit.PicoohmMeter, "PicoohmMeter", "PicoohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - 1000000000000 - ); + yield return new (ElectricResistivityUnit.KiloohmCentimeter, ElectricResistivityUnits.KiloohmCentimeter); + yield return new (ElectricResistivityUnit.KiloohmMeter, ElectricResistivityUnits.KiloohmMeter); + yield return new (ElectricResistivityUnit.MegaohmCentimeter, ElectricResistivityUnits.MegaohmCentimeter); + yield return new (ElectricResistivityUnit.MegaohmMeter, ElectricResistivityUnits.MegaohmMeter); + yield return new (ElectricResistivityUnit.MicroohmCentimeter, ElectricResistivityUnits.MicroohmCentimeter); + yield return new (ElectricResistivityUnit.MicroohmMeter, ElectricResistivityUnits.MicroohmMeter); + yield return new (ElectricResistivityUnit.MilliohmCentimeter, ElectricResistivityUnits.MilliohmCentimeter); + yield return new (ElectricResistivityUnit.MilliohmMeter, ElectricResistivityUnits.MilliohmMeter); + yield return new (ElectricResistivityUnit.NanoohmCentimeter, ElectricResistivityUnits.NanoohmCentimeter); + yield return new (ElectricResistivityUnit.NanoohmMeter, ElectricResistivityUnits.NanoohmMeter); + yield return new (ElectricResistivityUnit.OhmCentimeter, ElectricResistivityUnits.OhmCentimeter); + yield return new (ElectricResistivityUnit.OhmMeter, ElectricResistivityUnits.OhmMeter); + yield return new (ElectricResistivityUnit.PicoohmCentimeter, ElectricResistivityUnits.PicoohmCentimeter); + yield return new (ElectricResistivityUnit.PicoohmMeter, ElectricResistivityUnits.PicoohmMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs index c7c8efd3e7..72d92deedc 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs @@ -120,13 +120,9 @@ public static ElectricSurfaceChargeDensityInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricSurfaceChargeDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter, "CoulombPerSquareCentimeter", "CoulombsPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 10000) - ); - yield return new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch, "CoulombPerSquareInch", "CoulombsPerSquareInch", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(16129, 25000000) - ); - yield return new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter, "CoulombPerSquareMeter", "CoulombsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + yield return new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter, ElectricSurfaceChargeDensityUnits.CoulombPerSquareCentimeter); + yield return new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch, ElectricSurfaceChargeDensityUnits.CoulombPerSquareInch); + yield return new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter, ElectricSurfaceChargeDensityUnits.CoulombPerSquareMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs index 07c01295e5..0a8e614aef 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs @@ -119,52 +119,22 @@ public static ElectricSusceptanceInfo CreateDefault(FuncAn of representing the default unit mappings for ElectricSusceptance. public static IEnumerable> GetDefaultMappings() { - yield return new (ElectricSusceptanceUnit.Gigamho, "Gigamho", "Gigamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricSusceptanceUnit.Gigasiemens, "Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000) - ); - yield return new (ElectricSusceptanceUnit.Kilomho, "Kilomho", "Kilomhos", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ElectricSusceptanceUnit.Kilosiemens, "Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000) - ); - yield return new (ElectricSusceptanceUnit.Megamho, "Megamho", "Megamhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ElectricSusceptanceUnit.Megasiemens, "Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000) - ); - yield return new (ElectricSusceptanceUnit.Mho, "Mho", "Mhos", BaseUnits.Undefined, - 1 - ); - yield return new (ElectricSusceptanceUnit.Micromho, "Micromho", "Micromhos", BaseUnits.Undefined, - 1000000 - ); - yield return new (ElectricSusceptanceUnit.Microsiemens, "Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000000 - ); - yield return new (ElectricSusceptanceUnit.Millimho, "Millimho", "Millimhos", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricSusceptanceUnit.Millisiemens, "Millisiemens", "Millisiemens", BaseUnits.Undefined, - 1000 - ); - yield return new (ElectricSusceptanceUnit.Nanomho, "Nanomho", "Nanomhos", BaseUnits.Undefined, - 1000000000 - ); - yield return new (ElectricSusceptanceUnit.Nanosiemens, "Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (ElectricSusceptanceUnit.Siemens, "Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (ElectricSusceptanceUnit.Teramho, "Teramho", "Teramhos", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (ElectricSusceptanceUnit.Terasiemens, "Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(1, 1000000000000) - ); + yield return new (ElectricSusceptanceUnit.Gigamho, ElectricSusceptanceUnits.Gigamho); + yield return new (ElectricSusceptanceUnit.Gigasiemens, ElectricSusceptanceUnits.Gigasiemens); + yield return new (ElectricSusceptanceUnit.Kilomho, ElectricSusceptanceUnits.Kilomho); + yield return new (ElectricSusceptanceUnit.Kilosiemens, ElectricSusceptanceUnits.Kilosiemens); + yield return new (ElectricSusceptanceUnit.Megamho, ElectricSusceptanceUnits.Megamho); + yield return new (ElectricSusceptanceUnit.Megasiemens, ElectricSusceptanceUnits.Megasiemens); + yield return new (ElectricSusceptanceUnit.Mho, ElectricSusceptanceUnits.Mho); + yield return new (ElectricSusceptanceUnit.Micromho, ElectricSusceptanceUnits.Micromho); + yield return new (ElectricSusceptanceUnit.Microsiemens, ElectricSusceptanceUnits.Microsiemens); + yield return new (ElectricSusceptanceUnit.Millimho, ElectricSusceptanceUnits.Millimho); + yield return new (ElectricSusceptanceUnit.Millisiemens, ElectricSusceptanceUnits.Millisiemens); + yield return new (ElectricSusceptanceUnit.Nanomho, ElectricSusceptanceUnits.Nanomho); + yield return new (ElectricSusceptanceUnit.Nanosiemens, ElectricSusceptanceUnits.Nanosiemens); + yield return new (ElectricSusceptanceUnit.Siemens, ElectricSusceptanceUnits.Siemens); + yield return new (ElectricSusceptanceUnit.Teramho, ElectricSusceptanceUnits.Teramho); + yield return new (ElectricSusceptanceUnit.Terasiemens, ElectricSusceptanceUnits.Terasiemens); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs index 5b6c1e1d60..062768c050 100644 --- a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs @@ -129,124 +129,46 @@ public static EnergyInfo CreateDefault(FuncAn of representing the default unit mappings for Energy. public static IEnumerable> GetDefaultMappings() { - yield return new (EnergyUnit.BritishThermalUnit, "BritishThermalUnit", "BritishThermalUnits", BaseUnits.Undefined, - new QuantityValue(50000000, 52752792631) - ); - yield return new (EnergyUnit.Calorie, "Calorie", "Calories", BaseUnits.Undefined, - new QuantityValue(125, 523) - ); - yield return new (EnergyUnit.DecathermEc, "DecathermEc", "DecathermsEc", BaseUnits.Undefined, - new QuantityValue(50, 52752792631) - ); - yield return new (EnergyUnit.DecathermImperial, "DecathermImperial", "DecathermsImperial", BaseUnits.Undefined, - new QuantityValue(25000, 26376396314337) - ); - yield return new (EnergyUnit.DecathermUs, "DecathermUs", "DecathermsUs", BaseUnits.Undefined, - new QuantityValue(1, 1054804000) - ); - yield return new (EnergyUnit.ElectronVolt, "ElectronVolt", "ElectronVolts", BaseUnits.Undefined, - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(27), 801088317) - ); - yield return new (EnergyUnit.Erg, "Erg", "Ergs", BaseUnits.Undefined, - 10000000 - ); - yield return new (EnergyUnit.FootPound, "FootPound", "FootPounds", BaseUnits.Undefined, - new QuantityValue(2500000000000000, 3389544870828501) - ); - yield return new (EnergyUnit.GigabritishThermalUnit, "GigabritishThermalUnit", "GigabritishThermalUnits", BaseUnits.Undefined, - new QuantityValue(1, 1055055852620) - ); - yield return new (EnergyUnit.GigaelectronVolt, "GigaelectronVolt", "GigaelectronVolts", BaseUnits.Undefined, - new QuantityValue(5000000000000000000, 801088317) - ); - yield return new (EnergyUnit.Gigajoule, "Gigajoule", "Gigajoules", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (EnergyUnit.GigawattDay, "GigawattDay", "GigawattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000) - ); - yield return new (EnergyUnit.GigawattHour, "GigawattHour", "GigawattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000) - ); - yield return new (EnergyUnit.HorsepowerHour, "HorsepowerHour", "HorsepowerHours", BaseUnits.Undefined, - new QuantityValue(500000000, 1342259768728053) - ); - yield return new (EnergyUnit.Joule, "Joule", "Joules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (EnergyUnit.KilobritishThermalUnit, "KilobritishThermalUnit", "KilobritishThermalUnits", BaseUnits.Undefined, - new QuantityValue(50000, 52752792631) - ); - yield return new (EnergyUnit.Kilocalorie, "Kilocalorie", "Kilocalories", BaseUnits.Undefined, - new QuantityValue(1, 4184) - ); - yield return new (EnergyUnit.KiloelectronVolt, "KiloelectronVolt", "KiloelectronVolts", BaseUnits.Undefined, - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(24), 801088317) - ); - yield return new (EnergyUnit.Kilojoule, "Kilojoule", "Kilojoules", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (EnergyUnit.KilowattDay, "KilowattDay", "KilowattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400000) - ); - yield return new (EnergyUnit.KilowattHour, "KilowattHour", "KilowattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600000) - ); - yield return new (EnergyUnit.MegabritishThermalUnit, "MegabritishThermalUnit", "MegabritishThermalUnits", BaseUnits.Undefined, - new QuantityValue(50, 52752792631) - ); - yield return new (EnergyUnit.Megacalorie, "Megacalorie", "Megacalories", BaseUnits.Undefined, - new QuantityValue(1, 4184000) - ); - yield return new (EnergyUnit.MegaelectronVolt, "MegaelectronVolt", "MegaelectronVolts", BaseUnits.Undefined, - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(21), 801088317) - ); - yield return new (EnergyUnit.Megajoule, "Megajoule", "Megajoules", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (EnergyUnit.MegawattDay, "MegawattDay", "MegawattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400000000) - ); - yield return new (EnergyUnit.MegawattHour, "MegawattHour", "MegawattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600000000) - ); - yield return new (EnergyUnit.Microjoule, "Microjoule", "Microjoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (EnergyUnit.Millijoule, "Millijoule", "Millijoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (EnergyUnit.Nanojoule, "Nanojoule", "Nanojoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (EnergyUnit.Petajoule, "Petajoule", "Petajoules", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (EnergyUnit.TeraelectronVolt, "TeraelectronVolt", "TeraelectronVolts", BaseUnits.Undefined, - new QuantityValue(5000000000000000, 801088317) - ); - yield return new (EnergyUnit.Terajoule, "Terajoule", "Terajoules", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (EnergyUnit.TerawattDay, "TerawattDay", "TerawattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000000) - ); - yield return new (EnergyUnit.TerawattHour, "TerawattHour", "TerawattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000000) - ); - yield return new (EnergyUnit.ThermEc, "ThermEc", "ThermsEc", BaseUnits.Undefined, - new QuantityValue(500, 52752792631) - ); - yield return new (EnergyUnit.ThermImperial, "ThermImperial", "ThermsImperial", BaseUnits.Undefined, - new QuantityValue(250000, 26376396314337) - ); - yield return new (EnergyUnit.ThermUs, "ThermUs", "ThermsUs", BaseUnits.Undefined, - new QuantityValue(1, 105480400) - ); - yield return new (EnergyUnit.WattDay, "WattDay", "WattDays", BaseUnits.Undefined, - new QuantityValue(1, 86400) - ); - yield return new (EnergyUnit.WattHour, "WattHour", "WattHours", BaseUnits.Undefined, - new QuantityValue(1, 3600) - ); + yield return new (EnergyUnit.BritishThermalUnit, EnergyUnits.BritishThermalUnit); + yield return new (EnergyUnit.Calorie, EnergyUnits.Calorie); + yield return new (EnergyUnit.DecathermEc, EnergyUnits.DecathermEc); + yield return new (EnergyUnit.DecathermImperial, EnergyUnits.DecathermImperial); + yield return new (EnergyUnit.DecathermUs, EnergyUnits.DecathermUs); + yield return new (EnergyUnit.ElectronVolt, EnergyUnits.ElectronVolt); + yield return new (EnergyUnit.Erg, EnergyUnits.Erg); + yield return new (EnergyUnit.FootPound, EnergyUnits.FootPound); + yield return new (EnergyUnit.GigabritishThermalUnit, EnergyUnits.GigabritishThermalUnit); + yield return new (EnergyUnit.GigaelectronVolt, EnergyUnits.GigaelectronVolt); + yield return new (EnergyUnit.Gigajoule, EnergyUnits.Gigajoule); + yield return new (EnergyUnit.GigawattDay, EnergyUnits.GigawattDay); + yield return new (EnergyUnit.GigawattHour, EnergyUnits.GigawattHour); + yield return new (EnergyUnit.HorsepowerHour, EnergyUnits.HorsepowerHour); + yield return new (EnergyUnit.Joule, EnergyUnits.Joule); + yield return new (EnergyUnit.KilobritishThermalUnit, EnergyUnits.KilobritishThermalUnit); + yield return new (EnergyUnit.Kilocalorie, EnergyUnits.Kilocalorie); + yield return new (EnergyUnit.KiloelectronVolt, EnergyUnits.KiloelectronVolt); + yield return new (EnergyUnit.Kilojoule, EnergyUnits.Kilojoule); + yield return new (EnergyUnit.KilowattDay, EnergyUnits.KilowattDay); + yield return new (EnergyUnit.KilowattHour, EnergyUnits.KilowattHour); + yield return new (EnergyUnit.MegabritishThermalUnit, EnergyUnits.MegabritishThermalUnit); + yield return new (EnergyUnit.Megacalorie, EnergyUnits.Megacalorie); + yield return new (EnergyUnit.MegaelectronVolt, EnergyUnits.MegaelectronVolt); + yield return new (EnergyUnit.Megajoule, EnergyUnits.Megajoule); + yield return new (EnergyUnit.MegawattDay, EnergyUnits.MegawattDay); + yield return new (EnergyUnit.MegawattHour, EnergyUnits.MegawattHour); + yield return new (EnergyUnit.Microjoule, EnergyUnits.Microjoule); + yield return new (EnergyUnit.Millijoule, EnergyUnits.Millijoule); + yield return new (EnergyUnit.Nanojoule, EnergyUnits.Nanojoule); + yield return new (EnergyUnit.Petajoule, EnergyUnits.Petajoule); + yield return new (EnergyUnit.TeraelectronVolt, EnergyUnits.TeraelectronVolt); + yield return new (EnergyUnit.Terajoule, EnergyUnits.Terajoule); + yield return new (EnergyUnit.TerawattDay, EnergyUnits.TerawattDay); + yield return new (EnergyUnit.TerawattHour, EnergyUnits.TerawattHour); + yield return new (EnergyUnit.ThermEc, EnergyUnits.ThermEc); + yield return new (EnergyUnit.ThermImperial, EnergyUnits.ThermImperial); + yield return new (EnergyUnit.ThermUs, EnergyUnits.ThermUs); + yield return new (EnergyUnit.WattDay, EnergyUnits.WattDay); + yield return new (EnergyUnit.WattHour, EnergyUnits.WattHour); } } diff --git a/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs index 02684511b4..3d48cbacef 100644 --- a/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs @@ -119,40 +119,18 @@ public static EnergyDensityInfo CreateDefault(FuncAn of representing the default unit mappings for EnergyDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (EnergyDensityUnit.GigajoulePerCubicMeter, "GigajoulePerCubicMeter", "GigajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000) - ); - yield return new (EnergyDensityUnit.GigawattHourPerCubicMeter, "GigawattHourPerCubicMeter", "GigawattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000) - ); - yield return new (EnergyDensityUnit.JoulePerCubicMeter, "JoulePerCubicMeter", "JoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (EnergyDensityUnit.KilojoulePerCubicMeter, "KilojoulePerCubicMeter", "KilojoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (EnergyDensityUnit.KilowattHourPerCubicMeter, "KilowattHourPerCubicMeter", "KilowattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000) - ); - yield return new (EnergyDensityUnit.MegajoulePerCubicMeter, "MegajoulePerCubicMeter", "MegajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (EnergyDensityUnit.MegawattHourPerCubicMeter, "MegawattHourPerCubicMeter", "MegawattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000000) - ); - yield return new (EnergyDensityUnit.PetajoulePerCubicMeter, "PetajoulePerCubicMeter", "PetajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Femtometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000000) - ); - yield return new (EnergyDensityUnit.PetawattHourPerCubicMeter, "PetawattHourPerCubicMeter", "PetawattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000000000) - ); - yield return new (EnergyDensityUnit.TerajoulePerCubicMeter, "TerajoulePerCubicMeter", "TerajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Picometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (EnergyDensityUnit.TerawattHourPerCubicMeter, "TerawattHourPerCubicMeter", "TerawattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000000) - ); - yield return new (EnergyDensityUnit.WattHourPerCubicMeter, "WattHourPerCubicMeter", "WattHoursPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600) - ); + yield return new (EnergyDensityUnit.GigajoulePerCubicMeter, EnergyDensityUnits.GigajoulePerCubicMeter); + yield return new (EnergyDensityUnit.GigawattHourPerCubicMeter, EnergyDensityUnits.GigawattHourPerCubicMeter); + yield return new (EnergyDensityUnit.JoulePerCubicMeter, EnergyDensityUnits.JoulePerCubicMeter); + yield return new (EnergyDensityUnit.KilojoulePerCubicMeter, EnergyDensityUnits.KilojoulePerCubicMeter); + yield return new (EnergyDensityUnit.KilowattHourPerCubicMeter, EnergyDensityUnits.KilowattHourPerCubicMeter); + yield return new (EnergyDensityUnit.MegajoulePerCubicMeter, EnergyDensityUnits.MegajoulePerCubicMeter); + yield return new (EnergyDensityUnit.MegawattHourPerCubicMeter, EnergyDensityUnits.MegawattHourPerCubicMeter); + yield return new (EnergyDensityUnit.PetajoulePerCubicMeter, EnergyDensityUnits.PetajoulePerCubicMeter); + yield return new (EnergyDensityUnit.PetawattHourPerCubicMeter, EnergyDensityUnits.PetawattHourPerCubicMeter); + yield return new (EnergyDensityUnit.TerajoulePerCubicMeter, EnergyDensityUnits.TerajoulePerCubicMeter); + yield return new (EnergyDensityUnit.TerawattHourPerCubicMeter, EnergyDensityUnits.TerawattHourPerCubicMeter); + yield return new (EnergyDensityUnit.WattHourPerCubicMeter, EnergyDensityUnits.WattHourPerCubicMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs index 94a156cf60..b037f276f7 100644 --- a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs @@ -119,25 +119,13 @@ public static EntropyInfo CreateDefault(FuncAn of representing the default unit mappings for Entropy. public static IEnumerable> GetDefaultMappings() { - yield return new (EntropyUnit.CaloriePerKelvin, "CaloriePerKelvin", "CaloriesPerKelvin", BaseUnits.Undefined, - new QuantityValue(125, 523) - ); - yield return new (EntropyUnit.JoulePerDegreeCelsius, "JoulePerDegreeCelsius", "JoulesPerDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (EntropyUnit.JoulePerKelvin, "JoulePerKelvin", "JoulesPerKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); - yield return new (EntropyUnit.KilocaloriePerKelvin, "KilocaloriePerKelvin", "KilocaloriesPerKelvin", BaseUnits.Undefined, - new QuantityValue(1, 4184) - ); - yield return new (EntropyUnit.KilojoulePerDegreeCelsius, "KilojoulePerDegreeCelsius", "KilojoulesPerDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (EntropyUnit.KilojoulePerKelvin, "KilojoulePerKelvin", "KilojoulesPerKelvin", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (EntropyUnit.MegajoulePerKelvin, "MegajoulePerKelvin", "MegajoulesPerKelvin", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000000) - ); + yield return new (EntropyUnit.CaloriePerKelvin, EntropyUnits.CaloriePerKelvin); + yield return new (EntropyUnit.JoulePerDegreeCelsius, EntropyUnits.JoulePerDegreeCelsius); + yield return new (EntropyUnit.JoulePerKelvin, EntropyUnits.JoulePerKelvin); + yield return new (EntropyUnit.KilocaloriePerKelvin, EntropyUnits.KilocaloriePerKelvin); + yield return new (EntropyUnit.KilojoulePerDegreeCelsius, EntropyUnits.KilojoulePerDegreeCelsius); + yield return new (EntropyUnit.KilojoulePerKelvin, EntropyUnits.KilojoulePerKelvin); + yield return new (EntropyUnit.MegajoulePerKelvin, EntropyUnits.MegajoulePerKelvin); } } diff --git a/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs index ba5ba97aea..e54cdf1561 100644 --- a/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs @@ -120,61 +120,25 @@ public static FluidResistanceInfo CreateDefault(FuncAn of representing the default unit mappings for FluidResistance. public static IEnumerable> GetDefaultMappings() { - yield return new (FluidResistanceUnit.DyneSecondPerCentimeterToTheFifth, "DyneSecondPerCentimeterToTheFifth", "DyneSecondsPerCentimeterToTheFifth", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (FluidResistanceUnit.MegapascalSecondPerCubicMeter, "MegapascalSecondPerCubicMeter", "MegapascalSecondsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000) - ); - yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicCentimeter, "MillimeterMercuryMinutePerCubicCentimeter", "MillimeterMercuryMinutesPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 7999342080) - ); - yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicMeter, "MillimeterMercuryMinutePerCubicMeter", "MillimeterMercuryMinutesPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(3125, 24997944) - ); - yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerLiter, "MillimeterMercuryMinutePerLiter", "MillimeterMercuryMinutesPerLiter", BaseUnits.Undefined, - new QuantityValue(25, 199983552) - ); - yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerMilliliter, "MillimeterMercuryMinutePerMilliliter", "MillimeterMercuryMinutesPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 7999342080) - ); - yield return new (FluidResistanceUnit.MillimeterMercurySecondPerCubicCentimeter, "MillimeterMercurySecondPerCubicCentimeter", "MillimeterMercurySecondsPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 133322368) - ); - yield return new (FluidResistanceUnit.MillimeterMercurySecondPerCubicMeter, "MillimeterMercurySecondPerCubicMeter", "MillimeterMercurySecondsPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(15625, 2083162) - ); - yield return new (FluidResistanceUnit.MillimeterMercurySecondPerLiter, "MillimeterMercurySecondPerLiter", "MillimeterMercurySecondsPerLiter", BaseUnits.Undefined, - new QuantityValue(125, 16665296) - ); - yield return new (FluidResistanceUnit.MillimeterMercurySecondPerMilliliter, "MillimeterMercurySecondPerMilliliter", "MillimeterMercurySecondsPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 133322368) - ); - yield return new (FluidResistanceUnit.PascalMinutePerCubicCentimeter, "PascalMinutePerCubicCentimeter", "PascalMinutesPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 60000000) - ); - yield return new (FluidResistanceUnit.PascalMinutePerCubicMeter, "PascalMinutePerCubicMeter", "PascalMinutesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(1, 60) - ); - yield return new (FluidResistanceUnit.PascalMinutePerLiter, "PascalMinutePerLiter", "PascalMinutesPerLiter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(1, 60000) - ); - yield return new (FluidResistanceUnit.PascalMinutePerMilliliter, "PascalMinutePerMilliliter", "PascalMinutesPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 60000000) - ); - yield return new (FluidResistanceUnit.PascalSecondPerCubicCentimeter, "PascalSecondPerCubicCentimeter", "PascalSecondsPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (FluidResistanceUnit.PascalSecondPerCubicMeter, "PascalSecondPerCubicMeter", "PascalSecondsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (FluidResistanceUnit.PascalSecondPerLiter, "PascalSecondPerLiter", "PascalSecondsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (FluidResistanceUnit.PascalSecondPerMilliliter, "PascalSecondPerMilliliter", "PascalSecondsPerMilliliter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (FluidResistanceUnit.WoodUnit, "WoodUnit", "WoodUnits", BaseUnits.Undefined, - new QuantityValue(25, 199983552) - ); + yield return new (FluidResistanceUnit.DyneSecondPerCentimeterToTheFifth, FluidResistanceUnits.DyneSecondPerCentimeterToTheFifth); + yield return new (FluidResistanceUnit.MegapascalSecondPerCubicMeter, FluidResistanceUnits.MegapascalSecondPerCubicMeter); + yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicCentimeter, FluidResistanceUnits.MillimeterMercuryMinutePerCubicCentimeter); + yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicMeter, FluidResistanceUnits.MillimeterMercuryMinutePerCubicMeter); + yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerLiter, FluidResistanceUnits.MillimeterMercuryMinutePerLiter); + yield return new (FluidResistanceUnit.MillimeterMercuryMinutePerMilliliter, FluidResistanceUnits.MillimeterMercuryMinutePerMilliliter); + yield return new (FluidResistanceUnit.MillimeterMercurySecondPerCubicCentimeter, FluidResistanceUnits.MillimeterMercurySecondPerCubicCentimeter); + yield return new (FluidResistanceUnit.MillimeterMercurySecondPerCubicMeter, FluidResistanceUnits.MillimeterMercurySecondPerCubicMeter); + yield return new (FluidResistanceUnit.MillimeterMercurySecondPerLiter, FluidResistanceUnits.MillimeterMercurySecondPerLiter); + yield return new (FluidResistanceUnit.MillimeterMercurySecondPerMilliliter, FluidResistanceUnits.MillimeterMercurySecondPerMilliliter); + yield return new (FluidResistanceUnit.PascalMinutePerCubicCentimeter, FluidResistanceUnits.PascalMinutePerCubicCentimeter); + yield return new (FluidResistanceUnit.PascalMinutePerCubicMeter, FluidResistanceUnits.PascalMinutePerCubicMeter); + yield return new (FluidResistanceUnit.PascalMinutePerLiter, FluidResistanceUnits.PascalMinutePerLiter); + yield return new (FluidResistanceUnit.PascalMinutePerMilliliter, FluidResistanceUnits.PascalMinutePerMilliliter); + yield return new (FluidResistanceUnit.PascalSecondPerCubicCentimeter, FluidResistanceUnits.PascalSecondPerCubicCentimeter); + yield return new (FluidResistanceUnit.PascalSecondPerCubicMeter, FluidResistanceUnits.PascalSecondPerCubicMeter); + yield return new (FluidResistanceUnit.PascalSecondPerLiter, FluidResistanceUnits.PascalSecondPerLiter); + yield return new (FluidResistanceUnit.PascalSecondPerMilliliter, FluidResistanceUnits.PascalSecondPerMilliliter); + yield return new (FluidResistanceUnit.WoodUnit, FluidResistanceUnits.WoodUnit); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Force.g.cs b/UnitsNet/GeneratedCode/Quantities/Force.g.cs index 4ca9de716c..a9275fdc48 100644 --- a/UnitsNet/GeneratedCode/Quantities/Force.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Force.g.cs @@ -131,52 +131,22 @@ public static ForceInfo CreateDefault(Func /// An of representing the default unit mappings for Force. public static IEnumerable> GetDefaultMappings() { - yield return new (ForceUnit.Decanewton, "Decanewton", "Decanewtons", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (ForceUnit.Dyn, "Dyn", "Dyne", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Second), - 100000 - ); - yield return new (ForceUnit.GramForce, "GramForce", "GramsForce", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (ForceUnit.KilogramForce, "KilogramForce", "KilogramsForce", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (ForceUnit.Kilonewton, "Kilonewton", "Kilonewtons", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (ForceUnit.Kilopond, "Kilopond", "Kiloponds", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (ForceUnit.KilopoundForce, "KilopoundForce", "KilopoundsForce", BaseUnits.Undefined, - new QuantityValue(2000000000, 8896443230521) - ); - yield return new (ForceUnit.Meganewton, "Meganewton", "Meganewtons", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (ForceUnit.Micronewton, "Micronewton", "Micronewtons", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ForceUnit.Millinewton, "Millinewton", "Millinewtons", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000 - ); - yield return new (ForceUnit.Newton, "Newton", "Newtons", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (ForceUnit.OunceForce, "OunceForce", "OunceForce", BaseUnits.Undefined, - new QuantityValue(32000000000000, 8896443230521) - ); - yield return new (ForceUnit.Poundal, "Poundal", "Poundals", BaseUnits.Undefined, - new QuantityValue(125000000000, 17281869297) - ); - yield return new (ForceUnit.PoundForce, "PoundForce", "PoundsForce", BaseUnits.Undefined, - new QuantityValue(2000000000000, 8896443230521) - ); - yield return new (ForceUnit.ShortTonForce, "ShortTonForce", "ShortTonsForce", BaseUnits.Undefined, - new QuantityValue(1000000000, 8896443230521) - ); - yield return new (ForceUnit.TonneForce, "TonneForce", "TonnesForce", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); + yield return new (ForceUnit.Decanewton, ForceUnits.Decanewton); + yield return new (ForceUnit.Dyn, ForceUnits.Dyn); + yield return new (ForceUnit.GramForce, ForceUnits.GramForce); + yield return new (ForceUnit.KilogramForce, ForceUnits.KilogramForce); + yield return new (ForceUnit.Kilonewton, ForceUnits.Kilonewton); + yield return new (ForceUnit.Kilopond, ForceUnits.Kilopond); + yield return new (ForceUnit.KilopoundForce, ForceUnits.KilopoundForce); + yield return new (ForceUnit.Meganewton, ForceUnits.Meganewton); + yield return new (ForceUnit.Micronewton, ForceUnits.Micronewton); + yield return new (ForceUnit.Millinewton, ForceUnits.Millinewton); + yield return new (ForceUnit.Newton, ForceUnits.Newton); + yield return new (ForceUnit.OunceForce, ForceUnits.OunceForce); + yield return new (ForceUnit.Poundal, ForceUnits.Poundal); + yield return new (ForceUnit.PoundForce, ForceUnits.PoundForce); + yield return new (ForceUnit.ShortTonForce, ForceUnits.ShortTonForce); + yield return new (ForceUnit.TonneForce, ForceUnits.TonneForce); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs index 3268eb43f3..16ec638843 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs @@ -117,49 +117,21 @@ public static ForceChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for ForceChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (ForceChangeRateUnit.CentinewtonPerSecond, "CentinewtonPerSecond", "CentinewtonsPerSecond", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 100 - ); - yield return new (ForceChangeRateUnit.DecanewtonPerMinute, "DecanewtonPerMinute", "DecanewtonsPerMinute", BaseUnits.Undefined, - 6 - ); - yield return new (ForceChangeRateUnit.DecanewtonPerSecond, "DecanewtonPerSecond", "DecanewtonsPerSecond", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (ForceChangeRateUnit.DecinewtonPerSecond, "DecinewtonPerSecond", "DecinewtonsPerSecond", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 10 - ); - yield return new (ForceChangeRateUnit.KilonewtonPerMinute, "KilonewtonPerMinute", "KilonewtonsPerMinute", BaseUnits.Undefined, - new QuantityValue(3, 50) - ); - yield return new (ForceChangeRateUnit.KilonewtonPerSecond, "KilonewtonPerSecond", "KilonewtonsPerSecond", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (ForceChangeRateUnit.KilopoundForcePerMinute, "KilopoundForcePerMinute", "KilopoundsForcePerMinute", BaseUnits.Undefined, - new QuantityValue(120000000000, 8896443230521) - ); - yield return new (ForceChangeRateUnit.KilopoundForcePerSecond, "KilopoundForcePerSecond", "KilopoundsForcePerSecond", BaseUnits.Undefined, - new QuantityValue(2000000000, 8896443230521) - ); - yield return new (ForceChangeRateUnit.MicronewtonPerSecond, "MicronewtonPerSecond", "MicronewtonsPerSecond", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ForceChangeRateUnit.MillinewtonPerSecond, "MillinewtonPerSecond", "MillinewtonsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000 - ); - yield return new (ForceChangeRateUnit.NanonewtonPerSecond, "NanonewtonPerSecond", "NanonewtonsPerSecond", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (ForceChangeRateUnit.NewtonPerMinute, "NewtonPerMinute", "NewtonsPerMinute", BaseUnits.Undefined, - 60 - ); - yield return new (ForceChangeRateUnit.NewtonPerSecond, "NewtonPerSecond", "NewtonsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (ForceChangeRateUnit.PoundForcePerMinute, "PoundForcePerMinute", "PoundsForcePerMinute", BaseUnits.Undefined, - new QuantityValue(120000000000000, 8896443230521) - ); - yield return new (ForceChangeRateUnit.PoundForcePerSecond, "PoundForcePerSecond", "PoundsForcePerSecond", BaseUnits.Undefined, - new QuantityValue(2000000000000, 8896443230521) - ); + yield return new (ForceChangeRateUnit.CentinewtonPerSecond, ForceChangeRateUnits.CentinewtonPerSecond); + yield return new (ForceChangeRateUnit.DecanewtonPerMinute, ForceChangeRateUnits.DecanewtonPerMinute); + yield return new (ForceChangeRateUnit.DecanewtonPerSecond, ForceChangeRateUnits.DecanewtonPerSecond); + yield return new (ForceChangeRateUnit.DecinewtonPerSecond, ForceChangeRateUnits.DecinewtonPerSecond); + yield return new (ForceChangeRateUnit.KilonewtonPerMinute, ForceChangeRateUnits.KilonewtonPerMinute); + yield return new (ForceChangeRateUnit.KilonewtonPerSecond, ForceChangeRateUnits.KilonewtonPerSecond); + yield return new (ForceChangeRateUnit.KilopoundForcePerMinute, ForceChangeRateUnits.KilopoundForcePerMinute); + yield return new (ForceChangeRateUnit.KilopoundForcePerSecond, ForceChangeRateUnits.KilopoundForcePerSecond); + yield return new (ForceChangeRateUnit.MicronewtonPerSecond, ForceChangeRateUnits.MicronewtonPerSecond); + yield return new (ForceChangeRateUnit.MillinewtonPerSecond, ForceChangeRateUnits.MillinewtonPerSecond); + yield return new (ForceChangeRateUnit.NanonewtonPerSecond, ForceChangeRateUnits.NanonewtonPerSecond); + yield return new (ForceChangeRateUnit.NewtonPerMinute, ForceChangeRateUnits.NewtonPerMinute); + yield return new (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnits.NewtonPerSecond); + yield return new (ForceChangeRateUnit.PoundForcePerMinute, ForceChangeRateUnits.PoundForcePerMinute); + yield return new (ForceChangeRateUnit.PoundForcePerSecond, ForceChangeRateUnits.PoundForcePerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs index a04ef47dbb..b331e80958 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs @@ -127,118 +127,44 @@ public static ForcePerLengthInfo CreateDefault(FuncAn of representing the default unit mappings for ForcePerLength. public static IEnumerable> GetDefaultMappings() { - yield return new (ForcePerLengthUnit.CentinewtonPerCentimeter, "CentinewtonPerCentimeter", "CentinewtonsPerCentimeter", BaseUnits.Undefined, - 1 - ); - yield return new (ForcePerLengthUnit.CentinewtonPerMeter, "CentinewtonPerMeter", "CentinewtonsPerMeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), - 100 - ); - yield return new (ForcePerLengthUnit.CentinewtonPerMillimeter, "CentinewtonPerMillimeter", "CentinewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (ForcePerLengthUnit.DecanewtonPerCentimeter, "DecanewtonPerCentimeter", "DecanewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ForcePerLengthUnit.DecanewtonPerMeter, "DecanewtonPerMeter", "DecanewtonsPerMeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (ForcePerLengthUnit.DecanewtonPerMillimeter, "DecanewtonPerMillimeter", "DecanewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (ForcePerLengthUnit.DecinewtonPerCentimeter, "DecinewtonPerCentimeter", "DecinewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (ForcePerLengthUnit.DecinewtonPerMeter, "DecinewtonPerMeter", "DecinewtonsPerMeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (ForcePerLengthUnit.DecinewtonPerMillimeter, "DecinewtonPerMillimeter", "DecinewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (ForcePerLengthUnit.KilogramForcePerCentimeter, "KilogramForcePerCentimeter", "KilogramsForcePerCentimeter", BaseUnits.Undefined, - new QuantityValue(200, 196133) - ); - yield return new (ForcePerLengthUnit.KilogramForcePerMeter, "KilogramForcePerMeter", "KilogramsForcePerMeter", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (ForcePerLengthUnit.KilogramForcePerMillimeter, "KilogramForcePerMillimeter", "KilogramsForcePerMillimeter", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (ForcePerLengthUnit.KilonewtonPerCentimeter, "KilonewtonPerCentimeter", "KilonewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (ForcePerLengthUnit.KilonewtonPerMeter, "KilonewtonPerMeter", "KilonewtonsPerMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ForcePerLengthUnit.KilonewtonPerMillimeter, "KilonewtonPerMillimeter", "KilonewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (ForcePerLengthUnit.KilopoundForcePerFoot, "KilopoundForcePerFoot", "KilopoundsForcePerFoot", BaseUnits.Undefined, - new QuantityValue(609600000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.KilopoundForcePerInch, "KilopoundForcePerInch", "KilopoundsForcePerInch", BaseUnits.Undefined, - new QuantityValue(50800000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.MeganewtonPerCentimeter, "MeganewtonPerCentimeter", "MeganewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000000) - ); - yield return new (ForcePerLengthUnit.MeganewtonPerMeter, "MeganewtonPerMeter", "MeganewtonsPerMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000) - ); - yield return new (ForcePerLengthUnit.MeganewtonPerMillimeter, "MeganewtonPerMillimeter", "MeganewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (ForcePerLengthUnit.MicronewtonPerCentimeter, "MicronewtonPerCentimeter", "MicronewtonsPerCentimeter", BaseUnits.Undefined, - 10000 - ); - yield return new (ForcePerLengthUnit.MicronewtonPerMeter, "MicronewtonPerMeter", "MicronewtonsPerMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ForcePerLengthUnit.MicronewtonPerMillimeter, "MicronewtonPerMillimeter", "MicronewtonsPerMillimeter", BaseUnits.Undefined, - 1000 - ); - yield return new (ForcePerLengthUnit.MillinewtonPerCentimeter, "MillinewtonPerCentimeter", "MillinewtonsPerCentimeter", BaseUnits.Undefined, - 10 - ); - yield return new (ForcePerLengthUnit.MillinewtonPerMeter, "MillinewtonPerMeter", "MillinewtonsPerMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (ForcePerLengthUnit.MillinewtonPerMillimeter, "MillinewtonPerMillimeter", "MillinewtonsPerMillimeter", BaseUnits.Undefined, - 1 - ); - yield return new (ForcePerLengthUnit.NanonewtonPerCentimeter, "NanonewtonPerCentimeter", "NanonewtonsPerCentimeter", BaseUnits.Undefined, - 10000000 - ); - yield return new (ForcePerLengthUnit.NanonewtonPerMeter, "NanonewtonPerMeter", "NanonewtonsPerMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (ForcePerLengthUnit.NanonewtonPerMillimeter, "NanonewtonPerMillimeter", "NanonewtonsPerMillimeter", BaseUnits.Undefined, - 1000000 - ); - yield return new (ForcePerLengthUnit.NewtonPerCentimeter, "NewtonPerCentimeter", "NewtonsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (ForcePerLengthUnit.NewtonPerMeter, "NewtonPerMeter", "NewtonsPerMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (ForcePerLengthUnit.NewtonPerMillimeter, "NewtonPerMillimeter", "NewtonsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (ForcePerLengthUnit.PoundForcePerFoot, "PoundForcePerFoot", "PoundsForcePerFoot", BaseUnits.Undefined, - new QuantityValue(609600000000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.PoundForcePerInch, "PoundForcePerInch", "PoundsForcePerInch", BaseUnits.Undefined, - new QuantityValue(50800000000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.PoundForcePerYard, "PoundForcePerYard", "PoundsForcePerYard", BaseUnits.Undefined, - new QuantityValue(1828800000000, 8896443230521) - ); - yield return new (ForcePerLengthUnit.TonneForcePerCentimeter, "TonneForcePerCentimeter", "TonnesForcePerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 980665) - ); - yield return new (ForcePerLengthUnit.TonneForcePerMeter, "TonneForcePerMeter", "TonnesForcePerMeter", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (ForcePerLengthUnit.TonneForcePerMillimeter, "TonneForcePerMillimeter", "TonnesForcePerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650) - ); + yield return new (ForcePerLengthUnit.CentinewtonPerCentimeter, ForcePerLengthUnits.CentinewtonPerCentimeter); + yield return new (ForcePerLengthUnit.CentinewtonPerMeter, ForcePerLengthUnits.CentinewtonPerMeter); + yield return new (ForcePerLengthUnit.CentinewtonPerMillimeter, ForcePerLengthUnits.CentinewtonPerMillimeter); + yield return new (ForcePerLengthUnit.DecanewtonPerCentimeter, ForcePerLengthUnits.DecanewtonPerCentimeter); + yield return new (ForcePerLengthUnit.DecanewtonPerMeter, ForcePerLengthUnits.DecanewtonPerMeter); + yield return new (ForcePerLengthUnit.DecanewtonPerMillimeter, ForcePerLengthUnits.DecanewtonPerMillimeter); + yield return new (ForcePerLengthUnit.DecinewtonPerCentimeter, ForcePerLengthUnits.DecinewtonPerCentimeter); + yield return new (ForcePerLengthUnit.DecinewtonPerMeter, ForcePerLengthUnits.DecinewtonPerMeter); + yield return new (ForcePerLengthUnit.DecinewtonPerMillimeter, ForcePerLengthUnits.DecinewtonPerMillimeter); + yield return new (ForcePerLengthUnit.KilogramForcePerCentimeter, ForcePerLengthUnits.KilogramForcePerCentimeter); + yield return new (ForcePerLengthUnit.KilogramForcePerMeter, ForcePerLengthUnits.KilogramForcePerMeter); + yield return new (ForcePerLengthUnit.KilogramForcePerMillimeter, ForcePerLengthUnits.KilogramForcePerMillimeter); + yield return new (ForcePerLengthUnit.KilonewtonPerCentimeter, ForcePerLengthUnits.KilonewtonPerCentimeter); + yield return new (ForcePerLengthUnit.KilonewtonPerMeter, ForcePerLengthUnits.KilonewtonPerMeter); + yield return new (ForcePerLengthUnit.KilonewtonPerMillimeter, ForcePerLengthUnits.KilonewtonPerMillimeter); + yield return new (ForcePerLengthUnit.KilopoundForcePerFoot, ForcePerLengthUnits.KilopoundForcePerFoot); + yield return new (ForcePerLengthUnit.KilopoundForcePerInch, ForcePerLengthUnits.KilopoundForcePerInch); + yield return new (ForcePerLengthUnit.MeganewtonPerCentimeter, ForcePerLengthUnits.MeganewtonPerCentimeter); + yield return new (ForcePerLengthUnit.MeganewtonPerMeter, ForcePerLengthUnits.MeganewtonPerMeter); + yield return new (ForcePerLengthUnit.MeganewtonPerMillimeter, ForcePerLengthUnits.MeganewtonPerMillimeter); + yield return new (ForcePerLengthUnit.MicronewtonPerCentimeter, ForcePerLengthUnits.MicronewtonPerCentimeter); + yield return new (ForcePerLengthUnit.MicronewtonPerMeter, ForcePerLengthUnits.MicronewtonPerMeter); + yield return new (ForcePerLengthUnit.MicronewtonPerMillimeter, ForcePerLengthUnits.MicronewtonPerMillimeter); + yield return new (ForcePerLengthUnit.MillinewtonPerCentimeter, ForcePerLengthUnits.MillinewtonPerCentimeter); + yield return new (ForcePerLengthUnit.MillinewtonPerMeter, ForcePerLengthUnits.MillinewtonPerMeter); + yield return new (ForcePerLengthUnit.MillinewtonPerMillimeter, ForcePerLengthUnits.MillinewtonPerMillimeter); + yield return new (ForcePerLengthUnit.NanonewtonPerCentimeter, ForcePerLengthUnits.NanonewtonPerCentimeter); + yield return new (ForcePerLengthUnit.NanonewtonPerMeter, ForcePerLengthUnits.NanonewtonPerMeter); + yield return new (ForcePerLengthUnit.NanonewtonPerMillimeter, ForcePerLengthUnits.NanonewtonPerMillimeter); + yield return new (ForcePerLengthUnit.NewtonPerCentimeter, ForcePerLengthUnits.NewtonPerCentimeter); + yield return new (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnits.NewtonPerMeter); + yield return new (ForcePerLengthUnit.NewtonPerMillimeter, ForcePerLengthUnits.NewtonPerMillimeter); + yield return new (ForcePerLengthUnit.PoundForcePerFoot, ForcePerLengthUnits.PoundForcePerFoot); + yield return new (ForcePerLengthUnit.PoundForcePerInch, ForcePerLengthUnits.PoundForcePerInch); + yield return new (ForcePerLengthUnit.PoundForcePerYard, ForcePerLengthUnits.PoundForcePerYard); + yield return new (ForcePerLengthUnit.TonneForcePerCentimeter, ForcePerLengthUnits.TonneForcePerCentimeter); + yield return new (ForcePerLengthUnit.TonneForcePerMeter, ForcePerLengthUnits.TonneForcePerMeter); + yield return new (ForcePerLengthUnit.TonneForcePerMillimeter, ForcePerLengthUnits.TonneForcePerMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs index aeae605f14..528b019299 100644 --- a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs @@ -118,40 +118,18 @@ public static FrequencyInfo CreateDefault(FuncAn of representing the default unit mappings for Frequency. public static IEnumerable> GetDefaultMappings() { - yield return new (FrequencyUnit.BeatPerMinute, "BeatPerMinute", "BeatsPerMinute", new BaseUnits(time: DurationUnit.Minute), - 60 - ); - yield return new (FrequencyUnit.CyclePerHour, "CyclePerHour", "CyclesPerHour", new BaseUnits(time: DurationUnit.Hour), - 3600 - ); - yield return new (FrequencyUnit.CyclePerMinute, "CyclePerMinute", "CyclesPerMinute", new BaseUnits(time: DurationUnit.Minute), - 60 - ); - yield return new (FrequencyUnit.Gigahertz, "Gigahertz", "Gigahertz", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, 1000000000) - ); - yield return new (FrequencyUnit.Hertz, "Hertz", "Hertz", new BaseUnits(time: DurationUnit.Second)); - yield return new (FrequencyUnit.Kilohertz, "Kilohertz", "Kilohertz", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 1000) - ); - yield return new (FrequencyUnit.Megahertz, "Megahertz", "Megahertz", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000) - ); - yield return new (FrequencyUnit.Microhertz, "Microhertz", "Microhertz", BaseUnits.Undefined, - 1000000 - ); - yield return new (FrequencyUnit.Millihertz, "Millihertz", "Millihertz", BaseUnits.Undefined, - 1000 - ); - yield return new (FrequencyUnit.PerSecond, "PerSecond", "PerSecond", new BaseUnits(time: DurationUnit.Second), - 1 - ); - yield return new (FrequencyUnit.RadianPerSecond, "RadianPerSecond", "RadiansPerSecond", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 500000000000000) - ); - yield return new (FrequencyUnit.Terahertz, "Terahertz", "Terahertz", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, 1000000000000) - ); + yield return new (FrequencyUnit.BeatPerMinute, FrequencyUnits.BeatPerMinute); + yield return new (FrequencyUnit.CyclePerHour, FrequencyUnits.CyclePerHour); + yield return new (FrequencyUnit.CyclePerMinute, FrequencyUnits.CyclePerMinute); + yield return new (FrequencyUnit.Gigahertz, FrequencyUnits.Gigahertz); + yield return new (FrequencyUnit.Hertz, FrequencyUnits.Hertz); + yield return new (FrequencyUnit.Kilohertz, FrequencyUnits.Kilohertz); + yield return new (FrequencyUnit.Megahertz, FrequencyUnits.Megahertz); + yield return new (FrequencyUnit.Microhertz, FrequencyUnits.Microhertz); + yield return new (FrequencyUnit.Millihertz, FrequencyUnits.Millihertz); + yield return new (FrequencyUnit.PerSecond, FrequencyUnits.PerSecond); + yield return new (FrequencyUnit.RadianPerSecond, FrequencyUnits.RadianPerSecond); + yield return new (FrequencyUnit.Terahertz, FrequencyUnits.Terahertz); } } diff --git a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs index 3882818af1..d4ceb310c1 100644 --- a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs @@ -119,17 +119,10 @@ public static FuelEfficiencyInfo CreateDefault(FuncAn of representing the default unit mappings for FuelEfficiency. public static IEnumerable> GetDefaultMappings() { - yield return new (FuelEfficiencyUnit.KilometerPerLiter, "KilometerPerLiter", "KilometersPerLiter", BaseUnits.Undefined); - yield return new (FuelEfficiencyUnit.LiterPer100Kilometers, "LiterPer100Kilometers", "LitersPer100Kilometers", BaseUnits.Undefined, - new ConversionExpression(coefficient: 100, exponent: -1), - new ConversionExpression(coefficient: 100, exponent: -1) - ); - yield return new (FuelEfficiencyUnit.MilePerUkGallon, "MilePerUkGallon", "MilesPerUkGallon", BaseUnits.Undefined, - new QuantityValue(2273045, 804672) - ); - yield return new (FuelEfficiencyUnit.MilePerUsGallon, "MilePerUsGallon", "MilesPerUsGallon", BaseUnits.Undefined, - new QuantityValue(112903, 48000) - ); + yield return new (FuelEfficiencyUnit.KilometerPerLiter, FuelEfficiencyUnits.KilometerPerLiter); + yield return new (FuelEfficiencyUnit.LiterPer100Kilometers, FuelEfficiencyUnits.LiterPer100Kilometers); + yield return new (FuelEfficiencyUnit.MilePerUkGallon, FuelEfficiencyUnits.MilePerUkGallon); + yield return new (FuelEfficiencyUnit.MilePerUsGallon, FuelEfficiencyUnits.MilePerUsGallon); } } diff --git a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs index ada0ae8a40..733650c5de 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs @@ -120,79 +120,31 @@ public static HeatFluxInfo CreateDefault(FuncAn of representing the default unit mappings for HeatFlux. public static IEnumerable> GetDefaultMappings() { - yield return new (HeatFluxUnit.BtuPerHourSquareFoot, "BtuPerHourSquareFoot", "BtusPerHourSquareFoot", BaseUnits.Undefined, - new QuantityValue(16722547200, 52752792631) - ); - yield return new (HeatFluxUnit.BtuPerMinuteSquareFoot, "BtuPerMinuteSquareFoot", "BtusPerMinuteSquareFoot", BaseUnits.Undefined, - new QuantityValue(278709120, 52752792631) - ); - yield return new (HeatFluxUnit.BtuPerSecondSquareFoot, "BtuPerSecondSquareFoot", "BtusPerSecondSquareFoot", BaseUnits.Undefined, - new QuantityValue(4645152, 52752792631) - ); - yield return new (HeatFluxUnit.BtuPerSecondSquareInch, "BtuPerSecondSquareInch", "BtusPerSecondSquareInch", BaseUnits.Undefined, - new QuantityValue(32258, 52752792631) - ); - yield return new (HeatFluxUnit.CaloriePerSecondSquareCentimeter, "CaloriePerSecondSquareCentimeter", "CaloriesPerSecondSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 41840) - ); - yield return new (HeatFluxUnit.CentiwattPerSquareMeter, "CentiwattPerSquareMeter", "CentiwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), - 100 - ); - yield return new (HeatFluxUnit.CentiwattPerSquareMillimeter, "CentiwattPerSquareMillimeter", "CentiwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), - new QuantityValue(1, 10000) - ); - yield return new (HeatFluxUnit.DeciwattPerSquareMeter, "DeciwattPerSquareMeter", "DeciwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (HeatFluxUnit.DeciwattPerSquareMillimeter, "DeciwattPerSquareMillimeter", "DeciwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), - new QuantityValue(1, 100000) - ); - yield return new (HeatFluxUnit.KilocaloriePerHourSquareMeter, "KilocaloriePerHourSquareMeter", "KilocaloriesPerHourSquareMeter", BaseUnits.Undefined, - new QuantityValue(450, 523) - ); - yield return new (HeatFluxUnit.KilocaloriePerSecondSquareCentimeter, "KilocaloriePerSecondSquareCentimeter", "KilocaloriesPerSecondSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 41840000) - ); - yield return new (HeatFluxUnit.KilowattPerSquareMeter, "KilowattPerSquareMeter", "KilowattsPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (HeatFluxUnit.KilowattPerSquareMillimeter, "KilowattPerSquareMillimeter", "KilowattsPerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (HeatFluxUnit.MicrowattPerSquareMeter, "MicrowattPerSquareMeter", "MicrowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (HeatFluxUnit.MicrowattPerSquareMillimeter, "MicrowattPerSquareMillimeter", "MicrowattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1 - ); - yield return new (HeatFluxUnit.MilliwattPerSquareMeter, "MilliwattPerSquareMeter", "MilliwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (HeatFluxUnit.MilliwattPerSquareMillimeter, "MilliwattPerSquareMillimeter", "MilliwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (HeatFluxUnit.NanowattPerSquareMeter, "NanowattPerSquareMeter", "NanowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (HeatFluxUnit.NanowattPerSquareMillimeter, "NanowattPerSquareMillimeter", "NanowattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000 - ); - yield return new (HeatFluxUnit.PoundForcePerFootSecond, "PoundForcePerFootSecond", "PoundsForcePerFootSecond", BaseUnits.Undefined, - new QuantityValue(609600000000, 8896443230521) - ); - yield return new (HeatFluxUnit.PoundPerSecondCubed, "PoundPerSecondCubed", "PoundsPerSecondCubed", BaseUnits.Undefined, - new QuantityValue(100000000, 45359237) - ); - yield return new (HeatFluxUnit.WattPerSquareFoot, "WattPerSquareFoot", "WattsPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(145161, 1562500) - ); - yield return new (HeatFluxUnit.WattPerSquareInch, "WattPerSquareInch", "WattsPerSquareInch", BaseUnits.Undefined, - new QuantityValue(16129, 25000000) - ); - yield return new (HeatFluxUnit.WattPerSquareMeter, "WattPerSquareMeter", "WattsPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (HeatFluxUnit.WattPerSquareMillimeter, "WattPerSquareMillimeter", "WattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); + yield return new (HeatFluxUnit.BtuPerHourSquareFoot, HeatFluxUnits.BtuPerHourSquareFoot); + yield return new (HeatFluxUnit.BtuPerMinuteSquareFoot, HeatFluxUnits.BtuPerMinuteSquareFoot); + yield return new (HeatFluxUnit.BtuPerSecondSquareFoot, HeatFluxUnits.BtuPerSecondSquareFoot); + yield return new (HeatFluxUnit.BtuPerSecondSquareInch, HeatFluxUnits.BtuPerSecondSquareInch); + yield return new (HeatFluxUnit.CaloriePerSecondSquareCentimeter, HeatFluxUnits.CaloriePerSecondSquareCentimeter); + yield return new (HeatFluxUnit.CentiwattPerSquareMeter, HeatFluxUnits.CentiwattPerSquareMeter); + yield return new (HeatFluxUnit.CentiwattPerSquareMillimeter, HeatFluxUnits.CentiwattPerSquareMillimeter); + yield return new (HeatFluxUnit.DeciwattPerSquareMeter, HeatFluxUnits.DeciwattPerSquareMeter); + yield return new (HeatFluxUnit.DeciwattPerSquareMillimeter, HeatFluxUnits.DeciwattPerSquareMillimeter); + yield return new (HeatFluxUnit.KilocaloriePerHourSquareMeter, HeatFluxUnits.KilocaloriePerHourSquareMeter); + yield return new (HeatFluxUnit.KilocaloriePerSecondSquareCentimeter, HeatFluxUnits.KilocaloriePerSecondSquareCentimeter); + yield return new (HeatFluxUnit.KilowattPerSquareMeter, HeatFluxUnits.KilowattPerSquareMeter); + yield return new (HeatFluxUnit.KilowattPerSquareMillimeter, HeatFluxUnits.KilowattPerSquareMillimeter); + yield return new (HeatFluxUnit.MicrowattPerSquareMeter, HeatFluxUnits.MicrowattPerSquareMeter); + yield return new (HeatFluxUnit.MicrowattPerSquareMillimeter, HeatFluxUnits.MicrowattPerSquareMillimeter); + yield return new (HeatFluxUnit.MilliwattPerSquareMeter, HeatFluxUnits.MilliwattPerSquareMeter); + yield return new (HeatFluxUnit.MilliwattPerSquareMillimeter, HeatFluxUnits.MilliwattPerSquareMillimeter); + yield return new (HeatFluxUnit.NanowattPerSquareMeter, HeatFluxUnits.NanowattPerSquareMeter); + yield return new (HeatFluxUnit.NanowattPerSquareMillimeter, HeatFluxUnits.NanowattPerSquareMillimeter); + yield return new (HeatFluxUnit.PoundForcePerFootSecond, HeatFluxUnits.PoundForcePerFootSecond); + yield return new (HeatFluxUnit.PoundPerSecondCubed, HeatFluxUnits.PoundPerSecondCubed); + yield return new (HeatFluxUnit.WattPerSquareFoot, HeatFluxUnits.WattPerSquareFoot); + yield return new (HeatFluxUnit.WattPerSquareInch, HeatFluxUnits.WattPerSquareInch); + yield return new (HeatFluxUnit.WattPerSquareMeter, HeatFluxUnits.WattPerSquareMeter); + yield return new (HeatFluxUnit.WattPerSquareMillimeter, HeatFluxUnits.WattPerSquareMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs index 51ab61baba..5230b5c618 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs @@ -117,22 +117,12 @@ public static HeatTransferCoefficientInfo CreateDefault(FuncAn of representing the default unit mappings for HeatTransferCoefficient. public static IEnumerable> GetDefaultMappings() { - yield return new (HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit, "BtuPerHourSquareFootDegreeFahrenheit", "BtusPerHourSquareFootDegreeFahrenheit", BaseUnits.Undefined, - new QuantityValue(9290304000, 52752792631) - ); - yield return new (HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit, "BtuPerSecondSquareInchDegreeFahrenheit", "BtusPerSecondSquareInchDegreeFahrenheit", BaseUnits.Undefined, - new QuantityValue(161290, 474775133679) - ); - yield return new (HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius, "CaloriePerHourSquareMeterDegreeCelsius", "CaloriesPerHourSquareMeterDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(450000, 523) - ); - yield return new (HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius, "KilocaloriePerHourSquareMeterDegreeCelsius", "KilocaloriesPerHourSquareMeterDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(450, 523) - ); - yield return new (HeatTransferCoefficientUnit.WattPerSquareMeterCelsius, "WattPerSquareMeterCelsius", "WattsPerSquareMeterCelsius", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (HeatTransferCoefficientUnit.WattPerSquareMeterKelvin, "WattPerSquareMeterKelvin", "WattsPerSquareMeterKelvin", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); + yield return new (HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit, HeatTransferCoefficientUnits.BtuPerHourSquareFootDegreeFahrenheit); + yield return new (HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit, HeatTransferCoefficientUnits.BtuPerSecondSquareInchDegreeFahrenheit); + yield return new (HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius, HeatTransferCoefficientUnits.CaloriePerHourSquareMeterDegreeCelsius); + yield return new (HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius, HeatTransferCoefficientUnits.KilocaloriePerHourSquareMeterDegreeCelsius); + yield return new (HeatTransferCoefficientUnit.WattPerSquareMeterCelsius, HeatTransferCoefficientUnits.WattPerSquareMeterCelsius); + yield return new (HeatTransferCoefficientUnit.WattPerSquareMeterKelvin, HeatTransferCoefficientUnits.WattPerSquareMeterKelvin); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs index ab83faa289..f5ba33ef2c 100644 --- a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs @@ -120,16 +120,10 @@ public static IlluminanceInfo CreateDefault(FuncAn of representing the default unit mappings for Illuminance. public static IEnumerable> GetDefaultMappings() { - yield return new (IlluminanceUnit.Kilolux, "Kilolux", "Kilolux", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (IlluminanceUnit.Lux, "Lux", "Lux", new BaseUnits(length: LengthUnit.Meter, luminousIntensity: LuminousIntensityUnit.Candela)); - yield return new (IlluminanceUnit.Megalux, "Megalux", "Megalux", new BaseUnits(length: LengthUnit.Millimeter, luminousIntensity: LuminousIntensityUnit.Candela), - new QuantityValue(1, 1000000) - ); - yield return new (IlluminanceUnit.Millilux, "Millilux", "Millilux", BaseUnits.Undefined, - 1000 - ); + yield return new (IlluminanceUnit.Kilolux, IlluminanceUnits.Kilolux); + yield return new (IlluminanceUnit.Lux, IlluminanceUnits.Lux); + yield return new (IlluminanceUnit.Megalux, IlluminanceUnits.Megalux); + yield return new (IlluminanceUnit.Millilux, IlluminanceUnits.Millilux); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs b/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs index f45683859e..83af90614e 100644 --- a/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs @@ -118,43 +118,19 @@ public static ImpulseInfo CreateDefault(FuncAn of representing the default unit mappings for Impulse. public static IEnumerable> GetDefaultMappings() { - yield return new (ImpulseUnit.CentinewtonSecond, "CentinewtonSecond", "CentinewtonSeconds", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 100 - ); - yield return new (ImpulseUnit.DecanewtonSecond, "DecanewtonSecond", "DecanewtonSeconds", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (ImpulseUnit.DecinewtonSecond, "DecinewtonSecond", "DecinewtonSeconds", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 10 - ); - yield return new (ImpulseUnit.KilogramMeterPerSecond, "KilogramMeterPerSecond", "KilogramMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1 - ); - yield return new (ImpulseUnit.KilonewtonSecond, "KilonewtonSecond", "KilonewtonSeconds", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (ImpulseUnit.MeganewtonSecond, "MeganewtonSecond", "MeganewtonSeconds", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (ImpulseUnit.MicronewtonSecond, "MicronewtonSecond", "MicronewtonSeconds", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000 - ); - yield return new (ImpulseUnit.MillinewtonSecond, "MillinewtonSecond", "MillinewtonSeconds", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000 - ); - yield return new (ImpulseUnit.NanonewtonSecond, "NanonewtonSecond", "NanonewtonSeconds", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (ImpulseUnit.NewtonSecond, "NewtonSecond", "NewtonSeconds", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (ImpulseUnit.PoundFootPerSecond, "PoundFootPerSecond", "PoundFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound, time: DurationUnit.Second), - new QuantityValue(125000000000, 17281869297) - ); - yield return new (ImpulseUnit.PoundForceSecond, "PoundForceSecond", "PoundForceSeconds", BaseUnits.Undefined, - new QuantityValue(2000000000000, 8896443230521) - ); - yield return new (ImpulseUnit.SlugFootPerSecond, "SlugFootPerSecond", "SlugFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug, time: DurationUnit.Second), - new QuantityValue(2000000000000, 8896443230521) - ); + yield return new (ImpulseUnit.CentinewtonSecond, ImpulseUnits.CentinewtonSecond); + yield return new (ImpulseUnit.DecanewtonSecond, ImpulseUnits.DecanewtonSecond); + yield return new (ImpulseUnit.DecinewtonSecond, ImpulseUnits.DecinewtonSecond); + yield return new (ImpulseUnit.KilogramMeterPerSecond, ImpulseUnits.KilogramMeterPerSecond); + yield return new (ImpulseUnit.KilonewtonSecond, ImpulseUnits.KilonewtonSecond); + yield return new (ImpulseUnit.MeganewtonSecond, ImpulseUnits.MeganewtonSecond); + yield return new (ImpulseUnit.MicronewtonSecond, ImpulseUnits.MicronewtonSecond); + yield return new (ImpulseUnit.MillinewtonSecond, ImpulseUnits.MillinewtonSecond); + yield return new (ImpulseUnit.NanonewtonSecond, ImpulseUnits.NanonewtonSecond); + yield return new (ImpulseUnit.NewtonSecond, ImpulseUnits.NewtonSecond); + yield return new (ImpulseUnit.PoundFootPerSecond, ImpulseUnits.PoundFootPerSecond); + yield return new (ImpulseUnit.PoundForceSecond, ImpulseUnits.PoundForceSecond); + yield return new (ImpulseUnit.SlugFootPerSecond, ImpulseUnits.SlugFootPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Information.g.cs b/UnitsNet/GeneratedCode/Quantities/Information.g.cs index 25c24e18bb..d49d425d2f 100644 --- a/UnitsNet/GeneratedCode/Quantities/Information.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Information.g.cs @@ -119,121 +119,45 @@ public static InformationInfo CreateDefault(FuncAn of representing the default unit mappings for Information. public static IEnumerable> GetDefaultMappings() { - yield return new (InformationUnit.Bit, "Bit", "Bits", BaseUnits.Undefined); - yield return new (InformationUnit.Byte, "Byte", "Bytes", BaseUnits.Undefined, - new QuantityValue(1, 8) - ); - yield return new (InformationUnit.Exabit, "Exabit", "Exabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000000) - ); - yield return new (InformationUnit.Exabyte, "Exabyte", "Exabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000000) - ); - yield return new (InformationUnit.Exaoctet, "Exaoctet", "Exaoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000000) - ); - yield return new (InformationUnit.Exbibit, "Exbibit", "Exbibits", BaseUnits.Undefined, - new QuantityValue(1, 1152921504606846976) - ); - yield return new (InformationUnit.Exbibyte, "Exbibyte", "Exbibytes", BaseUnits.Undefined, - new QuantityValue(1, BigInteger.Pow(2, 63)) - ); - yield return new (InformationUnit.Exbioctet, "Exbioctet", "Exbioctets", BaseUnits.Undefined, - new QuantityValue(1, BigInteger.Pow(2, 63)) - ); - yield return new (InformationUnit.Gibibit, "Gibibit", "Gibibits", BaseUnits.Undefined, - new QuantityValue(1, 1073741824) - ); - yield return new (InformationUnit.Gibibyte, "Gibibyte", "Gibibytes", BaseUnits.Undefined, - new QuantityValue(1, 8589934592) - ); - yield return new (InformationUnit.Gibioctet, "Gibioctet", "Gibioctets", BaseUnits.Undefined, - new QuantityValue(1, 8589934592) - ); - yield return new (InformationUnit.Gigabit, "Gigabit", "Gigabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (InformationUnit.Gigabyte, "Gigabyte", "Gigabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000000) - ); - yield return new (InformationUnit.Gigaoctet, "Gigaoctet", "Gigaoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000000) - ); - yield return new (InformationUnit.Kibibit, "Kibibit", "Kibibits", BaseUnits.Undefined, - new QuantityValue(1, 1024) - ); - yield return new (InformationUnit.Kibibyte, "Kibibyte", "Kibibytes", BaseUnits.Undefined, - new QuantityValue(1, 8192) - ); - yield return new (InformationUnit.Kibioctet, "Kibioctet", "Kibioctets", BaseUnits.Undefined, - new QuantityValue(1, 8192) - ); - yield return new (InformationUnit.Kilobit, "Kilobit", "Kilobits", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (InformationUnit.Kilobyte, "Kilobyte", "Kilobytes", BaseUnits.Undefined, - new QuantityValue(1, 8000) - ); - yield return new (InformationUnit.Kilooctet, "Kilooctet", "Kilooctets", BaseUnits.Undefined, - new QuantityValue(1, 8000) - ); - yield return new (InformationUnit.Mebibit, "Mebibit", "Mebibits", BaseUnits.Undefined, - new QuantityValue(1, 1048576) - ); - yield return new (InformationUnit.Mebibyte, "Mebibyte", "Mebibytes", BaseUnits.Undefined, - new QuantityValue(1, 8388608) - ); - yield return new (InformationUnit.Mebioctet, "Mebioctet", "Mebioctets", BaseUnits.Undefined, - new QuantityValue(1, 8388608) - ); - yield return new (InformationUnit.Megabit, "Megabit", "Megabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (InformationUnit.Megabyte, "Megabyte", "Megabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000) - ); - yield return new (InformationUnit.Megaoctet, "Megaoctet", "Megaoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000) - ); - yield return new (InformationUnit.Octet, "Octet", "Octets", BaseUnits.Undefined, - new QuantityValue(1, 8) - ); - yield return new (InformationUnit.Pebibit, "Pebibit", "Pebibits", BaseUnits.Undefined, - new QuantityValue(1, 1125899906842624) - ); - yield return new (InformationUnit.Pebibyte, "Pebibyte", "Pebibytes", BaseUnits.Undefined, - new QuantityValue(1, 9007199254740992) - ); - yield return new (InformationUnit.Pebioctet, "Pebioctet", "Pebioctets", BaseUnits.Undefined, - new QuantityValue(1, 9007199254740992) - ); - yield return new (InformationUnit.Petabit, "Petabit", "Petabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (InformationUnit.Petabyte, "Petabyte", "Petabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000) - ); - yield return new (InformationUnit.Petaoctet, "Petaoctet", "Petaoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000000) - ); - yield return new (InformationUnit.Tebibit, "Tebibit", "Tebibits", BaseUnits.Undefined, - new QuantityValue(1, 1099511627776) - ); - yield return new (InformationUnit.Tebibyte, "Tebibyte", "Tebibytes", BaseUnits.Undefined, - new QuantityValue(1, 8796093022208) - ); - yield return new (InformationUnit.Tebioctet, "Tebioctet", "Tebioctets", BaseUnits.Undefined, - new QuantityValue(1, 8796093022208) - ); - yield return new (InformationUnit.Terabit, "Terabit", "Terabits", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (InformationUnit.Terabyte, "Terabyte", "Terabytes", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000) - ); - yield return new (InformationUnit.Teraoctet, "Teraoctet", "Teraoctets", BaseUnits.Undefined, - new QuantityValue(1, 8000000000000) - ); + yield return new (InformationUnit.Bit, InformationUnits.Bit); + yield return new (InformationUnit.Byte, InformationUnits.Byte); + yield return new (InformationUnit.Exabit, InformationUnits.Exabit); + yield return new (InformationUnit.Exabyte, InformationUnits.Exabyte); + yield return new (InformationUnit.Exaoctet, InformationUnits.Exaoctet); + yield return new (InformationUnit.Exbibit, InformationUnits.Exbibit); + yield return new (InformationUnit.Exbibyte, InformationUnits.Exbibyte); + yield return new (InformationUnit.Exbioctet, InformationUnits.Exbioctet); + yield return new (InformationUnit.Gibibit, InformationUnits.Gibibit); + yield return new (InformationUnit.Gibibyte, InformationUnits.Gibibyte); + yield return new (InformationUnit.Gibioctet, InformationUnits.Gibioctet); + yield return new (InformationUnit.Gigabit, InformationUnits.Gigabit); + yield return new (InformationUnit.Gigabyte, InformationUnits.Gigabyte); + yield return new (InformationUnit.Gigaoctet, InformationUnits.Gigaoctet); + yield return new (InformationUnit.Kibibit, InformationUnits.Kibibit); + yield return new (InformationUnit.Kibibyte, InformationUnits.Kibibyte); + yield return new (InformationUnit.Kibioctet, InformationUnits.Kibioctet); + yield return new (InformationUnit.Kilobit, InformationUnits.Kilobit); + yield return new (InformationUnit.Kilobyte, InformationUnits.Kilobyte); + yield return new (InformationUnit.Kilooctet, InformationUnits.Kilooctet); + yield return new (InformationUnit.Mebibit, InformationUnits.Mebibit); + yield return new (InformationUnit.Mebibyte, InformationUnits.Mebibyte); + yield return new (InformationUnit.Mebioctet, InformationUnits.Mebioctet); + yield return new (InformationUnit.Megabit, InformationUnits.Megabit); + yield return new (InformationUnit.Megabyte, InformationUnits.Megabyte); + yield return new (InformationUnit.Megaoctet, InformationUnits.Megaoctet); + yield return new (InformationUnit.Octet, InformationUnits.Octet); + yield return new (InformationUnit.Pebibit, InformationUnits.Pebibit); + yield return new (InformationUnit.Pebibyte, InformationUnits.Pebibyte); + yield return new (InformationUnit.Pebioctet, InformationUnits.Pebioctet); + yield return new (InformationUnit.Petabit, InformationUnits.Petabit); + yield return new (InformationUnit.Petabyte, InformationUnits.Petabyte); + yield return new (InformationUnit.Petaoctet, InformationUnits.Petaoctet); + yield return new (InformationUnit.Tebibit, InformationUnits.Tebibit); + yield return new (InformationUnit.Tebibyte, InformationUnits.Tebibyte); + yield return new (InformationUnit.Tebioctet, InformationUnits.Tebioctet); + yield return new (InformationUnit.Terabit, InformationUnits.Terabit); + yield return new (InformationUnit.Terabyte, InformationUnits.Terabyte); + yield return new (InformationUnit.Teraoctet, InformationUnits.Teraoctet); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs index affb6a176b..ee7863dbeb 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs @@ -117,46 +117,20 @@ public static IrradianceInfo CreateDefault(FuncAn of representing the default unit mappings for Irradiance. public static IEnumerable> GetDefaultMappings() { - yield return new (IrradianceUnit.KilowattPerSquareCentimeter, "KilowattPerSquareCentimeter", "KilowattsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000000) - ); - yield return new (IrradianceUnit.KilowattPerSquareMeter, "KilowattPerSquareMeter", "KilowattsPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (IrradianceUnit.MegawattPerSquareCentimeter, "MegawattPerSquareCentimeter", "MegawattsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000000000) - ); - yield return new (IrradianceUnit.MegawattPerSquareMeter, "MegawattPerSquareMeter", "MegawattsPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (IrradianceUnit.MicrowattPerSquareCentimeter, "MicrowattPerSquareCentimeter", "MicrowattsPerSquareCentimeter", BaseUnits.Undefined, - 100 - ); - yield return new (IrradianceUnit.MicrowattPerSquareMeter, "MicrowattPerSquareMeter", "MicrowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (IrradianceUnit.MilliwattPerSquareCentimeter, "MilliwattPerSquareCentimeter", "MilliwattsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (IrradianceUnit.MilliwattPerSquareMeter, "MilliwattPerSquareMeter", "MilliwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (IrradianceUnit.NanowattPerSquareCentimeter, "NanowattPerSquareCentimeter", "NanowattsPerSquareCentimeter", BaseUnits.Undefined, - 100000 - ); - yield return new (IrradianceUnit.NanowattPerSquareMeter, "NanowattPerSquareMeter", "NanowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (IrradianceUnit.PicowattPerSquareCentimeter, "PicowattPerSquareCentimeter", "PicowattsPerSquareCentimeter", BaseUnits.Undefined, - 100000000 - ); - yield return new (IrradianceUnit.PicowattPerSquareMeter, "PicowattPerSquareMeter", "PicowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (IrradianceUnit.WattPerSquareCentimeter, "WattPerSquareCentimeter", "WattsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (IrradianceUnit.WattPerSquareMeter, "WattPerSquareMeter", "WattsPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)); + yield return new (IrradianceUnit.KilowattPerSquareCentimeter, IrradianceUnits.KilowattPerSquareCentimeter); + yield return new (IrradianceUnit.KilowattPerSquareMeter, IrradianceUnits.KilowattPerSquareMeter); + yield return new (IrradianceUnit.MegawattPerSquareCentimeter, IrradianceUnits.MegawattPerSquareCentimeter); + yield return new (IrradianceUnit.MegawattPerSquareMeter, IrradianceUnits.MegawattPerSquareMeter); + yield return new (IrradianceUnit.MicrowattPerSquareCentimeter, IrradianceUnits.MicrowattPerSquareCentimeter); + yield return new (IrradianceUnit.MicrowattPerSquareMeter, IrradianceUnits.MicrowattPerSquareMeter); + yield return new (IrradianceUnit.MilliwattPerSquareCentimeter, IrradianceUnits.MilliwattPerSquareCentimeter); + yield return new (IrradianceUnit.MilliwattPerSquareMeter, IrradianceUnits.MilliwattPerSquareMeter); + yield return new (IrradianceUnit.NanowattPerSquareCentimeter, IrradianceUnits.NanowattPerSquareCentimeter); + yield return new (IrradianceUnit.NanowattPerSquareMeter, IrradianceUnits.NanowattPerSquareMeter); + yield return new (IrradianceUnit.PicowattPerSquareCentimeter, IrradianceUnits.PicowattPerSquareCentimeter); + yield return new (IrradianceUnit.PicowattPerSquareMeter, IrradianceUnits.PicowattPerSquareMeter); + yield return new (IrradianceUnit.WattPerSquareCentimeter, IrradianceUnits.WattPerSquareCentimeter); + yield return new (IrradianceUnit.WattPerSquareMeter, IrradianceUnits.WattPerSquareMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs index 8bde6cb308..3499a26691 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs @@ -121,31 +121,15 @@ public static IrradiationInfo CreateDefault(FuncAn of representing the default unit mappings for Irradiation. public static IEnumerable> GetDefaultMappings() { - yield return new (IrradiationUnit.BtuPerSquareFoot, "BtuPerSquareFoot", "BtusPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(4645152, 52752792631) - ); - yield return new (IrradiationUnit.JoulePerSquareCentimeter, "JoulePerSquareCentimeter", "JoulesPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (IrradiationUnit.JoulePerSquareMeter, "JoulePerSquareMeter", "JoulesPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (IrradiationUnit.JoulePerSquareMillimeter, "JoulePerSquareMillimeter", "JoulesPerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (IrradiationUnit.KilobtuPerSquareFoot, "KilobtuPerSquareFoot", "KilobtusPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(580644, 6594099078875) - ); - yield return new (IrradiationUnit.KilojoulePerSquareMeter, "KilojoulePerSquareMeter", "KilojoulesPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (IrradiationUnit.KilowattHourPerSquareMeter, "KilowattHourPerSquareMeter", "KilowattHoursPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600000) - ); - yield return new (IrradiationUnit.MillijoulePerSquareCentimeter, "MillijoulePerSquareCentimeter", "MillijoulesPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (IrradiationUnit.WattHourPerSquareMeter, "WattHourPerSquareMeter", "WattHoursPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 3600) - ); + yield return new (IrradiationUnit.BtuPerSquareFoot, IrradiationUnits.BtuPerSquareFoot); + yield return new (IrradiationUnit.JoulePerSquareCentimeter, IrradiationUnits.JoulePerSquareCentimeter); + yield return new (IrradiationUnit.JoulePerSquareMeter, IrradiationUnits.JoulePerSquareMeter); + yield return new (IrradiationUnit.JoulePerSquareMillimeter, IrradiationUnits.JoulePerSquareMillimeter); + yield return new (IrradiationUnit.KilobtuPerSquareFoot, IrradiationUnits.KilobtuPerSquareFoot); + yield return new (IrradiationUnit.KilojoulePerSquareMeter, IrradiationUnits.KilojoulePerSquareMeter); + yield return new (IrradiationUnit.KilowattHourPerSquareMeter, IrradiationUnits.KilowattHourPerSquareMeter); + yield return new (IrradiationUnit.MillijoulePerSquareCentimeter, IrradiationUnits.MillijoulePerSquareCentimeter); + yield return new (IrradiationUnit.WattHourPerSquareMeter, IrradiationUnits.WattHourPerSquareMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs b/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs index 29d40527a4..29b90c1e64 100644 --- a/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs @@ -117,37 +117,17 @@ public static JerkInfo CreateDefault(Func>, /// An of representing the default unit mappings for Jerk. public static IEnumerable> GetDefaultMappings() { - yield return new (JerkUnit.CentimeterPerSecondCubed, "CentimeterPerSecondCubed", "CentimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), - 100 - ); - yield return new (JerkUnit.DecimeterPerSecondCubed, "DecimeterPerSecondCubed", "DecimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), - 10 - ); - yield return new (JerkUnit.FootPerSecondCubed, "FootPerSecondCubed", "FeetPerSecondCubed", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1250, 381) - ); - yield return new (JerkUnit.InchPerSecondCubed, "InchPerSecondCubed", "InchesPerSecondCubed", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), - new QuantityValue(5000, 127) - ); - yield return new (JerkUnit.KilometerPerSecondCubed, "KilometerPerSecondCubed", "KilometersPerSecondCubed", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (JerkUnit.MeterPerSecondCubed, "MeterPerSecondCubed", "MetersPerSecondCubed", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (JerkUnit.MicrometerPerSecondCubed, "MicrometerPerSecondCubed", "MicrometersPerSecondCubed", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), - 1000000 - ); - yield return new (JerkUnit.MillimeterPerSecondCubed, "MillimeterPerSecondCubed", "MillimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000 - ); - yield return new (JerkUnit.MillistandardGravitiesPerSecond, "MillistandardGravitiesPerSecond", "MillistandardGravitiesPerSecond", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (JerkUnit.NanometerPerSecondCubed, "NanometerPerSecondCubed", "NanometersPerSecondCubed", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), - 1000000000 - ); - yield return new (JerkUnit.StandardGravitiesPerSecond, "StandardGravitiesPerSecond", "StandardGravitiesPerSecond", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); + yield return new (JerkUnit.CentimeterPerSecondCubed, JerkUnits.CentimeterPerSecondCubed); + yield return new (JerkUnit.DecimeterPerSecondCubed, JerkUnits.DecimeterPerSecondCubed); + yield return new (JerkUnit.FootPerSecondCubed, JerkUnits.FootPerSecondCubed); + yield return new (JerkUnit.InchPerSecondCubed, JerkUnits.InchPerSecondCubed); + yield return new (JerkUnit.KilometerPerSecondCubed, JerkUnits.KilometerPerSecondCubed); + yield return new (JerkUnit.MeterPerSecondCubed, JerkUnits.MeterPerSecondCubed); + yield return new (JerkUnit.MicrometerPerSecondCubed, JerkUnits.MicrometerPerSecondCubed); + yield return new (JerkUnit.MillimeterPerSecondCubed, JerkUnits.MillimeterPerSecondCubed); + yield return new (JerkUnit.MillistandardGravitiesPerSecond, JerkUnits.MillistandardGravitiesPerSecond); + yield return new (JerkUnit.NanometerPerSecondCubed, JerkUnits.NanometerPerSecondCubed); + yield return new (JerkUnit.StandardGravitiesPerSecond, JerkUnits.StandardGravitiesPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs index f3665c7b15..527684f64b 100644 --- a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs @@ -123,31 +123,15 @@ public static KinematicViscosityInfo CreateDefault(FuncAn of representing the default unit mappings for KinematicViscosity. public static IEnumerable> GetDefaultMappings() { - yield return new (KinematicViscosityUnit.Centistokes, "Centistokes", "Centistokes", BaseUnits.Undefined, - 1000000 - ); - yield return new (KinematicViscosityUnit.Decistokes, "Decistokes", "Decistokes", BaseUnits.Undefined, - 100000 - ); - yield return new (KinematicViscosityUnit.Kilostokes, "Kilostokes", "Kilostokes", BaseUnits.Undefined, - 10 - ); - yield return new (KinematicViscosityUnit.Microstokes, "Microstokes", "Microstokes", BaseUnits.Undefined, - 10000000000 - ); - yield return new (KinematicViscosityUnit.Millistokes, "Millistokes", "Millistokes", BaseUnits.Undefined, - 10000000 - ); - yield return new (KinematicViscosityUnit.Nanostokes, "Nanostokes", "Nanostokes", BaseUnits.Undefined, - 10000000000000 - ); - yield return new (KinematicViscosityUnit.SquareFootPerSecond, "SquareFootPerSecond", "SquareFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1562500, 145161) - ); - yield return new (KinematicViscosityUnit.SquareMeterPerSecond, "SquareMeterPerSecond", "SquareMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (KinematicViscosityUnit.Stokes, "Stokes", "Stokes", BaseUnits.Undefined, - 10000 - ); + yield return new (KinematicViscosityUnit.Centistokes, KinematicViscosityUnits.Centistokes); + yield return new (KinematicViscosityUnit.Decistokes, KinematicViscosityUnits.Decistokes); + yield return new (KinematicViscosityUnit.Kilostokes, KinematicViscosityUnits.Kilostokes); + yield return new (KinematicViscosityUnit.Microstokes, KinematicViscosityUnits.Microstokes); + yield return new (KinematicViscosityUnit.Millistokes, KinematicViscosityUnits.Millistokes); + yield return new (KinematicViscosityUnit.Nanostokes, KinematicViscosityUnits.Nanostokes); + yield return new (KinematicViscosityUnit.SquareFootPerSecond, KinematicViscosityUnits.SquareFootPerSecond); + yield return new (KinematicViscosityUnit.SquareMeterPerSecond, KinematicViscosityUnits.SquareMeterPerSecond); + yield return new (KinematicViscosityUnit.Stokes, KinematicViscosityUnits.Stokes); } } diff --git a/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs b/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs index d33a66d643..2080c65b19 100644 --- a/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs @@ -121,16 +121,10 @@ public static LeakRateInfo CreateDefault(FuncAn of representing the default unit mappings for LeakRate. public static IEnumerable> GetDefaultMappings() { - yield return new (LeakRateUnit.AtmCubicCentimeterPerSecond, "AtmCubicCentimeterPerSecond", "AtmCubicCentimetersPerSecond", BaseUnits.Undefined, - new QuantityValue(40000, 4053) - ); - yield return new (LeakRateUnit.MillibarLiterPerSecond, "MillibarLiterPerSecond", "MillibarLitersPerSecond", BaseUnits.Undefined, - 10 - ); - yield return new (LeakRateUnit.PascalCubicMeterPerSecond, "PascalCubicMeterPerSecond", "PascalCubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (LeakRateUnit.TorrLiterPerSecond, "TorrLiterPerSecond", "TorrLitersPerSecond", BaseUnits.Undefined, - new QuantityValue(15, 2) - ); + yield return new (LeakRateUnit.AtmCubicCentimeterPerSecond, LeakRateUnits.AtmCubicCentimeterPerSecond); + yield return new (LeakRateUnit.MillibarLiterPerSecond, LeakRateUnits.MillibarLiterPerSecond); + yield return new (LeakRateUnit.PascalCubicMeterPerSecond, LeakRateUnits.PascalCubicMeterPerSecond); + yield return new (LeakRateUnit.TorrLiterPerSecond, LeakRateUnits.TorrLiterPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Length.g.cs b/UnitsNet/GeneratedCode/Quantities/Length.g.cs index dfe52879ca..99a5e3b43c 100644 --- a/UnitsNet/GeneratedCode/Quantities/Length.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Length.g.cs @@ -140,130 +140,48 @@ public static LengthInfo CreateDefault(FuncAn of representing the default unit mappings for Length. public static IEnumerable> GetDefaultMappings() { - yield return new (LengthUnit.Angstrom, "Angstrom", "Angstroms", new BaseUnits(length: LengthUnit.Angstrom), - 10000000000 - ); - yield return new (LengthUnit.AstronomicalUnit, "AstronomicalUnit", "AstronomicalUnits", new BaseUnits(length: LengthUnit.AstronomicalUnit), - new QuantityValue(1, 149597870700) - ); - yield return new (LengthUnit.Centimeter, "Centimeter", "Centimeters", new BaseUnits(length: LengthUnit.Centimeter), - 100 - ); - yield return new (LengthUnit.Chain, "Chain", "Chains", new BaseUnits(length: LengthUnit.Chain), - new QuantityValue(625, 12573) - ); - yield return new (LengthUnit.DataMile, "DataMile", "DataMiles", new BaseUnits(length: LengthUnit.DataMile), - new QuantityValue(5, 9144) - ); - yield return new (LengthUnit.Decameter, "Decameter", "Decameters", new BaseUnits(length: LengthUnit.Decameter), - new QuantityValue(1, 10) - ); - yield return new (LengthUnit.Decimeter, "Decimeter", "Decimeters", new BaseUnits(length: LengthUnit.Decimeter), - 10 - ); - yield return new (LengthUnit.DtpPica, "DtpPica", "DtpPicas", new BaseUnits(length: LengthUnit.DtpPica), - new QuantityValue(30000, 127) - ); - yield return new (LengthUnit.DtpPoint, "DtpPoint", "DtpPoints", new BaseUnits(length: LengthUnit.DtpPoint), - new QuantityValue(360000, 127) - ); - yield return new (LengthUnit.Fathom, "Fathom", "Fathoms", new BaseUnits(length: LengthUnit.Fathom), - new QuantityValue(625, 1143) - ); - yield return new (LengthUnit.Femtometer, "Femtometer", "Femtometers", new BaseUnits(length: LengthUnit.Femtometer), - 1000000000000000 - ); - yield return new (LengthUnit.Foot, "Foot", "Feet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(1250, 381) - ); - yield return new (LengthUnit.Gigameter, "Gigameter", "Gigameters", new BaseUnits(length: LengthUnit.Gigameter), - new QuantityValue(1, 1000000000) - ); - yield return new (LengthUnit.Hand, "Hand", "Hands", new BaseUnits(length: LengthUnit.Hand), - new QuantityValue(1250, 127) - ); - yield return new (LengthUnit.Hectometer, "Hectometer", "Hectometers", new BaseUnits(length: LengthUnit.Hectometer), - new QuantityValue(1, 100) - ); - yield return new (LengthUnit.Inch, "Inch", "Inches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(5000, 127) - ); - yield return new (LengthUnit.Kilofoot, "Kilofoot", "Kilofeet", new BaseUnits(length: LengthUnit.Kilofoot), - new QuantityValue(5, 1524) - ); - yield return new (LengthUnit.KilolightYear, "KilolightYear", "KilolightYears", new BaseUnits(length: LengthUnit.KilolightYear), - new QuantityValue(1, QuantityValue.PowerOfTen(7) * new BigInteger(946073047258)) - ); - yield return new (LengthUnit.Kilometer, "Kilometer", "Kilometers", new BaseUnits(length: LengthUnit.Kilometer), - new QuantityValue(1, 1000) - ); - yield return new (LengthUnit.Kiloparsec, "Kiloparsec", "Kiloparsecs", new BaseUnits(length: LengthUnit.Kiloparsec), - new QuantityValue(1, QuantityValue.PowerOfTen(8) * new BigInteger(308567758128)) - ); - yield return new (LengthUnit.Kiloyard, "Kiloyard", "Kiloyards", new BaseUnits(length: LengthUnit.Kiloyard), - new QuantityValue(5, 4572) - ); - yield return new (LengthUnit.LightYear, "LightYear", "LightYears", new BaseUnits(length: LengthUnit.LightYear), - new QuantityValue(1, 9460730472580000) - ); - yield return new (LengthUnit.MegalightYear, "MegalightYear", "MegalightYears", new BaseUnits(length: LengthUnit.MegalightYear), - new QuantityValue(1, QuantityValue.PowerOfTen(10) * new BigInteger(946073047258)) - ); - yield return new (LengthUnit.Megameter, "Megameter", "Megameters", new BaseUnits(length: LengthUnit.Megameter), - new QuantityValue(1, 1000000) - ); - yield return new (LengthUnit.Megaparsec, "Megaparsec", "Megaparsecs", new BaseUnits(length: LengthUnit.Megaparsec), - new QuantityValue(1, QuantityValue.PowerOfTen(11) * new BigInteger(308567758128)) - ); - yield return new (LengthUnit.Meter, "Meter", "Meters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (LengthUnit.Microinch, "Microinch", "Microinches", new BaseUnits(length: LengthUnit.Microinch), - new QuantityValue(5000000000, 127) - ); - yield return new (LengthUnit.Micrometer, "Micrometer", "Micrometers", new BaseUnits(length: LengthUnit.Micrometer), - 1000000 - ); - yield return new (LengthUnit.Mil, "Mil", "Mils", new BaseUnits(length: LengthUnit.Mil), - new QuantityValue(5000000, 127) - ); - yield return new (LengthUnit.Mile, "Mile", "Miles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(125, 201168) - ); - yield return new (LengthUnit.Millimeter, "Millimeter", "Millimeters", new BaseUnits(length: LengthUnit.Millimeter), - 1000 - ); - yield return new (LengthUnit.Nanometer, "Nanometer", "Nanometers", new BaseUnits(length: LengthUnit.Nanometer), - 1000000000 - ); - yield return new (LengthUnit.NauticalMile, "NauticalMile", "NauticalMiles", new BaseUnits(length: LengthUnit.NauticalMile), - new QuantityValue(1, 1852) - ); - yield return new (LengthUnit.Parsec, "Parsec", "Parsecs", new BaseUnits(length: LengthUnit.Parsec), - new QuantityValue(1, 30856775812800000) - ); - yield return new (LengthUnit.Picometer, "Picometer", "Picometers", new BaseUnits(length: LengthUnit.Picometer), - 1000000000000 - ); - yield return new (LengthUnit.PrinterPica, "PrinterPica", "PrinterPicas", new BaseUnits(length: LengthUnit.PrinterPica), - new QuantityValue(60225, 254) - ); - yield return new (LengthUnit.PrinterPoint, "PrinterPoint", "PrinterPoints", new BaseUnits(length: LengthUnit.PrinterPoint), - new QuantityValue(361350, 127) - ); - yield return new (LengthUnit.Shackle, "Shackle", "Shackles", new BaseUnits(length: LengthUnit.Shackle), - new QuantityValue(125, 3429) - ); - yield return new (LengthUnit.SolarRadius, "SolarRadius", "SolarRadiuses", new BaseUnits(length: LengthUnit.SolarRadius), - new QuantityValue(1, 695700000) - ); - yield return new (LengthUnit.Twip, "Twip", "Twips", new BaseUnits(length: LengthUnit.Twip), - new QuantityValue(7200000, 127) - ); - yield return new (LengthUnit.UsSurveyFoot, "UsSurveyFoot", "UsSurveyFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), - new QuantityValue(3937, 1200) - ); - yield return new (LengthUnit.Yard, "Yard", "Yards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1250, 1143) - ); + yield return new (LengthUnit.Angstrom, LengthUnits.Angstrom); + yield return new (LengthUnit.AstronomicalUnit, LengthUnits.AstronomicalUnit); + yield return new (LengthUnit.Centimeter, LengthUnits.Centimeter); + yield return new (LengthUnit.Chain, LengthUnits.Chain); + yield return new (LengthUnit.DataMile, LengthUnits.DataMile); + yield return new (LengthUnit.Decameter, LengthUnits.Decameter); + yield return new (LengthUnit.Decimeter, LengthUnits.Decimeter); + yield return new (LengthUnit.DtpPica, LengthUnits.DtpPica); + yield return new (LengthUnit.DtpPoint, LengthUnits.DtpPoint); + yield return new (LengthUnit.Fathom, LengthUnits.Fathom); + yield return new (LengthUnit.Femtometer, LengthUnits.Femtometer); + yield return new (LengthUnit.Foot, LengthUnits.Foot); + yield return new (LengthUnit.Gigameter, LengthUnits.Gigameter); + yield return new (LengthUnit.Hand, LengthUnits.Hand); + yield return new (LengthUnit.Hectometer, LengthUnits.Hectometer); + yield return new (LengthUnit.Inch, LengthUnits.Inch); + yield return new (LengthUnit.Kilofoot, LengthUnits.Kilofoot); + yield return new (LengthUnit.KilolightYear, LengthUnits.KilolightYear); + yield return new (LengthUnit.Kilometer, LengthUnits.Kilometer); + yield return new (LengthUnit.Kiloparsec, LengthUnits.Kiloparsec); + yield return new (LengthUnit.Kiloyard, LengthUnits.Kiloyard); + yield return new (LengthUnit.LightYear, LengthUnits.LightYear); + yield return new (LengthUnit.MegalightYear, LengthUnits.MegalightYear); + yield return new (LengthUnit.Megameter, LengthUnits.Megameter); + yield return new (LengthUnit.Megaparsec, LengthUnits.Megaparsec); + yield return new (LengthUnit.Meter, LengthUnits.Meter); + yield return new (LengthUnit.Microinch, LengthUnits.Microinch); + yield return new (LengthUnit.Micrometer, LengthUnits.Micrometer); + yield return new (LengthUnit.Mil, LengthUnits.Mil); + yield return new (LengthUnit.Mile, LengthUnits.Mile); + yield return new (LengthUnit.Millimeter, LengthUnits.Millimeter); + yield return new (LengthUnit.Nanometer, LengthUnits.Nanometer); + yield return new (LengthUnit.NauticalMile, LengthUnits.NauticalMile); + yield return new (LengthUnit.Parsec, LengthUnits.Parsec); + yield return new (LengthUnit.Picometer, LengthUnits.Picometer); + yield return new (LengthUnit.PrinterPica, LengthUnits.PrinterPica); + yield return new (LengthUnit.PrinterPoint, LengthUnits.PrinterPoint); + yield return new (LengthUnit.Shackle, LengthUnits.Shackle); + yield return new (LengthUnit.SolarRadius, LengthUnits.SolarRadius); + yield return new (LengthUnit.Twip, LengthUnits.Twip); + yield return new (LengthUnit.UsSurveyFoot, LengthUnits.UsSurveyFoot); + yield return new (LengthUnit.Yard, LengthUnits.Yard); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Level.g.cs b/UnitsNet/GeneratedCode/Quantities/Level.g.cs index 6d11c15fa7..24e515bb49 100644 --- a/UnitsNet/GeneratedCode/Quantities/Level.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Level.g.cs @@ -116,10 +116,8 @@ public static LevelInfo CreateDefault(Func /// An of representing the default unit mappings for Level. public static IEnumerable> GetDefaultMappings() { - yield return new (LevelUnit.Decibel, "Decibel", "Decibels", BaseUnits.Undefined); - yield return new (LevelUnit.Neper, "Neper", "Nepers", BaseUnits.Undefined, - new QuantityValue(57564627, 500000000) - ); + yield return new (LevelUnit.Decibel, LevelUnits.Decibel); + yield return new (LevelUnit.Neper, LevelUnits.Neper); } } diff --git a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs index 784cf6cf33..459d8bed53 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs @@ -125,58 +125,24 @@ public static LinearDensityInfo CreateDefault(FuncAn of representing the default unit mappings for LinearDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (LinearDensityUnit.GramPerCentimeter, "GramPerCentimeter", "GramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - 10 - ); - yield return new (LinearDensityUnit.GramPerFoot, "GramPerFoot", "GramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Gram), - new QuantityValue(1524, 5) - ); - yield return new (LinearDensityUnit.GramPerMeter, "GramPerMeter", "GramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (LinearDensityUnit.GramPerMillimeter, "GramPerMillimeter", "GramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), - 1 - ); - yield return new (LinearDensityUnit.KilogramPerCentimeter, "KilogramPerCentimeter", "KilogramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 100) - ); - yield return new (LinearDensityUnit.KilogramPerFoot, "KilogramPerFoot", "KilogramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilogram), - new QuantityValue(381, 1250) - ); - yield return new (LinearDensityUnit.KilogramPerMeter, "KilogramPerMeter", "KilogramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (LinearDensityUnit.KilogramPerMillimeter, "KilogramPerMillimeter", "KilogramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000) - ); - yield return new (LinearDensityUnit.MicrogramPerCentimeter, "MicrogramPerCentimeter", "MicrogramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), - 10000000 - ); - yield return new (LinearDensityUnit.MicrogramPerFoot, "MicrogramPerFoot", "MicrogramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Microgram), - 304800000 - ); - yield return new (LinearDensityUnit.MicrogramPerMeter, "MicrogramPerMeter", "MicrogramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), - 1000000000 - ); - yield return new (LinearDensityUnit.MicrogramPerMillimeter, "MicrogramPerMillimeter", "MicrogramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Microgram), - 1000000 - ); - yield return new (LinearDensityUnit.MilligramPerCentimeter, "MilligramPerCentimeter", "MilligramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), - 10000 - ); - yield return new (LinearDensityUnit.MilligramPerFoot, "MilligramPerFoot", "MilligramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Milligram), - 304800 - ); - yield return new (LinearDensityUnit.MilligramPerMeter, "MilligramPerMeter", "MilligramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (LinearDensityUnit.MilligramPerMillimeter, "MilligramPerMillimeter", "MilligramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Milligram), - 1000 - ); - yield return new (LinearDensityUnit.PoundPerFoot, "PoundPerFoot", "PoundsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(30480000, 45359237) - ); - yield return new (LinearDensityUnit.PoundPerInch, "PoundPerInch", "PoundsPerInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), - new QuantityValue(2540000, 45359237) - ); + yield return new (LinearDensityUnit.GramPerCentimeter, LinearDensityUnits.GramPerCentimeter); + yield return new (LinearDensityUnit.GramPerFoot, LinearDensityUnits.GramPerFoot); + yield return new (LinearDensityUnit.GramPerMeter, LinearDensityUnits.GramPerMeter); + yield return new (LinearDensityUnit.GramPerMillimeter, LinearDensityUnits.GramPerMillimeter); + yield return new (LinearDensityUnit.KilogramPerCentimeter, LinearDensityUnits.KilogramPerCentimeter); + yield return new (LinearDensityUnit.KilogramPerFoot, LinearDensityUnits.KilogramPerFoot); + yield return new (LinearDensityUnit.KilogramPerMeter, LinearDensityUnits.KilogramPerMeter); + yield return new (LinearDensityUnit.KilogramPerMillimeter, LinearDensityUnits.KilogramPerMillimeter); + yield return new (LinearDensityUnit.MicrogramPerCentimeter, LinearDensityUnits.MicrogramPerCentimeter); + yield return new (LinearDensityUnit.MicrogramPerFoot, LinearDensityUnits.MicrogramPerFoot); + yield return new (LinearDensityUnit.MicrogramPerMeter, LinearDensityUnits.MicrogramPerMeter); + yield return new (LinearDensityUnit.MicrogramPerMillimeter, LinearDensityUnits.MicrogramPerMillimeter); + yield return new (LinearDensityUnit.MilligramPerCentimeter, LinearDensityUnits.MilligramPerCentimeter); + yield return new (LinearDensityUnit.MilligramPerFoot, LinearDensityUnits.MilligramPerFoot); + yield return new (LinearDensityUnit.MilligramPerMeter, LinearDensityUnits.MilligramPerMeter); + yield return new (LinearDensityUnit.MilligramPerMillimeter, LinearDensityUnits.MilligramPerMillimeter); + yield return new (LinearDensityUnit.PoundPerFoot, LinearDensityUnits.PoundPerFoot); + yield return new (LinearDensityUnit.PoundPerInch, LinearDensityUnits.PoundPerInch); } } diff --git a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs index 364ac7ce17..073551e802 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs @@ -120,79 +120,31 @@ public static LinearPowerDensityInfo CreateDefault(FuncAn of representing the default unit mappings for LinearPowerDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (LinearPowerDensityUnit.GigawattPerCentimeter, "GigawattPerCentimeter", "GigawattsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000000000) - ); - yield return new (LinearPowerDensityUnit.GigawattPerFoot, "GigawattPerFoot", "GigawattsPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250000000000) - ); - yield return new (LinearPowerDensityUnit.GigawattPerInch, "GigawattPerInch", "GigawattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000000000000) - ); - yield return new (LinearPowerDensityUnit.GigawattPerMeter, "GigawattPerMeter", "GigawattsPerMeter", new BaseUnits(length: LengthUnit.Gigameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000) - ); - yield return new (LinearPowerDensityUnit.GigawattPerMillimeter, "GigawattPerMillimeter", "GigawattsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerCentimeter, "KilowattPerCentimeter", "KilowattsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerFoot, "KilowattPerFoot", "KilowattsPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerInch, "KilowattPerInch", "KilowattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerMeter, "KilowattPerMeter", "KilowattsPerMeter", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (LinearPowerDensityUnit.KilowattPerMillimeter, "KilowattPerMillimeter", "KilowattsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerCentimeter, "MegawattPerCentimeter", "MegawattsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerFoot, "MegawattPerFoot", "MegawattsPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerInch, "MegawattPerInch", "MegawattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerMeter, "MegawattPerMeter", "MegawattsPerMeter", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (LinearPowerDensityUnit.MegawattPerMillimeter, "MegawattPerMillimeter", "MegawattsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (LinearPowerDensityUnit.MilliwattPerCentimeter, "MilliwattPerCentimeter", "MilliwattsPerCentimeter", BaseUnits.Undefined, - 10 - ); - yield return new (LinearPowerDensityUnit.MilliwattPerFoot, "MilliwattPerFoot", "MilliwattsPerFoot", BaseUnits.Undefined, - new QuantityValue(1524, 5) - ); - yield return new (LinearPowerDensityUnit.MilliwattPerInch, "MilliwattPerInch", "MilliwattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5) - ); - yield return new (LinearPowerDensityUnit.MilliwattPerMeter, "MilliwattPerMeter", "MilliwattsPerMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1000 - ); - yield return new (LinearPowerDensityUnit.MilliwattPerMillimeter, "MilliwattPerMillimeter", "MilliwattsPerMillimeter", BaseUnits.Undefined, - 1 - ); - yield return new (LinearPowerDensityUnit.WattPerCentimeter, "WattPerCentimeter", "WattsPerCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (LinearPowerDensityUnit.WattPerFoot, "WattPerFoot", "WattsPerFoot", BaseUnits.Undefined, - new QuantityValue(381, 1250) - ); - yield return new (LinearPowerDensityUnit.WattPerInch, "WattPerInch", "WattsPerInch", BaseUnits.Undefined, - new QuantityValue(127, 5000) - ); - yield return new (LinearPowerDensityUnit.WattPerMeter, "WattPerMeter", "WattsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (LinearPowerDensityUnit.WattPerMillimeter, "WattPerMillimeter", "WattsPerMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); + yield return new (LinearPowerDensityUnit.GigawattPerCentimeter, LinearPowerDensityUnits.GigawattPerCentimeter); + yield return new (LinearPowerDensityUnit.GigawattPerFoot, LinearPowerDensityUnits.GigawattPerFoot); + yield return new (LinearPowerDensityUnit.GigawattPerInch, LinearPowerDensityUnits.GigawattPerInch); + yield return new (LinearPowerDensityUnit.GigawattPerMeter, LinearPowerDensityUnits.GigawattPerMeter); + yield return new (LinearPowerDensityUnit.GigawattPerMillimeter, LinearPowerDensityUnits.GigawattPerMillimeter); + yield return new (LinearPowerDensityUnit.KilowattPerCentimeter, LinearPowerDensityUnits.KilowattPerCentimeter); + yield return new (LinearPowerDensityUnit.KilowattPerFoot, LinearPowerDensityUnits.KilowattPerFoot); + yield return new (LinearPowerDensityUnit.KilowattPerInch, LinearPowerDensityUnits.KilowattPerInch); + yield return new (LinearPowerDensityUnit.KilowattPerMeter, LinearPowerDensityUnits.KilowattPerMeter); + yield return new (LinearPowerDensityUnit.KilowattPerMillimeter, LinearPowerDensityUnits.KilowattPerMillimeter); + yield return new (LinearPowerDensityUnit.MegawattPerCentimeter, LinearPowerDensityUnits.MegawattPerCentimeter); + yield return new (LinearPowerDensityUnit.MegawattPerFoot, LinearPowerDensityUnits.MegawattPerFoot); + yield return new (LinearPowerDensityUnit.MegawattPerInch, LinearPowerDensityUnits.MegawattPerInch); + yield return new (LinearPowerDensityUnit.MegawattPerMeter, LinearPowerDensityUnits.MegawattPerMeter); + yield return new (LinearPowerDensityUnit.MegawattPerMillimeter, LinearPowerDensityUnits.MegawattPerMillimeter); + yield return new (LinearPowerDensityUnit.MilliwattPerCentimeter, LinearPowerDensityUnits.MilliwattPerCentimeter); + yield return new (LinearPowerDensityUnit.MilliwattPerFoot, LinearPowerDensityUnits.MilliwattPerFoot); + yield return new (LinearPowerDensityUnit.MilliwattPerInch, LinearPowerDensityUnits.MilliwattPerInch); + yield return new (LinearPowerDensityUnit.MilliwattPerMeter, LinearPowerDensityUnits.MilliwattPerMeter); + yield return new (LinearPowerDensityUnit.MilliwattPerMillimeter, LinearPowerDensityUnits.MilliwattPerMillimeter); + yield return new (LinearPowerDensityUnit.WattPerCentimeter, LinearPowerDensityUnits.WattPerCentimeter); + yield return new (LinearPowerDensityUnit.WattPerFoot, LinearPowerDensityUnits.WattPerFoot); + yield return new (LinearPowerDensityUnit.WattPerInch, LinearPowerDensityUnits.WattPerInch); + yield return new (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnits.WattPerMeter); + yield return new (LinearPowerDensityUnit.WattPerMillimeter, LinearPowerDensityUnits.WattPerMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs index 4acd55edfd..687fbbaca4 100644 --- a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs @@ -120,34 +120,16 @@ public static LuminanceInfo CreateDefault(FuncAn of representing the default unit mappings for Luminance. public static IEnumerable> GetDefaultMappings() { - yield return new (LuminanceUnit.CandelaPerSquareFoot, "CandelaPerSquareFoot", "CandelasPerSquareFoot", BaseUnits.Undefined, - new QuantityValue(145161, 1562500) - ); - yield return new (LuminanceUnit.CandelaPerSquareInch, "CandelaPerSquareInch", "CandelasPerSquareInch", BaseUnits.Undefined, - new QuantityValue(16129, 25000000) - ); - yield return new (LuminanceUnit.CandelaPerSquareMeter, "CandelaPerSquareMeter", "CandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, luminousIntensity: LuminousIntensityUnit.Candela)); - yield return new (LuminanceUnit.CenticandelaPerSquareMeter, "CenticandelaPerSquareMeter", "CenticandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Decameter, luminousIntensity: LuminousIntensityUnit.Candela), - 100 - ); - yield return new (LuminanceUnit.DecicandelaPerSquareMeter, "DecicandelaPerSquareMeter", "DecicandelasPerSquareMeter", BaseUnits.Undefined, - 10 - ); - yield return new (LuminanceUnit.KilocandelaPerSquareMeter, "KilocandelaPerSquareMeter", "KilocandelasPerSquareMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (LuminanceUnit.MicrocandelaPerSquareMeter, "MicrocandelaPerSquareMeter", "MicrocandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Kilometer, luminousIntensity: LuminousIntensityUnit.Candela), - 1000000 - ); - yield return new (LuminanceUnit.MillicandelaPerSquareMeter, "MillicandelaPerSquareMeter", "MillicandelasPerSquareMeter", BaseUnits.Undefined, - 1000 - ); - yield return new (LuminanceUnit.NanocandelaPerSquareMeter, "NanocandelaPerSquareMeter", "NanocandelasPerSquareMeter", BaseUnits.Undefined, - 1000000000 - ); - yield return new (LuminanceUnit.Nit, "Nit", "Nits", BaseUnits.Undefined, - 1 - ); + yield return new (LuminanceUnit.CandelaPerSquareFoot, LuminanceUnits.CandelaPerSquareFoot); + yield return new (LuminanceUnit.CandelaPerSquareInch, LuminanceUnits.CandelaPerSquareInch); + yield return new (LuminanceUnit.CandelaPerSquareMeter, LuminanceUnits.CandelaPerSquareMeter); + yield return new (LuminanceUnit.CenticandelaPerSquareMeter, LuminanceUnits.CenticandelaPerSquareMeter); + yield return new (LuminanceUnit.DecicandelaPerSquareMeter, LuminanceUnits.DecicandelaPerSquareMeter); + yield return new (LuminanceUnit.KilocandelaPerSquareMeter, LuminanceUnits.KilocandelaPerSquareMeter); + yield return new (LuminanceUnit.MicrocandelaPerSquareMeter, LuminanceUnits.MicrocandelaPerSquareMeter); + yield return new (LuminanceUnit.MillicandelaPerSquareMeter, LuminanceUnits.MillicandelaPerSquareMeter); + yield return new (LuminanceUnit.NanocandelaPerSquareMeter, LuminanceUnits.NanocandelaPerSquareMeter); + yield return new (LuminanceUnit.Nit, LuminanceUnits.Nit); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs index d8c5cc4606..b9497c4089 100644 --- a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs @@ -119,46 +119,20 @@ public static LuminosityInfo CreateDefault(FuncAn of representing the default unit mappings for Luminosity. public static IEnumerable> GetDefaultMappings() { - yield return new (LuminosityUnit.Decawatt, "Decawatt", "Decawatts", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (LuminosityUnit.Deciwatt, "Deciwatt", "Deciwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (LuminosityUnit.Femtowatt, "Femtowatt", "Femtowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Picogram, time: DurationUnit.Second), - 1000000000000000 - ); - yield return new (LuminosityUnit.Gigawatt, "Gigawatt", "Gigawatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (LuminosityUnit.Kilowatt, "Kilowatt", "Kilowatts", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (LuminosityUnit.Megawatt, "Megawatt", "Megawatts", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (LuminosityUnit.Microwatt, "Microwatt", "Microwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (LuminosityUnit.Milliwatt, "Milliwatt", "Milliwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (LuminosityUnit.Nanowatt, "Nanowatt", "Nanowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (LuminosityUnit.Petawatt, "Petawatt", "Petawatts", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (LuminosityUnit.Picowatt, "Picowatt", "Picowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (LuminosityUnit.SolarLuminosity, "SolarLuminosity", "SolarLuminosities", BaseUnits.Undefined, - new QuantityValue(1, new BigInteger(3828) * QuantityValue.PowerOfTen(23)) - ); - yield return new (LuminosityUnit.Terawatt, "Terawatt", "Terawatts", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (LuminosityUnit.Watt, "Watt", "Watts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); + yield return new (LuminosityUnit.Decawatt, LuminosityUnits.Decawatt); + yield return new (LuminosityUnit.Deciwatt, LuminosityUnits.Deciwatt); + yield return new (LuminosityUnit.Femtowatt, LuminosityUnits.Femtowatt); + yield return new (LuminosityUnit.Gigawatt, LuminosityUnits.Gigawatt); + yield return new (LuminosityUnit.Kilowatt, LuminosityUnits.Kilowatt); + yield return new (LuminosityUnit.Megawatt, LuminosityUnits.Megawatt); + yield return new (LuminosityUnit.Microwatt, LuminosityUnits.Microwatt); + yield return new (LuminosityUnit.Milliwatt, LuminosityUnits.Milliwatt); + yield return new (LuminosityUnit.Nanowatt, LuminosityUnits.Nanowatt); + yield return new (LuminosityUnit.Petawatt, LuminosityUnits.Petawatt); + yield return new (LuminosityUnit.Picowatt, LuminosityUnits.Picowatt); + yield return new (LuminosityUnit.SolarLuminosity, LuminosityUnits.SolarLuminosity); + yield return new (LuminosityUnit.Terawatt, LuminosityUnits.Terawatt); + yield return new (LuminosityUnit.Watt, LuminosityUnits.Watt); } } diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs index 7c354155d3..037f538d33 100644 --- a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs @@ -123,7 +123,7 @@ public static LuminousFluxInfo CreateDefault(FuncAn of representing the default unit mappings for LuminousFlux. public static IEnumerable> GetDefaultMappings() { - yield return new (LuminousFluxUnit.Lumen, "Lumen", "Lumens", new BaseUnits(luminousIntensity: LuminousIntensityUnit.Candela)); + yield return new (LuminousFluxUnit.Lumen, LuminousFluxUnits.Lumen); } } diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs index b392682978..637eb47d51 100644 --- a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs @@ -122,7 +122,7 @@ public static LuminousIntensityInfo CreateDefault(FuncAn of representing the default unit mappings for LuminousIntensity. public static IEnumerable> GetDefaultMappings() { - yield return new (LuminousIntensityUnit.Candela, "Candela", "Candela", new BaseUnits(luminousIntensity: LuminousIntensityUnit.Candela)); + yield return new (LuminousIntensityUnit.Candela, LuminousIntensityUnits.Candela); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs index 4c2bdbe3af..e8f573a94f 100644 --- a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs @@ -120,22 +120,12 @@ public static MagneticFieldInfo CreateDefault(FuncAn of representing the default unit mappings for MagneticField. public static IEnumerable> GetDefaultMappings() { - yield return new (MagneticFieldUnit.Gauss, "Gauss", "Gausses", BaseUnits.Undefined, - 10000 - ); - yield return new (MagneticFieldUnit.Microtesla, "Microtesla", "Microteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, current: ElectricCurrentUnit.Ampere), - 1000000 - ); - yield return new (MagneticFieldUnit.Milligauss, "Milligauss", "Milligausses", BaseUnits.Undefined, - 10000000 - ); - yield return new (MagneticFieldUnit.Millitesla, "Millitesla", "Milliteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, current: ElectricCurrentUnit.Ampere), - 1000 - ); - yield return new (MagneticFieldUnit.Nanotesla, "Nanotesla", "Nanoteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, current: ElectricCurrentUnit.Ampere), - 1000000000 - ); - yield return new (MagneticFieldUnit.Tesla, "Tesla", "Teslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, current: ElectricCurrentUnit.Ampere)); + yield return new (MagneticFieldUnit.Gauss, MagneticFieldUnits.Gauss); + yield return new (MagneticFieldUnit.Microtesla, MagneticFieldUnits.Microtesla); + yield return new (MagneticFieldUnit.Milligauss, MagneticFieldUnits.Milligauss); + yield return new (MagneticFieldUnit.Millitesla, MagneticFieldUnits.Millitesla); + yield return new (MagneticFieldUnit.Nanotesla, MagneticFieldUnits.Nanotesla); + yield return new (MagneticFieldUnit.Tesla, MagneticFieldUnits.Tesla); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs index 9fcfa55cbe..0f33e3857c 100644 --- a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs @@ -121,7 +121,7 @@ public static MagneticFluxInfo CreateDefault(FuncAn of representing the default unit mappings for MagneticFlux. public static IEnumerable> GetDefaultMappings() { - yield return new (MagneticFluxUnit.Weber, "Weber", "Webers", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + yield return new (MagneticFluxUnit.Weber, MagneticFluxUnits.Weber); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs index 355296bb0f..2315156cf9 100644 --- a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs @@ -119,7 +119,7 @@ public static MagnetizationInfo CreateDefault(FuncAn of representing the default unit mappings for Magnetization. public static IEnumerable> GetDefaultMappings() { - yield return new (MagnetizationUnit.AmperePerMeter, "AmperePerMeter", "AmperesPerMeter", new BaseUnits(length: LengthUnit.Meter, current: ElectricCurrentUnit.Ampere)); + yield return new (MagnetizationUnit.AmperePerMeter, MagnetizationUnits.AmperePerMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs index f4993cc01a..7b4a1edba8 100644 --- a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs @@ -132,97 +132,37 @@ public static MassInfo CreateDefault(Func>, /// An of representing the default unit mappings for Mass. public static IEnumerable> GetDefaultMappings() { - yield return new (MassUnit.Centigram, "Centigram", "Centigrams", new BaseUnits(mass: MassUnit.Centigram), - 100000 - ); - yield return new (MassUnit.Dalton, "Dalton", "Daltons", new BaseUnits(mass: MassUnit.Dalton), - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(36), 8302695333) - ); - yield return new (MassUnit.Decagram, "Decagram", "Decagrams", new BaseUnits(mass: MassUnit.Decagram), - 100 - ); - yield return new (MassUnit.Decigram, "Decigram", "Decigrams", new BaseUnits(mass: MassUnit.Decigram), - 10000 - ); - yield return new (MassUnit.EarthMass, "EarthMass", "EarthMasses", new BaseUnits(mass: MassUnit.EarthMass), - new QuantityValue(1, new BigInteger(59722) * QuantityValue.PowerOfTen(20)) - ); - yield return new (MassUnit.Femtogram, "Femtogram", "Femtograms", new BaseUnits(mass: MassUnit.Femtogram), - 1000000000000000000 - ); - yield return new (MassUnit.Gigadalton, "Gigadalton", "Gigadaltons", new BaseUnits(mass: MassUnit.Gigadalton), - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(27), 8302695333) - ); - yield return new (MassUnit.Grain, "Grain", "Grains", new BaseUnits(mass: MassUnit.Grain), - new QuantityValue(100000000000, 6479891) - ); - yield return new (MassUnit.Gram, "Gram", "Grams", new BaseUnits(mass: MassUnit.Gram), - 1000 - ); - yield return new (MassUnit.Hectogram, "Hectogram", "Hectograms", new BaseUnits(mass: MassUnit.Hectogram), - 10 - ); - yield return new (MassUnit.Kilodalton, "Kilodalton", "Kilodaltons", new BaseUnits(mass: MassUnit.Kilodalton), - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(33), 8302695333) - ); - yield return new (MassUnit.Kilogram, "Kilogram", "Kilograms", new BaseUnits(mass: MassUnit.Kilogram)); - yield return new (MassUnit.Kilopound, "Kilopound", "Kilopounds", new BaseUnits(mass: MassUnit.Kilopound), - new QuantityValue(100000, 45359237) - ); - yield return new (MassUnit.Kilotonne, "Kilotonne", "Kilotonnes", new BaseUnits(mass: MassUnit.Kilotonne), - new QuantityValue(1, 1000000) - ); - yield return new (MassUnit.LongHundredweight, "LongHundredweight", "LongHundredweight", new BaseUnits(mass: MassUnit.LongHundredweight), - new QuantityValue(6250000, 317514659) - ); - yield return new (MassUnit.LongTon, "LongTon", "LongTons", new BaseUnits(mass: MassUnit.LongTon), - new QuantityValue(312500, 317514659) - ); - yield return new (MassUnit.Megadalton, "Megadalton", "Megadaltons", new BaseUnits(mass: MassUnit.Megadalton), - new QuantityValue(new BigInteger(5) * QuantityValue.PowerOfTen(30), 8302695333) - ); - yield return new (MassUnit.Megapound, "Megapound", "Megapounds", new BaseUnits(mass: MassUnit.Megapound), - new QuantityValue(100, 45359237) - ); - yield return new (MassUnit.Megatonne, "Megatonne", "Megatonnes", new BaseUnits(mass: MassUnit.Megatonne), - new QuantityValue(1, 1000000000) - ); - yield return new (MassUnit.Microgram, "Microgram", "Micrograms", new BaseUnits(mass: MassUnit.Microgram), - 1000000000 - ); - yield return new (MassUnit.Milligram, "Milligram", "Milligrams", new BaseUnits(mass: MassUnit.Milligram), - 1000000 - ); - yield return new (MassUnit.Nanogram, "Nanogram", "Nanograms", new BaseUnits(mass: MassUnit.Nanogram), - 1000000000000 - ); - yield return new (MassUnit.Ounce, "Ounce", "Ounces", new BaseUnits(mass: MassUnit.Ounce), - new QuantityValue(1600000000, 45359237) - ); - yield return new (MassUnit.Picogram, "Picogram", "Picograms", new BaseUnits(mass: MassUnit.Picogram), - 1000000000000000 - ); - yield return new (MassUnit.Pound, "Pound", "Pounds", new BaseUnits(mass: MassUnit.Pound), - new QuantityValue(100000000, 45359237) - ); - yield return new (MassUnit.ShortHundredweight, "ShortHundredweight", "ShortHundredweight", new BaseUnits(mass: MassUnit.ShortHundredweight), - new QuantityValue(1000000, 45359237) - ); - yield return new (MassUnit.ShortTon, "ShortTon", "ShortTons", new BaseUnits(mass: MassUnit.ShortTon), - new QuantityValue(50000, 45359237) - ); - yield return new (MassUnit.Slug, "Slug", "Slugs", new BaseUnits(mass: MassUnit.Slug), - new QuantityValue(609600000000, 8896443230521) - ); - yield return new (MassUnit.SolarMass, "SolarMass", "SolarMasses", new BaseUnits(mass: MassUnit.SolarMass), - new QuantityValue(1, new BigInteger(198947) * QuantityValue.PowerOfTen(25)) - ); - yield return new (MassUnit.Stone, "Stone", "Stone", new BaseUnits(mass: MassUnit.Stone), - new QuantityValue(50000000, 317514659) - ); - yield return new (MassUnit.Tonne, "Tonne", "Tonnes", new BaseUnits(mass: MassUnit.Tonne), - new QuantityValue(1, 1000) - ); + yield return new (MassUnit.Centigram, MassUnits.Centigram); + yield return new (MassUnit.Dalton, MassUnits.Dalton); + yield return new (MassUnit.Decagram, MassUnits.Decagram); + yield return new (MassUnit.Decigram, MassUnits.Decigram); + yield return new (MassUnit.EarthMass, MassUnits.EarthMass); + yield return new (MassUnit.Femtogram, MassUnits.Femtogram); + yield return new (MassUnit.Gigadalton, MassUnits.Gigadalton); + yield return new (MassUnit.Grain, MassUnits.Grain); + yield return new (MassUnit.Gram, MassUnits.Gram); + yield return new (MassUnit.Hectogram, MassUnits.Hectogram); + yield return new (MassUnit.Kilodalton, MassUnits.Kilodalton); + yield return new (MassUnit.Kilogram, MassUnits.Kilogram); + yield return new (MassUnit.Kilopound, MassUnits.Kilopound); + yield return new (MassUnit.Kilotonne, MassUnits.Kilotonne); + yield return new (MassUnit.LongHundredweight, MassUnits.LongHundredweight); + yield return new (MassUnit.LongTon, MassUnits.LongTon); + yield return new (MassUnit.Megadalton, MassUnits.Megadalton); + yield return new (MassUnit.Megapound, MassUnits.Megapound); + yield return new (MassUnit.Megatonne, MassUnits.Megatonne); + yield return new (MassUnit.Microgram, MassUnits.Microgram); + yield return new (MassUnit.Milligram, MassUnits.Milligram); + yield return new (MassUnit.Nanogram, MassUnits.Nanogram); + yield return new (MassUnit.Ounce, MassUnits.Ounce); + yield return new (MassUnit.Picogram, MassUnits.Picogram); + yield return new (MassUnit.Pound, MassUnits.Pound); + yield return new (MassUnit.ShortHundredweight, MassUnits.ShortHundredweight); + yield return new (MassUnit.ShortTon, MassUnits.ShortTon); + yield return new (MassUnit.Slug, MassUnits.Slug); + yield return new (MassUnit.SolarMass, MassUnits.SolarMass); + yield return new (MassUnit.Stone, MassUnits.Stone); + yield return new (MassUnit.Tonne, MassUnits.Tonne); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs index 80fa4ac505..d682e334dc 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs @@ -124,151 +124,55 @@ public static MassConcentrationInfo CreateDefault(FuncAn of representing the default unit mappings for MassConcentration. public static IEnumerable> GetDefaultMappings() { - yield return new (MassConcentrationUnit.CentigramPerDeciliter, "CentigramPerDeciliter", "CentigramsPerDeciliter", BaseUnits.Undefined, - 10 - ); - yield return new (MassConcentrationUnit.CentigramPerLiter, "CentigramPerLiter", "CentigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Centigram), - 100 - ); - yield return new (MassConcentrationUnit.CentigramPerMicroliter, "CentigramPerMicroliter", "CentigramsPerMicroliter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (MassConcentrationUnit.CentigramPerMilliliter, "CentigramPerMilliliter", "CentigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Centigram), - new QuantityValue(1, 10) - ); - yield return new (MassConcentrationUnit.DecigramPerDeciliter, "DecigramPerDeciliter", "DecigramsPerDeciliter", BaseUnits.Undefined, - 1 - ); - yield return new (MassConcentrationUnit.DecigramPerLiter, "DecigramPerLiter", "DecigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Decigram), - 10 - ); - yield return new (MassConcentrationUnit.DecigramPerMicroliter, "DecigramPerMicroliter", "DecigramsPerMicroliter", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (MassConcentrationUnit.DecigramPerMilliliter, "DecigramPerMilliliter", "DecigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Decigram), - new QuantityValue(1, 100) - ); - yield return new (MassConcentrationUnit.GramPerCubicCentimeter, "GramPerCubicCentimeter", "GramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.GramPerCubicMeter, "GramPerCubicMeter", "GramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (MassConcentrationUnit.GramPerCubicMillimeter, "GramPerCubicMillimeter", "GramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000000) - ); - yield return new (MassConcentrationUnit.GramPerDeciliter, "GramPerDeciliter", "GramsPerDeciliter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (MassConcentrationUnit.GramPerLiter, "GramPerLiter", "GramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), - 1 - ); - yield return new (MassConcentrationUnit.GramPerMicroliter, "GramPerMicroliter", "GramsPerMicroliter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (MassConcentrationUnit.GramPerMilliliter, "GramPerMilliliter", "GramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.KilogramPerCubicCentimeter, "KilogramPerCubicCentimeter", "KilogramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000000) - ); - yield return new (MassConcentrationUnit.KilogramPerCubicMeter, "KilogramPerCubicMeter", "KilogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (MassConcentrationUnit.KilogramPerCubicMillimeter, "KilogramPerCubicMillimeter", "KilogramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000000000) - ); - yield return new (MassConcentrationUnit.KilogramPerLiter, "KilogramPerLiter", "KilogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.KilopoundPerCubicFoot, "KilopoundPerCubicFoot", "KilopoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilopound), - new QuantityValue(221225364, 3543690390625) - ); - yield return new (MassConcentrationUnit.KilopoundPerCubicInch, "KilopoundPerCubicInch", "KilopoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound), - new QuantityValue(2048383, 56699046250000) - ); - yield return new (MassConcentrationUnit.MicrogramPerCubicMeter, "MicrogramPerCubicMeter", "MicrogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), - 1000000000 - ); - yield return new (MassConcentrationUnit.MicrogramPerDeciliter, "MicrogramPerDeciliter", "MicrogramsPerDeciliter", BaseUnits.Undefined, - 100000 - ); - yield return new (MassConcentrationUnit.MicrogramPerLiter, "MicrogramPerLiter", "MicrogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Microgram), - 1000000 - ); - yield return new (MassConcentrationUnit.MicrogramPerMicroliter, "MicrogramPerMicroliter", "MicrogramsPerMicroliter", BaseUnits.Undefined, - 1 - ); - yield return new (MassConcentrationUnit.MicrogramPerMilliliter, "MicrogramPerMilliliter", "MicrogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), - 1000 - ); - yield return new (MassConcentrationUnit.MilligramPerCubicMeter, "MilligramPerCubicMeter", "MilligramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (MassConcentrationUnit.MilligramPerDeciliter, "MilligramPerDeciliter", "MilligramsPerDeciliter", BaseUnits.Undefined, - 100 - ); - yield return new (MassConcentrationUnit.MilligramPerLiter, "MilligramPerLiter", "MilligramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), - 1000 - ); - yield return new (MassConcentrationUnit.MilligramPerMicroliter, "MilligramPerMicroliter", "MilligramsPerMicroliter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.MilligramPerMilliliter, "MilligramPerMilliliter", "MilligramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), - 1 - ); - yield return new (MassConcentrationUnit.NanogramPerDeciliter, "NanogramPerDeciliter", "NanogramsPerDeciliter", BaseUnits.Undefined, - 100000000 - ); - yield return new (MassConcentrationUnit.NanogramPerLiter, "NanogramPerLiter", "NanogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Nanogram), - 1000000000 - ); - yield return new (MassConcentrationUnit.NanogramPerMicroliter, "NanogramPerMicroliter", "NanogramsPerMicroliter", BaseUnits.Undefined, - 1000 - ); - yield return new (MassConcentrationUnit.NanogramPerMilliliter, "NanogramPerMilliliter", "NanogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Nanogram), - 1000000 - ); - yield return new (MassConcentrationUnit.OuncePerImperialGallon, "OuncePerImperialGallon", "OuncesPerImperialGallon", BaseUnits.Undefined, - new QuantityValue(7273744, 45359237) - ); - yield return new (MassConcentrationUnit.OuncePerUSGallon, "OuncePerUSGallon", "OuncesPerUSGallon", BaseUnits.Undefined, - new QuantityValue(49161192, 368175625) - ); - yield return new (MassConcentrationUnit.PicogramPerDeciliter, "PicogramPerDeciliter", "PicogramsPerDeciliter", BaseUnits.Undefined, - 100000000000 - ); - yield return new (MassConcentrationUnit.PicogramPerLiter, "PicogramPerLiter", "PicogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Picogram), - 1000000000000 - ); - yield return new (MassConcentrationUnit.PicogramPerMicroliter, "PicogramPerMicroliter", "PicogramsPerMicroliter", BaseUnits.Undefined, - 1000000 - ); - yield return new (MassConcentrationUnit.PicogramPerMilliliter, "PicogramPerMilliliter", "PicogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Picogram), - 1000000000 - ); - yield return new (MassConcentrationUnit.PoundPerCubicFoot, "PoundPerCubicFoot", "PoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(1769802912, 28349523125) - ); - yield return new (MassConcentrationUnit.PoundPerCubicInch, "PoundPerCubicInch", "PoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), - new QuantityValue(2048383, 56699046250) - ); - yield return new (MassConcentrationUnit.PoundPerImperialGallon, "PoundPerImperialGallon", "PoundsPerImperialGallon", BaseUnits.Undefined, - new QuantityValue(454609, 45359237) - ); - yield return new (MassConcentrationUnit.PoundPerUSGallon, "PoundPerUSGallon", "PoundsPerUSGallon", BaseUnits.Undefined, - new QuantityValue(6145149, 736351250) - ); - yield return new (MassConcentrationUnit.SlugPerCubicFoot, "SlugPerCubicFoot", "SlugsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), - new QuantityValue(10788718551552, 5560277019075625) - ); - yield return new (MassConcentrationUnit.TonnePerCubicCentimeter, "TonnePerCubicCentimeter", "TonnesPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000000000) - ); - yield return new (MassConcentrationUnit.TonnePerCubicMeter, "TonnePerCubicMeter", "TonnesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000) - ); - yield return new (MassConcentrationUnit.TonnePerCubicMillimeter, "TonnePerCubicMillimeter", "TonnesPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000000000000) - ); + yield return new (MassConcentrationUnit.CentigramPerDeciliter, MassConcentrationUnits.CentigramPerDeciliter); + yield return new (MassConcentrationUnit.CentigramPerLiter, MassConcentrationUnits.CentigramPerLiter); + yield return new (MassConcentrationUnit.CentigramPerMicroliter, MassConcentrationUnits.CentigramPerMicroliter); + yield return new (MassConcentrationUnit.CentigramPerMilliliter, MassConcentrationUnits.CentigramPerMilliliter); + yield return new (MassConcentrationUnit.DecigramPerDeciliter, MassConcentrationUnits.DecigramPerDeciliter); + yield return new (MassConcentrationUnit.DecigramPerLiter, MassConcentrationUnits.DecigramPerLiter); + yield return new (MassConcentrationUnit.DecigramPerMicroliter, MassConcentrationUnits.DecigramPerMicroliter); + yield return new (MassConcentrationUnit.DecigramPerMilliliter, MassConcentrationUnits.DecigramPerMilliliter); + yield return new (MassConcentrationUnit.GramPerCubicCentimeter, MassConcentrationUnits.GramPerCubicCentimeter); + yield return new (MassConcentrationUnit.GramPerCubicMeter, MassConcentrationUnits.GramPerCubicMeter); + yield return new (MassConcentrationUnit.GramPerCubicMillimeter, MassConcentrationUnits.GramPerCubicMillimeter); + yield return new (MassConcentrationUnit.GramPerDeciliter, MassConcentrationUnits.GramPerDeciliter); + yield return new (MassConcentrationUnit.GramPerLiter, MassConcentrationUnits.GramPerLiter); + yield return new (MassConcentrationUnit.GramPerMicroliter, MassConcentrationUnits.GramPerMicroliter); + yield return new (MassConcentrationUnit.GramPerMilliliter, MassConcentrationUnits.GramPerMilliliter); + yield return new (MassConcentrationUnit.KilogramPerCubicCentimeter, MassConcentrationUnits.KilogramPerCubicCentimeter); + yield return new (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnits.KilogramPerCubicMeter); + yield return new (MassConcentrationUnit.KilogramPerCubicMillimeter, MassConcentrationUnits.KilogramPerCubicMillimeter); + yield return new (MassConcentrationUnit.KilogramPerLiter, MassConcentrationUnits.KilogramPerLiter); + yield return new (MassConcentrationUnit.KilopoundPerCubicFoot, MassConcentrationUnits.KilopoundPerCubicFoot); + yield return new (MassConcentrationUnit.KilopoundPerCubicInch, MassConcentrationUnits.KilopoundPerCubicInch); + yield return new (MassConcentrationUnit.MicrogramPerCubicMeter, MassConcentrationUnits.MicrogramPerCubicMeter); + yield return new (MassConcentrationUnit.MicrogramPerDeciliter, MassConcentrationUnits.MicrogramPerDeciliter); + yield return new (MassConcentrationUnit.MicrogramPerLiter, MassConcentrationUnits.MicrogramPerLiter); + yield return new (MassConcentrationUnit.MicrogramPerMicroliter, MassConcentrationUnits.MicrogramPerMicroliter); + yield return new (MassConcentrationUnit.MicrogramPerMilliliter, MassConcentrationUnits.MicrogramPerMilliliter); + yield return new (MassConcentrationUnit.MilligramPerCubicMeter, MassConcentrationUnits.MilligramPerCubicMeter); + yield return new (MassConcentrationUnit.MilligramPerDeciliter, MassConcentrationUnits.MilligramPerDeciliter); + yield return new (MassConcentrationUnit.MilligramPerLiter, MassConcentrationUnits.MilligramPerLiter); + yield return new (MassConcentrationUnit.MilligramPerMicroliter, MassConcentrationUnits.MilligramPerMicroliter); + yield return new (MassConcentrationUnit.MilligramPerMilliliter, MassConcentrationUnits.MilligramPerMilliliter); + yield return new (MassConcentrationUnit.NanogramPerDeciliter, MassConcentrationUnits.NanogramPerDeciliter); + yield return new (MassConcentrationUnit.NanogramPerLiter, MassConcentrationUnits.NanogramPerLiter); + yield return new (MassConcentrationUnit.NanogramPerMicroliter, MassConcentrationUnits.NanogramPerMicroliter); + yield return new (MassConcentrationUnit.NanogramPerMilliliter, MassConcentrationUnits.NanogramPerMilliliter); + yield return new (MassConcentrationUnit.OuncePerImperialGallon, MassConcentrationUnits.OuncePerImperialGallon); + yield return new (MassConcentrationUnit.OuncePerUSGallon, MassConcentrationUnits.OuncePerUSGallon); + yield return new (MassConcentrationUnit.PicogramPerDeciliter, MassConcentrationUnits.PicogramPerDeciliter); + yield return new (MassConcentrationUnit.PicogramPerLiter, MassConcentrationUnits.PicogramPerLiter); + yield return new (MassConcentrationUnit.PicogramPerMicroliter, MassConcentrationUnits.PicogramPerMicroliter); + yield return new (MassConcentrationUnit.PicogramPerMilliliter, MassConcentrationUnits.PicogramPerMilliliter); + yield return new (MassConcentrationUnit.PoundPerCubicFoot, MassConcentrationUnits.PoundPerCubicFoot); + yield return new (MassConcentrationUnit.PoundPerCubicInch, MassConcentrationUnits.PoundPerCubicInch); + yield return new (MassConcentrationUnit.PoundPerImperialGallon, MassConcentrationUnits.PoundPerImperialGallon); + yield return new (MassConcentrationUnit.PoundPerUSGallon, MassConcentrationUnits.PoundPerUSGallon); + yield return new (MassConcentrationUnit.SlugPerCubicFoot, MassConcentrationUnits.SlugPerCubicFoot); + yield return new (MassConcentrationUnit.TonnePerCubicCentimeter, MassConcentrationUnits.TonnePerCubicCentimeter); + yield return new (MassConcentrationUnit.TonnePerCubicMeter, MassConcentrationUnits.TonnePerCubicMeter); + yield return new (MassConcentrationUnit.TonnePerCubicMillimeter, MassConcentrationUnits.TonnePerCubicMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs index a3a1b25257..ce9e39c1ca 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs @@ -126,103 +126,39 @@ public static MassFlowInfo CreateDefault(FuncAn of representing the default unit mappings for MassFlow. public static IEnumerable> GetDefaultMappings() { - yield return new (MassFlowUnit.CentigramPerDay, "CentigramPerDay", "CentigramsPerDay", new BaseUnits(mass: MassUnit.Centigram, time: DurationUnit.Day), - 8640000 - ); - yield return new (MassFlowUnit.CentigramPerSecond, "CentigramPerSecond", "CentigramsPerSecond", new BaseUnits(mass: MassUnit.Centigram, time: DurationUnit.Second), - 100 - ); - yield return new (MassFlowUnit.DecagramPerDay, "DecagramPerDay", "DecagramsPerDay", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Day), - 8640 - ); - yield return new (MassFlowUnit.DecagramPerSecond, "DecagramPerSecond", "DecagramsPerSecond", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (MassFlowUnit.DecigramPerDay, "DecigramPerDay", "DecigramsPerDay", new BaseUnits(mass: MassUnit.Decigram, time: DurationUnit.Day), - 864000 - ); - yield return new (MassFlowUnit.DecigramPerSecond, "DecigramPerSecond", "DecigramsPerSecond", new BaseUnits(mass: MassUnit.Decigram, time: DurationUnit.Second), - 10 - ); - yield return new (MassFlowUnit.GramPerDay, "GramPerDay", "GramsPerDay", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Day), - 86400 - ); - yield return new (MassFlowUnit.GramPerHour, "GramPerHour", "GramsPerHour", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Hour), - 3600 - ); - yield return new (MassFlowUnit.GramPerSecond, "GramPerSecond", "GramsPerSecond", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second)); - yield return new (MassFlowUnit.HectogramPerDay, "HectogramPerDay", "HectogramsPerDay", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Day), - 864 - ); - yield return new (MassFlowUnit.HectogramPerSecond, "HectogramPerSecond", "HectogramsPerSecond", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), - new QuantityValue(1, 100) - ); - yield return new (MassFlowUnit.KilogramPerDay, "KilogramPerDay", "KilogramsPerDay", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Day), - new QuantityValue(432, 5) - ); - yield return new (MassFlowUnit.KilogramPerHour, "KilogramPerHour", "KilogramsPerHour", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Hour), - new QuantityValue(18, 5) - ); - yield return new (MassFlowUnit.KilogramPerMinute, "KilogramPerMinute", "KilogramsPerMinute", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(3, 50) - ); - yield return new (MassFlowUnit.KilogramPerSecond, "KilogramPerSecond", "KilogramsPerSecond", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (MassFlowUnit.MegagramPerDay, "MegagramPerDay", "MegagramsPerDay", BaseUnits.Undefined, - new QuantityValue(54, 625) - ); - yield return new (MassFlowUnit.MegapoundPerDay, "MegapoundPerDay", "MegapoundsPerDay", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Day), - new QuantityValue(8640, 45359237) - ); - yield return new (MassFlowUnit.MegapoundPerHour, "MegapoundPerHour", "MegapoundsPerHour", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Hour), - new QuantityValue(360, 45359237) - ); - yield return new (MassFlowUnit.MegapoundPerMinute, "MegapoundPerMinute", "MegapoundsPerMinute", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Minute), - new QuantityValue(6, 45359237) - ); - yield return new (MassFlowUnit.MegapoundPerSecond, "MegapoundPerSecond", "MegapoundsPerSecond", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Second), - new QuantityValue(1, 453592370) - ); - yield return new (MassFlowUnit.MicrogramPerDay, "MicrogramPerDay", "MicrogramsPerDay", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Day), - 86400000000 - ); - yield return new (MassFlowUnit.MicrogramPerSecond, "MicrogramPerSecond", "MicrogramsPerSecond", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000 - ); - yield return new (MassFlowUnit.MilligramPerDay, "MilligramPerDay", "MilligramsPerDay", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Day), - 86400000 - ); - yield return new (MassFlowUnit.MilligramPerSecond, "MilligramPerSecond", "MilligramsPerSecond", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000 - ); - yield return new (MassFlowUnit.NanogramPerDay, "NanogramPerDay", "NanogramsPerDay", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Day), - 86400000000000 - ); - yield return new (MassFlowUnit.NanogramPerSecond, "NanogramPerSecond", "NanogramsPerSecond", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (MassFlowUnit.PoundPerDay, "PoundPerDay", "PoundsPerDay", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Day), - new QuantityValue(8640000000, 45359237) - ); - yield return new (MassFlowUnit.PoundPerHour, "PoundPerHour", "PoundsPerHour", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Hour), - new QuantityValue(360000000, 45359237) - ); - yield return new (MassFlowUnit.PoundPerMinute, "PoundPerMinute", "PoundsPerMinute", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Minute), - new QuantityValue(6000000, 45359237) - ); - yield return new (MassFlowUnit.PoundPerSecond, "PoundPerSecond", "PoundsPerSecond", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Second), - new QuantityValue(100000, 45359237) - ); - yield return new (MassFlowUnit.ShortTonPerHour, "ShortTonPerHour", "ShortTonsPerHour", new BaseUnits(mass: MassUnit.ShortTon, time: DurationUnit.Hour), - new QuantityValue(180000, 45359237) - ); - yield return new (MassFlowUnit.TonnePerDay, "TonnePerDay", "TonnesPerDay", new BaseUnits(mass: MassUnit.Tonne, time: DurationUnit.Day), - new QuantityValue(54, 625) - ); - yield return new (MassFlowUnit.TonnePerHour, "TonnePerHour", "TonnesPerHour", new BaseUnits(mass: MassUnit.Tonne, time: DurationUnit.Hour), - new QuantityValue(9, 2500) - ); + yield return new (MassFlowUnit.CentigramPerDay, MassFlowUnits.CentigramPerDay); + yield return new (MassFlowUnit.CentigramPerSecond, MassFlowUnits.CentigramPerSecond); + yield return new (MassFlowUnit.DecagramPerDay, MassFlowUnits.DecagramPerDay); + yield return new (MassFlowUnit.DecagramPerSecond, MassFlowUnits.DecagramPerSecond); + yield return new (MassFlowUnit.DecigramPerDay, MassFlowUnits.DecigramPerDay); + yield return new (MassFlowUnit.DecigramPerSecond, MassFlowUnits.DecigramPerSecond); + yield return new (MassFlowUnit.GramPerDay, MassFlowUnits.GramPerDay); + yield return new (MassFlowUnit.GramPerHour, MassFlowUnits.GramPerHour); + yield return new (MassFlowUnit.GramPerSecond, MassFlowUnits.GramPerSecond); + yield return new (MassFlowUnit.HectogramPerDay, MassFlowUnits.HectogramPerDay); + yield return new (MassFlowUnit.HectogramPerSecond, MassFlowUnits.HectogramPerSecond); + yield return new (MassFlowUnit.KilogramPerDay, MassFlowUnits.KilogramPerDay); + yield return new (MassFlowUnit.KilogramPerHour, MassFlowUnits.KilogramPerHour); + yield return new (MassFlowUnit.KilogramPerMinute, MassFlowUnits.KilogramPerMinute); + yield return new (MassFlowUnit.KilogramPerSecond, MassFlowUnits.KilogramPerSecond); + yield return new (MassFlowUnit.MegagramPerDay, MassFlowUnits.MegagramPerDay); + yield return new (MassFlowUnit.MegapoundPerDay, MassFlowUnits.MegapoundPerDay); + yield return new (MassFlowUnit.MegapoundPerHour, MassFlowUnits.MegapoundPerHour); + yield return new (MassFlowUnit.MegapoundPerMinute, MassFlowUnits.MegapoundPerMinute); + yield return new (MassFlowUnit.MegapoundPerSecond, MassFlowUnits.MegapoundPerSecond); + yield return new (MassFlowUnit.MicrogramPerDay, MassFlowUnits.MicrogramPerDay); + yield return new (MassFlowUnit.MicrogramPerSecond, MassFlowUnits.MicrogramPerSecond); + yield return new (MassFlowUnit.MilligramPerDay, MassFlowUnits.MilligramPerDay); + yield return new (MassFlowUnit.MilligramPerSecond, MassFlowUnits.MilligramPerSecond); + yield return new (MassFlowUnit.NanogramPerDay, MassFlowUnits.NanogramPerDay); + yield return new (MassFlowUnit.NanogramPerSecond, MassFlowUnits.NanogramPerSecond); + yield return new (MassFlowUnit.PoundPerDay, MassFlowUnits.PoundPerDay); + yield return new (MassFlowUnit.PoundPerHour, MassFlowUnits.PoundPerHour); + yield return new (MassFlowUnit.PoundPerMinute, MassFlowUnits.PoundPerMinute); + yield return new (MassFlowUnit.PoundPerSecond, MassFlowUnits.PoundPerSecond); + yield return new (MassFlowUnit.ShortTonPerHour, MassFlowUnits.ShortTonPerHour); + yield return new (MassFlowUnit.TonnePerDay, MassFlowUnits.TonnePerDay); + yield return new (MassFlowUnit.TonnePerHour, MassFlowUnits.TonnePerHour); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs index 14987fa97e..d18d64d3d9 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs @@ -119,40 +119,18 @@ public static MassFluxInfo CreateDefault(FuncAn of representing the default unit mappings for MassFlux. public static IEnumerable> GetDefaultMappings() { - yield return new (MassFluxUnit.GramPerHourPerSquareCentimeter, "GramPerHourPerSquareCentimeter", "GramsPerHourPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Hour), - 360 - ); - yield return new (MassFluxUnit.GramPerHourPerSquareMeter, "GramPerHourPerSquareMeter", "GramsPerHourPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Hour), - 3600000 - ); - yield return new (MassFluxUnit.GramPerHourPerSquareMillimeter, "GramPerHourPerSquareMillimeter", "GramsPerHourPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram, time: DurationUnit.Hour), - new QuantityValue(18, 5) - ); - yield return new (MassFluxUnit.GramPerSecondPerSquareCentimeter, "GramPerSecondPerSquareCentimeter", "GramsPerSecondPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (MassFluxUnit.GramPerSecondPerSquareMeter, "GramPerSecondPerSquareMeter", "GramsPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (MassFluxUnit.GramPerSecondPerSquareMillimeter, "GramPerSecondPerSquareMillimeter", "GramsPerSecondPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (MassFluxUnit.KilogramPerHourPerSquareCentimeter, "KilogramPerHourPerSquareCentimeter", "KilogramsPerHourPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), - new QuantityValue(9, 25) - ); - yield return new (MassFluxUnit.KilogramPerHourPerSquareMeter, "KilogramPerHourPerSquareMeter", "KilogramsPerHourPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), - 3600 - ); - yield return new (MassFluxUnit.KilogramPerHourPerSquareMillimeter, "KilogramPerHourPerSquareMillimeter", "KilogramsPerHourPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), - new QuantityValue(9, 2500) - ); - yield return new (MassFluxUnit.KilogramPerSecondPerSquareCentimeter, "KilogramPerSecondPerSquareCentimeter", "KilogramsPerSecondPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10000) - ); - yield return new (MassFluxUnit.KilogramPerSecondPerSquareMeter, "KilogramPerSecondPerSquareMeter", "KilogramsPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (MassFluxUnit.KilogramPerSecondPerSquareMillimeter, "KilogramPerSecondPerSquareMillimeter", "KilogramsPerSecondPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); + yield return new (MassFluxUnit.GramPerHourPerSquareCentimeter, MassFluxUnits.GramPerHourPerSquareCentimeter); + yield return new (MassFluxUnit.GramPerHourPerSquareMeter, MassFluxUnits.GramPerHourPerSquareMeter); + yield return new (MassFluxUnit.GramPerHourPerSquareMillimeter, MassFluxUnits.GramPerHourPerSquareMillimeter); + yield return new (MassFluxUnit.GramPerSecondPerSquareCentimeter, MassFluxUnits.GramPerSecondPerSquareCentimeter); + yield return new (MassFluxUnit.GramPerSecondPerSquareMeter, MassFluxUnits.GramPerSecondPerSquareMeter); + yield return new (MassFluxUnit.GramPerSecondPerSquareMillimeter, MassFluxUnits.GramPerSecondPerSquareMillimeter); + yield return new (MassFluxUnit.KilogramPerHourPerSquareCentimeter, MassFluxUnits.KilogramPerHourPerSquareCentimeter); + yield return new (MassFluxUnit.KilogramPerHourPerSquareMeter, MassFluxUnits.KilogramPerHourPerSquareMeter); + yield return new (MassFluxUnit.KilogramPerHourPerSquareMillimeter, MassFluxUnits.KilogramPerHourPerSquareMillimeter); + yield return new (MassFluxUnit.KilogramPerSecondPerSquareCentimeter, MassFluxUnits.KilogramPerSecondPerSquareCentimeter); + yield return new (MassFluxUnit.KilogramPerSecondPerSquareMeter, MassFluxUnits.KilogramPerSecondPerSquareMeter); + yield return new (MassFluxUnit.KilogramPerSecondPerSquareMillimeter, MassFluxUnits.KilogramPerSecondPerSquareMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs index 1e123048ec..e9fdc556c0 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs @@ -120,76 +120,30 @@ public static MassFractionInfo CreateDefault(FuncAn of representing the default unit mappings for MassFraction. public static IEnumerable> GetDefaultMappings() { - yield return new (MassFractionUnit.CentigramPerGram, "CentigramPerGram", "CentigramsPerGram", BaseUnits.Undefined, - 100 - ); - yield return new (MassFractionUnit.CentigramPerKilogram, "CentigramPerKilogram", "CentigramsPerKilogram", BaseUnits.Undefined, - 100000 - ); - yield return new (MassFractionUnit.DecagramPerGram, "DecagramPerGram", "DecagramsPerGram", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (MassFractionUnit.DecagramPerKilogram, "DecagramPerKilogram", "DecagramsPerKilogram", BaseUnits.Undefined, - 100 - ); - yield return new (MassFractionUnit.DecigramPerGram, "DecigramPerGram", "DecigramsPerGram", BaseUnits.Undefined, - 10 - ); - yield return new (MassFractionUnit.DecigramPerKilogram, "DecigramPerKilogram", "DecigramsPerKilogram", BaseUnits.Undefined, - 10000 - ); - yield return new (MassFractionUnit.DecimalFraction, "DecimalFraction", "DecimalFractions", BaseUnits.Undefined); - yield return new (MassFractionUnit.GramPerGram, "GramPerGram", "GramsPerGram", BaseUnits.Undefined, - 1 - ); - yield return new (MassFractionUnit.GramPerKilogram, "GramPerKilogram", "GramsPerKilogram", BaseUnits.Undefined, - 1000 - ); - yield return new (MassFractionUnit.HectogramPerGram, "HectogramPerGram", "HectogramsPerGram", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (MassFractionUnit.HectogramPerKilogram, "HectogramPerKilogram", "HectogramsPerKilogram", BaseUnits.Undefined, - 10 - ); - yield return new (MassFractionUnit.KilogramPerGram, "KilogramPerGram", "KilogramsPerGram", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (MassFractionUnit.KilogramPerKilogram, "KilogramPerKilogram", "KilogramsPerKilogram", BaseUnits.Undefined, - 1 - ); - yield return new (MassFractionUnit.MicrogramPerGram, "MicrogramPerGram", "MicrogramsPerGram", BaseUnits.Undefined, - 1000000 - ); - yield return new (MassFractionUnit.MicrogramPerKilogram, "MicrogramPerKilogram", "MicrogramsPerKilogram", BaseUnits.Undefined, - 1000000000 - ); - yield return new (MassFractionUnit.MilligramPerGram, "MilligramPerGram", "MilligramsPerGram", BaseUnits.Undefined, - 1000 - ); - yield return new (MassFractionUnit.MilligramPerKilogram, "MilligramPerKilogram", "MilligramsPerKilogram", BaseUnits.Undefined, - 1000000 - ); - yield return new (MassFractionUnit.NanogramPerGram, "NanogramPerGram", "NanogramsPerGram", BaseUnits.Undefined, - 1000000000 - ); - yield return new (MassFractionUnit.NanogramPerKilogram, "NanogramPerKilogram", "NanogramsPerKilogram", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (MassFractionUnit.PartPerBillion, "PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, - 1000000000 - ); - yield return new (MassFractionUnit.PartPerMillion, "PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, - 1000000 - ); - yield return new (MassFractionUnit.PartPerThousand, "PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, - 1000 - ); - yield return new (MassFractionUnit.PartPerTrillion, "PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (MassFractionUnit.Percent, "Percent", "Percent", BaseUnits.Undefined, - 100 - ); + yield return new (MassFractionUnit.CentigramPerGram, MassFractionUnits.CentigramPerGram); + yield return new (MassFractionUnit.CentigramPerKilogram, MassFractionUnits.CentigramPerKilogram); + yield return new (MassFractionUnit.DecagramPerGram, MassFractionUnits.DecagramPerGram); + yield return new (MassFractionUnit.DecagramPerKilogram, MassFractionUnits.DecagramPerKilogram); + yield return new (MassFractionUnit.DecigramPerGram, MassFractionUnits.DecigramPerGram); + yield return new (MassFractionUnit.DecigramPerKilogram, MassFractionUnits.DecigramPerKilogram); + yield return new (MassFractionUnit.DecimalFraction, MassFractionUnits.DecimalFraction); + yield return new (MassFractionUnit.GramPerGram, MassFractionUnits.GramPerGram); + yield return new (MassFractionUnit.GramPerKilogram, MassFractionUnits.GramPerKilogram); + yield return new (MassFractionUnit.HectogramPerGram, MassFractionUnits.HectogramPerGram); + yield return new (MassFractionUnit.HectogramPerKilogram, MassFractionUnits.HectogramPerKilogram); + yield return new (MassFractionUnit.KilogramPerGram, MassFractionUnits.KilogramPerGram); + yield return new (MassFractionUnit.KilogramPerKilogram, MassFractionUnits.KilogramPerKilogram); + yield return new (MassFractionUnit.MicrogramPerGram, MassFractionUnits.MicrogramPerGram); + yield return new (MassFractionUnit.MicrogramPerKilogram, MassFractionUnits.MicrogramPerKilogram); + yield return new (MassFractionUnit.MilligramPerGram, MassFractionUnits.MilligramPerGram); + yield return new (MassFractionUnit.MilligramPerKilogram, MassFractionUnits.MilligramPerKilogram); + yield return new (MassFractionUnit.NanogramPerGram, MassFractionUnits.NanogramPerGram); + yield return new (MassFractionUnit.NanogramPerKilogram, MassFractionUnits.NanogramPerKilogram); + yield return new (MassFractionUnit.PartPerBillion, MassFractionUnits.PartPerBillion); + yield return new (MassFractionUnit.PartPerMillion, MassFractionUnits.PartPerMillion); + yield return new (MassFractionUnit.PartPerThousand, MassFractionUnits.PartPerThousand); + yield return new (MassFractionUnit.PartPerTrillion, MassFractionUnits.PartPerTrillion); + yield return new (MassFractionUnit.Percent, MassFractionUnits.Percent); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs index f58feb6be4..3cf3f1467f 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs @@ -116,88 +116,34 @@ public static MassMomentOfInertiaInfo CreateDefault(FuncAn of representing the default unit mappings for MassMomentOfInertia. public static IEnumerable> GetDefaultMappings() { - yield return new (MassMomentOfInertiaUnit.GramSquareCentimeter, "GramSquareCentimeter", "GramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), - 10000000 - ); - yield return new (MassMomentOfInertiaUnit.GramSquareDecimeter, "GramSquareDecimeter", "GramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), - 100000 - ); - yield return new (MassMomentOfInertiaUnit.GramSquareMeter, "GramSquareMeter", "GramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), - 1000 - ); - yield return new (MassMomentOfInertiaUnit.GramSquareMillimeter, "GramSquareMillimeter", "GramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), - 1000000000 - ); - yield return new (MassMomentOfInertiaUnit.KilogramSquareCentimeter, "KilogramSquareCentimeter", "KilogramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), - 10000 - ); - yield return new (MassMomentOfInertiaUnit.KilogramSquareDecimeter, "KilogramSquareDecimeter", "KilogramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), - 100 - ); - yield return new (MassMomentOfInertiaUnit.KilogramSquareMeter, "KilogramSquareMeter", "KilogramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (MassMomentOfInertiaUnit.KilogramSquareMillimeter, "KilogramSquareMillimeter", "KilogramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - 1000000 - ); - yield return new (MassMomentOfInertiaUnit.KilotonneSquareCentimeter, "KilotonneSquareCentimeter", "KilotonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilotonne), - new QuantityValue(1, 100) - ); - yield return new (MassMomentOfInertiaUnit.KilotonneSquareDecimeter, "KilotonneSquareDecimeter", "KilotonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilotonne), - new QuantityValue(1, 10000) - ); - yield return new (MassMomentOfInertiaUnit.KilotonneSquareMeter, "KilotonneSquareMeter", "KilotonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilotonne), - new QuantityValue(1, 1000000) - ); - yield return new (MassMomentOfInertiaUnit.KilotonneSquareMillimeter, "KilotonneSquareMillimeter", "KilotonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilotonne), - 1 - ); - yield return new (MassMomentOfInertiaUnit.MegatonneSquareCentimeter, "MegatonneSquareCentimeter", "MegatonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Megatonne), - new QuantityValue(1, 100000) - ); - yield return new (MassMomentOfInertiaUnit.MegatonneSquareDecimeter, "MegatonneSquareDecimeter", "MegatonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Megatonne), - new QuantityValue(1, 10000000) - ); - yield return new (MassMomentOfInertiaUnit.MegatonneSquareMeter, "MegatonneSquareMeter", "MegatonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Megatonne), - new QuantityValue(1, 1000000000) - ); - yield return new (MassMomentOfInertiaUnit.MegatonneSquareMillimeter, "MegatonneSquareMillimeter", "MegatonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Megatonne), - new QuantityValue(1, 1000) - ); - yield return new (MassMomentOfInertiaUnit.MilligramSquareCentimeter, "MilligramSquareCentimeter", "MilligramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), - 10000000000 - ); - yield return new (MassMomentOfInertiaUnit.MilligramSquareDecimeter, "MilligramSquareDecimeter", "MilligramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), - 100000000 - ); - yield return new (MassMomentOfInertiaUnit.MilligramSquareMeter, "MilligramSquareMeter", "MilligramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), - 1000000 - ); - yield return new (MassMomentOfInertiaUnit.MilligramSquareMillimeter, "MilligramSquareMillimeter", "MilligramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Milligram), - 1000000000000 - ); - yield return new (MassMomentOfInertiaUnit.PoundSquareFoot, "PoundSquareFoot", "PoundSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(156250000000000, 6584392202157) - ); - yield return new (MassMomentOfInertiaUnit.PoundSquareInch, "PoundSquareInch", "PoundSquareInches", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), - new QuantityValue(2500000000000000, 731599133573) - ); - yield return new (MassMomentOfInertiaUnit.SlugSquareFoot, "SlugSquareFoot", "SlugSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), - new QuantityValue(2500000000000000, 3389544870828501) - ); - yield return new (MassMomentOfInertiaUnit.SlugSquareInch, "SlugSquareInch", "SlugSquareInches", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Slug), - new QuantityValue(120000000000000000, 1129848290276167) - ); - yield return new (MassMomentOfInertiaUnit.TonneSquareCentimeter, "TonneSquareCentimeter", "TonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), - 10 - ); - yield return new (MassMomentOfInertiaUnit.TonneSquareDecimeter, "TonneSquareDecimeter", "TonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Tonne), - new QuantityValue(1, 10) - ); - yield return new (MassMomentOfInertiaUnit.TonneSquareMeter, "TonneSquareMeter", "TonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), - new QuantityValue(1, 1000) - ); - yield return new (MassMomentOfInertiaUnit.TonneSquareMillimeter, "TonneSquareMillimeter", "TonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), - 1000 - ); + yield return new (MassMomentOfInertiaUnit.GramSquareCentimeter, MassMomentOfInertiaUnits.GramSquareCentimeter); + yield return new (MassMomentOfInertiaUnit.GramSquareDecimeter, MassMomentOfInertiaUnits.GramSquareDecimeter); + yield return new (MassMomentOfInertiaUnit.GramSquareMeter, MassMomentOfInertiaUnits.GramSquareMeter); + yield return new (MassMomentOfInertiaUnit.GramSquareMillimeter, MassMomentOfInertiaUnits.GramSquareMillimeter); + yield return new (MassMomentOfInertiaUnit.KilogramSquareCentimeter, MassMomentOfInertiaUnits.KilogramSquareCentimeter); + yield return new (MassMomentOfInertiaUnit.KilogramSquareDecimeter, MassMomentOfInertiaUnits.KilogramSquareDecimeter); + yield return new (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnits.KilogramSquareMeter); + yield return new (MassMomentOfInertiaUnit.KilogramSquareMillimeter, MassMomentOfInertiaUnits.KilogramSquareMillimeter); + yield return new (MassMomentOfInertiaUnit.KilotonneSquareCentimeter, MassMomentOfInertiaUnits.KilotonneSquareCentimeter); + yield return new (MassMomentOfInertiaUnit.KilotonneSquareDecimeter, MassMomentOfInertiaUnits.KilotonneSquareDecimeter); + yield return new (MassMomentOfInertiaUnit.KilotonneSquareMeter, MassMomentOfInertiaUnits.KilotonneSquareMeter); + yield return new (MassMomentOfInertiaUnit.KilotonneSquareMillimeter, MassMomentOfInertiaUnits.KilotonneSquareMillimeter); + yield return new (MassMomentOfInertiaUnit.MegatonneSquareCentimeter, MassMomentOfInertiaUnits.MegatonneSquareCentimeter); + yield return new (MassMomentOfInertiaUnit.MegatonneSquareDecimeter, MassMomentOfInertiaUnits.MegatonneSquareDecimeter); + yield return new (MassMomentOfInertiaUnit.MegatonneSquareMeter, MassMomentOfInertiaUnits.MegatonneSquareMeter); + yield return new (MassMomentOfInertiaUnit.MegatonneSquareMillimeter, MassMomentOfInertiaUnits.MegatonneSquareMillimeter); + yield return new (MassMomentOfInertiaUnit.MilligramSquareCentimeter, MassMomentOfInertiaUnits.MilligramSquareCentimeter); + yield return new (MassMomentOfInertiaUnit.MilligramSquareDecimeter, MassMomentOfInertiaUnits.MilligramSquareDecimeter); + yield return new (MassMomentOfInertiaUnit.MilligramSquareMeter, MassMomentOfInertiaUnits.MilligramSquareMeter); + yield return new (MassMomentOfInertiaUnit.MilligramSquareMillimeter, MassMomentOfInertiaUnits.MilligramSquareMillimeter); + yield return new (MassMomentOfInertiaUnit.PoundSquareFoot, MassMomentOfInertiaUnits.PoundSquareFoot); + yield return new (MassMomentOfInertiaUnit.PoundSquareInch, MassMomentOfInertiaUnits.PoundSquareInch); + yield return new (MassMomentOfInertiaUnit.SlugSquareFoot, MassMomentOfInertiaUnits.SlugSquareFoot); + yield return new (MassMomentOfInertiaUnit.SlugSquareInch, MassMomentOfInertiaUnits.SlugSquareInch); + yield return new (MassMomentOfInertiaUnit.TonneSquareCentimeter, MassMomentOfInertiaUnits.TonneSquareCentimeter); + yield return new (MassMomentOfInertiaUnit.TonneSquareDecimeter, MassMomentOfInertiaUnits.TonneSquareDecimeter); + yield return new (MassMomentOfInertiaUnit.TonneSquareMeter, MassMomentOfInertiaUnits.TonneSquareMeter); + yield return new (MassMomentOfInertiaUnit.TonneSquareMillimeter, MassMomentOfInertiaUnits.TonneSquareMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Molality.g.cs b/UnitsNet/GeneratedCode/Quantities/Molality.g.cs index 5948be35a0..b830e81a61 100644 --- a/UnitsNet/GeneratedCode/Quantities/Molality.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Molality.g.cs @@ -119,13 +119,9 @@ public static MolalityInfo CreateDefault(FuncAn of representing the default unit mappings for Molality. public static IEnumerable> GetDefaultMappings() { - yield return new (MolalityUnit.MillimolePerKilogram, "MillimolePerKilogram", "MillimolesPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Millimole), - 1000 - ); - yield return new (MolalityUnit.MolePerGram, "MolePerGram", "MolesPerGram", new BaseUnits(mass: MassUnit.Gram, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(1, 1000) - ); - yield return new (MolalityUnit.MolePerKilogram, "MolePerKilogram", "MolesPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Mole)); + yield return new (MolalityUnit.MillimolePerKilogram, MolalityUnits.MillimolePerKilogram); + yield return new (MolalityUnit.MolePerGram, MolalityUnits.MolePerGram); + yield return new (MolalityUnit.MolePerKilogram, MolalityUnits.MolePerKilogram); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs index 67a4e4b37a..6ab609325f 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs @@ -117,13 +117,9 @@ public static MolarEnergyInfo CreateDefault(FuncAn of representing the default unit mappings for MolarEnergy. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarEnergyUnit.JoulePerMole, "JoulePerMole", "JoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarEnergyUnit.KilojoulePerMole, "KilojoulePerMole", "KilojoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Millimole), - new QuantityValue(1, 1000) - ); - yield return new (MolarEnergyUnit.MegajoulePerMole, "MegajoulePerMole", "MegajoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Micromole), - new QuantityValue(1, 1000000) - ); + yield return new (MolarEnergyUnit.JoulePerMole, MolarEnergyUnits.JoulePerMole); + yield return new (MolarEnergyUnit.KilojoulePerMole, MolarEnergyUnits.KilojoulePerMole); + yield return new (MolarEnergyUnit.MegajoulePerMole, MolarEnergyUnits.MegajoulePerMole); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs index c0a5fda05e..06119642d5 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs @@ -116,13 +116,9 @@ public static MolarEntropyInfo CreateDefault(FuncAn of representing the default unit mappings for MolarEntropy. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarEntropyUnit.JoulePerMoleKelvin, "JoulePerMoleKelvin", "JoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarEntropyUnit.KilojoulePerMoleKelvin, "KilojoulePerMoleKelvin", "KilojoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Millimole), - new QuantityValue(1, 1000) - ); - yield return new (MolarEntropyUnit.MegajoulePerMoleKelvin, "MegajoulePerMoleKelvin", "MegajoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Micromole), - new QuantityValue(1, 1000000) - ); + yield return new (MolarEntropyUnit.JoulePerMoleKelvin, MolarEntropyUnits.JoulePerMoleKelvin); + yield return new (MolarEntropyUnit.KilojoulePerMoleKelvin, MolarEntropyUnits.KilojoulePerMoleKelvin); + yield return new (MolarEntropyUnit.MegajoulePerMoleKelvin, MolarEntropyUnits.MegajoulePerMoleKelvin); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs index af2f778a9b..8993eac1bf 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs @@ -120,31 +120,15 @@ public static MolarFlowInfo CreateDefault(FuncAn of representing the default unit mappings for MolarFlow. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarFlowUnit.KilomolePerHour, "KilomolePerHour", "KilomolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(18, 5) - ); - yield return new (MolarFlowUnit.KilomolePerMinute, "KilomolePerMinute", "KilomolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(3, 50) - ); - yield return new (MolarFlowUnit.KilomolePerSecond, "KilomolePerSecond", "KilomolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(1, 1000) - ); - yield return new (MolarFlowUnit.MolePerHour, "MolePerHour", "MolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.Mole), - 3600 - ); - yield return new (MolarFlowUnit.MolePerMinute, "MolePerMinute", "MolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.Mole), - 60 - ); - yield return new (MolarFlowUnit.MolePerSecond, "MolePerSecond", "MolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarFlowUnit.PoundMolePerHour, "PoundMolePerHour", "PoundMolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(360000000, 45359237) - ); - yield return new (MolarFlowUnit.PoundMolePerMinute, "PoundMolePerMinute", "PoundMolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(6000000, 45359237) - ); - yield return new (MolarFlowUnit.PoundMolePerSecond, "PoundMolePerSecond", "PoundMolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(100000, 45359237) - ); + yield return new (MolarFlowUnit.KilomolePerHour, MolarFlowUnits.KilomolePerHour); + yield return new (MolarFlowUnit.KilomolePerMinute, MolarFlowUnits.KilomolePerMinute); + yield return new (MolarFlowUnit.KilomolePerSecond, MolarFlowUnits.KilomolePerSecond); + yield return new (MolarFlowUnit.MolePerHour, MolarFlowUnits.MolePerHour); + yield return new (MolarFlowUnit.MolePerMinute, MolarFlowUnits.MolePerMinute); + yield return new (MolarFlowUnit.MolePerSecond, MolarFlowUnits.MolePerSecond); + yield return new (MolarFlowUnit.PoundMolePerHour, MolarFlowUnits.PoundMolePerHour); + yield return new (MolarFlowUnit.PoundMolePerMinute, MolarFlowUnits.PoundMolePerMinute); + yield return new (MolarFlowUnit.PoundMolePerSecond, MolarFlowUnits.PoundMolePerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs index b7c4b16e68..a2422ef021 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs @@ -119,46 +119,20 @@ public static MolarMassInfo CreateDefault(FuncAn of representing the default unit mappings for MolarMass. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarMassUnit.CentigramPerMole, "CentigramPerMole", "CentigramsPerMole", new BaseUnits(mass: MassUnit.Centigram, amount: AmountOfSubstanceUnit.Mole), - 100000 - ); - yield return new (MolarMassUnit.DecagramPerMole, "DecagramPerMole", "DecagramsPerMole", new BaseUnits(mass: MassUnit.Decagram, amount: AmountOfSubstanceUnit.Mole), - 100 - ); - yield return new (MolarMassUnit.DecigramPerMole, "DecigramPerMole", "DecigramsPerMole", new BaseUnits(mass: MassUnit.Decigram, amount: AmountOfSubstanceUnit.Mole), - 10000 - ); - yield return new (MolarMassUnit.GramPerMole, "GramPerMole", "GramsPerMole", new BaseUnits(mass: MassUnit.Gram, amount: AmountOfSubstanceUnit.Mole), - 1000 - ); - yield return new (MolarMassUnit.HectogramPerMole, "HectogramPerMole", "HectogramsPerMole", new BaseUnits(mass: MassUnit.Hectogram, amount: AmountOfSubstanceUnit.Mole), - 10 - ); - yield return new (MolarMassUnit.KilogramPerKilomole, "KilogramPerKilomole", "KilogramsPerKilomole", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Kilomole), - 1000 - ); - yield return new (MolarMassUnit.KilogramPerMole, "KilogramPerMole", "KilogramsPerMole", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarMassUnit.KilopoundPerMole, "KilopoundPerMole", "KilopoundsPerMole", new BaseUnits(mass: MassUnit.Kilopound, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(100000, 45359237) - ); - yield return new (MolarMassUnit.MegapoundPerMole, "MegapoundPerMole", "MegapoundsPerMole", new BaseUnits(mass: MassUnit.Megapound, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(100, 45359237) - ); - yield return new (MolarMassUnit.MicrogramPerMole, "MicrogramPerMole", "MicrogramsPerMole", new BaseUnits(mass: MassUnit.Microgram, amount: AmountOfSubstanceUnit.Mole), - 1000000000 - ); - yield return new (MolarMassUnit.MilligramPerMole, "MilligramPerMole", "MilligramsPerMole", new BaseUnits(mass: MassUnit.Milligram, amount: AmountOfSubstanceUnit.Mole), - 1000000 - ); - yield return new (MolarMassUnit.NanogramPerMole, "NanogramPerMole", "NanogramsPerMole", new BaseUnits(mass: MassUnit.Nanogram, amount: AmountOfSubstanceUnit.Mole), - 1000000000000 - ); - yield return new (MolarMassUnit.PoundPerMole, "PoundPerMole", "PoundsPerMole", new BaseUnits(mass: MassUnit.Pound, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(100000000, 45359237) - ); - yield return new (MolarMassUnit.PoundPerPoundMole, "PoundPerPoundMole", "PoundsPerPoundMole", new BaseUnits(mass: MassUnit.Pound, amount: AmountOfSubstanceUnit.PoundMole), - 1000 - ); + yield return new (MolarMassUnit.CentigramPerMole, MolarMassUnits.CentigramPerMole); + yield return new (MolarMassUnit.DecagramPerMole, MolarMassUnits.DecagramPerMole); + yield return new (MolarMassUnit.DecigramPerMole, MolarMassUnits.DecigramPerMole); + yield return new (MolarMassUnit.GramPerMole, MolarMassUnits.GramPerMole); + yield return new (MolarMassUnit.HectogramPerMole, MolarMassUnits.HectogramPerMole); + yield return new (MolarMassUnit.KilogramPerKilomole, MolarMassUnits.KilogramPerKilomole); + yield return new (MolarMassUnit.KilogramPerMole, MolarMassUnits.KilogramPerMole); + yield return new (MolarMassUnit.KilopoundPerMole, MolarMassUnits.KilopoundPerMole); + yield return new (MolarMassUnit.MegapoundPerMole, MolarMassUnits.MegapoundPerMole); + yield return new (MolarMassUnit.MicrogramPerMole, MolarMassUnits.MicrogramPerMole); + yield return new (MolarMassUnit.MilligramPerMole, MolarMassUnits.MilligramPerMole); + yield return new (MolarMassUnit.NanogramPerMole, MolarMassUnits.NanogramPerMole); + yield return new (MolarMassUnit.PoundPerMole, MolarMassUnits.PoundPerMole); + yield return new (MolarMassUnit.PoundPerPoundMole, MolarMassUnits.PoundPerPoundMole); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs index e9edd15565..4e84aadecf 100644 --- a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs @@ -124,37 +124,17 @@ public static MolarityInfo CreateDefault(FuncAn of representing the default unit mappings for Molarity. public static IEnumerable> GetDefaultMappings() { - yield return new (MolarityUnit.CentimolePerLiter, "CentimolePerLiter", "CentimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Centimole), - new QuantityValue(1, 10) - ); - yield return new (MolarityUnit.DecimolePerLiter, "DecimolePerLiter", "DecimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Decimole), - new QuantityValue(1, 100) - ); - yield return new (MolarityUnit.FemtomolePerLiter, "FemtomolePerLiter", "FemtomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Femtomole), - 1000000000000 - ); - yield return new (MolarityUnit.KilomolePerCubicMeter, "KilomolePerCubicMeter", "KilomolesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, amount: AmountOfSubstanceUnit.Kilomole), - new QuantityValue(1, 1000) - ); - yield return new (MolarityUnit.MicromolePerLiter, "MicromolePerLiter", "MicromolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Micromole), - 1000 - ); - yield return new (MolarityUnit.MillimolePerLiter, "MillimolePerLiter", "MillimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Millimole), - 1 - ); - yield return new (MolarityUnit.MolePerCubicMeter, "MolePerCubicMeter", "MolesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, amount: AmountOfSubstanceUnit.Mole)); - yield return new (MolarityUnit.MolePerLiter, "MolePerLiter", "MolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Mole), - new QuantityValue(1, 1000) - ); - yield return new (MolarityUnit.NanomolePerLiter, "NanomolePerLiter", "NanomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Nanomole), - 1000000 - ); - yield return new (MolarityUnit.PicomolePerLiter, "PicomolePerLiter", "PicomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Picomole), - 1000000000 - ); - yield return new (MolarityUnit.PoundMolePerCubicFoot, "PoundMolePerCubicFoot", "PoundMolesPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, amount: AmountOfSubstanceUnit.PoundMole), - new QuantityValue(221225364, 3543690390625) - ); + yield return new (MolarityUnit.CentimolePerLiter, MolarityUnits.CentimolePerLiter); + yield return new (MolarityUnit.DecimolePerLiter, MolarityUnits.DecimolePerLiter); + yield return new (MolarityUnit.FemtomolePerLiter, MolarityUnits.FemtomolePerLiter); + yield return new (MolarityUnit.KilomolePerCubicMeter, MolarityUnits.KilomolePerCubicMeter); + yield return new (MolarityUnit.MicromolePerLiter, MolarityUnits.MicromolePerLiter); + yield return new (MolarityUnit.MillimolePerLiter, MolarityUnits.MillimolePerLiter); + yield return new (MolarityUnit.MolePerCubicMeter, MolarityUnits.MolePerCubicMeter); + yield return new (MolarityUnit.MolePerLiter, MolarityUnits.MolePerLiter); + yield return new (MolarityUnit.NanomolePerLiter, MolarityUnits.NanomolePerLiter); + yield return new (MolarityUnit.PicomolePerLiter, MolarityUnits.PicomolePerLiter); + yield return new (MolarityUnit.PoundMolePerCubicFoot, MolarityUnits.PoundMolePerCubicFoot); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs index 09a6c41475..b882f9165a 100644 --- a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs @@ -119,7 +119,7 @@ public static PermeabilityInfo CreateDefault(FuncAn of representing the default unit mappings for Permeability. public static IEnumerable> GetDefaultMappings() { - yield return new (PermeabilityUnit.HenryPerMeter, "HenryPerMeter", "HenriesPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + yield return new (PermeabilityUnit.HenryPerMeter, PermeabilityUnits.HenryPerMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs index 5a17c20b4a..c7aad36817 100644 --- a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs @@ -119,7 +119,7 @@ public static PermittivityInfo CreateDefault(FuncAn of representing the default unit mappings for Permittivity. public static IEnumerable> GetDefaultMappings() { - yield return new (PermittivityUnit.FaradPerMeter, "FaradPerMeter", "FaradsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); + yield return new (PermittivityUnit.FaradPerMeter, PermittivityUnits.FaradPerMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs b/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs index a798ce1b4d..2f81368500 100644 --- a/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs @@ -119,19 +119,11 @@ public static PorousMediumPermeabilityInfo CreateDefault(FuncAn of representing the default unit mappings for PorousMediumPermeability. public static IEnumerable> GetDefaultMappings() { - yield return new (PorousMediumPermeabilityUnit.Darcy, "Darcy", "Darcys", BaseUnits.Undefined, - new QuantityValue(QuantityValue.PowerOfTen(19), 9869233) - ); - yield return new (PorousMediumPermeabilityUnit.Microdarcy, "Microdarcy", "Microdarcys", BaseUnits.Undefined, - new QuantityValue(QuantityValue.PowerOfTen(25), 9869233) - ); - yield return new (PorousMediumPermeabilityUnit.Millidarcy, "Millidarcy", "Millidarcys", BaseUnits.Undefined, - new QuantityValue(QuantityValue.PowerOfTen(22), 9869233) - ); - yield return new (PorousMediumPermeabilityUnit.SquareCentimeter, "SquareCentimeter", "SquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - 10000 - ); - yield return new (PorousMediumPermeabilityUnit.SquareMeter, "SquareMeter", "SquareMeters", new BaseUnits(length: LengthUnit.Meter)); + yield return new (PorousMediumPermeabilityUnit.Darcy, PorousMediumPermeabilityUnits.Darcy); + yield return new (PorousMediumPermeabilityUnit.Microdarcy, PorousMediumPermeabilityUnits.Microdarcy); + yield return new (PorousMediumPermeabilityUnit.Millidarcy, PorousMediumPermeabilityUnits.Millidarcy); + yield return new (PorousMediumPermeabilityUnit.SquareCentimeter, PorousMediumPermeabilityUnits.SquareCentimeter); + yield return new (PorousMediumPermeabilityUnit.SquareMeter, PorousMediumPermeabilityUnits.SquareMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Power.g.cs b/UnitsNet/GeneratedCode/Quantities/Power.g.cs index ab15bcfe09..177b2dc85b 100644 --- a/UnitsNet/GeneratedCode/Quantities/Power.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Power.g.cs @@ -135,85 +135,33 @@ public static PowerInfo CreateDefault(Func /// An of representing the default unit mappings for Power. public static IEnumerable> GetDefaultMappings() { - yield return new (PowerUnit.BoilerHorsepower, "BoilerHorsepower", "BoilerHorsepower", BaseUnits.Undefined, - new QuantityValue(2, 19625) - ); - yield return new (PowerUnit.BritishThermalUnitPerHour, "BritishThermalUnitPerHour", "BritishThermalUnitsPerHour", BaseUnits.Undefined, - new QuantityValue(180000000000, 52752792631) - ); - yield return new (PowerUnit.Decawatt, "Decawatt", "Decawatts", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (PowerUnit.Deciwatt, "Deciwatt", "Deciwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (PowerUnit.ElectricalHorsepower, "ElectricalHorsepower", "ElectricalHorsepower", BaseUnits.Undefined, - new QuantityValue(1, 746) - ); - yield return new (PowerUnit.Femtowatt, "Femtowatt", "Femtowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Picogram, time: DurationUnit.Second), - 1000000000000000 - ); - yield return new (PowerUnit.GigajoulePerHour, "GigajoulePerHour", "GigajoulesPerHour", BaseUnits.Undefined, - new QuantityValue(9, 2500000) - ); - yield return new (PowerUnit.Gigawatt, "Gigawatt", "Gigawatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (PowerUnit.HydraulicHorsepower, "HydraulicHorsepower", "HydraulicHorsepower", BaseUnits.Undefined, - new QuantityValue(50000000000000, 37284993579113511) - ); - yield return new (PowerUnit.JoulePerHour, "JoulePerHour", "JoulesPerHour", BaseUnits.Undefined, - 3600 - ); - yield return new (PowerUnit.KilobritishThermalUnitPerHour, "KilobritishThermalUnitPerHour", "KilobritishThermalUnitsPerHour", BaseUnits.Undefined, - new QuantityValue(180000000, 52752792631) - ); - yield return new (PowerUnit.KilojoulePerHour, "KilojoulePerHour", "KilojoulesPerHour", BaseUnits.Undefined, - new QuantityValue(18, 5) - ); - yield return new (PowerUnit.Kilowatt, "Kilowatt", "Kilowatts", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (PowerUnit.MechanicalHorsepower, "MechanicalHorsepower", "MechanicalHorsepower", BaseUnits.Undefined, - new QuantityValue(200000000000, 149139974303117) - ); - yield return new (PowerUnit.MegabritishThermalUnitPerHour, "MegabritishThermalUnitPerHour", "MegabritishThermalUnitsPerHour", BaseUnits.Undefined, - new QuantityValue(180000, 52752792631) - ); - yield return new (PowerUnit.MegajoulePerHour, "MegajoulePerHour", "MegajoulesPerHour", BaseUnits.Undefined, - new QuantityValue(9, 2500) - ); - yield return new (PowerUnit.Megawatt, "Megawatt", "Megawatts", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PowerUnit.MetricHorsepower, "MetricHorsepower", "MetricHorsepower", BaseUnits.Undefined, - new QuantityValue(800, 588399) - ); - yield return new (PowerUnit.Microwatt, "Microwatt", "Microwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (PowerUnit.MillijoulePerHour, "MillijoulePerHour", "MillijoulesPerHour", BaseUnits.Undefined, - 3600000 - ); - yield return new (PowerUnit.Milliwatt, "Milliwatt", "Milliwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (PowerUnit.Nanowatt, "Nanowatt", "Nanowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (PowerUnit.Petawatt, "Petawatt", "Petawatts", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (PowerUnit.Picowatt, "Picowatt", "Picowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (PowerUnit.Terawatt, "Terawatt", "Terawatts", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (PowerUnit.TonOfRefrigeration, "TonOfRefrigeration", "TonsOfRefrigeration", BaseUnits.Undefined, - new QuantityValue(1000, 3516853) - ); - yield return new (PowerUnit.Watt, "Watt", "Watts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); + yield return new (PowerUnit.BoilerHorsepower, PowerUnits.BoilerHorsepower); + yield return new (PowerUnit.BritishThermalUnitPerHour, PowerUnits.BritishThermalUnitPerHour); + yield return new (PowerUnit.Decawatt, PowerUnits.Decawatt); + yield return new (PowerUnit.Deciwatt, PowerUnits.Deciwatt); + yield return new (PowerUnit.ElectricalHorsepower, PowerUnits.ElectricalHorsepower); + yield return new (PowerUnit.Femtowatt, PowerUnits.Femtowatt); + yield return new (PowerUnit.GigajoulePerHour, PowerUnits.GigajoulePerHour); + yield return new (PowerUnit.Gigawatt, PowerUnits.Gigawatt); + yield return new (PowerUnit.HydraulicHorsepower, PowerUnits.HydraulicHorsepower); + yield return new (PowerUnit.JoulePerHour, PowerUnits.JoulePerHour); + yield return new (PowerUnit.KilobritishThermalUnitPerHour, PowerUnits.KilobritishThermalUnitPerHour); + yield return new (PowerUnit.KilojoulePerHour, PowerUnits.KilojoulePerHour); + yield return new (PowerUnit.Kilowatt, PowerUnits.Kilowatt); + yield return new (PowerUnit.MechanicalHorsepower, PowerUnits.MechanicalHorsepower); + yield return new (PowerUnit.MegabritishThermalUnitPerHour, PowerUnits.MegabritishThermalUnitPerHour); + yield return new (PowerUnit.MegajoulePerHour, PowerUnits.MegajoulePerHour); + yield return new (PowerUnit.Megawatt, PowerUnits.Megawatt); + yield return new (PowerUnit.MetricHorsepower, PowerUnits.MetricHorsepower); + yield return new (PowerUnit.Microwatt, PowerUnits.Microwatt); + yield return new (PowerUnit.MillijoulePerHour, PowerUnits.MillijoulePerHour); + yield return new (PowerUnit.Milliwatt, PowerUnits.Milliwatt); + yield return new (PowerUnit.Nanowatt, PowerUnits.Nanowatt); + yield return new (PowerUnit.Petawatt, PowerUnits.Petawatt); + yield return new (PowerUnit.Picowatt, PowerUnits.Picowatt); + yield return new (PowerUnit.Terawatt, PowerUnits.Terawatt); + yield return new (PowerUnit.TonOfRefrigeration, PowerUnits.TonOfRefrigeration); + yield return new (PowerUnit.Watt, PowerUnits.Watt); } } diff --git a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs index 1fc413a36c..6d6d697d50 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs @@ -117,142 +117,52 @@ public static PowerDensityInfo CreateDefault(FuncAn of representing the default unit mappings for PowerDensity. public static IEnumerable> GetDefaultMappings() { - yield return new (PowerDensityUnit.BtuPerSecondCubicFoot, "BtuPerSecondCubicFoot", "BtusPerSecondCubicFoot", BaseUnits.Undefined, - new QuantityValue(884901456, 32970495394375) - ); - yield return new (PowerDensityUnit.BtuPerSecondCubicInch, "BtuPerSecondCubicInch", "BtusPerSecondCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 131881981577500) - ); - yield return new (PowerDensityUnit.DecawattPerCubicFoot, "DecawattPerCubicFoot", "DecawattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 19531250000) - ); - yield return new (PowerDensityUnit.DecawattPerCubicInch, "DecawattPerCubicInch", "DecawattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 1250000000000) - ); - yield return new (PowerDensityUnit.DecawattPerCubicMeter, "DecawattPerCubicMeter", "DecawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (PowerDensityUnit.DecawattPerLiter, "DecawattPerLiter", "DecawattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (PowerDensityUnit.DeciwattPerCubicFoot, "DeciwattPerCubicFoot", "DeciwattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 195312500) - ); - yield return new (PowerDensityUnit.DeciwattPerCubicInch, "DeciwattPerCubicInch", "DeciwattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 12500000000) - ); - yield return new (PowerDensityUnit.DeciwattPerCubicMeter, "DeciwattPerCubicMeter", "DeciwattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), - 10 - ); - yield return new (PowerDensityUnit.DeciwattPerLiter, "DeciwattPerLiter", "DeciwattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (PowerDensityUnit.GigawattPerCubicFoot, "GigawattPerCubicFoot", "GigawattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125000000000000) - ); - yield return new (PowerDensityUnit.GigawattPerCubicInch, "GigawattPerCubicInch", "GigawattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, new BigInteger(125) * QuantityValue.PowerOfTen(18)) - ); - yield return new (PowerDensityUnit.GigawattPerCubicMeter, "GigawattPerCubicMeter", "GigawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000) - ); - yield return new (PowerDensityUnit.GigawattPerLiter, "GigawattPerLiter", "GigawattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (PowerDensityUnit.KilowattPerCubicFoot, "KilowattPerCubicFoot", "KilowattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125000000) - ); - yield return new (PowerDensityUnit.KilowattPerCubicInch, "KilowattPerCubicInch", "KilowattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000000000000) - ); - yield return new (PowerDensityUnit.KilowattPerCubicMeter, "KilowattPerCubicMeter", "KilowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (PowerDensityUnit.KilowattPerLiter, "KilowattPerLiter", "KilowattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (PowerDensityUnit.MegawattPerCubicFoot, "MegawattPerCubicFoot", "MegawattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125000000000) - ); - yield return new (PowerDensityUnit.MegawattPerCubicInch, "MegawattPerCubicInch", "MegawattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000000000000000) - ); - yield return new (PowerDensityUnit.MegawattPerCubicMeter, "MegawattPerCubicMeter", "MegawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PowerDensityUnit.MegawattPerLiter, "MegawattPerLiter", "MegawattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (PowerDensityUnit.MicrowattPerCubicFoot, "MicrowattPerCubicFoot", "MicrowattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(442450728, 15625) - ); - yield return new (PowerDensityUnit.MicrowattPerCubicInch, "MicrowattPerCubicInch", "MicrowattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000) - ); - yield return new (PowerDensityUnit.MicrowattPerCubicMeter, "MicrowattPerCubicMeter", "MicrowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (PowerDensityUnit.MicrowattPerLiter, "MicrowattPerLiter", "MicrowattsPerLiter", BaseUnits.Undefined, - 1000 - ); - yield return new (PowerDensityUnit.MilliwattPerCubicFoot, "MilliwattPerCubicFoot", "MilliwattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125) - ); - yield return new (PowerDensityUnit.MilliwattPerCubicInch, "MilliwattPerCubicInch", "MilliwattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000000) - ); - yield return new (PowerDensityUnit.MilliwattPerCubicMeter, "MilliwattPerCubicMeter", "MilliwattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (PowerDensityUnit.MilliwattPerLiter, "MilliwattPerLiter", "MilliwattsPerLiter", BaseUnits.Undefined, - 1 - ); - yield return new (PowerDensityUnit.NanowattPerCubicFoot, "NanowattPerCubicFoot", "NanowattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(3539605824, 125) - ); - yield return new (PowerDensityUnit.NanowattPerCubicInch, "NanowattPerCubicInch", "NanowattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125) - ); - yield return new (PowerDensityUnit.NanowattPerCubicMeter, "NanowattPerCubicMeter", "NanowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), - 1000000000 - ); - yield return new (PowerDensityUnit.NanowattPerLiter, "NanowattPerLiter", "NanowattsPerLiter", BaseUnits.Undefined, - 1000000 - ); - yield return new (PowerDensityUnit.PicowattPerCubicFoot, "PicowattPerCubicFoot", "PicowattsPerCubicFoot", BaseUnits.Undefined, - 28316846592 - ); - yield return new (PowerDensityUnit.PicowattPerCubicInch, "PicowattPerCubicInch", "PicowattsPerCubicInch", BaseUnits.Undefined, - 16387064 - ); - yield return new (PowerDensityUnit.PicowattPerCubicMeter, "PicowattPerCubicMeter", "PicowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), - 1000000000000 - ); - yield return new (PowerDensityUnit.PicowattPerLiter, "PicowattPerLiter", "PicowattsPerLiter", BaseUnits.Undefined, - 1000000000 - ); - yield return new (PowerDensityUnit.TerawattPerCubicFoot, "TerawattPerCubicFoot", "TerawattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, new BigInteger(1953125) * QuantityValue.PowerOfTen(15)) - ); - yield return new (PowerDensityUnit.TerawattPerCubicInch, "TerawattPerCubicInch", "TerawattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, new BigInteger(125) * QuantityValue.PowerOfTen(21)) - ); - yield return new (PowerDensityUnit.TerawattPerCubicMeter, "TerawattPerCubicMeter", "TerawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Picometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000000) - ); - yield return new (PowerDensityUnit.TerawattPerLiter, "TerawattPerLiter", "TerawattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (PowerDensityUnit.WattPerCubicFoot, "WattPerCubicFoot", "WattsPerCubicFoot", BaseUnits.Undefined, - new QuantityValue(55306341, 1953125000) - ); - yield return new (PowerDensityUnit.WattPerCubicInch, "WattPerCubicInch", "WattsPerCubicInch", BaseUnits.Undefined, - new QuantityValue(2048383, 125000000000) - ); - yield return new (PowerDensityUnit.WattPerCubicMeter, "WattPerCubicMeter", "WattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (PowerDensityUnit.WattPerLiter, "WattPerLiter", "WattsPerLiter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); + yield return new (PowerDensityUnit.BtuPerSecondCubicFoot, PowerDensityUnits.BtuPerSecondCubicFoot); + yield return new (PowerDensityUnit.BtuPerSecondCubicInch, PowerDensityUnits.BtuPerSecondCubicInch); + yield return new (PowerDensityUnit.DecawattPerCubicFoot, PowerDensityUnits.DecawattPerCubicFoot); + yield return new (PowerDensityUnit.DecawattPerCubicInch, PowerDensityUnits.DecawattPerCubicInch); + yield return new (PowerDensityUnit.DecawattPerCubicMeter, PowerDensityUnits.DecawattPerCubicMeter); + yield return new (PowerDensityUnit.DecawattPerLiter, PowerDensityUnits.DecawattPerLiter); + yield return new (PowerDensityUnit.DeciwattPerCubicFoot, PowerDensityUnits.DeciwattPerCubicFoot); + yield return new (PowerDensityUnit.DeciwattPerCubicInch, PowerDensityUnits.DeciwattPerCubicInch); + yield return new (PowerDensityUnit.DeciwattPerCubicMeter, PowerDensityUnits.DeciwattPerCubicMeter); + yield return new (PowerDensityUnit.DeciwattPerLiter, PowerDensityUnits.DeciwattPerLiter); + yield return new (PowerDensityUnit.GigawattPerCubicFoot, PowerDensityUnits.GigawattPerCubicFoot); + yield return new (PowerDensityUnit.GigawattPerCubicInch, PowerDensityUnits.GigawattPerCubicInch); + yield return new (PowerDensityUnit.GigawattPerCubicMeter, PowerDensityUnits.GigawattPerCubicMeter); + yield return new (PowerDensityUnit.GigawattPerLiter, PowerDensityUnits.GigawattPerLiter); + yield return new (PowerDensityUnit.KilowattPerCubicFoot, PowerDensityUnits.KilowattPerCubicFoot); + yield return new (PowerDensityUnit.KilowattPerCubicInch, PowerDensityUnits.KilowattPerCubicInch); + yield return new (PowerDensityUnit.KilowattPerCubicMeter, PowerDensityUnits.KilowattPerCubicMeter); + yield return new (PowerDensityUnit.KilowattPerLiter, PowerDensityUnits.KilowattPerLiter); + yield return new (PowerDensityUnit.MegawattPerCubicFoot, PowerDensityUnits.MegawattPerCubicFoot); + yield return new (PowerDensityUnit.MegawattPerCubicInch, PowerDensityUnits.MegawattPerCubicInch); + yield return new (PowerDensityUnit.MegawattPerCubicMeter, PowerDensityUnits.MegawattPerCubicMeter); + yield return new (PowerDensityUnit.MegawattPerLiter, PowerDensityUnits.MegawattPerLiter); + yield return new (PowerDensityUnit.MicrowattPerCubicFoot, PowerDensityUnits.MicrowattPerCubicFoot); + yield return new (PowerDensityUnit.MicrowattPerCubicInch, PowerDensityUnits.MicrowattPerCubicInch); + yield return new (PowerDensityUnit.MicrowattPerCubicMeter, PowerDensityUnits.MicrowattPerCubicMeter); + yield return new (PowerDensityUnit.MicrowattPerLiter, PowerDensityUnits.MicrowattPerLiter); + yield return new (PowerDensityUnit.MilliwattPerCubicFoot, PowerDensityUnits.MilliwattPerCubicFoot); + yield return new (PowerDensityUnit.MilliwattPerCubicInch, PowerDensityUnits.MilliwattPerCubicInch); + yield return new (PowerDensityUnit.MilliwattPerCubicMeter, PowerDensityUnits.MilliwattPerCubicMeter); + yield return new (PowerDensityUnit.MilliwattPerLiter, PowerDensityUnits.MilliwattPerLiter); + yield return new (PowerDensityUnit.NanowattPerCubicFoot, PowerDensityUnits.NanowattPerCubicFoot); + yield return new (PowerDensityUnit.NanowattPerCubicInch, PowerDensityUnits.NanowattPerCubicInch); + yield return new (PowerDensityUnit.NanowattPerCubicMeter, PowerDensityUnits.NanowattPerCubicMeter); + yield return new (PowerDensityUnit.NanowattPerLiter, PowerDensityUnits.NanowattPerLiter); + yield return new (PowerDensityUnit.PicowattPerCubicFoot, PowerDensityUnits.PicowattPerCubicFoot); + yield return new (PowerDensityUnit.PicowattPerCubicInch, PowerDensityUnits.PicowattPerCubicInch); + yield return new (PowerDensityUnit.PicowattPerCubicMeter, PowerDensityUnits.PicowattPerCubicMeter); + yield return new (PowerDensityUnit.PicowattPerLiter, PowerDensityUnits.PicowattPerLiter); + yield return new (PowerDensityUnit.TerawattPerCubicFoot, PowerDensityUnits.TerawattPerCubicFoot); + yield return new (PowerDensityUnit.TerawattPerCubicInch, PowerDensityUnits.TerawattPerCubicInch); + yield return new (PowerDensityUnit.TerawattPerCubicMeter, PowerDensityUnits.TerawattPerCubicMeter); + yield return new (PowerDensityUnit.TerawattPerLiter, PowerDensityUnits.TerawattPerLiter); + yield return new (PowerDensityUnit.WattPerCubicFoot, PowerDensityUnits.WattPerCubicFoot); + yield return new (PowerDensityUnit.WattPerCubicInch, PowerDensityUnits.WattPerCubicInch); + yield return new (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnits.WattPerCubicMeter); + yield return new (PowerDensityUnit.WattPerLiter, PowerDensityUnits.WattPerLiter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs index e81ee0011f..b6c7ae1da4 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs @@ -116,11 +116,8 @@ public static PowerRatioInfo CreateDefault(FuncAn of representing the default unit mappings for PowerRatio. public static IEnumerable> GetDefaultMappings() { - yield return new (PowerRatioUnit.DecibelMilliwatt, "DecibelMilliwatt", "DecibelMilliwatts", BaseUnits.Undefined, - new ConversionExpression(coefficient: 1, constantTerm: 30), - new ConversionExpression(coefficient: 1, constantTerm: -30) - ); - yield return new (PowerRatioUnit.DecibelWatt, "DecibelWatt", "DecibelWatts", BaseUnits.Undefined); + yield return new (PowerRatioUnit.DecibelMilliwatt, PowerRatioUnits.DecibelMilliwatt); + yield return new (PowerRatioUnit.DecibelWatt, PowerRatioUnits.DecibelWatt); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs index 49da47b3e5..3ac283f9ab 100644 --- a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs @@ -132,154 +132,56 @@ public static PressureInfo CreateDefault(FuncAn of representing the default unit mappings for Pressure. public static IEnumerable> GetDefaultMappings() { - yield return new (PressureUnit.Atmosphere, "Atmosphere", "Atmospheres", BaseUnits.Undefined, - new QuantityValue(1, 101325) - ); - yield return new (PressureUnit.Bar, "Bar", "Bars", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (PressureUnit.Centibar, "Centibar", "Centibars", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (PressureUnit.CentimeterOfWaterColumn, "CentimeterOfWaterColumn", "CentimetersOfWaterColumn", BaseUnits.Undefined, - new QuantityValue(2000, 196133) - ); - yield return new (PressureUnit.Decapascal, "Decapascal", "Decapascals", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 10) - ); - yield return new (PressureUnit.Decibar, "Decibar", "Decibars", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (PressureUnit.DynePerSquareCentimeter, "DynePerSquareCentimeter", "DynesPerSquareCentimeter", BaseUnits.Undefined, - 10 - ); - yield return new (PressureUnit.FootOfHead, "FootOfHead", "FeetOfHead", BaseUnits.Undefined, - new QuantityValue(156250000, 466922140449) - ); - yield return new (PressureUnit.Gigapascal, "Gigapascal", "Gigapascals", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000000) - ); - yield return new (PressureUnit.Hectopascal, "Hectopascal", "Hectopascals", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 100) - ); - yield return new (PressureUnit.InchOfMercury, "InchOfMercury", "InchesOfMercury", BaseUnits.Undefined, - new QuantityValue(1000000000, 3386388640341) - ); - yield return new (PressureUnit.InchOfWaterColumn, "InchOfWaterColumn", "InchesOfWaterColumn", BaseUnits.Undefined, - new QuantityValue(100000, 24908891) - ); - yield return new (PressureUnit.Kilobar, "Kilobar", "Kilobars", BaseUnits.Undefined, - new QuantityValue(1, 100000000) - ); - yield return new (PressureUnit.KilogramForcePerSquareCentimeter, "KilogramForcePerSquareCentimeter", "KilogramsForcePerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(2, 196133) - ); - yield return new (PressureUnit.KilogramForcePerSquareMeter, "KilogramForcePerSquareMeter", "KilogramsForcePerSquareMeter", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (PressureUnit.KilogramForcePerSquareMillimeter, "KilogramForcePerSquareMillimeter", "KilogramsForcePerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650) - ); - yield return new (PressureUnit.KilonewtonPerSquareCentimeter, "KilonewtonPerSquareCentimeter", "KilonewtonsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000000) - ); - yield return new (PressureUnit.KilonewtonPerSquareMeter, "KilonewtonPerSquareMeter", "KilonewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (PressureUnit.KilonewtonPerSquareMillimeter, "KilonewtonPerSquareMillimeter", "KilonewtonsPerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (PressureUnit.Kilopascal, "Kilopascal", "Kilopascals", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (PressureUnit.KilopoundForcePerSquareFoot, "KilopoundForcePerSquareFoot", "KilopoundsForcePerSquareFoot", BaseUnits.Undefined, - new QuantityValue(185806080, 8896443230521) - ); - yield return new (PressureUnit.KilopoundForcePerSquareInch, "KilopoundForcePerSquareInch", "KilopoundsForcePerSquareInch", BaseUnits.Undefined, - new QuantityValue(1290320, 8896443230521) - ); - yield return new (PressureUnit.KilopoundForcePerSquareMil, "KilopoundForcePerSquareMil", "KilopoundsForcePerSquareMil", BaseUnits.Undefined, - new QuantityValue(16129, 111205540381512500) - ); - yield return new (PressureUnit.Megabar, "Megabar", "Megabars", BaseUnits.Undefined, - new QuantityValue(1, 100000000000) - ); - yield return new (PressureUnit.MeganewtonPerSquareMeter, "MeganewtonPerSquareMeter", "MeganewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PressureUnit.Megapascal, "Megapascal", "Megapascals", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PressureUnit.MeterOfHead, "MeterOfHead", "MetersOfHead", BaseUnits.Undefined, - new QuantityValue(125000, 1225517429) - ); - yield return new (PressureUnit.MeterOfWaterColumn, "MeterOfWaterColumn", "MetersOfWaterColumn", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (PressureUnit.Microbar, "Microbar", "Microbars", BaseUnits.Undefined, - 10 - ); - yield return new (PressureUnit.Micropascal, "Micropascal", "Micropascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), - 1000000 - ); - yield return new (PressureUnit.Millibar, "Millibar", "Millibars", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (PressureUnit.MilligramForcePerSquareFoot, "MilligramForcePerSquareFoot", "MilligramsForcePerSquareFoot", BaseUnits.Undefined, - new QuantityValue(1858060800, 196133) - ); - yield return new (PressureUnit.MilligramForcePerSquareMeter, "MilligramForcePerSquareMeter", "MilligramsForcePerSquareMeter", BaseUnits.Undefined, - new QuantityValue(20000000000, 196133) - ); - yield return new (PressureUnit.MillimeterOfMercury, "MillimeterOfMercury", "MillimetersOfMercury", BaseUnits.Undefined, - new QuantityValue(200000000, 26664477483) - ); - yield return new (PressureUnit.MillimeterOfWaterColumn, "MillimeterOfWaterColumn", "MillimetersOfWaterColumn", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (PressureUnit.Millipascal, "Millipascal", "Millipascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), - 1000 - ); - yield return new (PressureUnit.Millitorr, "Millitorr", "Millitorrs", BaseUnits.Undefined, - new QuantityValue(30400, 4053) - ); - yield return new (PressureUnit.NewtonPerSquareCentimeter, "NewtonPerSquareCentimeter", "NewtonsPerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (PressureUnit.NewtonPerSquareMeter, "NewtonPerSquareMeter", "NewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - 1 - ); - yield return new (PressureUnit.NewtonPerSquareMillimeter, "NewtonPerSquareMillimeter", "NewtonsPerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (PressureUnit.Pascal, "Pascal", "Pascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (PressureUnit.PoundForcePerSquareFoot, "PoundForcePerSquareFoot", "PoundsForcePerSquareFoot", BaseUnits.Undefined, - new QuantityValue(185806080000, 8896443230521) - ); - yield return new (PressureUnit.PoundForcePerSquareInch, "PoundForcePerSquareInch", "PoundsForcePerSquareInch", BaseUnits.Undefined, - new QuantityValue(1290320000, 8896443230521) - ); - yield return new (PressureUnit.PoundForcePerSquareMil, "PoundForcePerSquareMil", "PoundsForcePerSquareMil", BaseUnits.Undefined, - new QuantityValue(32258, 222411080763025) - ); - yield return new (PressureUnit.PoundPerInchSecondSquared, "PoundPerInchSecondSquared", "PoundsPerInchSecondSquared", BaseUnits.Undefined, - new QuantityValue(498177842352, 8896443230521) - ); - yield return new (PressureUnit.TechnicalAtmosphere, "TechnicalAtmosphere", "TechnicalAtmospheres", BaseUnits.Undefined, - new QuantityValue(2, 196133) - ); - yield return new (PressureUnit.TonneForcePerSquareCentimeter, "TonneForcePerSquareCentimeter", "TonnesForcePerSquareCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 98066500) - ); - yield return new (PressureUnit.TonneForcePerSquareMeter, "TonneForcePerSquareMeter", "TonnesForcePerSquareMeter", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (PressureUnit.TonneForcePerSquareMillimeter, "TonneForcePerSquareMillimeter", "TonnesForcePerSquareMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650000) - ); - yield return new (PressureUnit.Torr, "Torr", "Torrs", BaseUnits.Undefined, - new QuantityValue(152, 20265) - ); + yield return new (PressureUnit.Atmosphere, PressureUnits.Atmosphere); + yield return new (PressureUnit.Bar, PressureUnits.Bar); + yield return new (PressureUnit.Centibar, PressureUnits.Centibar); + yield return new (PressureUnit.CentimeterOfWaterColumn, PressureUnits.CentimeterOfWaterColumn); + yield return new (PressureUnit.Decapascal, PressureUnits.Decapascal); + yield return new (PressureUnit.Decibar, PressureUnits.Decibar); + yield return new (PressureUnit.DynePerSquareCentimeter, PressureUnits.DynePerSquareCentimeter); + yield return new (PressureUnit.FootOfHead, PressureUnits.FootOfHead); + yield return new (PressureUnit.Gigapascal, PressureUnits.Gigapascal); + yield return new (PressureUnit.Hectopascal, PressureUnits.Hectopascal); + yield return new (PressureUnit.InchOfMercury, PressureUnits.InchOfMercury); + yield return new (PressureUnit.InchOfWaterColumn, PressureUnits.InchOfWaterColumn); + yield return new (PressureUnit.Kilobar, PressureUnits.Kilobar); + yield return new (PressureUnit.KilogramForcePerSquareCentimeter, PressureUnits.KilogramForcePerSquareCentimeter); + yield return new (PressureUnit.KilogramForcePerSquareMeter, PressureUnits.KilogramForcePerSquareMeter); + yield return new (PressureUnit.KilogramForcePerSquareMillimeter, PressureUnits.KilogramForcePerSquareMillimeter); + yield return new (PressureUnit.KilonewtonPerSquareCentimeter, PressureUnits.KilonewtonPerSquareCentimeter); + yield return new (PressureUnit.KilonewtonPerSquareMeter, PressureUnits.KilonewtonPerSquareMeter); + yield return new (PressureUnit.KilonewtonPerSquareMillimeter, PressureUnits.KilonewtonPerSquareMillimeter); + yield return new (PressureUnit.Kilopascal, PressureUnits.Kilopascal); + yield return new (PressureUnit.KilopoundForcePerSquareFoot, PressureUnits.KilopoundForcePerSquareFoot); + yield return new (PressureUnit.KilopoundForcePerSquareInch, PressureUnits.KilopoundForcePerSquareInch); + yield return new (PressureUnit.KilopoundForcePerSquareMil, PressureUnits.KilopoundForcePerSquareMil); + yield return new (PressureUnit.Megabar, PressureUnits.Megabar); + yield return new (PressureUnit.MeganewtonPerSquareMeter, PressureUnits.MeganewtonPerSquareMeter); + yield return new (PressureUnit.Megapascal, PressureUnits.Megapascal); + yield return new (PressureUnit.MeterOfHead, PressureUnits.MeterOfHead); + yield return new (PressureUnit.MeterOfWaterColumn, PressureUnits.MeterOfWaterColumn); + yield return new (PressureUnit.Microbar, PressureUnits.Microbar); + yield return new (PressureUnit.Micropascal, PressureUnits.Micropascal); + yield return new (PressureUnit.Millibar, PressureUnits.Millibar); + yield return new (PressureUnit.MilligramForcePerSquareFoot, PressureUnits.MilligramForcePerSquareFoot); + yield return new (PressureUnit.MilligramForcePerSquareMeter, PressureUnits.MilligramForcePerSquareMeter); + yield return new (PressureUnit.MillimeterOfMercury, PressureUnits.MillimeterOfMercury); + yield return new (PressureUnit.MillimeterOfWaterColumn, PressureUnits.MillimeterOfWaterColumn); + yield return new (PressureUnit.Millipascal, PressureUnits.Millipascal); + yield return new (PressureUnit.Millitorr, PressureUnits.Millitorr); + yield return new (PressureUnit.NewtonPerSquareCentimeter, PressureUnits.NewtonPerSquareCentimeter); + yield return new (PressureUnit.NewtonPerSquareMeter, PressureUnits.NewtonPerSquareMeter); + yield return new (PressureUnit.NewtonPerSquareMillimeter, PressureUnits.NewtonPerSquareMillimeter); + yield return new (PressureUnit.Pascal, PressureUnits.Pascal); + yield return new (PressureUnit.PoundForcePerSquareFoot, PressureUnits.PoundForcePerSquareFoot); + yield return new (PressureUnit.PoundForcePerSquareInch, PressureUnits.PoundForcePerSquareInch); + yield return new (PressureUnit.PoundForcePerSquareMil, PressureUnits.PoundForcePerSquareMil); + yield return new (PressureUnit.PoundPerInchSecondSquared, PressureUnits.PoundPerInchSecondSquared); + yield return new (PressureUnit.TechnicalAtmosphere, PressureUnits.TechnicalAtmosphere); + yield return new (PressureUnit.TonneForcePerSquareCentimeter, PressureUnits.TonneForcePerSquareCentimeter); + yield return new (PressureUnit.TonneForcePerSquareMeter, PressureUnits.TonneForcePerSquareMeter); + yield return new (PressureUnit.TonneForcePerSquareMillimeter, PressureUnits.TonneForcePerSquareMillimeter); + yield return new (PressureUnit.Torr, PressureUnits.Torr); } } diff --git a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs index e25c55fafd..34196fad15 100644 --- a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs @@ -117,58 +117,24 @@ public static PressureChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for PressureChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (PressureChangeRateUnit.AtmospherePerSecond, "AtmospherePerSecond", "AtmospheresPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 101325) - ); - yield return new (PressureChangeRateUnit.BarPerMinute, "BarPerMinute", "BarsPerMinute", BaseUnits.Undefined, - new QuantityValue(3, 5000) - ); - yield return new (PressureChangeRateUnit.BarPerSecond, "BarPerSecond", "BarsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 100000) - ); - yield return new (PressureChangeRateUnit.KilopascalPerMinute, "KilopascalPerMinute", "KilopascalsPerMinute", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(3, 50) - ); - yield return new (PressureChangeRateUnit.KilopascalPerSecond, "KilopascalPerSecond", "KilopascalsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute, "KilopoundForcePerSquareInchPerMinute", "KilopoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound, time: DurationUnit.Minute), - new QuantityValue(77419200, 8896443230521) - ); - yield return new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond, "KilopoundForcePerSquareInchPerSecond", "KilopoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound, time: DurationUnit.Second), - new QuantityValue(1290320, 8896443230521) - ); - yield return new (PressureChangeRateUnit.MegapascalPerMinute, "MegapascalPerMinute", "MegapascalsPerMinute", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - new QuantityValue(3, 50000) - ); - yield return new (PressureChangeRateUnit.MegapascalPerSecond, "MegapascalPerSecond", "MegapascalsPerSecond", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute, "MegapoundForcePerSquareInchPerMinute", "MegapoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Megapound, time: DurationUnit.Minute), - new QuantityValue(387096, 44482216152605) - ); - yield return new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond, "MegapoundForcePerSquareInchPerSecond", "MegapoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Megapound, time: DurationUnit.Second), - new QuantityValue(32258, 222411080763025) - ); - yield return new (PressureChangeRateUnit.MillibarPerMinute, "MillibarPerMinute", "MillibarsPerMinute", BaseUnits.Undefined, - new QuantityValue(3, 5) - ); - yield return new (PressureChangeRateUnit.MillibarPerSecond, "MillibarPerSecond", "MillibarsPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (PressureChangeRateUnit.MillimeterOfMercuryPerSecond, "MillimeterOfMercuryPerSecond", "MillimetersOfMercuryPerSecond", BaseUnits.Undefined, - new QuantityValue(200000000, 26664477483) - ); - yield return new (PressureChangeRateUnit.PascalPerMinute, "PascalPerMinute", "PascalsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), - 60 - ); - yield return new (PressureChangeRateUnit.PascalPerSecond, "PascalPerSecond", "PascalsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (PressureChangeRateUnit.PoundForcePerSquareInchPerMinute, "PoundForcePerSquareInchPerMinute", "PoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound, time: DurationUnit.Minute), - new QuantityValue(77419200000, 8896443230521) - ); - yield return new (PressureChangeRateUnit.PoundForcePerSquareInchPerSecond, "PoundForcePerSquareInchPerSecond", "PoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound, time: DurationUnit.Second), - new QuantityValue(1290320000, 8896443230521) - ); + yield return new (PressureChangeRateUnit.AtmospherePerSecond, PressureChangeRateUnits.AtmospherePerSecond); + yield return new (PressureChangeRateUnit.BarPerMinute, PressureChangeRateUnits.BarPerMinute); + yield return new (PressureChangeRateUnit.BarPerSecond, PressureChangeRateUnits.BarPerSecond); + yield return new (PressureChangeRateUnit.KilopascalPerMinute, PressureChangeRateUnits.KilopascalPerMinute); + yield return new (PressureChangeRateUnit.KilopascalPerSecond, PressureChangeRateUnits.KilopascalPerSecond); + yield return new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute, PressureChangeRateUnits.KilopoundForcePerSquareInchPerMinute); + yield return new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond, PressureChangeRateUnits.KilopoundForcePerSquareInchPerSecond); + yield return new (PressureChangeRateUnit.MegapascalPerMinute, PressureChangeRateUnits.MegapascalPerMinute); + yield return new (PressureChangeRateUnit.MegapascalPerSecond, PressureChangeRateUnits.MegapascalPerSecond); + yield return new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute, PressureChangeRateUnits.MegapoundForcePerSquareInchPerMinute); + yield return new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond, PressureChangeRateUnits.MegapoundForcePerSquareInchPerSecond); + yield return new (PressureChangeRateUnit.MillibarPerMinute, PressureChangeRateUnits.MillibarPerMinute); + yield return new (PressureChangeRateUnit.MillibarPerSecond, PressureChangeRateUnits.MillibarPerSecond); + yield return new (PressureChangeRateUnit.MillimeterOfMercuryPerSecond, PressureChangeRateUnits.MillimeterOfMercuryPerSecond); + yield return new (PressureChangeRateUnit.PascalPerMinute, PressureChangeRateUnits.PascalPerMinute); + yield return new (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnits.PascalPerSecond); + yield return new (PressureChangeRateUnit.PoundForcePerSquareInchPerMinute, PressureChangeRateUnits.PoundForcePerSquareInchPerMinute); + yield return new (PressureChangeRateUnit.PoundForcePerSquareInchPerSecond, PressureChangeRateUnits.PoundForcePerSquareInchPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs index 16b9849dde..75b6d5b5d4 100644 --- a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs @@ -118,22 +118,12 @@ public static RadiationEquivalentDoseInfo CreateDefault(FuncAn of representing the default unit mappings for RadiationEquivalentDose. public static IEnumerable> GetDefaultMappings() { - yield return new (RadiationEquivalentDoseUnit.Microsievert, "Microsievert", "Microsieverts", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000000 - ); - yield return new (RadiationEquivalentDoseUnit.MilliroentgenEquivalentMan, "MilliroentgenEquivalentMan", "MilliroentgensEquivalentMan", BaseUnits.Undefined, - 100000 - ); - yield return new (RadiationEquivalentDoseUnit.Millisievert, "Millisievert", "Millisieverts", BaseUnits.Undefined, - 1000 - ); - yield return new (RadiationEquivalentDoseUnit.Nanosievert, "Nanosievert", "Nanosieverts", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RadiationEquivalentDoseUnit.RoentgenEquivalentMan, "RoentgenEquivalentMan", "RoentgensEquivalentMan", BaseUnits.Undefined, - 100 - ); - yield return new (RadiationEquivalentDoseUnit.Sievert, "Sievert", "Sieverts", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); + yield return new (RadiationEquivalentDoseUnit.Microsievert, RadiationEquivalentDoseUnits.Microsievert); + yield return new (RadiationEquivalentDoseUnit.MilliroentgenEquivalentMan, RadiationEquivalentDoseUnits.MilliroentgenEquivalentMan); + yield return new (RadiationEquivalentDoseUnit.Millisievert, RadiationEquivalentDoseUnits.Millisievert); + yield return new (RadiationEquivalentDoseUnit.Nanosievert, RadiationEquivalentDoseUnits.Nanosievert); + yield return new (RadiationEquivalentDoseUnit.RoentgenEquivalentMan, RadiationEquivalentDoseUnits.RoentgenEquivalentMan); + yield return new (RadiationEquivalentDoseUnit.Sievert, RadiationEquivalentDoseUnits.Sievert); } } diff --git a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs index fb88e14f29..fcb8e56672 100644 --- a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs @@ -117,34 +117,16 @@ public static RadiationEquivalentDoseRateInfo CreateDefault(FuncAn of representing the default unit mappings for RadiationEquivalentDoseRate. public static IEnumerable> GetDefaultMappings() { - yield return new (RadiationEquivalentDoseRateUnit.MicrosievertPerHour, "MicrosievertPerHour", "MicrosievertsPerHour", BaseUnits.Undefined, - 3600000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.MicrosievertPerSecond, "MicrosievertPerSecond", "MicrosievertsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour, "MilliroentgenEquivalentManPerHour", "MilliroentgensEquivalentManPerHour", BaseUnits.Undefined, - 360000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.MillisievertPerHour, "MillisievertPerHour", "MillisievertsPerHour", BaseUnits.Undefined, - 3600000 - ); - yield return new (RadiationEquivalentDoseRateUnit.MillisievertPerSecond, "MillisievertPerSecond", "MillisievertsPerSecond", BaseUnits.Undefined, - 1000 - ); - yield return new (RadiationEquivalentDoseRateUnit.NanosievertPerHour, "NanosievertPerHour", "NanosievertsPerHour", BaseUnits.Undefined, - 3600000000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.NanosievertPerSecond, "NanosievertPerSecond", "NanosievertsPerSecond", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour, "RoentgenEquivalentManPerHour", "RoentgensEquivalentManPerHour", BaseUnits.Undefined, - 360000 - ); - yield return new (RadiationEquivalentDoseRateUnit.SievertPerHour, "SievertPerHour", "SievertsPerHour", BaseUnits.Undefined, - 3600 - ); - yield return new (RadiationEquivalentDoseRateUnit.SievertPerSecond, "SievertPerSecond", "SievertsPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); + yield return new (RadiationEquivalentDoseRateUnit.MicrosievertPerHour, RadiationEquivalentDoseRateUnits.MicrosievertPerHour); + yield return new (RadiationEquivalentDoseRateUnit.MicrosievertPerSecond, RadiationEquivalentDoseRateUnits.MicrosievertPerSecond); + yield return new (RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour, RadiationEquivalentDoseRateUnits.MilliroentgenEquivalentManPerHour); + yield return new (RadiationEquivalentDoseRateUnit.MillisievertPerHour, RadiationEquivalentDoseRateUnits.MillisievertPerHour); + yield return new (RadiationEquivalentDoseRateUnit.MillisievertPerSecond, RadiationEquivalentDoseRateUnits.MillisievertPerSecond); + yield return new (RadiationEquivalentDoseRateUnit.NanosievertPerHour, RadiationEquivalentDoseRateUnits.NanosievertPerHour); + yield return new (RadiationEquivalentDoseRateUnit.NanosievertPerSecond, RadiationEquivalentDoseRateUnits.NanosievertPerSecond); + yield return new (RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour, RadiationEquivalentDoseRateUnits.RoentgenEquivalentManPerHour); + yield return new (RadiationEquivalentDoseRateUnit.SievertPerHour, RadiationEquivalentDoseRateUnits.SievertPerHour); + yield return new (RadiationEquivalentDoseRateUnit.SievertPerSecond, RadiationEquivalentDoseRateUnits.SievertPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs b/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs index 559bbd243f..17aa183771 100644 --- a/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs @@ -116,28 +116,14 @@ public static RadiationExposureInfo CreateDefault(FuncAn of representing the default unit mappings for RadiationExposure. public static IEnumerable> GetDefaultMappings() { - yield return new (RadiationExposureUnit.CoulombPerKilogram, "CoulombPerKilogram", "CoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere)); - yield return new (RadiationExposureUnit.MicrocoulombPerKilogram, "MicrocoulombPerKilogram", "MicrocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - 1000000 - ); - yield return new (RadiationExposureUnit.Microroentgen, "Microroentgen", "Microroentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), - new QuantityValue(500000000000, 129) - ); - yield return new (RadiationExposureUnit.MillicoulombPerKilogram, "MillicoulombPerKilogram", "MillicoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - 1000 - ); - yield return new (RadiationExposureUnit.Milliroentgen, "Milliroentgen", "Milliroentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), - new QuantityValue(500000000, 129) - ); - yield return new (RadiationExposureUnit.NanocoulombPerKilogram, "NanocoulombPerKilogram", "NanocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Nanoampere), - 1000000000 - ); - yield return new (RadiationExposureUnit.PicocoulombPerKilogram, "PicocoulombPerKilogram", "PicocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Picoampere), - 1000000000000 - ); - yield return new (RadiationExposureUnit.Roentgen, "Roentgen", "Roentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), - new QuantityValue(500000, 129) - ); + yield return new (RadiationExposureUnit.CoulombPerKilogram, RadiationExposureUnits.CoulombPerKilogram); + yield return new (RadiationExposureUnit.MicrocoulombPerKilogram, RadiationExposureUnits.MicrocoulombPerKilogram); + yield return new (RadiationExposureUnit.Microroentgen, RadiationExposureUnits.Microroentgen); + yield return new (RadiationExposureUnit.MillicoulombPerKilogram, RadiationExposureUnits.MillicoulombPerKilogram); + yield return new (RadiationExposureUnit.Milliroentgen, RadiationExposureUnits.Milliroentgen); + yield return new (RadiationExposureUnit.NanocoulombPerKilogram, RadiationExposureUnits.NanocoulombPerKilogram); + yield return new (RadiationExposureUnit.PicocoulombPerKilogram, RadiationExposureUnits.PicocoulombPerKilogram); + yield return new (RadiationExposureUnit.Roentgen, RadiationExposureUnits.Roentgen); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs b/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs index 54151c6769..7afab6f65b 100644 --- a/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs @@ -116,91 +116,35 @@ public static RadioactivityInfo CreateDefault(FuncAn of representing the default unit mappings for Radioactivity. public static IEnumerable> GetDefaultMappings() { - yield return new (RadioactivityUnit.Becquerel, "Becquerel", "Becquerels", new BaseUnits(time: DurationUnit.Second)); - yield return new (RadioactivityUnit.Curie, "Curie", "Curies", new BaseUnits(time: DurationUnit.Second), - new QuantityValue(1, 37000000000) - ); - yield return new (RadioactivityUnit.Exabecquerel, "Exabecquerel", "Exabecquerels", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000000) - ); - yield return new (RadioactivityUnit.Gigabecquerel, "Gigabecquerel", "Gigabecquerels", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, 1000000000) - ); - yield return new (RadioactivityUnit.Gigacurie, "Gigacurie", "Gigacuries", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, new BigInteger(37) * QuantityValue.PowerOfTen(18)) - ); - yield return new (RadioactivityUnit.Gigarutherford, "Gigarutherford", "Gigarutherfords", new BaseUnits(time: DurationUnit.Nanosecond), - new QuantityValue(1, 1000000000000000) - ); - yield return new (RadioactivityUnit.Kilobecquerel, "Kilobecquerel", "Kilobecquerels", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 1000) - ); - yield return new (RadioactivityUnit.Kilocurie, "Kilocurie", "Kilocuries", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 37000000000000) - ); - yield return new (RadioactivityUnit.Kilorutherford, "Kilorutherford", "Kilorutherfords", new BaseUnits(time: DurationUnit.Millisecond), - new QuantityValue(1, 1000000000) - ); - yield return new (RadioactivityUnit.Megabecquerel, "Megabecquerel", "Megabecquerels", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000) - ); - yield return new (RadioactivityUnit.Megacurie, "Megacurie", "Megacuries", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 37000000000000000) - ); - yield return new (RadioactivityUnit.Megarutherford, "Megarutherford", "Megarutherfords", new BaseUnits(time: DurationUnit.Microsecond), - new QuantityValue(1, 1000000000000) - ); - yield return new (RadioactivityUnit.Microbecquerel, "Microbecquerel", "Microbecquerels", BaseUnits.Undefined, - 1000000 - ); - yield return new (RadioactivityUnit.Microcurie, "Microcurie", "Microcuries", BaseUnits.Undefined, - new QuantityValue(1, 37000) - ); - yield return new (RadioactivityUnit.Microrutherford, "Microrutherford", "Microrutherfords", BaseUnits.Undefined, - 1 - ); - yield return new (RadioactivityUnit.Millibecquerel, "Millibecquerel", "Millibecquerels", BaseUnits.Undefined, - 1000 - ); - yield return new (RadioactivityUnit.Millicurie, "Millicurie", "Millicuries", BaseUnits.Undefined, - new QuantityValue(1, 37000000) - ); - yield return new (RadioactivityUnit.Millirutherford, "Millirutherford", "Millirutherfords", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (RadioactivityUnit.Nanobecquerel, "Nanobecquerel", "Nanobecquerels", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RadioactivityUnit.Nanocurie, "Nanocurie", "Nanocuries", BaseUnits.Undefined, - new QuantityValue(1, 37) - ); - yield return new (RadioactivityUnit.Nanorutherford, "Nanorutherford", "Nanorutherfords", BaseUnits.Undefined, - 1000 - ); - yield return new (RadioactivityUnit.Petabecquerel, "Petabecquerel", "Petabecquerels", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000000) - ); - yield return new (RadioactivityUnit.Picobecquerel, "Picobecquerel", "Picobecquerels", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (RadioactivityUnit.Picocurie, "Picocurie", "Picocuries", BaseUnits.Undefined, - new QuantityValue(1000, 37) - ); - yield return new (RadioactivityUnit.Picorutherford, "Picorutherford", "Picorutherfords", BaseUnits.Undefined, - 1000000 - ); - yield return new (RadioactivityUnit.Rutherford, "Rutherford", "Rutherfords", new BaseUnits(time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (RadioactivityUnit.Terabecquerel, "Terabecquerel", "Terabecquerels", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, 1000000000000) - ); - yield return new (RadioactivityUnit.Teracurie, "Teracurie", "Teracuries", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, new BigInteger(37) * QuantityValue.PowerOfTen(21)) - ); - yield return new (RadioactivityUnit.Terarutherford, "Terarutherford", "Terarutherfords", new BaseUnits(time: DurationUnit.Picosecond), - new QuantityValue(1, 1000000000000000000) - ); + yield return new (RadioactivityUnit.Becquerel, RadioactivityUnits.Becquerel); + yield return new (RadioactivityUnit.Curie, RadioactivityUnits.Curie); + yield return new (RadioactivityUnit.Exabecquerel, RadioactivityUnits.Exabecquerel); + yield return new (RadioactivityUnit.Gigabecquerel, RadioactivityUnits.Gigabecquerel); + yield return new (RadioactivityUnit.Gigacurie, RadioactivityUnits.Gigacurie); + yield return new (RadioactivityUnit.Gigarutherford, RadioactivityUnits.Gigarutherford); + yield return new (RadioactivityUnit.Kilobecquerel, RadioactivityUnits.Kilobecquerel); + yield return new (RadioactivityUnit.Kilocurie, RadioactivityUnits.Kilocurie); + yield return new (RadioactivityUnit.Kilorutherford, RadioactivityUnits.Kilorutherford); + yield return new (RadioactivityUnit.Megabecquerel, RadioactivityUnits.Megabecquerel); + yield return new (RadioactivityUnit.Megacurie, RadioactivityUnits.Megacurie); + yield return new (RadioactivityUnit.Megarutherford, RadioactivityUnits.Megarutherford); + yield return new (RadioactivityUnit.Microbecquerel, RadioactivityUnits.Microbecquerel); + yield return new (RadioactivityUnit.Microcurie, RadioactivityUnits.Microcurie); + yield return new (RadioactivityUnit.Microrutherford, RadioactivityUnits.Microrutherford); + yield return new (RadioactivityUnit.Millibecquerel, RadioactivityUnits.Millibecquerel); + yield return new (RadioactivityUnit.Millicurie, RadioactivityUnits.Millicurie); + yield return new (RadioactivityUnit.Millirutherford, RadioactivityUnits.Millirutherford); + yield return new (RadioactivityUnit.Nanobecquerel, RadioactivityUnits.Nanobecquerel); + yield return new (RadioactivityUnit.Nanocurie, RadioactivityUnits.Nanocurie); + yield return new (RadioactivityUnit.Nanorutherford, RadioactivityUnits.Nanorutherford); + yield return new (RadioactivityUnit.Petabecquerel, RadioactivityUnits.Petabecquerel); + yield return new (RadioactivityUnit.Picobecquerel, RadioactivityUnits.Picobecquerel); + yield return new (RadioactivityUnit.Picocurie, RadioactivityUnits.Picocurie); + yield return new (RadioactivityUnit.Picorutherford, RadioactivityUnits.Picorutherford); + yield return new (RadioactivityUnit.Rutherford, RadioactivityUnits.Rutherford); + yield return new (RadioactivityUnit.Terabecquerel, RadioactivityUnits.Terabecquerel); + yield return new (RadioactivityUnit.Teracurie, RadioactivityUnits.Teracurie); + yield return new (RadioactivityUnit.Terarutherford, RadioactivityUnits.Terarutherford); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs index ab58fd3757..e18382be10 100644 --- a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs @@ -120,22 +120,12 @@ public static RatioInfo CreateDefault(Func /// An of representing the default unit mappings for Ratio. public static IEnumerable> GetDefaultMappings() { - yield return new (RatioUnit.DecimalFraction, "DecimalFraction", "DecimalFractions", BaseUnits.Undefined); - yield return new (RatioUnit.PartPerBillion, "PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RatioUnit.PartPerMillion, "PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, - 1000000 - ); - yield return new (RatioUnit.PartPerThousand, "PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, - 1000 - ); - yield return new (RatioUnit.PartPerTrillion, "PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (RatioUnit.Percent, "Percent", "Percent", BaseUnits.Undefined, - 100 - ); + yield return new (RatioUnit.DecimalFraction, RatioUnits.DecimalFraction); + yield return new (RatioUnit.PartPerBillion, RatioUnits.PartPerBillion); + yield return new (RatioUnit.PartPerMillion, RatioUnits.PartPerMillion); + yield return new (RatioUnit.PartPerThousand, RatioUnits.PartPerThousand); + yield return new (RatioUnit.PartPerTrillion, RatioUnits.PartPerTrillion); + yield return new (RatioUnit.Percent, RatioUnits.Percent); } } diff --git a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs index 1371abb5a7..cf51f21b47 100644 --- a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs @@ -117,10 +117,8 @@ public static RatioChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for RatioChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (RatioChangeRateUnit.DecimalFractionPerSecond, "DecimalFractionPerSecond", "DecimalFractionsPerSecond", new BaseUnits(time: DurationUnit.Second)); - yield return new (RatioChangeRateUnit.PercentPerSecond, "PercentPerSecond", "PercentsPerSecond", BaseUnits.Undefined, - 100 - ); + yield return new (RatioChangeRateUnit.DecimalFractionPerSecond, RatioChangeRateUnits.DecimalFractionPerSecond); + yield return new (RatioChangeRateUnit.PercentPerSecond, RatioChangeRateUnits.PercentPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs b/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs index 43983fa83a..0f237fc026 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs @@ -124,37 +124,17 @@ public static ReciprocalAreaInfo CreateDefault(FuncAn of representing the default unit mappings for ReciprocalArea. public static IEnumerable> GetDefaultMappings() { - yield return new (ReciprocalAreaUnit.InverseSquareCentimeter, "InverseSquareCentimeter", "InverseSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - new QuantityValue(1, 10000) - ); - yield return new (ReciprocalAreaUnit.InverseSquareDecimeter, "InverseSquareDecimeter", "InverseSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter), - new QuantityValue(1, 100) - ); - yield return new (ReciprocalAreaUnit.InverseSquareFoot, "InverseSquareFoot", "InverseSquareFeet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(145161, 1562500) - ); - yield return new (ReciprocalAreaUnit.InverseSquareInch, "InverseSquareInch", "InverseSquareInches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(16129, 25000000) - ); - yield return new (ReciprocalAreaUnit.InverseSquareKilometer, "InverseSquareKilometer", "InverseSquareKilometers", new BaseUnits(length: LengthUnit.Kilometer), - 1000000 - ); - yield return new (ReciprocalAreaUnit.InverseSquareMeter, "InverseSquareMeter", "InverseSquareMeters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (ReciprocalAreaUnit.InverseSquareMicrometer, "InverseSquareMicrometer", "InverseSquareMicrometers", new BaseUnits(length: LengthUnit.Micrometer), - new QuantityValue(1, 1000000000000) - ); - yield return new (ReciprocalAreaUnit.InverseSquareMile, "InverseSquareMile", "InverseSquareMiles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(40468564224, 15625) - ); - yield return new (ReciprocalAreaUnit.InverseSquareMillimeter, "InverseSquareMillimeter", "InverseSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter), - new QuantityValue(1, 1000000) - ); - yield return new (ReciprocalAreaUnit.InverseSquareYard, "InverseSquareYard", "InverseSquareYards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1306449, 1562500) - ); - yield return new (ReciprocalAreaUnit.InverseUsSurveySquareFoot, "InverseUsSurveySquareFoot", "InverseUsSurveySquareFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), - new QuantityValue(1440000, 15499969) - ); + yield return new (ReciprocalAreaUnit.InverseSquareCentimeter, ReciprocalAreaUnits.InverseSquareCentimeter); + yield return new (ReciprocalAreaUnit.InverseSquareDecimeter, ReciprocalAreaUnits.InverseSquareDecimeter); + yield return new (ReciprocalAreaUnit.InverseSquareFoot, ReciprocalAreaUnits.InverseSquareFoot); + yield return new (ReciprocalAreaUnit.InverseSquareInch, ReciprocalAreaUnits.InverseSquareInch); + yield return new (ReciprocalAreaUnit.InverseSquareKilometer, ReciprocalAreaUnits.InverseSquareKilometer); + yield return new (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnits.InverseSquareMeter); + yield return new (ReciprocalAreaUnit.InverseSquareMicrometer, ReciprocalAreaUnits.InverseSquareMicrometer); + yield return new (ReciprocalAreaUnit.InverseSquareMile, ReciprocalAreaUnits.InverseSquareMile); + yield return new (ReciprocalAreaUnit.InverseSquareMillimeter, ReciprocalAreaUnits.InverseSquareMillimeter); + yield return new (ReciprocalAreaUnit.InverseSquareYard, ReciprocalAreaUnits.InverseSquareYard); + yield return new (ReciprocalAreaUnit.InverseUsSurveySquareFoot, ReciprocalAreaUnits.InverseUsSurveySquareFoot); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs index 941da74742..fbbe0ad14f 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs @@ -126,34 +126,16 @@ public static ReciprocalLengthInfo CreateDefault(FuncAn of representing the default unit mappings for ReciprocalLength. public static IEnumerable> GetDefaultMappings() { - yield return new (ReciprocalLengthUnit.InverseCentimeter, "InverseCentimeter", "InverseCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - new QuantityValue(1, 100) - ); - yield return new (ReciprocalLengthUnit.InverseFoot, "InverseFoot", "InverseFeet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(381, 1250) - ); - yield return new (ReciprocalLengthUnit.InverseInch, "InverseInch", "InverseInches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(127, 5000) - ); - yield return new (ReciprocalLengthUnit.InverseMeter, "InverseMeter", "InverseMeters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (ReciprocalLengthUnit.InverseMicroinch, "InverseMicroinch", "InverseMicroinches", new BaseUnits(length: LengthUnit.Microinch), - new QuantityValue(127, 5000000000) - ); - yield return new (ReciprocalLengthUnit.InverseMil, "InverseMil", "InverseMils", new BaseUnits(length: LengthUnit.Mil), - new QuantityValue(127, 5000000) - ); - yield return new (ReciprocalLengthUnit.InverseMile, "InverseMile", "InverseMiles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(201168, 125) - ); - yield return new (ReciprocalLengthUnit.InverseMillimeter, "InverseMillimeter", "InverseMillimeters", new BaseUnits(length: LengthUnit.Millimeter), - new QuantityValue(1, 1000) - ); - yield return new (ReciprocalLengthUnit.InverseUsSurveyFoot, "InverseUsSurveyFoot", "InverseUsSurveyFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), - new QuantityValue(1200, 3937) - ); - yield return new (ReciprocalLengthUnit.InverseYard, "InverseYard", "InverseYards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1143, 1250) - ); + yield return new (ReciprocalLengthUnit.InverseCentimeter, ReciprocalLengthUnits.InverseCentimeter); + yield return new (ReciprocalLengthUnit.InverseFoot, ReciprocalLengthUnits.InverseFoot); + yield return new (ReciprocalLengthUnit.InverseInch, ReciprocalLengthUnits.InverseInch); + yield return new (ReciprocalLengthUnit.InverseMeter, ReciprocalLengthUnits.InverseMeter); + yield return new (ReciprocalLengthUnit.InverseMicroinch, ReciprocalLengthUnits.InverseMicroinch); + yield return new (ReciprocalLengthUnit.InverseMil, ReciprocalLengthUnits.InverseMil); + yield return new (ReciprocalLengthUnit.InverseMile, ReciprocalLengthUnits.InverseMile); + yield return new (ReciprocalLengthUnit.InverseMillimeter, ReciprocalLengthUnits.InverseMillimeter); + yield return new (ReciprocalLengthUnit.InverseUsSurveyFoot, ReciprocalLengthUnits.InverseUsSurveyFoot); + yield return new (ReciprocalLengthUnit.InverseYard, ReciprocalLengthUnits.InverseYard); } } diff --git a/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs b/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs index 19b5fc29e9..40ace9dcc7 100644 --- a/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs @@ -116,7 +116,7 @@ public static RelativeHumidityInfo CreateDefault(FuncAn of representing the default unit mappings for RelativeHumidity. public static IEnumerable> GetDefaultMappings() { - yield return new (RelativeHumidityUnit.Percent, "Percent", "Percent", BaseUnits.Undefined); + yield return new (RelativeHumidityUnit.Percent, RelativeHumidityUnits.Percent); } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs index fad8cfbb48..f8295935ac 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs @@ -117,16 +117,10 @@ public static RotationalAccelerationInfo CreateDefault(FuncAn of representing the default unit mappings for RotationalAcceleration. public static IEnumerable> GetDefaultMappings() { - yield return new (RotationalAccelerationUnit.DegreePerSecondSquared, "DegreePerSecondSquared", "DegreesPerSecondSquared", BaseUnits.Undefined, - new QuantityValue(180000000000000000, 3141592653589793) - ); - yield return new (RotationalAccelerationUnit.RadianPerSecondSquared, "RadianPerSecondSquared", "RadiansPerSecondSquared", new BaseUnits(time: DurationUnit.Second)); - yield return new (RotationalAccelerationUnit.RevolutionPerMinutePerSecond, "RevolutionPerMinutePerSecond", "RevolutionsPerMinutePerSecond", BaseUnits.Undefined, - new QuantityValue(30000000000000000, 3141592653589793) - ); - yield return new (RotationalAccelerationUnit.RevolutionPerSecondSquared, "RevolutionPerSecondSquared", "RevolutionsPerSecondSquared", BaseUnits.Undefined, - new QuantityValue(500000000000000, 3141592653589793) - ); + yield return new (RotationalAccelerationUnit.DegreePerSecondSquared, RotationalAccelerationUnits.DegreePerSecondSquared); + yield return new (RotationalAccelerationUnit.RadianPerSecondSquared, RotationalAccelerationUnits.RadianPerSecondSquared); + yield return new (RotationalAccelerationUnit.RevolutionPerMinutePerSecond, RotationalAccelerationUnits.RevolutionPerMinutePerSecond); + yield return new (RotationalAccelerationUnit.RevolutionPerSecondSquared, RotationalAccelerationUnits.RevolutionPerSecondSquared); } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs index 30d6665ad8..aa12a1c931 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs @@ -120,43 +120,19 @@ public static RotationalSpeedInfo CreateDefault(FuncAn of representing the default unit mappings for RotationalSpeed. public static IEnumerable> GetDefaultMappings() { - yield return new (RotationalSpeedUnit.CentiradianPerSecond, "CentiradianPerSecond", "CentiradiansPerSecond", BaseUnits.Undefined, - 100 - ); - yield return new (RotationalSpeedUnit.DeciradianPerSecond, "DeciradianPerSecond", "DeciradiansPerSecond", BaseUnits.Undefined, - 10 - ); - yield return new (RotationalSpeedUnit.DegreePerMinute, "DegreePerMinute", "DegreesPerMinute", BaseUnits.Undefined, - new QuantityValue(new BigInteger(108) * QuantityValue.PowerOfTen(17), 3141592653589793) - ); - yield return new (RotationalSpeedUnit.DegreePerSecond, "DegreePerSecond", "DegreesPerSecond", BaseUnits.Undefined, - new QuantityValue(180000000000000000, 3141592653589793) - ); - yield return new (RotationalSpeedUnit.MicrodegreePerSecond, "MicrodegreePerSecond", "MicrodegreesPerSecond", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(22), 3141592653589793) - ); - yield return new (RotationalSpeedUnit.MicroradianPerSecond, "MicroradianPerSecond", "MicroradiansPerSecond", BaseUnits.Undefined, - 1000000 - ); - yield return new (RotationalSpeedUnit.MillidegreePerSecond, "MillidegreePerSecond", "MillidegreesPerSecond", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(19), 3141592653589793) - ); - yield return new (RotationalSpeedUnit.MilliradianPerSecond, "MilliradianPerSecond", "MilliradiansPerSecond", BaseUnits.Undefined, - 1000 - ); - yield return new (RotationalSpeedUnit.NanodegreePerSecond, "NanodegreePerSecond", "NanodegreesPerSecond", BaseUnits.Undefined, - new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(25), 3141592653589793) - ); - yield return new (RotationalSpeedUnit.NanoradianPerSecond, "NanoradianPerSecond", "NanoradiansPerSecond", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RotationalSpeedUnit.RadianPerSecond, "RadianPerSecond", "RadiansPerSecond", new BaseUnits(time: DurationUnit.Second)); - yield return new (RotationalSpeedUnit.RevolutionPerMinute, "RevolutionPerMinute", "RevolutionsPerMinute", BaseUnits.Undefined, - new QuantityValue(30000000000000000, 3141592653589793) - ); - yield return new (RotationalSpeedUnit.RevolutionPerSecond, "RevolutionPerSecond", "RevolutionsPerSecond", BaseUnits.Undefined, - new QuantityValue(500000000000000, 3141592653589793) - ); + yield return new (RotationalSpeedUnit.CentiradianPerSecond, RotationalSpeedUnits.CentiradianPerSecond); + yield return new (RotationalSpeedUnit.DeciradianPerSecond, RotationalSpeedUnits.DeciradianPerSecond); + yield return new (RotationalSpeedUnit.DegreePerMinute, RotationalSpeedUnits.DegreePerMinute); + yield return new (RotationalSpeedUnit.DegreePerSecond, RotationalSpeedUnits.DegreePerSecond); + yield return new (RotationalSpeedUnit.MicrodegreePerSecond, RotationalSpeedUnits.MicrodegreePerSecond); + yield return new (RotationalSpeedUnit.MicroradianPerSecond, RotationalSpeedUnits.MicroradianPerSecond); + yield return new (RotationalSpeedUnit.MillidegreePerSecond, RotationalSpeedUnits.MillidegreePerSecond); + yield return new (RotationalSpeedUnit.MilliradianPerSecond, RotationalSpeedUnits.MilliradianPerSecond); + yield return new (RotationalSpeedUnit.NanodegreePerSecond, RotationalSpeedUnits.NanodegreePerSecond); + yield return new (RotationalSpeedUnit.NanoradianPerSecond, RotationalSpeedUnits.NanoradianPerSecond); + yield return new (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnits.RadianPerSecond); + yield return new (RotationalSpeedUnit.RevolutionPerMinute, RotationalSpeedUnits.RevolutionPerMinute); + yield return new (RotationalSpeedUnit.RevolutionPerSecond, RotationalSpeedUnits.RevolutionPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs index 3d1253d943..74efce400e 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs @@ -119,106 +119,40 @@ public static RotationalStiffnessInfo CreateDefault(FuncAn of representing the default unit mappings for RotationalStiffness. public static IEnumerable> GetDefaultMappings() { - yield return new (RotationalStiffnessUnit.CentinewtonMeterPerDegree, "CentinewtonMeterPerDegree", "CentinewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 1800000000000000) - ); - yield return new (RotationalStiffnessUnit.CentinewtonMillimeterPerDegree, "CentinewtonMillimeterPerDegree", "CentinewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 1800000000000) - ); - yield return new (RotationalStiffnessUnit.CentinewtonMillimeterPerRadian, "CentinewtonMillimeterPerRadian", "CentinewtonMillimetersPerRadian", BaseUnits.Undefined, - 100000 - ); - yield return new (RotationalStiffnessUnit.DecanewtonMeterPerDegree, "DecanewtonMeterPerDegree", "DecanewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 1800000000000000000) - ); - yield return new (RotationalStiffnessUnit.DecanewtonMillimeterPerDegree, "DecanewtonMillimeterPerDegree", "DecanewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 1800000000000000) - ); - yield return new (RotationalStiffnessUnit.DecanewtonMillimeterPerRadian, "DecanewtonMillimeterPerRadian", "DecanewtonMillimetersPerRadian", BaseUnits.Undefined, - 100 - ); - yield return new (RotationalStiffnessUnit.DecinewtonMeterPerDegree, "DecinewtonMeterPerDegree", "DecinewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 18000000000000000) - ); - yield return new (RotationalStiffnessUnit.DecinewtonMillimeterPerDegree, "DecinewtonMillimeterPerDegree", "DecinewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 18000000000000) - ); - yield return new (RotationalStiffnessUnit.DecinewtonMillimeterPerRadian, "DecinewtonMillimeterPerRadian", "DecinewtonMillimetersPerRadian", BaseUnits.Undefined, - 10000 - ); - yield return new (RotationalStiffnessUnit.KilonewtonMeterPerDegree, "KilonewtonMeterPerDegree", "KilonewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(19)) - ); - yield return new (RotationalStiffnessUnit.KilonewtonMeterPerRadian, "KilonewtonMeterPerRadian", "KilonewtonMetersPerRadian", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (RotationalStiffnessUnit.KilonewtonMillimeterPerDegree, "KilonewtonMillimeterPerDegree", "KilonewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000000000) - ); - yield return new (RotationalStiffnessUnit.KilonewtonMillimeterPerRadian, "KilonewtonMillimeterPerRadian", "KilonewtonMillimetersPerRadian", BaseUnits.Undefined, - 1 - ); - yield return new (RotationalStiffnessUnit.KilopoundForceFootPerDegrees, "KilopoundForceFootPerDegrees", "KilopoundForceFeetPerDegrees", BaseUnits.Undefined, - new QuantityValue(3141592653589793, QuantityValue.PowerOfTen(3) * new BigInteger(244047230699652072)) - ); - yield return new (RotationalStiffnessUnit.KilopoundForceFootPerRadian, "KilopoundForceFootPerRadian", "KilopoundForceFeetPerRadian", BaseUnits.Undefined, - new QuantityValue(2500000000000, 3389544870828501) - ); - yield return new (RotationalStiffnessUnit.MeganewtonMeterPerDegree, "MeganewtonMeterPerDegree", "MeganewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(22)) - ); - yield return new (RotationalStiffnessUnit.MeganewtonMeterPerRadian, "MeganewtonMeterPerRadian", "MeganewtonMetersPerRadian", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (RotationalStiffnessUnit.MeganewtonMillimeterPerDegree, "MeganewtonMillimeterPerDegree", "MeganewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(19)) - ); - yield return new (RotationalStiffnessUnit.MeganewtonMillimeterPerRadian, "MeganewtonMillimeterPerRadian", "MeganewtonMillimetersPerRadian", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (RotationalStiffnessUnit.MicronewtonMeterPerDegree, "MicronewtonMeterPerDegree", "MicronewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000) - ); - yield return new (RotationalStiffnessUnit.MicronewtonMillimeterPerDegree, "MicronewtonMillimeterPerDegree", "MicronewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000) - ); - yield return new (RotationalStiffnessUnit.MicronewtonMillimeterPerRadian, "MicronewtonMillimeterPerRadian", "MicronewtonMillimetersPerRadian", BaseUnits.Undefined, - 1000000000 - ); - yield return new (RotationalStiffnessUnit.MillinewtonMeterPerDegree, "MillinewtonMeterPerDegree", "MillinewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000000) - ); - yield return new (RotationalStiffnessUnit.MillinewtonMillimeterPerDegree, "MillinewtonMillimeterPerDegree", "MillinewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000) - ); - yield return new (RotationalStiffnessUnit.MillinewtonMillimeterPerRadian, "MillinewtonMillimeterPerRadian", "MillinewtonMillimetersPerRadian", BaseUnits.Undefined, - 1000000 - ); - yield return new (RotationalStiffnessUnit.NanonewtonMeterPerDegree, "NanonewtonMeterPerDegree", "NanonewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000) - ); - yield return new (RotationalStiffnessUnit.NanonewtonMillimeterPerDegree, "NanonewtonMillimeterPerDegree", "NanonewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000) - ); - yield return new (RotationalStiffnessUnit.NanonewtonMillimeterPerRadian, "NanonewtonMillimeterPerRadian", "NanonewtonMillimetersPerRadian", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (RotationalStiffnessUnit.NewtonMeterPerDegree, "NewtonMeterPerDegree", "NewtonMetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000000000) - ); - yield return new (RotationalStiffnessUnit.NewtonMeterPerRadian, "NewtonMeterPerRadian", "NewtonMetersPerRadian", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (RotationalStiffnessUnit.NewtonMillimeterPerDegree, "NewtonMillimeterPerDegree", "NewtonMillimetersPerDegree", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 180000000000000) - ); - yield return new (RotationalStiffnessUnit.NewtonMillimeterPerRadian, "NewtonMillimeterPerRadian", "NewtonMillimetersPerRadian", BaseUnits.Undefined, - 1000 - ); - yield return new (RotationalStiffnessUnit.PoundForceFeetPerRadian, "PoundForceFeetPerRadian", "PoundForceFeetPerRadian", BaseUnits.Undefined, - new QuantityValue(2500000000000000, 3389544870828501) - ); - yield return new (RotationalStiffnessUnit.PoundForceFootPerDegrees, "PoundForceFootPerDegrees", "PoundForceFeetPerDegrees", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 244047230699652072) - ); + yield return new (RotationalStiffnessUnit.CentinewtonMeterPerDegree, RotationalStiffnessUnits.CentinewtonMeterPerDegree); + yield return new (RotationalStiffnessUnit.CentinewtonMillimeterPerDegree, RotationalStiffnessUnits.CentinewtonMillimeterPerDegree); + yield return new (RotationalStiffnessUnit.CentinewtonMillimeterPerRadian, RotationalStiffnessUnits.CentinewtonMillimeterPerRadian); + yield return new (RotationalStiffnessUnit.DecanewtonMeterPerDegree, RotationalStiffnessUnits.DecanewtonMeterPerDegree); + yield return new (RotationalStiffnessUnit.DecanewtonMillimeterPerDegree, RotationalStiffnessUnits.DecanewtonMillimeterPerDegree); + yield return new (RotationalStiffnessUnit.DecanewtonMillimeterPerRadian, RotationalStiffnessUnits.DecanewtonMillimeterPerRadian); + yield return new (RotationalStiffnessUnit.DecinewtonMeterPerDegree, RotationalStiffnessUnits.DecinewtonMeterPerDegree); + yield return new (RotationalStiffnessUnit.DecinewtonMillimeterPerDegree, RotationalStiffnessUnits.DecinewtonMillimeterPerDegree); + yield return new (RotationalStiffnessUnit.DecinewtonMillimeterPerRadian, RotationalStiffnessUnits.DecinewtonMillimeterPerRadian); + yield return new (RotationalStiffnessUnit.KilonewtonMeterPerDegree, RotationalStiffnessUnits.KilonewtonMeterPerDegree); + yield return new (RotationalStiffnessUnit.KilonewtonMeterPerRadian, RotationalStiffnessUnits.KilonewtonMeterPerRadian); + yield return new (RotationalStiffnessUnit.KilonewtonMillimeterPerDegree, RotationalStiffnessUnits.KilonewtonMillimeterPerDegree); + yield return new (RotationalStiffnessUnit.KilonewtonMillimeterPerRadian, RotationalStiffnessUnits.KilonewtonMillimeterPerRadian); + yield return new (RotationalStiffnessUnit.KilopoundForceFootPerDegrees, RotationalStiffnessUnits.KilopoundForceFootPerDegrees); + yield return new (RotationalStiffnessUnit.KilopoundForceFootPerRadian, RotationalStiffnessUnits.KilopoundForceFootPerRadian); + yield return new (RotationalStiffnessUnit.MeganewtonMeterPerDegree, RotationalStiffnessUnits.MeganewtonMeterPerDegree); + yield return new (RotationalStiffnessUnit.MeganewtonMeterPerRadian, RotationalStiffnessUnits.MeganewtonMeterPerRadian); + yield return new (RotationalStiffnessUnit.MeganewtonMillimeterPerDegree, RotationalStiffnessUnits.MeganewtonMillimeterPerDegree); + yield return new (RotationalStiffnessUnit.MeganewtonMillimeterPerRadian, RotationalStiffnessUnits.MeganewtonMillimeterPerRadian); + yield return new (RotationalStiffnessUnit.MicronewtonMeterPerDegree, RotationalStiffnessUnits.MicronewtonMeterPerDegree); + yield return new (RotationalStiffnessUnit.MicronewtonMillimeterPerDegree, RotationalStiffnessUnits.MicronewtonMillimeterPerDegree); + yield return new (RotationalStiffnessUnit.MicronewtonMillimeterPerRadian, RotationalStiffnessUnits.MicronewtonMillimeterPerRadian); + yield return new (RotationalStiffnessUnit.MillinewtonMeterPerDegree, RotationalStiffnessUnits.MillinewtonMeterPerDegree); + yield return new (RotationalStiffnessUnit.MillinewtonMillimeterPerDegree, RotationalStiffnessUnits.MillinewtonMillimeterPerDegree); + yield return new (RotationalStiffnessUnit.MillinewtonMillimeterPerRadian, RotationalStiffnessUnits.MillinewtonMillimeterPerRadian); + yield return new (RotationalStiffnessUnit.NanonewtonMeterPerDegree, RotationalStiffnessUnits.NanonewtonMeterPerDegree); + yield return new (RotationalStiffnessUnit.NanonewtonMillimeterPerDegree, RotationalStiffnessUnits.NanonewtonMillimeterPerDegree); + yield return new (RotationalStiffnessUnit.NanonewtonMillimeterPerRadian, RotationalStiffnessUnits.NanonewtonMillimeterPerRadian); + yield return new (RotationalStiffnessUnit.NewtonMeterPerDegree, RotationalStiffnessUnits.NewtonMeterPerDegree); + yield return new (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnits.NewtonMeterPerRadian); + yield return new (RotationalStiffnessUnit.NewtonMillimeterPerDegree, RotationalStiffnessUnits.NewtonMillimeterPerDegree); + yield return new (RotationalStiffnessUnit.NewtonMillimeterPerRadian, RotationalStiffnessUnits.NewtonMillimeterPerRadian); + yield return new (RotationalStiffnessUnit.PoundForceFeetPerRadian, RotationalStiffnessUnits.PoundForceFeetPerRadian); + yield return new (RotationalStiffnessUnit.PoundForceFootPerDegrees, RotationalStiffnessUnits.PoundForceFootPerDegrees); } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs index 22a86ee1d6..089c0fe08c 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs @@ -117,19 +117,11 @@ public static RotationalStiffnessPerLengthInfo CreateDefault(FuncAn of representing the default unit mappings for RotationalStiffnessPerLength. public static IEnumerable> GetDefaultMappings() { - yield return new (RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter, "KilonewtonMeterPerRadianPerMeter", "KilonewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot, "KilopoundForceFootPerDegreesPerFoot", "KilopoundForceFeetPerDegreesPerFeet", BaseUnits.Undefined, - new QuantityValue(3141592653589793, QuantityValue.PowerOfTen(7) * new BigInteger(80067989074689)) - ); - yield return new (RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter, "MeganewtonMeterPerRadianPerMeter", "MeganewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, "NewtonMeterPerRadianPerMeter", "NewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot, "PoundForceFootPerDegreesPerFoot", "PoundForceFeetPerDegreesPerFeet", BaseUnits.Undefined, - new QuantityValue(3141592653589793, 800679890746890000) - ); + yield return new (RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnits.KilonewtonMeterPerRadianPerMeter); + yield return new (RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot, RotationalStiffnessPerLengthUnits.KilopoundForceFootPerDegreesPerFoot); + yield return new (RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnits.MeganewtonMeterPerRadianPerMeter); + yield return new (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnits.NewtonMeterPerRadianPerMeter); + yield return new (RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot, RotationalStiffnessPerLengthUnits.PoundForceFootPerDegreesPerFoot); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs b/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs index ea1d538076..b8f65f9210 100644 --- a/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs @@ -116,7 +116,7 @@ public static ScalarInfo CreateDefault(FuncAn of representing the default unit mappings for Scalar. public static IEnumerable> GetDefaultMappings() { - yield return new (ScalarUnit.Amount, "Amount", "Amount", BaseUnits.Undefined); + yield return new (ScalarUnit.Amount, ScalarUnits.Amount); } } diff --git a/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs b/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs index 9938dabbf2..4531d98741 100644 --- a/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs @@ -120,7 +120,7 @@ public static SolidAngleInfo CreateDefault(FuncAn of representing the default unit mappings for SolidAngle. public static IEnumerable> GetDefaultMappings() { - yield return new (SolidAngleUnit.Steradian, "Steradian", "Steradians", BaseUnits.Undefined); + yield return new (SolidAngleUnit.Steradian, SolidAngleUnits.Steradian); } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs index d24fdad7dc..9a214ca3d3 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs @@ -125,94 +125,36 @@ public static SpecificEnergyInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificEnergy. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificEnergyUnit.BtuPerPound, "BtuPerPound", "BtuPerPound", BaseUnits.Undefined, - new QuantityValue(1, 2326) - ); - yield return new (SpecificEnergyUnit.CaloriePerGram, "CaloriePerGram", "CaloriesPerGram", BaseUnits.Undefined, - new QuantityValue(1, 4184) - ); - yield return new (SpecificEnergyUnit.GigawattDayPerKilogram, "GigawattDayPerKilogram", "GigawattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000) - ); - yield return new (SpecificEnergyUnit.GigawattDayPerShortTon, "GigawattDayPerShortTon", "GigawattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, 4320000000000000000) - ); - yield return new (SpecificEnergyUnit.GigawattDayPerTonne, "GigawattDayPerTonne", "GigawattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 86400000000) - ); - yield return new (SpecificEnergyUnit.GigawattHourPerKilogram, "GigawattHourPerKilogram", "GigawattHoursPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 3600000000000) - ); - yield return new (SpecificEnergyUnit.GigawattHourPerPound, "GigawattHourPerPound", "GigawattHoursPerPound", BaseUnits.Undefined, - new QuantityValue(1, 7936640000000) - ); - yield return new (SpecificEnergyUnit.JoulePerKilogram, "JoulePerKilogram", "JoulesPerKilogram", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (SpecificEnergyUnit.KilocaloriePerGram, "KilocaloriePerGram", "KilocaloriesPerGram", BaseUnits.Undefined, - new QuantityValue(1, 4184000) - ); - yield return new (SpecificEnergyUnit.KilojoulePerKilogram, "KilojoulePerKilogram", "KilojoulesPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificEnergyUnit.KilowattDayPerKilogram, "KilowattDayPerKilogram", "KilowattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400000) - ); - yield return new (SpecificEnergyUnit.KilowattDayPerShortTon, "KilowattDayPerShortTon", "KilowattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, 4320000000000) - ); - yield return new (SpecificEnergyUnit.KilowattDayPerTonne, "KilowattDayPerTonne", "KilowattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 86400) - ); - yield return new (SpecificEnergyUnit.KilowattHourPerKilogram, "KilowattHourPerKilogram", "KilowattHoursPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 3600000) - ); - yield return new (SpecificEnergyUnit.KilowattHourPerPound, "KilowattHourPerPound", "KilowattHoursPerPound", BaseUnits.Undefined, - new QuantityValue(1, 7936640) - ); - yield return new (SpecificEnergyUnit.MegajoulePerKilogram, "MegajoulePerKilogram", "MegajoulesPerKilogram", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (SpecificEnergyUnit.MegajoulePerTonne, "MegajoulePerTonne", "MegajoulesPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificEnergyUnit.MegawattDayPerKilogram, "MegawattDayPerKilogram", "MegawattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400000000) - ); - yield return new (SpecificEnergyUnit.MegawattDayPerShortTon, "MegawattDayPerShortTon", "MegawattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, 4320000000000000) - ); - yield return new (SpecificEnergyUnit.MegawattDayPerTonne, "MegawattDayPerTonne", "MegawattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 86400000) - ); - yield return new (SpecificEnergyUnit.MegawattHourPerKilogram, "MegawattHourPerKilogram", "MegawattHoursPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 3600000000) - ); - yield return new (SpecificEnergyUnit.MegawattHourPerPound, "MegawattHourPerPound", "MegawattHoursPerPound", BaseUnits.Undefined, - new QuantityValue(1, 7936640000) - ); - yield return new (SpecificEnergyUnit.TerawattDayPerKilogram, "TerawattDayPerKilogram", "TerawattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000000) - ); - yield return new (SpecificEnergyUnit.TerawattDayPerShortTon, "TerawattDayPerShortTon", "TerawattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, new BigInteger(432) * QuantityValue.PowerOfTen(19)) - ); - yield return new (SpecificEnergyUnit.TerawattDayPerTonne, "TerawattDayPerTonne", "TerawattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(1, 86400000000000) - ); - yield return new (SpecificEnergyUnit.WattDayPerKilogram, "WattDayPerKilogram", "WattDaysPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 86400) - ); - yield return new (SpecificEnergyUnit.WattDayPerShortTon, "WattDayPerShortTon", "WattDaysPerShortTon", BaseUnits.Undefined, - new QuantityValue(45359237, 4320000000) - ); - yield return new (SpecificEnergyUnit.WattDayPerTonne, "WattDayPerTonne", "WattDaysPerTonne", BaseUnits.Undefined, - new QuantityValue(5, 432) - ); - yield return new (SpecificEnergyUnit.WattHourPerKilogram, "WattHourPerKilogram", "WattHoursPerKilogram", BaseUnits.Undefined, - new QuantityValue(1, 3600) - ); - yield return new (SpecificEnergyUnit.WattHourPerPound, "WattHourPerPound", "WattHoursPerPound", BaseUnits.Undefined, - new QuantityValue(25, 198416) - ); + yield return new (SpecificEnergyUnit.BtuPerPound, SpecificEnergyUnits.BtuPerPound); + yield return new (SpecificEnergyUnit.CaloriePerGram, SpecificEnergyUnits.CaloriePerGram); + yield return new (SpecificEnergyUnit.GigawattDayPerKilogram, SpecificEnergyUnits.GigawattDayPerKilogram); + yield return new (SpecificEnergyUnit.GigawattDayPerShortTon, SpecificEnergyUnits.GigawattDayPerShortTon); + yield return new (SpecificEnergyUnit.GigawattDayPerTonne, SpecificEnergyUnits.GigawattDayPerTonne); + yield return new (SpecificEnergyUnit.GigawattHourPerKilogram, SpecificEnergyUnits.GigawattHourPerKilogram); + yield return new (SpecificEnergyUnit.GigawattHourPerPound, SpecificEnergyUnits.GigawattHourPerPound); + yield return new (SpecificEnergyUnit.JoulePerKilogram, SpecificEnergyUnits.JoulePerKilogram); + yield return new (SpecificEnergyUnit.KilocaloriePerGram, SpecificEnergyUnits.KilocaloriePerGram); + yield return new (SpecificEnergyUnit.KilojoulePerKilogram, SpecificEnergyUnits.KilojoulePerKilogram); + yield return new (SpecificEnergyUnit.KilowattDayPerKilogram, SpecificEnergyUnits.KilowattDayPerKilogram); + yield return new (SpecificEnergyUnit.KilowattDayPerShortTon, SpecificEnergyUnits.KilowattDayPerShortTon); + yield return new (SpecificEnergyUnit.KilowattDayPerTonne, SpecificEnergyUnits.KilowattDayPerTonne); + yield return new (SpecificEnergyUnit.KilowattHourPerKilogram, SpecificEnergyUnits.KilowattHourPerKilogram); + yield return new (SpecificEnergyUnit.KilowattHourPerPound, SpecificEnergyUnits.KilowattHourPerPound); + yield return new (SpecificEnergyUnit.MegajoulePerKilogram, SpecificEnergyUnits.MegajoulePerKilogram); + yield return new (SpecificEnergyUnit.MegajoulePerTonne, SpecificEnergyUnits.MegajoulePerTonne); + yield return new (SpecificEnergyUnit.MegawattDayPerKilogram, SpecificEnergyUnits.MegawattDayPerKilogram); + yield return new (SpecificEnergyUnit.MegawattDayPerShortTon, SpecificEnergyUnits.MegawattDayPerShortTon); + yield return new (SpecificEnergyUnit.MegawattDayPerTonne, SpecificEnergyUnits.MegawattDayPerTonne); + yield return new (SpecificEnergyUnit.MegawattHourPerKilogram, SpecificEnergyUnits.MegawattHourPerKilogram); + yield return new (SpecificEnergyUnit.MegawattHourPerPound, SpecificEnergyUnits.MegawattHourPerPound); + yield return new (SpecificEnergyUnit.TerawattDayPerKilogram, SpecificEnergyUnits.TerawattDayPerKilogram); + yield return new (SpecificEnergyUnit.TerawattDayPerShortTon, SpecificEnergyUnits.TerawattDayPerShortTon); + yield return new (SpecificEnergyUnit.TerawattDayPerTonne, SpecificEnergyUnits.TerawattDayPerTonne); + yield return new (SpecificEnergyUnit.WattDayPerKilogram, SpecificEnergyUnits.WattDayPerKilogram); + yield return new (SpecificEnergyUnit.WattDayPerShortTon, SpecificEnergyUnits.WattDayPerShortTon); + yield return new (SpecificEnergyUnit.WattDayPerTonne, SpecificEnergyUnits.WattDayPerTonne); + yield return new (SpecificEnergyUnit.WattHourPerKilogram, SpecificEnergyUnits.WattHourPerKilogram); + yield return new (SpecificEnergyUnit.WattHourPerPound, SpecificEnergyUnits.WattHourPerPound); } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs index 2cbc4c1091..46311ca9ad 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs @@ -118,31 +118,15 @@ public static SpecificEntropyInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificEntropy. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificEntropyUnit.BtuPerPoundFahrenheit, "BtuPerPoundFahrenheit", "BtusPerPoundFahrenheit", BaseUnits.Undefined, - new QuantityValue(5, 20934) - ); - yield return new (SpecificEntropyUnit.CaloriePerGramKelvin, "CaloriePerGramKelvin", "CaloriesPerGramKelvin", BaseUnits.Undefined, - new QuantityValue(1, 4184) - ); - yield return new (SpecificEntropyUnit.JoulePerKilogramDegreeCelsius, "JoulePerKilogramDegreeCelsius", "JoulesPerKilogramDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (SpecificEntropyUnit.JoulePerKilogramKelvin, "JoulePerKilogramKelvin", "JoulesPerKilogramKelvin", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); - yield return new (SpecificEntropyUnit.KilocaloriePerGramKelvin, "KilocaloriePerGramKelvin", "KilocaloriesPerGramKelvin", BaseUnits.Undefined, - new QuantityValue(1, 4184000) - ); - yield return new (SpecificEntropyUnit.KilojoulePerKilogramDegreeCelsius, "KilojoulePerKilogramDegreeCelsius", "KilojoulesPerKilogramDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificEntropyUnit.KilojoulePerKilogramKelvin, "KilojoulePerKilogramKelvin", "KilojoulesPerKilogramKelvin", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificEntropyUnit.MegajoulePerKilogramDegreeCelsius, "MegajoulePerKilogramDegreeCelsius", "MegajoulesPerKilogramDegreeCelsius", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000000) - ); - yield return new (SpecificEntropyUnit.MegajoulePerKilogramKelvin, "MegajoulePerKilogramKelvin", "MegajoulesPerKilogramKelvin", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000000) - ); + yield return new (SpecificEntropyUnit.BtuPerPoundFahrenheit, SpecificEntropyUnits.BtuPerPoundFahrenheit); + yield return new (SpecificEntropyUnit.CaloriePerGramKelvin, SpecificEntropyUnits.CaloriePerGramKelvin); + yield return new (SpecificEntropyUnit.JoulePerKilogramDegreeCelsius, SpecificEntropyUnits.JoulePerKilogramDegreeCelsius); + yield return new (SpecificEntropyUnit.JoulePerKilogramKelvin, SpecificEntropyUnits.JoulePerKilogramKelvin); + yield return new (SpecificEntropyUnit.KilocaloriePerGramKelvin, SpecificEntropyUnits.KilocaloriePerGramKelvin); + yield return new (SpecificEntropyUnit.KilojoulePerKilogramDegreeCelsius, SpecificEntropyUnits.KilojoulePerKilogramDegreeCelsius); + yield return new (SpecificEntropyUnit.KilojoulePerKilogramKelvin, SpecificEntropyUnits.KilojoulePerKilogramKelvin); + yield return new (SpecificEntropyUnit.MegajoulePerKilogramDegreeCelsius, SpecificEntropyUnits.MegajoulePerKilogramDegreeCelsius); + yield return new (SpecificEntropyUnit.MegajoulePerKilogramKelvin, SpecificEntropyUnits.MegajoulePerKilogramKelvin); } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs index fd474a2463..07b3d230bc 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs @@ -119,16 +119,10 @@ public static SpecificFuelConsumptionInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificFuelConsumption. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificFuelConsumptionUnit.GramPerKilonewtonSecond, "GramPerKilonewtonSecond", "GramsPerKilonewtonSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (SpecificFuelConsumptionUnit.KilogramPerKilogramForceHour, "KilogramPerKilogramForceHour", "KilogramsPerKilogramForceHour", BaseUnits.Undefined, - new QuantityValue(1765197, 50000000) - ); - yield return new (SpecificFuelConsumptionUnit.KilogramPerKilonewtonSecond, "KilogramPerKilonewtonSecond", "KilogramsPerKilonewtonSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (SpecificFuelConsumptionUnit.PoundMassPerPoundForceHour, "PoundMassPerPoundForceHour", "PoundsMassPerPoundForceHour", BaseUnits.Undefined, - new QuantityValue(1765197, 50000000) - ); + yield return new (SpecificFuelConsumptionUnit.GramPerKilonewtonSecond, SpecificFuelConsumptionUnits.GramPerKilonewtonSecond); + yield return new (SpecificFuelConsumptionUnit.KilogramPerKilogramForceHour, SpecificFuelConsumptionUnits.KilogramPerKilogramForceHour); + yield return new (SpecificFuelConsumptionUnit.KilogramPerKilonewtonSecond, SpecificFuelConsumptionUnits.KilogramPerKilonewtonSecond); + yield return new (SpecificFuelConsumptionUnit.PoundMassPerPoundForceHour, SpecificFuelConsumptionUnits.PoundMassPerPoundForceHour); } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs index d6f636d4b5..a2ff142d89 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs @@ -117,13 +117,9 @@ public static SpecificVolumeInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificVolume. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificVolumeUnit.CubicFootPerPound, "CubicFootPerPound", "CubicFeetPerPound", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), - new QuantityValue(28349523125, 1769802912) - ); - yield return new (SpecificVolumeUnit.CubicMeterPerKilogram, "CubicMeterPerKilogram", "CubicMetersPerKilogram", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram)); - yield return new (SpecificVolumeUnit.CubicMillimeterPerKilogram, "CubicMillimeterPerKilogram", "CubicMillimetersPerKilogram", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), - 1000000000 - ); + yield return new (SpecificVolumeUnit.CubicFootPerPound, SpecificVolumeUnits.CubicFootPerPound); + yield return new (SpecificVolumeUnit.CubicMeterPerKilogram, SpecificVolumeUnits.CubicMeterPerKilogram); + yield return new (SpecificVolumeUnit.CubicMillimeterPerKilogram, SpecificVolumeUnits.CubicMillimeterPerKilogram); } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs index f1307a54a8..c2e2854d83 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs @@ -124,55 +124,23 @@ public static SpecificWeightInfo CreateDefault(FuncAn of representing the default unit mappings for SpecificWeight. public static IEnumerable> GetDefaultMappings() { - yield return new (SpecificWeightUnit.KilogramForcePerCubicCentimeter, "KilogramForcePerCubicCentimeter", "KilogramsForcePerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650) - ); - yield return new (SpecificWeightUnit.KilogramForcePerCubicMeter, "KilogramForcePerCubicMeter", "KilogramsForcePerCubicMeter", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (SpecificWeightUnit.KilogramForcePerCubicMillimeter, "KilogramForcePerCubicMillimeter", "KilogramsForcePerCubicMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650000) - ); - yield return new (SpecificWeightUnit.KilonewtonPerCubicCentimeter, "KilonewtonPerCubicCentimeter", "KilonewtonsPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (SpecificWeightUnit.KilonewtonPerCubicMeter, "KilonewtonPerCubicMeter", "KilonewtonsPerCubicMeter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (SpecificWeightUnit.KilonewtonPerCubicMillimeter, "KilonewtonPerCubicMillimeter", "KilonewtonsPerCubicMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000000) - ); - yield return new (SpecificWeightUnit.KilopoundForcePerCubicFoot, "KilopoundForcePerCubicFoot", "KilopoundsForcePerCubicFoot", BaseUnits.Undefined, - new QuantityValue(7079211648, 1112055403815125) - ); - yield return new (SpecificWeightUnit.KilopoundForcePerCubicInch, "KilopoundForcePerCubicInch", "KilopoundsForcePerCubicInch", BaseUnits.Undefined, - new QuantityValue(4096766, 1112055403815125) - ); - yield return new (SpecificWeightUnit.MeganewtonPerCubicMeter, "MeganewtonPerCubicMeter", "MeganewtonsPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (SpecificWeightUnit.NewtonPerCubicCentimeter, "NewtonPerCubicCentimeter", "NewtonsPerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000) - ); - yield return new (SpecificWeightUnit.NewtonPerCubicMeter, "NewtonPerCubicMeter", "NewtonsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (SpecificWeightUnit.NewtonPerCubicMillimeter, "NewtonPerCubicMillimeter", "NewtonsPerCubicMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 1000000000) - ); - yield return new (SpecificWeightUnit.PoundForcePerCubicFoot, "PoundForcePerCubicFoot", "PoundsForcePerCubicFoot", BaseUnits.Undefined, - new QuantityValue(56633693184, 8896443230521) - ); - yield return new (SpecificWeightUnit.PoundForcePerCubicInch, "PoundForcePerCubicInch", "PoundsForcePerCubicInch", BaseUnits.Undefined, - new QuantityValue(32774128, 8896443230521) - ); - yield return new (SpecificWeightUnit.TonneForcePerCubicCentimeter, "TonneForcePerCubicCentimeter", "TonnesForcePerCubicCentimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650000) - ); - yield return new (SpecificWeightUnit.TonneForcePerCubicMeter, "TonneForcePerCubicMeter", "TonnesForcePerCubicMeter", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (SpecificWeightUnit.TonneForcePerCubicMillimeter, "TonneForcePerCubicMillimeter", "TonnesForcePerCubicMillimeter", BaseUnits.Undefined, - new QuantityValue(1, 9806650000000) - ); + yield return new (SpecificWeightUnit.KilogramForcePerCubicCentimeter, SpecificWeightUnits.KilogramForcePerCubicCentimeter); + yield return new (SpecificWeightUnit.KilogramForcePerCubicMeter, SpecificWeightUnits.KilogramForcePerCubicMeter); + yield return new (SpecificWeightUnit.KilogramForcePerCubicMillimeter, SpecificWeightUnits.KilogramForcePerCubicMillimeter); + yield return new (SpecificWeightUnit.KilonewtonPerCubicCentimeter, SpecificWeightUnits.KilonewtonPerCubicCentimeter); + yield return new (SpecificWeightUnit.KilonewtonPerCubicMeter, SpecificWeightUnits.KilonewtonPerCubicMeter); + yield return new (SpecificWeightUnit.KilonewtonPerCubicMillimeter, SpecificWeightUnits.KilonewtonPerCubicMillimeter); + yield return new (SpecificWeightUnit.KilopoundForcePerCubicFoot, SpecificWeightUnits.KilopoundForcePerCubicFoot); + yield return new (SpecificWeightUnit.KilopoundForcePerCubicInch, SpecificWeightUnits.KilopoundForcePerCubicInch); + yield return new (SpecificWeightUnit.MeganewtonPerCubicMeter, SpecificWeightUnits.MeganewtonPerCubicMeter); + yield return new (SpecificWeightUnit.NewtonPerCubicCentimeter, SpecificWeightUnits.NewtonPerCubicCentimeter); + yield return new (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnits.NewtonPerCubicMeter); + yield return new (SpecificWeightUnit.NewtonPerCubicMillimeter, SpecificWeightUnits.NewtonPerCubicMillimeter); + yield return new (SpecificWeightUnit.PoundForcePerCubicFoot, SpecificWeightUnits.PoundForcePerCubicFoot); + yield return new (SpecificWeightUnit.PoundForcePerCubicInch, SpecificWeightUnits.PoundForcePerCubicInch); + yield return new (SpecificWeightUnit.TonneForcePerCubicCentimeter, SpecificWeightUnits.TonneForcePerCubicCentimeter); + yield return new (SpecificWeightUnit.TonneForcePerCubicMeter, SpecificWeightUnits.TonneForcePerCubicMeter); + yield return new (SpecificWeightUnit.TonneForcePerCubicMillimeter, SpecificWeightUnits.TonneForcePerCubicMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Speed.g.cs b/UnitsNet/GeneratedCode/Quantities/Speed.g.cs index 8575899a62..19dc9a31cd 100644 --- a/UnitsNet/GeneratedCode/Quantities/Speed.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Speed.g.cs @@ -124,103 +124,39 @@ public static SpeedInfo CreateDefault(Func /// An of representing the default unit mappings for Speed. public static IEnumerable> GetDefaultMappings() { - yield return new (SpeedUnit.CentimeterPerHour, "CentimeterPerHour", "CentimetersPerHour", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Hour), - 360000 - ); - yield return new (SpeedUnit.CentimeterPerMinute, "CentimeterPerMinute", "CentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), - 6000 - ); - yield return new (SpeedUnit.CentimeterPerSecond, "CentimeterPerSecond", "CentimetersPerSecond", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), - 100 - ); - yield return new (SpeedUnit.DecimeterPerMinute, "DecimeterPerMinute", "DecimetersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), - 600 - ); - yield return new (SpeedUnit.DecimeterPerSecond, "DecimeterPerSecond", "DecimetersPerSecond", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), - 10 - ); - yield return new (SpeedUnit.FootPerHour, "FootPerHour", "FeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), - new QuantityValue(1500000, 127) - ); - yield return new (SpeedUnit.FootPerMinute, "FootPerMinute", "FeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), - new QuantityValue(25000, 127) - ); - yield return new (SpeedUnit.FootPerSecond, "FootPerSecond", "FeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1250, 381) - ); - yield return new (SpeedUnit.InchPerHour, "InchPerHour", "InchesPerHour", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Hour), - new QuantityValue(18000000, 127) - ); - yield return new (SpeedUnit.InchPerMinute, "InchPerMinute", "InchesPerMinute", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Minute), - new QuantityValue(300000, 127) - ); - yield return new (SpeedUnit.InchPerSecond, "InchPerSecond", "InchesPerSecond", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), - new QuantityValue(5000, 127) - ); - yield return new (SpeedUnit.KilometerPerHour, "KilometerPerHour", "KilometersPerHour", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Hour), - new QuantityValue(18, 5) - ); - yield return new (SpeedUnit.KilometerPerMinute, "KilometerPerMinute", "KilometersPerMinute", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Minute), - new QuantityValue(3, 50) - ); - yield return new (SpeedUnit.KilometerPerSecond, "KilometerPerSecond", "KilometersPerSecond", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), - new QuantityValue(1, 1000) - ); - yield return new (SpeedUnit.Knot, "Knot", "Knots", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Hour), - new QuantityValue(900, 463) - ); - yield return new (SpeedUnit.Mach, "Mach", "Mach", BaseUnits.Undefined, - new QuantityValue(100, 34029) - ); - yield return new (SpeedUnit.MeterPerHour, "MeterPerHour", "MetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), - 3600 - ); - yield return new (SpeedUnit.MeterPerMinute, "MeterPerMinute", "MetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), - 60 - ); - yield return new (SpeedUnit.MeterPerSecond, "MeterPerSecond", "MetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (SpeedUnit.MicrometerPerMinute, "MicrometerPerMinute", "MicrometersPerMinute", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Minute), - 60000000 - ); - yield return new (SpeedUnit.MicrometerPerSecond, "MicrometerPerSecond", "MicrometersPerSecond", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), - 1000000 - ); - yield return new (SpeedUnit.MilePerHour, "MilePerHour", "MilesPerHour", new BaseUnits(length: LengthUnit.Mile, time: DurationUnit.Hour), - new QuantityValue(3125, 1397) - ); - yield return new (SpeedUnit.MillimeterPerHour, "MillimeterPerHour", "MillimetersPerHour", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Hour), - 3600000 - ); - yield return new (SpeedUnit.MillimeterPerMinute, "MillimeterPerMinute", "MillimetersPerMinute", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Minute), - 60000 - ); - yield return new (SpeedUnit.MillimeterPerSecond, "MillimeterPerSecond", "MillimetersPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000 - ); - yield return new (SpeedUnit.NanometerPerMinute, "NanometerPerMinute", "NanometersPerMinute", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Minute), - 60000000000 - ); - yield return new (SpeedUnit.NanometerPerSecond, "NanometerPerSecond", "NanometersPerSecond", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), - 1000000000 - ); - yield return new (SpeedUnit.UsSurveyFootPerHour, "UsSurveyFootPerHour", "UsSurveyFeetPerHour", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Hour), - 11811 - ); - yield return new (SpeedUnit.UsSurveyFootPerMinute, "UsSurveyFootPerMinute", "UsSurveyFeetPerMinute", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Minute), - new QuantityValue(3937, 20) - ); - yield return new (SpeedUnit.UsSurveyFootPerSecond, "UsSurveyFootPerSecond", "UsSurveyFeetPerSecond", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Second), - new QuantityValue(3937, 1200) - ); - yield return new (SpeedUnit.YardPerHour, "YardPerHour", "YardsPerHour", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Hour), - new QuantityValue(500000, 127) - ); - yield return new (SpeedUnit.YardPerMinute, "YardPerMinute", "YardsPerMinute", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Minute), - new QuantityValue(25000, 381) - ); - yield return new (SpeedUnit.YardPerSecond, "YardPerSecond", "YardsPerSecond", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Second), - new QuantityValue(1250, 1143) - ); + yield return new (SpeedUnit.CentimeterPerHour, SpeedUnits.CentimeterPerHour); + yield return new (SpeedUnit.CentimeterPerMinute, SpeedUnits.CentimeterPerMinute); + yield return new (SpeedUnit.CentimeterPerSecond, SpeedUnits.CentimeterPerSecond); + yield return new (SpeedUnit.DecimeterPerMinute, SpeedUnits.DecimeterPerMinute); + yield return new (SpeedUnit.DecimeterPerSecond, SpeedUnits.DecimeterPerSecond); + yield return new (SpeedUnit.FootPerHour, SpeedUnits.FootPerHour); + yield return new (SpeedUnit.FootPerMinute, SpeedUnits.FootPerMinute); + yield return new (SpeedUnit.FootPerSecond, SpeedUnits.FootPerSecond); + yield return new (SpeedUnit.InchPerHour, SpeedUnits.InchPerHour); + yield return new (SpeedUnit.InchPerMinute, SpeedUnits.InchPerMinute); + yield return new (SpeedUnit.InchPerSecond, SpeedUnits.InchPerSecond); + yield return new (SpeedUnit.KilometerPerHour, SpeedUnits.KilometerPerHour); + yield return new (SpeedUnit.KilometerPerMinute, SpeedUnits.KilometerPerMinute); + yield return new (SpeedUnit.KilometerPerSecond, SpeedUnits.KilometerPerSecond); + yield return new (SpeedUnit.Knot, SpeedUnits.Knot); + yield return new (SpeedUnit.Mach, SpeedUnits.Mach); + yield return new (SpeedUnit.MeterPerHour, SpeedUnits.MeterPerHour); + yield return new (SpeedUnit.MeterPerMinute, SpeedUnits.MeterPerMinute); + yield return new (SpeedUnit.MeterPerSecond, SpeedUnits.MeterPerSecond); + yield return new (SpeedUnit.MicrometerPerMinute, SpeedUnits.MicrometerPerMinute); + yield return new (SpeedUnit.MicrometerPerSecond, SpeedUnits.MicrometerPerSecond); + yield return new (SpeedUnit.MilePerHour, SpeedUnits.MilePerHour); + yield return new (SpeedUnit.MillimeterPerHour, SpeedUnits.MillimeterPerHour); + yield return new (SpeedUnit.MillimeterPerMinute, SpeedUnits.MillimeterPerMinute); + yield return new (SpeedUnit.MillimeterPerSecond, SpeedUnits.MillimeterPerSecond); + yield return new (SpeedUnit.NanometerPerMinute, SpeedUnits.NanometerPerMinute); + yield return new (SpeedUnit.NanometerPerSecond, SpeedUnits.NanometerPerSecond); + yield return new (SpeedUnit.UsSurveyFootPerHour, SpeedUnits.UsSurveyFootPerHour); + yield return new (SpeedUnit.UsSurveyFootPerMinute, SpeedUnits.UsSurveyFootPerMinute); + yield return new (SpeedUnit.UsSurveyFootPerSecond, SpeedUnits.UsSurveyFootPerSecond); + yield return new (SpeedUnit.YardPerHour, SpeedUnits.YardPerHour); + yield return new (SpeedUnit.YardPerMinute, SpeedUnits.YardPerMinute); + yield return new (SpeedUnit.YardPerSecond, SpeedUnits.YardPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs index 1abc8c9f8c..efc191f5cb 100644 --- a/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs @@ -116,31 +116,15 @@ public static StandardVolumeFlowInfo CreateDefault(FuncAn of representing the default unit mappings for StandardVolumeFlow. public static IEnumerable> GetDefaultMappings() { - yield return new (StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute, "StandardCubicCentimeterPerMinute", "StandardCubicCentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), - 60000000 - ); - yield return new (StandardVolumeFlowUnit.StandardCubicFootPerHour, "StandardCubicFootPerHour", "StandardCubicFeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), - new QuantityValue(781250000000, 6145149) - ); - yield return new (StandardVolumeFlowUnit.StandardCubicFootPerMinute, "StandardCubicFootPerMinute", "StandardCubicFeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), - new QuantityValue(39062500000, 18435447) - ); - yield return new (StandardVolumeFlowUnit.StandardCubicFootPerSecond, "StandardCubicFootPerSecond", "StandardCubicFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1953125000, 55306341) - ); - yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerDay, "StandardCubicMeterPerDay", "StandardCubicMetersPerDay", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Day), - 86400 - ); - yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerHour, "StandardCubicMeterPerHour", "StandardCubicMetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), - 3600 - ); - yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerMinute, "StandardCubicMeterPerMinute", "StandardCubicMetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), - 60 - ); - yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, "StandardCubicMeterPerSecond", "StandardCubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (StandardVolumeFlowUnit.StandardLiterPerMinute, "StandardLiterPerMinute", "StandardLitersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), - 60000 - ); + yield return new (StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute, StandardVolumeFlowUnits.StandardCubicCentimeterPerMinute); + yield return new (StandardVolumeFlowUnit.StandardCubicFootPerHour, StandardVolumeFlowUnits.StandardCubicFootPerHour); + yield return new (StandardVolumeFlowUnit.StandardCubicFootPerMinute, StandardVolumeFlowUnits.StandardCubicFootPerMinute); + yield return new (StandardVolumeFlowUnit.StandardCubicFootPerSecond, StandardVolumeFlowUnits.StandardCubicFootPerSecond); + yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerDay, StandardVolumeFlowUnits.StandardCubicMeterPerDay); + yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerHour, StandardVolumeFlowUnits.StandardCubicMeterPerHour); + yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerMinute, StandardVolumeFlowUnits.StandardCubicMeterPerMinute); + yield return new (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnits.StandardCubicMeterPerSecond); + yield return new (StandardVolumeFlowUnit.StandardLiterPerMinute, StandardVolumeFlowUnits.StandardLiterPerMinute); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs b/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs index a4d01e36c7..5cf9ad30e2 100644 --- a/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs @@ -115,41 +115,16 @@ public static TemperatureInfo CreateDefault(FuncAn of representing the default unit mappings for Temperature. public static IEnumerable> GetDefaultMappings() { - yield return new (TemperatureUnit.DegreeCelsius, "DegreeCelsius", "DegreesCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), - new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(-5463, 20)), - new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(5463, 20)) - ); - yield return new (TemperatureUnit.DegreeDelisle, "DegreeDelisle", "DegreesDelisle", new BaseUnits(temperature: TemperatureUnit.DegreeDelisle), - new ConversionExpression(coefficient: new QuantityValue(-3, 2), constantTerm: new QuantityValue(22389, 40)), - new ConversionExpression(coefficient: new QuantityValue(-2, 3), constantTerm: new QuantityValue(7463, 20)) - ); - yield return new (TemperatureUnit.DegreeFahrenheit, "DegreeFahrenheit", "DegreesFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), - new ConversionExpression(coefficient: new QuantityValue(9, 5), constantTerm: new QuantityValue(-45967, 100)), - new ConversionExpression(coefficient: new QuantityValue(5, 9), constantTerm: new QuantityValue(45967, 180)) - ); - yield return new (TemperatureUnit.DegreeNewton, "DegreeNewton", "DegreesNewton", new BaseUnits(temperature: TemperatureUnit.DegreeNewton), - new ConversionExpression(coefficient: new QuantityValue(33, 100), constantTerm: new QuantityValue(-180279, 2000)), - new ConversionExpression(coefficient: new QuantityValue(100, 33), constantTerm: new QuantityValue(5463, 20)) - ); - yield return new (TemperatureUnit.DegreeRankine, "DegreeRankine", "DegreesRankine", new BaseUnits(temperature: TemperatureUnit.DegreeRankine), - new QuantityValue(9, 5) - ); - yield return new (TemperatureUnit.DegreeReaumur, "DegreeReaumur", "DegreesReaumur", new BaseUnits(temperature: TemperatureUnit.DegreeReaumur), - new ConversionExpression(coefficient: new QuantityValue(4, 5), constantTerm: new QuantityValue(-5463, 25)), - new ConversionExpression(coefficient: new QuantityValue(5, 4), constantTerm: new QuantityValue(5463, 20)) - ); - yield return new (TemperatureUnit.DegreeRoemer, "DegreeRoemer", "DegreesRoemer", new BaseUnits(temperature: TemperatureUnit.DegreeRoemer), - new ConversionExpression(coefficient: new QuantityValue(21, 40), constantTerm: new QuantityValue(-108723, 800)), - new ConversionExpression(coefficient: new QuantityValue(40, 21), constantTerm: new QuantityValue(36241, 140)) - ); - yield return new (TemperatureUnit.Kelvin, "Kelvin", "Kelvins", new BaseUnits(temperature: TemperatureUnit.Kelvin)); - yield return new (TemperatureUnit.MillidegreeCelsius, "MillidegreeCelsius", "MillidegreesCelsius", new BaseUnits(temperature: TemperatureUnit.MillidegreeCelsius), - new ConversionExpression(coefficient: 1000, constantTerm: -273150), - new ConversionExpression(coefficient: new QuantityValue(1, 1000), constantTerm: new QuantityValue(5463, 20)) - ); - yield return new (TemperatureUnit.SolarTemperature, "SolarTemperature", "SolarTemperatures", new BaseUnits(temperature: TemperatureUnit.SolarTemperature), - new QuantityValue(1, 5778) - ); + yield return new (TemperatureUnit.DegreeCelsius, TemperatureUnits.DegreeCelsius); + yield return new (TemperatureUnit.DegreeDelisle, TemperatureUnits.DegreeDelisle); + yield return new (TemperatureUnit.DegreeFahrenheit, TemperatureUnits.DegreeFahrenheit); + yield return new (TemperatureUnit.DegreeNewton, TemperatureUnits.DegreeNewton); + yield return new (TemperatureUnit.DegreeRankine, TemperatureUnits.DegreeRankine); + yield return new (TemperatureUnit.DegreeReaumur, TemperatureUnits.DegreeReaumur); + yield return new (TemperatureUnit.DegreeRoemer, TemperatureUnits.DegreeRoemer); + yield return new (TemperatureUnit.Kelvin, TemperatureUnits.Kelvin); + yield return new (TemperatureUnit.MillidegreeCelsius, TemperatureUnits.MillidegreeCelsius); + yield return new (TemperatureUnit.SolarTemperature, TemperatureUnits.SolarTemperature); } } diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs index 654fea94fb..0960799a86 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs @@ -117,55 +117,23 @@ public static TemperatureChangeRateInfo CreateDefault(FuncAn of representing the default unit mappings for TemperatureChangeRate. public static IEnumerable> GetDefaultMappings() { - yield return new (TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond, "CentidegreeCelsiusPerSecond", "CentidegreesCelsiusPerSecond", BaseUnits.Undefined, - 100 - ); - yield return new (TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond, "DecadegreeCelsiusPerSecond", "DecadegreesCelsiusPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond, "DecidegreeCelsiusPerSecond", "DecidegreesCelsiusPerSecond", BaseUnits.Undefined, - 10 - ); - yield return new (TemperatureChangeRateUnit.DegreeCelsiusPerHour, "DegreeCelsiusPerHour", "DegreesCelsiusPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.DegreeCelsius), - 3600 - ); - yield return new (TemperatureChangeRateUnit.DegreeCelsiusPerMinute, "DegreeCelsiusPerMinute", "DegreesCelsiusPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.DegreeCelsius), - 60 - ); - yield return new (TemperatureChangeRateUnit.DegreeCelsiusPerSecond, "DegreeCelsiusPerSecond", "DegreesCelsiusPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius)); - yield return new (TemperatureChangeRateUnit.DegreeFahrenheitPerHour, "DegreeFahrenheitPerHour", "DegreesFahrenheitPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.DegreeFahrenheit), - 6480 - ); - yield return new (TemperatureChangeRateUnit.DegreeFahrenheitPerMinute, "DegreeFahrenheitPerMinute", "DegreesFahrenheitPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.DegreeFahrenheit), - 108 - ); - yield return new (TemperatureChangeRateUnit.DegreeFahrenheitPerSecond, "DegreeFahrenheitPerSecond", "DegreesFahrenheitPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.DegreeFahrenheit), - new QuantityValue(9, 5) - ); - yield return new (TemperatureChangeRateUnit.DegreeKelvinPerHour, "DegreeKelvinPerHour", "DegreesKelvinPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.Kelvin), - 3600 - ); - yield return new (TemperatureChangeRateUnit.DegreeKelvinPerMinute, "DegreeKelvinPerMinute", "DegreesKelvinPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.Kelvin), - 60 - ); - yield return new (TemperatureChangeRateUnit.DegreeKelvinPerSecond, "DegreeKelvinPerSecond", "DegreesKelvinPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - 1 - ); - yield return new (TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond, "HectodegreeCelsiusPerSecond", "HectodegreesCelsiusPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond, "KilodegreeCelsiusPerSecond", "KilodegreesCelsiusPerSecond", new BaseUnits(time: DurationUnit.Millisecond, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000) - ); - yield return new (TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond, "MicrodegreeCelsiusPerSecond", "MicrodegreesCelsiusPerSecond", BaseUnits.Undefined, - 1000000 - ); - yield return new (TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond, "MillidegreeCelsiusPerSecond", "MillidegreesCelsiusPerSecond", BaseUnits.Undefined, - 1000 - ); - yield return new (TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond, "NanodegreeCelsiusPerSecond", "NanodegreesCelsiusPerSecond", BaseUnits.Undefined, - 1000000000 - ); + yield return new (TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond, TemperatureChangeRateUnits.CentidegreeCelsiusPerSecond); + yield return new (TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond, TemperatureChangeRateUnits.DecadegreeCelsiusPerSecond); + yield return new (TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond, TemperatureChangeRateUnits.DecidegreeCelsiusPerSecond); + yield return new (TemperatureChangeRateUnit.DegreeCelsiusPerHour, TemperatureChangeRateUnits.DegreeCelsiusPerHour); + yield return new (TemperatureChangeRateUnit.DegreeCelsiusPerMinute, TemperatureChangeRateUnits.DegreeCelsiusPerMinute); + yield return new (TemperatureChangeRateUnit.DegreeCelsiusPerSecond, TemperatureChangeRateUnits.DegreeCelsiusPerSecond); + yield return new (TemperatureChangeRateUnit.DegreeFahrenheitPerHour, TemperatureChangeRateUnits.DegreeFahrenheitPerHour); + yield return new (TemperatureChangeRateUnit.DegreeFahrenheitPerMinute, TemperatureChangeRateUnits.DegreeFahrenheitPerMinute); + yield return new (TemperatureChangeRateUnit.DegreeFahrenheitPerSecond, TemperatureChangeRateUnits.DegreeFahrenheitPerSecond); + yield return new (TemperatureChangeRateUnit.DegreeKelvinPerHour, TemperatureChangeRateUnits.DegreeKelvinPerHour); + yield return new (TemperatureChangeRateUnit.DegreeKelvinPerMinute, TemperatureChangeRateUnits.DegreeKelvinPerMinute); + yield return new (TemperatureChangeRateUnit.DegreeKelvinPerSecond, TemperatureChangeRateUnits.DegreeKelvinPerSecond); + yield return new (TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond, TemperatureChangeRateUnits.HectodegreeCelsiusPerSecond); + yield return new (TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond, TemperatureChangeRateUnits.KilodegreeCelsiusPerSecond); + yield return new (TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond, TemperatureChangeRateUnits.MicrodegreeCelsiusPerSecond); + yield return new (TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond, TemperatureChangeRateUnits.MillidegreeCelsiusPerSecond); + yield return new (TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond, TemperatureChangeRateUnits.NanodegreeCelsiusPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs index 96ae1fe2c3..ac7785828f 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs @@ -129,31 +129,15 @@ public static TemperatureDeltaInfo CreateDefault(FuncAn of representing the default unit mappings for TemperatureDelta. public static IEnumerable> GetDefaultMappings() { - yield return new (TemperatureDeltaUnit.DegreeCelsius, "DegreeCelsius", "DegreesCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (TemperatureDeltaUnit.DegreeDelisle, "DegreeDelisle", "DegreesDelisle", new BaseUnits(temperature: TemperatureUnit.DegreeDelisle), - new QuantityValue(-3, 2) - ); - yield return new (TemperatureDeltaUnit.DegreeFahrenheit, "DegreeFahrenheit", "DegreesFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), - new QuantityValue(9, 5) - ); - yield return new (TemperatureDeltaUnit.DegreeNewton, "DegreeNewton", "DegreesNewton", new BaseUnits(temperature: TemperatureUnit.DegreeNewton), - new QuantityValue(33, 100) - ); - yield return new (TemperatureDeltaUnit.DegreeRankine, "DegreeRankine", "DegreesRankine", new BaseUnits(temperature: TemperatureUnit.DegreeRankine), - new QuantityValue(9, 5) - ); - yield return new (TemperatureDeltaUnit.DegreeReaumur, "DegreeReaumur", "DegreesReaumur", new BaseUnits(temperature: TemperatureUnit.DegreeReaumur), - new QuantityValue(4, 5) - ); - yield return new (TemperatureDeltaUnit.DegreeRoemer, "DegreeRoemer", "DegreesRoemer", new BaseUnits(temperature: TemperatureUnit.DegreeRoemer), - new QuantityValue(21, 40) - ); - yield return new (TemperatureDeltaUnit.Kelvin, "Kelvin", "Kelvins", new BaseUnits(temperature: TemperatureUnit.Kelvin)); - yield return new (TemperatureDeltaUnit.MillidegreeCelsius, "MillidegreeCelsius", "MillidegreesCelsius", BaseUnits.Undefined, - 1000 - ); + yield return new (TemperatureDeltaUnit.DegreeCelsius, TemperatureDeltaUnits.DegreeCelsius); + yield return new (TemperatureDeltaUnit.DegreeDelisle, TemperatureDeltaUnits.DegreeDelisle); + yield return new (TemperatureDeltaUnit.DegreeFahrenheit, TemperatureDeltaUnits.DegreeFahrenheit); + yield return new (TemperatureDeltaUnit.DegreeNewton, TemperatureDeltaUnits.DegreeNewton); + yield return new (TemperatureDeltaUnit.DegreeRankine, TemperatureDeltaUnits.DegreeRankine); + yield return new (TemperatureDeltaUnit.DegreeReaumur, TemperatureDeltaUnits.DegreeReaumur); + yield return new (TemperatureDeltaUnit.DegreeRoemer, TemperatureDeltaUnits.DegreeRoemer); + yield return new (TemperatureDeltaUnit.Kelvin, TemperatureDeltaUnits.Kelvin); + yield return new (TemperatureDeltaUnit.MillidegreeCelsius, TemperatureDeltaUnits.MillidegreeCelsius); } } diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs index 1ca57bfa9d..3fcac3d879 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs @@ -117,16 +117,10 @@ public static TemperatureGradientInfo CreateDefault(FuncAn of representing the default unit mappings for TemperatureGradient. public static IEnumerable> GetDefaultMappings() { - yield return new (TemperatureGradientUnit.DegreeCelsiusPerKilometer, "DegreeCelsiusPerKilometer", "DegreesCelsiusPerKilometer", new BaseUnits(length: LengthUnit.Kilometer, temperature: TemperatureUnit.DegreeCelsius), - 1000 - ); - yield return new (TemperatureGradientUnit.DegreeCelsiusPerMeter, "DegreeCelsiusPerMeter", "DegreesCelsiusPerMeter", new BaseUnits(length: LengthUnit.Meter, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (TemperatureGradientUnit.DegreeFahrenheitPerFoot, "DegreeFahrenheitPerFoot", "DegreesFahrenheitPerFoot", new BaseUnits(length: LengthUnit.Foot, temperature: TemperatureUnit.DegreeFahrenheit), - new QuantityValue(3429, 6250) - ); - yield return new (TemperatureGradientUnit.KelvinPerMeter, "KelvinPerMeter", "KelvinsPerMeter", new BaseUnits(length: LengthUnit.Meter, temperature: TemperatureUnit.Kelvin)); + yield return new (TemperatureGradientUnit.DegreeCelsiusPerKilometer, TemperatureGradientUnits.DegreeCelsiusPerKilometer); + yield return new (TemperatureGradientUnit.DegreeCelsiusPerMeter, TemperatureGradientUnits.DegreeCelsiusPerMeter); + yield return new (TemperatureGradientUnit.DegreeFahrenheitPerFoot, TemperatureGradientUnits.DegreeFahrenheitPerFoot); + yield return new (TemperatureGradientUnit.KelvinPerMeter, TemperatureGradientUnits.KelvinPerMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs index 7e3b9d58cb..884add23d7 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs @@ -119,13 +119,9 @@ public static ThermalConductivityInfo CreateDefault(FuncAn of representing the default unit mappings for ThermalConductivity. public static IEnumerable> GetDefaultMappings() { - yield return new (ThermalConductivityUnit.BtuPerHourFootFahrenheit, "BtuPerHourFootFahrenheit", "BtusPerHourFootFahrenheit", BaseUnits.Undefined, - new QuantityValue(30480000000, 52752792631) - ); - yield return new (ThermalConductivityUnit.BtuPerSecondInchFahrenheit, "BtuPerSecondInchFahrenheit", "BtusPerSecondInchFahrenheit", BaseUnits.Undefined, - new QuantityValue(6350000, 474775133679) - ); - yield return new (ThermalConductivityUnit.WattPerMeterKelvin, "WattPerMeterKelvin", "WattsPerMeterKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); + yield return new (ThermalConductivityUnit.BtuPerHourFootFahrenheit, ThermalConductivityUnits.BtuPerHourFootFahrenheit); + yield return new (ThermalConductivityUnit.BtuPerSecondInchFahrenheit, ThermalConductivityUnits.BtuPerSecondInchFahrenheit); + yield return new (ThermalConductivityUnit.WattPerMeterKelvin, ThermalConductivityUnits.WattPerMeterKelvin); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs index 7aeb1c1152..eb63af33f8 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs @@ -117,25 +117,13 @@ public static ThermalInsulanceInfo CreateDefault(FuncAn of representing the default unit mappings for ThermalInsulance. public static IEnumerable> GetDefaultMappings() { - yield return new (ThermalInsulanceUnit.HourSquareFeetDegreeFahrenheitPerBtu, "HourSquareFeetDegreeFahrenheitPerBtu", "HourSquareFeetDegreesFahrenheitPerBtu", BaseUnits.Undefined, - new QuantityValue(52752792631, 9290304000000) - ); - yield return new (ThermalInsulanceUnit.SquareCentimeterHourDegreeCelsiusPerKilocalorie, "SquareCentimeterHourDegreeCelsiusPerKilocalorie", "SquareCentimeterHourDegreesCelsiusPerKilocalorie", BaseUnits.Undefined, - new QuantityValue(523, 45) - ); - yield return new (ThermalInsulanceUnit.SquareCentimeterKelvinPerWatt, "SquareCentimeterKelvinPerWatt", "SquareCentimeterKelvinsPerWatt", BaseUnits.Undefined, - 10 - ); - yield return new (ThermalInsulanceUnit.SquareMeterDegreeCelsiusPerWatt, "SquareMeterDegreeCelsiusPerWatt", "SquareMeterDegreesCelsiusPerWatt", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000) - ); - yield return new (ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt, "SquareMeterKelvinPerKilowatt", "SquareMeterKelvinsPerKilowatt", BaseUnits.Undefined); - yield return new (ThermalInsulanceUnit.SquareMeterKelvinPerWatt, "SquareMeterKelvinPerWatt", "SquareMeterKelvinsPerWatt", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000) - ); - yield return new (ThermalInsulanceUnit.SquareMillimeterKelvinPerWatt, "SquareMillimeterKelvinPerWatt", "SquareMillimeterKelvinsPerWatt", BaseUnits.Undefined, - 1000 - ); + yield return new (ThermalInsulanceUnit.HourSquareFeetDegreeFahrenheitPerBtu, ThermalInsulanceUnits.HourSquareFeetDegreeFahrenheitPerBtu); + yield return new (ThermalInsulanceUnit.SquareCentimeterHourDegreeCelsiusPerKilocalorie, ThermalInsulanceUnits.SquareCentimeterHourDegreeCelsiusPerKilocalorie); + yield return new (ThermalInsulanceUnit.SquareCentimeterKelvinPerWatt, ThermalInsulanceUnits.SquareCentimeterKelvinPerWatt); + yield return new (ThermalInsulanceUnit.SquareMeterDegreeCelsiusPerWatt, ThermalInsulanceUnits.SquareMeterDegreeCelsiusPerWatt); + yield return new (ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt, ThermalInsulanceUnits.SquareMeterKelvinPerKilowatt); + yield return new (ThermalInsulanceUnit.SquareMeterKelvinPerWatt, ThermalInsulanceUnits.SquareMeterKelvinPerWatt); + yield return new (ThermalInsulanceUnit.SquareMillimeterKelvinPerWatt, ThermalInsulanceUnits.SquareMillimeterKelvinPerWatt); } } diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs index eebfec6887..4b278c13e0 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs @@ -117,10 +117,8 @@ public static ThermalResistanceInfo CreateDefault(FuncAn of representing the default unit mappings for ThermalResistance. public static IEnumerable> GetDefaultMappings() { - yield return new (ThermalResistanceUnit.DegreeCelsiusPerWatt, "DegreeCelsiusPerWatt", "DegreesCelsiusPerWatt", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (ThermalResistanceUnit.KelvinPerWatt, "KelvinPerWatt", "KelvinsPerWatt", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); + yield return new (ThermalResistanceUnit.DegreeCelsiusPerWatt, ThermalResistanceUnits.DegreeCelsiusPerWatt); + yield return new (ThermalResistanceUnit.KelvinPerWatt, ThermalResistanceUnits.KelvinPerWatt); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs index 6bcd17d8d5..dd384d4760 100644 --- a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs @@ -123,85 +123,33 @@ public static TorqueInfo CreateDefault(FuncAn of representing the default unit mappings for Torque. public static IEnumerable> GetDefaultMappings() { - yield return new (TorqueUnit.GramForceCentimeter, "GramForceCentimeter", "GramForceCentimeters", BaseUnits.Undefined, - new QuantityValue(2000000000, 196133) - ); - yield return new (TorqueUnit.GramForceMeter, "GramForceMeter", "GramForceMeters", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (TorqueUnit.GramForceMillimeter, "GramForceMillimeter", "GramForceMillimeters", BaseUnits.Undefined, - new QuantityValue(20000000000, 196133) - ); - yield return new (TorqueUnit.KilogramForceCentimeter, "KilogramForceCentimeter", "KilogramForceCentimeters", BaseUnits.Undefined, - new QuantityValue(2000000, 196133) - ); - yield return new (TorqueUnit.KilogramForceMeter, "KilogramForceMeter", "KilogramForceMeters", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); - yield return new (TorqueUnit.KilogramForceMillimeter, "KilogramForceMillimeter", "KilogramForceMillimeters", BaseUnits.Undefined, - new QuantityValue(20000000, 196133) - ); - yield return new (TorqueUnit.KilonewtonCentimeter, "KilonewtonCentimeter", "KilonewtonCentimeters", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (TorqueUnit.KilonewtonMeter, "KilonewtonMeter", "KilonewtonMeters", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (TorqueUnit.KilonewtonMillimeter, "KilonewtonMillimeter", "KilonewtonMillimeters", BaseUnits.Undefined, - 1 - ); - yield return new (TorqueUnit.KilopoundForceFoot, "KilopoundForceFoot", "KilopoundForceFeet", BaseUnits.Undefined, - new QuantityValue(2500000000000, 3389544870828501) - ); - yield return new (TorqueUnit.KilopoundForceInch, "KilopoundForceInch", "KilopoundForceInches", BaseUnits.Undefined, - new QuantityValue(10000000000000, 1129848290276167) - ); - yield return new (TorqueUnit.MeganewtonCentimeter, "MeganewtonCentimeter", "MeganewtonCentimeters", BaseUnits.Undefined, - new QuantityValue(1, 10000) - ); - yield return new (TorqueUnit.MeganewtonMeter, "MeganewtonMeter", "MeganewtonMeters", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), - new QuantityValue(1, 1000000) - ); - yield return new (TorqueUnit.MeganewtonMillimeter, "MeganewtonMillimeter", "MeganewtonMillimeters", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (TorqueUnit.MegapoundForceFoot, "MegapoundForceFoot", "MegapoundForceFeet", BaseUnits.Undefined, - new QuantityValue(2500000000, 3389544870828501) - ); - yield return new (TorqueUnit.MegapoundForceInch, "MegapoundForceInch", "MegapoundForceInches", BaseUnits.Undefined, - new QuantityValue(10000000000, 1129848290276167) - ); - yield return new (TorqueUnit.NewtonCentimeter, "NewtonCentimeter", "NewtonCentimeters", BaseUnits.Undefined, - 100 - ); - yield return new (TorqueUnit.NewtonMeter, "NewtonMeter", "NewtonMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)); - yield return new (TorqueUnit.NewtonMillimeter, "NewtonMillimeter", "NewtonMillimeters", BaseUnits.Undefined, - 1000 - ); - yield return new (TorqueUnit.OunceForceFoot, "OunceForceFoot", "OunceForceFeet", BaseUnits.Undefined, - new QuantityValue(40000000000000000, 3389544870828501) - ); - yield return new (TorqueUnit.OunceForceInch, "OunceForceInch", "OunceForceInches", BaseUnits.Undefined, - new QuantityValue(160000000000000000, 1129848290276167) - ); - yield return new (TorqueUnit.PoundalFoot, "PoundalFoot", "PoundalFeet", BaseUnits.Undefined, - new QuantityValue(156250000000000, 6584392202157) - ); - yield return new (TorqueUnit.PoundForceFoot, "PoundForceFoot", "PoundForceFeet", BaseUnits.Undefined, - new QuantityValue(2500000000000000, 3389544870828501) - ); - yield return new (TorqueUnit.PoundForceInch, "PoundForceInch", "PoundForceInches", BaseUnits.Undefined, - new QuantityValue(10000000000000000, 1129848290276167) - ); - yield return new (TorqueUnit.TonneForceCentimeter, "TonneForceCentimeter", "TonneForceCentimeters", BaseUnits.Undefined, - new QuantityValue(2000, 196133) - ); - yield return new (TorqueUnit.TonneForceMeter, "TonneForceMeter", "TonneForceMeters", BaseUnits.Undefined, - new QuantityValue(20, 196133) - ); - yield return new (TorqueUnit.TonneForceMillimeter, "TonneForceMillimeter", "TonneForceMillimeters", BaseUnits.Undefined, - new QuantityValue(20000, 196133) - ); + yield return new (TorqueUnit.GramForceCentimeter, TorqueUnits.GramForceCentimeter); + yield return new (TorqueUnit.GramForceMeter, TorqueUnits.GramForceMeter); + yield return new (TorqueUnit.GramForceMillimeter, TorqueUnits.GramForceMillimeter); + yield return new (TorqueUnit.KilogramForceCentimeter, TorqueUnits.KilogramForceCentimeter); + yield return new (TorqueUnit.KilogramForceMeter, TorqueUnits.KilogramForceMeter); + yield return new (TorqueUnit.KilogramForceMillimeter, TorqueUnits.KilogramForceMillimeter); + yield return new (TorqueUnit.KilonewtonCentimeter, TorqueUnits.KilonewtonCentimeter); + yield return new (TorqueUnit.KilonewtonMeter, TorqueUnits.KilonewtonMeter); + yield return new (TorqueUnit.KilonewtonMillimeter, TorqueUnits.KilonewtonMillimeter); + yield return new (TorqueUnit.KilopoundForceFoot, TorqueUnits.KilopoundForceFoot); + yield return new (TorqueUnit.KilopoundForceInch, TorqueUnits.KilopoundForceInch); + yield return new (TorqueUnit.MeganewtonCentimeter, TorqueUnits.MeganewtonCentimeter); + yield return new (TorqueUnit.MeganewtonMeter, TorqueUnits.MeganewtonMeter); + yield return new (TorqueUnit.MeganewtonMillimeter, TorqueUnits.MeganewtonMillimeter); + yield return new (TorqueUnit.MegapoundForceFoot, TorqueUnits.MegapoundForceFoot); + yield return new (TorqueUnit.MegapoundForceInch, TorqueUnits.MegapoundForceInch); + yield return new (TorqueUnit.NewtonCentimeter, TorqueUnits.NewtonCentimeter); + yield return new (TorqueUnit.NewtonMeter, TorqueUnits.NewtonMeter); + yield return new (TorqueUnit.NewtonMillimeter, TorqueUnits.NewtonMillimeter); + yield return new (TorqueUnit.OunceForceFoot, TorqueUnits.OunceForceFoot); + yield return new (TorqueUnit.OunceForceInch, TorqueUnits.OunceForceInch); + yield return new (TorqueUnit.PoundalFoot, TorqueUnits.PoundalFoot); + yield return new (TorqueUnit.PoundForceFoot, TorqueUnits.PoundForceFoot); + yield return new (TorqueUnit.PoundForceInch, TorqueUnits.PoundForceInch); + yield return new (TorqueUnit.TonneForceCentimeter, TorqueUnits.TonneForceCentimeter); + yield return new (TorqueUnit.TonneForceMeter, TorqueUnits.TonneForceMeter); + yield return new (TorqueUnit.TonneForceMillimeter, TorqueUnits.TonneForceMillimeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs b/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs index 130640e9e8..877eb516f4 100644 --- a/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs @@ -119,7 +119,7 @@ public static TurbidityInfo CreateDefault(FuncAn of representing the default unit mappings for Turbidity. public static IEnumerable> GetDefaultMappings() { - yield return new (TurbidityUnit.NTU, "NTU", "NTU", BaseUnits.Undefined); + yield return new (TurbidityUnit.NTU, TurbidityUnits.NTU); } } diff --git a/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs b/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs index f08e9633a7..8a36206abb 100644 --- a/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs @@ -116,7 +116,7 @@ public static VitaminAInfo CreateDefault(FuncAn of representing the default unit mappings for VitaminA. public static IEnumerable> GetDefaultMappings() { - yield return new (VitaminAUnit.InternationalUnit, "InternationalUnit", "InternationalUnits", BaseUnits.Undefined); + yield return new (VitaminAUnit.InternationalUnit, VitaminAUnits.InternationalUnit); } } diff --git a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs index 5fae8578a3..74a9b3918b 100644 --- a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs @@ -132,166 +132,60 @@ public static VolumeInfo CreateDefault(FuncAn of representing the default unit mappings for Volume. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumeUnit.AcreFoot, "AcreFoot", "AcreFeet", BaseUnits.Undefined, - new QuantityValue(48828125, 60228605349) - ); - yield return new (VolumeUnit.AuTablespoon, "AuTablespoon", "AuTablespoons", BaseUnits.Undefined, - 50000 - ); - yield return new (VolumeUnit.BoardFoot, "BoardFoot", "BoardFeet", BaseUnits.Undefined, - new QuantityValue(7812500000, 18435447) - ); - yield return new (VolumeUnit.Centiliter, "Centiliter", "Centiliters", BaseUnits.Undefined, - 100000 - ); - yield return new (VolumeUnit.CubicCentimeter, "CubicCentimeter", "CubicCentimeters", new BaseUnits(length: LengthUnit.Centimeter), - 1000000 - ); - yield return new (VolumeUnit.CubicDecimeter, "CubicDecimeter", "CubicDecimeters", new BaseUnits(length: LengthUnit.Decimeter), - 1000 - ); - yield return new (VolumeUnit.CubicFoot, "CubicFoot", "CubicFeet", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(1953125000, 55306341) - ); - yield return new (VolumeUnit.CubicHectometer, "CubicHectometer", "CubicHectometers", new BaseUnits(length: LengthUnit.Hectometer), - new QuantityValue(1, 1000000) - ); - yield return new (VolumeUnit.CubicInch, "CubicInch", "CubicInches", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(125000000000, 2048383) - ); - yield return new (VolumeUnit.CubicKilometer, "CubicKilometer", "CubicKilometers", new BaseUnits(length: LengthUnit.Kilometer), - new QuantityValue(1, 1000000000) - ); - yield return new (VolumeUnit.CubicMeter, "CubicMeter", "CubicMeters", new BaseUnits(length: LengthUnit.Meter)); - yield return new (VolumeUnit.CubicMicrometer, "CubicMicrometer", "CubicMicrometers", new BaseUnits(length: LengthUnit.Micrometer), - 1000000000000000000 - ); - yield return new (VolumeUnit.CubicMile, "CubicMile", "CubicMiles", new BaseUnits(length: LengthUnit.Mile), - new QuantityValue(1953125, 8140980127813632) - ); - yield return new (VolumeUnit.CubicMillimeter, "CubicMillimeter", "CubicMillimeters", new BaseUnits(length: LengthUnit.Millimeter), - 1000000000 - ); - yield return new (VolumeUnit.CubicYard, "CubicYard", "CubicYards", new BaseUnits(length: LengthUnit.Yard), - new QuantityValue(1953125000, 1493271207) - ); - yield return new (VolumeUnit.Decaliter, "Decaliter", "Decaliters", BaseUnits.Undefined, - 100 - ); - yield return new (VolumeUnit.DecausGallon, "DecausGallon", "DecausGallons", BaseUnits.Undefined, - new QuantityValue(12500000000, 473176473) - ); - yield return new (VolumeUnit.Deciliter, "Deciliter", "Deciliters", BaseUnits.Undefined, - 10000 - ); - yield return new (VolumeUnit.DeciusGallon, "DeciusGallon", "DeciusGallons", BaseUnits.Undefined, - new QuantityValue(1250000000000, 473176473) - ); - yield return new (VolumeUnit.Hectoliter, "Hectoliter", "Hectoliters", BaseUnits.Undefined, - 10 - ); - yield return new (VolumeUnit.HectousGallon, "HectousGallon", "HectousGallons", BaseUnits.Undefined, - new QuantityValue(1250000000, 473176473) - ); - yield return new (VolumeUnit.HundredCubicFoot, "HundredCubicFoot", "HundredCubicFeet", BaseUnits.Undefined, - new QuantityValue(19531250, 55306341) - ); - yield return new (VolumeUnit.ImperialBeerBarrel, "ImperialBeerBarrel", "ImperialBeerBarrels", BaseUnits.Undefined, - new QuantityValue(25000000, 4091481) - ); - yield return new (VolumeUnit.ImperialGallon, "ImperialGallon", "ImperialGallons", BaseUnits.Undefined, - new QuantityValue(100000000, 454609) - ); - yield return new (VolumeUnit.ImperialOunce, "ImperialOunce", "ImperialOunces", BaseUnits.Undefined, - new QuantityValue(16000000000, 454609) - ); - yield return new (VolumeUnit.ImperialPint, "ImperialPint", "ImperialPints", BaseUnits.Undefined, - new QuantityValue(800000000, 454609) - ); - yield return new (VolumeUnit.ImperialQuart, "ImperialQuart", "ImperialQuarts", BaseUnits.Undefined, - new QuantityValue(400000000, 454609) - ); - yield return new (VolumeUnit.KiloimperialGallon, "KiloimperialGallon", "KiloimperialGallons", BaseUnits.Undefined, - new QuantityValue(100000, 454609) - ); - yield return new (VolumeUnit.Kiloliter, "Kiloliter", "Kiloliters", new BaseUnits(length: LengthUnit.Meter), - 1 - ); - yield return new (VolumeUnit.KilousGallon, "KilousGallon", "KilousGallons", BaseUnits.Undefined, - new QuantityValue(125000000, 473176473) - ); - yield return new (VolumeUnit.Liter, "Liter", "Liters", new BaseUnits(length: LengthUnit.Decimeter), - 1000 - ); - yield return new (VolumeUnit.MegaimperialGallon, "MegaimperialGallon", "MegaimperialGallons", BaseUnits.Undefined, - new QuantityValue(100, 454609) - ); - yield return new (VolumeUnit.Megaliter, "Megaliter", "Megaliters", new BaseUnits(length: LengthUnit.Decameter), - new QuantityValue(1, 1000) - ); - yield return new (VolumeUnit.MegausGallon, "MegausGallon", "MegausGallons", BaseUnits.Undefined, - new QuantityValue(125000, 473176473) - ); - yield return new (VolumeUnit.MetricCup, "MetricCup", "MetricCups", BaseUnits.Undefined, - 4000 - ); - yield return new (VolumeUnit.MetricTablespoon, "MetricTablespoon", "MetricTablespoons", BaseUnits.Undefined, - new QuantityValue(200000, 3) - ); - yield return new (VolumeUnit.MetricTeaspoon, "MetricTeaspoon", "MetricTeaspoons", BaseUnits.Undefined, - 200000 - ); - yield return new (VolumeUnit.Microliter, "Microliter", "Microliters", new BaseUnits(length: LengthUnit.Millimeter), - 1000000000 - ); - yield return new (VolumeUnit.Milliliter, "Milliliter", "Milliliters", new BaseUnits(length: LengthUnit.Centimeter), - 1000000 - ); - yield return new (VolumeUnit.MillionCubicFoot, "MillionCubicFoot", "MillionCubicFeet", BaseUnits.Undefined, - new QuantityValue(15625, 442450728) - ); - yield return new (VolumeUnit.Nanoliter, "Nanoliter", "Nanoliters", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (VolumeUnit.OilBarrel, "OilBarrel", "OilBarrels", BaseUnits.Undefined, - new QuantityValue(62500000000, 9936705933) - ); - yield return new (VolumeUnit.ThousandCubicFoot, "ThousandCubicFoot", "ThousandCubicFeet", BaseUnits.Undefined, - new QuantityValue(1953125, 55306341) - ); - yield return new (VolumeUnit.ThousandCubicMeter, "ThousandCubicMeter", "ThousandCubicMeters", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (VolumeUnit.UkTablespoon, "UkTablespoon", "UkTablespoons", BaseUnits.Undefined, - new QuantityValue(200000, 3) - ); - yield return new (VolumeUnit.UsBeerBarrel, "UsBeerBarrel", "UsBeerBarrels", BaseUnits.Undefined, - new QuantityValue(125000000000, 14668470663) - ); - yield return new (VolumeUnit.UsCustomaryCup, "UsCustomaryCup", "UsCustomaryCups", BaseUnits.Undefined, - new QuantityValue(2000000000000, 473176473) - ); - yield return new (VolumeUnit.UsGallon, "UsGallon", "UsGallons", BaseUnits.Undefined, - new QuantityValue(125000000000, 473176473) - ); - yield return new (VolumeUnit.UsLegalCup, "UsLegalCup", "UsLegalCups", BaseUnits.Undefined, - new QuantityValue(12500, 3) - ); - yield return new (VolumeUnit.UsOunce, "UsOunce", "UsOunces", BaseUnits.Undefined, - new QuantityValue(16000000000000, 473176473) - ); - yield return new (VolumeUnit.UsPint, "UsPint", "UsPints", BaseUnits.Undefined, - new QuantityValue(1000000000000, 473176473) - ); - yield return new (VolumeUnit.UsQuart, "UsQuart", "UsQuarts", BaseUnits.Undefined, - new QuantityValue(500000000000, 473176473) - ); - yield return new (VolumeUnit.UsTablespoon, "UsTablespoon", "UsTablespoons", BaseUnits.Undefined, - new QuantityValue(32000000000000, 473176473) - ); - yield return new (VolumeUnit.UsTeaspoon, "UsTeaspoon", "UsTeaspoons", BaseUnits.Undefined, - new QuantityValue(32000000000000, 157725491) - ); + yield return new (VolumeUnit.AcreFoot, VolumeUnits.AcreFoot); + yield return new (VolumeUnit.AuTablespoon, VolumeUnits.AuTablespoon); + yield return new (VolumeUnit.BoardFoot, VolumeUnits.BoardFoot); + yield return new (VolumeUnit.Centiliter, VolumeUnits.Centiliter); + yield return new (VolumeUnit.CubicCentimeter, VolumeUnits.CubicCentimeter); + yield return new (VolumeUnit.CubicDecimeter, VolumeUnits.CubicDecimeter); + yield return new (VolumeUnit.CubicFoot, VolumeUnits.CubicFoot); + yield return new (VolumeUnit.CubicHectometer, VolumeUnits.CubicHectometer); + yield return new (VolumeUnit.CubicInch, VolumeUnits.CubicInch); + yield return new (VolumeUnit.CubicKilometer, VolumeUnits.CubicKilometer); + yield return new (VolumeUnit.CubicMeter, VolumeUnits.CubicMeter); + yield return new (VolumeUnit.CubicMicrometer, VolumeUnits.CubicMicrometer); + yield return new (VolumeUnit.CubicMile, VolumeUnits.CubicMile); + yield return new (VolumeUnit.CubicMillimeter, VolumeUnits.CubicMillimeter); + yield return new (VolumeUnit.CubicYard, VolumeUnits.CubicYard); + yield return new (VolumeUnit.Decaliter, VolumeUnits.Decaliter); + yield return new (VolumeUnit.DecausGallon, VolumeUnits.DecausGallon); + yield return new (VolumeUnit.Deciliter, VolumeUnits.Deciliter); + yield return new (VolumeUnit.DeciusGallon, VolumeUnits.DeciusGallon); + yield return new (VolumeUnit.Hectoliter, VolumeUnits.Hectoliter); + yield return new (VolumeUnit.HectousGallon, VolumeUnits.HectousGallon); + yield return new (VolumeUnit.HundredCubicFoot, VolumeUnits.HundredCubicFoot); + yield return new (VolumeUnit.ImperialBeerBarrel, VolumeUnits.ImperialBeerBarrel); + yield return new (VolumeUnit.ImperialGallon, VolumeUnits.ImperialGallon); + yield return new (VolumeUnit.ImperialOunce, VolumeUnits.ImperialOunce); + yield return new (VolumeUnit.ImperialPint, VolumeUnits.ImperialPint); + yield return new (VolumeUnit.ImperialQuart, VolumeUnits.ImperialQuart); + yield return new (VolumeUnit.KiloimperialGallon, VolumeUnits.KiloimperialGallon); + yield return new (VolumeUnit.Kiloliter, VolumeUnits.Kiloliter); + yield return new (VolumeUnit.KilousGallon, VolumeUnits.KilousGallon); + yield return new (VolumeUnit.Liter, VolumeUnits.Liter); + yield return new (VolumeUnit.MegaimperialGallon, VolumeUnits.MegaimperialGallon); + yield return new (VolumeUnit.Megaliter, VolumeUnits.Megaliter); + yield return new (VolumeUnit.MegausGallon, VolumeUnits.MegausGallon); + yield return new (VolumeUnit.MetricCup, VolumeUnits.MetricCup); + yield return new (VolumeUnit.MetricTablespoon, VolumeUnits.MetricTablespoon); + yield return new (VolumeUnit.MetricTeaspoon, VolumeUnits.MetricTeaspoon); + yield return new (VolumeUnit.Microliter, VolumeUnits.Microliter); + yield return new (VolumeUnit.Milliliter, VolumeUnits.Milliliter); + yield return new (VolumeUnit.MillionCubicFoot, VolumeUnits.MillionCubicFoot); + yield return new (VolumeUnit.Nanoliter, VolumeUnits.Nanoliter); + yield return new (VolumeUnit.OilBarrel, VolumeUnits.OilBarrel); + yield return new (VolumeUnit.ThousandCubicFoot, VolumeUnits.ThousandCubicFoot); + yield return new (VolumeUnit.ThousandCubicMeter, VolumeUnits.ThousandCubicMeter); + yield return new (VolumeUnit.UkTablespoon, VolumeUnits.UkTablespoon); + yield return new (VolumeUnit.UsBeerBarrel, VolumeUnits.UsBeerBarrel); + yield return new (VolumeUnit.UsCustomaryCup, VolumeUnits.UsCustomaryCup); + yield return new (VolumeUnit.UsGallon, VolumeUnits.UsGallon); + yield return new (VolumeUnit.UsLegalCup, VolumeUnits.UsLegalCup); + yield return new (VolumeUnit.UsOunce, VolumeUnits.UsOunce); + yield return new (VolumeUnit.UsPint, VolumeUnits.UsPint); + yield return new (VolumeUnit.UsQuart, VolumeUnits.UsQuart); + yield return new (VolumeUnit.UsTablespoon, VolumeUnits.UsTablespoon); + yield return new (VolumeUnit.UsTeaspoon, VolumeUnits.UsTeaspoon); } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs index ab7a1cdc96..fc09f05931 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs @@ -121,64 +121,26 @@ public static VolumeConcentrationInfo CreateDefault(FuncAn of representing the default unit mappings for VolumeConcentration. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumeConcentrationUnit.CentiliterPerLiter, "CentiliterPerLiter", "CentilitersPerLiter", BaseUnits.Undefined, - 100 - ); - yield return new (VolumeConcentrationUnit.CentiliterPerMilliliter, "CentiliterPerMilliliter", "CentilitersPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 10) - ); - yield return new (VolumeConcentrationUnit.DeciliterPerLiter, "DeciliterPerLiter", "DecilitersPerLiter", BaseUnits.Undefined, - 10 - ); - yield return new (VolumeConcentrationUnit.DeciliterPerMilliliter, "DeciliterPerMilliliter", "DecilitersPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 100) - ); - yield return new (VolumeConcentrationUnit.DecimalFraction, "DecimalFraction", "DecimalFractions", BaseUnits.Undefined); - yield return new (VolumeConcentrationUnit.LiterPerLiter, "LiterPerLiter", "LitersPerLiter", BaseUnits.Undefined, - 1 - ); - yield return new (VolumeConcentrationUnit.LiterPerMilliliter, "LiterPerMilliliter", "LitersPerMilliliter", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (VolumeConcentrationUnit.MicroliterPerLiter, "MicroliterPerLiter", "MicrolitersPerLiter", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumeConcentrationUnit.MicroliterPerMilliliter, "MicroliterPerMilliliter", "MicrolitersPerMilliliter", BaseUnits.Undefined, - 1000 - ); - yield return new (VolumeConcentrationUnit.MilliliterPerLiter, "MilliliterPerLiter", "MillilitersPerLiter", BaseUnits.Undefined, - 1000 - ); - yield return new (VolumeConcentrationUnit.MilliliterPerMilliliter, "MilliliterPerMilliliter", "MillilitersPerMilliliter", BaseUnits.Undefined, - 1 - ); - yield return new (VolumeConcentrationUnit.NanoliterPerLiter, "NanoliterPerLiter", "NanolitersPerLiter", BaseUnits.Undefined, - 1000000000 - ); - yield return new (VolumeConcentrationUnit.NanoliterPerMilliliter, "NanoliterPerMilliliter", "NanolitersPerMilliliter", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumeConcentrationUnit.PartPerBillion, "PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, - 1000000000 - ); - yield return new (VolumeConcentrationUnit.PartPerMillion, "PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumeConcentrationUnit.PartPerThousand, "PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, - 1000 - ); - yield return new (VolumeConcentrationUnit.PartPerTrillion, "PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (VolumeConcentrationUnit.Percent, "Percent", "Percent", BaseUnits.Undefined, - 100 - ); - yield return new (VolumeConcentrationUnit.PicoliterPerLiter, "PicoliterPerLiter", "PicolitersPerLiter", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (VolumeConcentrationUnit.PicoliterPerMilliliter, "PicoliterPerMilliliter", "PicolitersPerMilliliter", BaseUnits.Undefined, - 1000000000 - ); + yield return new (VolumeConcentrationUnit.CentiliterPerLiter, VolumeConcentrationUnits.CentiliterPerLiter); + yield return new (VolumeConcentrationUnit.CentiliterPerMilliliter, VolumeConcentrationUnits.CentiliterPerMilliliter); + yield return new (VolumeConcentrationUnit.DeciliterPerLiter, VolumeConcentrationUnits.DeciliterPerLiter); + yield return new (VolumeConcentrationUnit.DeciliterPerMilliliter, VolumeConcentrationUnits.DeciliterPerMilliliter); + yield return new (VolumeConcentrationUnit.DecimalFraction, VolumeConcentrationUnits.DecimalFraction); + yield return new (VolumeConcentrationUnit.LiterPerLiter, VolumeConcentrationUnits.LiterPerLiter); + yield return new (VolumeConcentrationUnit.LiterPerMilliliter, VolumeConcentrationUnits.LiterPerMilliliter); + yield return new (VolumeConcentrationUnit.MicroliterPerLiter, VolumeConcentrationUnits.MicroliterPerLiter); + yield return new (VolumeConcentrationUnit.MicroliterPerMilliliter, VolumeConcentrationUnits.MicroliterPerMilliliter); + yield return new (VolumeConcentrationUnit.MilliliterPerLiter, VolumeConcentrationUnits.MilliliterPerLiter); + yield return new (VolumeConcentrationUnit.MilliliterPerMilliliter, VolumeConcentrationUnits.MilliliterPerMilliliter); + yield return new (VolumeConcentrationUnit.NanoliterPerLiter, VolumeConcentrationUnits.NanoliterPerLiter); + yield return new (VolumeConcentrationUnit.NanoliterPerMilliliter, VolumeConcentrationUnits.NanoliterPerMilliliter); + yield return new (VolumeConcentrationUnit.PartPerBillion, VolumeConcentrationUnits.PartPerBillion); + yield return new (VolumeConcentrationUnit.PartPerMillion, VolumeConcentrationUnits.PartPerMillion); + yield return new (VolumeConcentrationUnit.PartPerThousand, VolumeConcentrationUnits.PartPerThousand); + yield return new (VolumeConcentrationUnit.PartPerTrillion, VolumeConcentrationUnits.PartPerTrillion); + yield return new (VolumeConcentrationUnit.Percent, VolumeConcentrationUnits.Percent); + yield return new (VolumeConcentrationUnit.PicoliterPerLiter, VolumeConcentrationUnits.PicoliterPerLiter); + yield return new (VolumeConcentrationUnit.PicoliterPerMilliliter, VolumeConcentrationUnits.PicoliterPerMilliliter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs index 884e08ce77..aaab84275f 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs @@ -123,238 +123,84 @@ public static VolumeFlowInfo CreateDefault(FuncAn of representing the default unit mappings for VolumeFlow. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumeFlowUnit.AcreFootPerDay, "AcreFootPerDay", "AcreFeetPerDay", BaseUnits.Undefined, - new QuantityValue(156250000000, 2230689087) - ); - yield return new (VolumeFlowUnit.AcreFootPerHour, "AcreFootPerHour", "AcreFeetPerHour", BaseUnits.Undefined, - new QuantityValue(19531250000, 6692067261) - ); - yield return new (VolumeFlowUnit.AcreFootPerMinute, "AcreFootPerMinute", "AcreFeetPerMinute", BaseUnits.Undefined, - new QuantityValue(976562500, 20076201783) - ); - yield return new (VolumeFlowUnit.AcreFootPerSecond, "AcreFootPerSecond", "AcreFeetPerSecond", BaseUnits.Undefined, - new QuantityValue(48828125, 60228605349) - ); - yield return new (VolumeFlowUnit.CentiliterPerDay, "CentiliterPerDay", "CentilitersPerDay", BaseUnits.Undefined, - 8640000000 - ); - yield return new (VolumeFlowUnit.CentiliterPerHour, "CentiliterPerHour", "CentilitersPerHour", BaseUnits.Undefined, - 360000000 - ); - yield return new (VolumeFlowUnit.CentiliterPerMinute, "CentiliterPerMinute", "CentilitersPerMinute", BaseUnits.Undefined, - 6000000 - ); - yield return new (VolumeFlowUnit.CentiliterPerSecond, "CentiliterPerSecond", "CentilitersPerSecond", BaseUnits.Undefined, - 100000 - ); - yield return new (VolumeFlowUnit.CubicCentimeterPerMinute, "CubicCentimeterPerMinute", "CubicCentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), - 60000000 - ); - yield return new (VolumeFlowUnit.CubicDecimeterPerMinute, "CubicDecimeterPerMinute", "CubicDecimetersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), - 60000 - ); - yield return new (VolumeFlowUnit.CubicFootPerHour, "CubicFootPerHour", "CubicFeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), - new QuantityValue(781250000000, 6145149) - ); - yield return new (VolumeFlowUnit.CubicFootPerMinute, "CubicFootPerMinute", "CubicFeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), - new QuantityValue(39062500000, 18435447) - ); - yield return new (VolumeFlowUnit.CubicFootPerSecond, "CubicFootPerSecond", "CubicFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), - new QuantityValue(1953125000, 55306341) - ); - yield return new (VolumeFlowUnit.CubicInchPerMinute, "CubicInchPerMinute", "CubicInchesPerMinute", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Minute), - new QuantityValue(7500000000000, 2048383) - ); - yield return new (VolumeFlowUnit.CubicInchPerSecond, "CubicInchPerSecond", "CubicInchesPerSecond", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), - new QuantityValue(125000000000, 2048383) - ); - yield return new (VolumeFlowUnit.CubicMeterPerDay, "CubicMeterPerDay", "CubicMetersPerDay", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Day), - 86400 - ); - yield return new (VolumeFlowUnit.CubicMeterPerHour, "CubicMeterPerHour", "CubicMetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), - 3600 - ); - yield return new (VolumeFlowUnit.CubicMeterPerMinute, "CubicMeterPerMinute", "CubicMetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), - 60 - ); - yield return new (VolumeFlowUnit.CubicMeterPerSecond, "CubicMeterPerSecond", "CubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); - yield return new (VolumeFlowUnit.CubicMillimeterPerMinute, "CubicMillimeterPerMinute", "CubicMillimetersPerMinute", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Minute), - 60000000000 - ); - yield return new (VolumeFlowUnit.CubicMillimeterPerSecond, "CubicMillimeterPerSecond", "CubicMillimetersPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), - 1000000000 - ); - yield return new (VolumeFlowUnit.CubicYardPerDay, "CubicYardPerDay", "CubicYardsPerDay", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Day), - new QuantityValue(6250000000000, 55306341) - ); - yield return new (VolumeFlowUnit.CubicYardPerHour, "CubicYardPerHour", "CubicYardsPerHour", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Hour), - new QuantityValue(781250000000, 165919023) - ); - yield return new (VolumeFlowUnit.CubicYardPerMinute, "CubicYardPerMinute", "CubicYardsPerMinute", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Minute), - new QuantityValue(39062500000, 497757069) - ); - yield return new (VolumeFlowUnit.CubicYardPerSecond, "CubicYardPerSecond", "CubicYardsPerSecond", BaseUnits.Undefined, - new QuantityValue(1953125000, 1493271207) - ); - yield return new (VolumeFlowUnit.DecaliterPerDay, "DecaliterPerDay", "DecalitersPerDay", BaseUnits.Undefined, - 8640000 - ); - yield return new (VolumeFlowUnit.DecaliterPerHour, "DecaliterPerHour", "DecalitersPerHour", BaseUnits.Undefined, - 360000 - ); - yield return new (VolumeFlowUnit.DecaliterPerMinute, "DecaliterPerMinute", "DecalitersPerMinute", BaseUnits.Undefined, - 6000 - ); - yield return new (VolumeFlowUnit.DecaliterPerSecond, "DecaliterPerSecond", "DecalitersPerSecond", BaseUnits.Undefined, - 100 - ); - yield return new (VolumeFlowUnit.DeciliterPerDay, "DeciliterPerDay", "DecilitersPerDay", BaseUnits.Undefined, - 864000000 - ); - yield return new (VolumeFlowUnit.DeciliterPerHour, "DeciliterPerHour", "DecilitersPerHour", BaseUnits.Undefined, - 36000000 - ); - yield return new (VolumeFlowUnit.DeciliterPerMinute, "DeciliterPerMinute", "DecilitersPerMinute", BaseUnits.Undefined, - 600000 - ); - yield return new (VolumeFlowUnit.DeciliterPerSecond, "DeciliterPerSecond", "DecilitersPerSecond", BaseUnits.Undefined, - 10000 - ); - yield return new (VolumeFlowUnit.HectoliterPerDay, "HectoliterPerDay", "HectolitersPerDay", BaseUnits.Undefined, - 864000 - ); - yield return new (VolumeFlowUnit.HectoliterPerHour, "HectoliterPerHour", "HectolitersPerHour", BaseUnits.Undefined, - 36000 - ); - yield return new (VolumeFlowUnit.HectoliterPerMinute, "HectoliterPerMinute", "HectolitersPerMinute", BaseUnits.Undefined, - 600 - ); - yield return new (VolumeFlowUnit.HectoliterPerSecond, "HectoliterPerSecond", "HectolitersPerSecond", BaseUnits.Undefined, - 10 - ); - yield return new (VolumeFlowUnit.KiloliterPerDay, "KiloliterPerDay", "KilolitersPerDay", BaseUnits.Undefined, - 86400 - ); - yield return new (VolumeFlowUnit.KiloliterPerHour, "KiloliterPerHour", "KilolitersPerHour", BaseUnits.Undefined, - 3600 - ); - yield return new (VolumeFlowUnit.KiloliterPerMinute, "KiloliterPerMinute", "KilolitersPerMinute", BaseUnits.Undefined, - 60 - ); - yield return new (VolumeFlowUnit.KiloliterPerSecond, "KiloliterPerSecond", "KilolitersPerSecond", BaseUnits.Undefined, - 1 - ); - yield return new (VolumeFlowUnit.KilousGallonPerMinute, "KilousGallonPerMinute", "KilousGallonsPerMinute", BaseUnits.Undefined, - new QuantityValue(2500000000, 157725491) - ); - yield return new (VolumeFlowUnit.LiterPerDay, "LiterPerDay", "LitersPerDay", BaseUnits.Undefined, - 86400000 - ); - yield return new (VolumeFlowUnit.LiterPerHour, "LiterPerHour", "LitersPerHour", BaseUnits.Undefined, - 3600000 - ); - yield return new (VolumeFlowUnit.LiterPerMinute, "LiterPerMinute", "LitersPerMinute", BaseUnits.Undefined, - 60000 - ); - yield return new (VolumeFlowUnit.LiterPerSecond, "LiterPerSecond", "LitersPerSecond", BaseUnits.Undefined, - 1000 - ); - yield return new (VolumeFlowUnit.MegaliterPerDay, "MegaliterPerDay", "MegalitersPerDay", BaseUnits.Undefined, - new QuantityValue(432, 5) - ); - yield return new (VolumeFlowUnit.MegaliterPerHour, "MegaliterPerHour", "MegalitersPerHour", BaseUnits.Undefined, - new QuantityValue(18, 5) - ); - yield return new (VolumeFlowUnit.MegaliterPerMinute, "MegaliterPerMinute", "MegalitersPerMinute", BaseUnits.Undefined, - new QuantityValue(3, 50) - ); - yield return new (VolumeFlowUnit.MegaliterPerSecond, "MegaliterPerSecond", "MegalitersPerSecond", BaseUnits.Undefined, - new QuantityValue(1, 1000) - ); - yield return new (VolumeFlowUnit.MegaukGallonPerDay, "MegaukGallonPerDay", "MegaukGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(8640000, 454609) - ); - yield return new (VolumeFlowUnit.MegaukGallonPerSecond, "MegaukGallonPerSecond", "MegaukGallonsPerSecond", BaseUnits.Undefined, - new QuantityValue(100, 454609) - ); - yield return new (VolumeFlowUnit.MegausGallonPerDay, "MegausGallonPerDay", "MegausGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(3600000000, 157725491) - ); - yield return new (VolumeFlowUnit.MicroliterPerDay, "MicroliterPerDay", "MicrolitersPerDay", BaseUnits.Undefined, - 86400000000000 - ); - yield return new (VolumeFlowUnit.MicroliterPerHour, "MicroliterPerHour", "MicrolitersPerHour", BaseUnits.Undefined, - 3600000000000 - ); - yield return new (VolumeFlowUnit.MicroliterPerMinute, "MicroliterPerMinute", "MicrolitersPerMinute", BaseUnits.Undefined, - 60000000000 - ); - yield return new (VolumeFlowUnit.MicroliterPerSecond, "MicroliterPerSecond", "MicrolitersPerSecond", BaseUnits.Undefined, - 1000000000 - ); - yield return new (VolumeFlowUnit.MilliliterPerDay, "MilliliterPerDay", "MillilitersPerDay", BaseUnits.Undefined, - 86400000000 - ); - yield return new (VolumeFlowUnit.MilliliterPerHour, "MilliliterPerHour", "MillilitersPerHour", BaseUnits.Undefined, - 3600000000 - ); - yield return new (VolumeFlowUnit.MilliliterPerMinute, "MilliliterPerMinute", "MillilitersPerMinute", BaseUnits.Undefined, - 60000000 - ); - yield return new (VolumeFlowUnit.MilliliterPerSecond, "MilliliterPerSecond", "MillilitersPerSecond", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumeFlowUnit.MillionUsGallonPerDay, "MillionUsGallonPerDay", "MillionUsGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(3600000000, 157725491) - ); - yield return new (VolumeFlowUnit.NanoliterPerDay, "NanoliterPerDay", "NanolitersPerDay", BaseUnits.Undefined, - 86400000000000000 - ); - yield return new (VolumeFlowUnit.NanoliterPerHour, "NanoliterPerHour", "NanolitersPerHour", BaseUnits.Undefined, - 3600000000000000 - ); - yield return new (VolumeFlowUnit.NanoliterPerMinute, "NanoliterPerMinute", "NanolitersPerMinute", BaseUnits.Undefined, - 60000000000000 - ); - yield return new (VolumeFlowUnit.NanoliterPerSecond, "NanoliterPerSecond", "NanolitersPerSecond", BaseUnits.Undefined, - 1000000000000 - ); - yield return new (VolumeFlowUnit.OilBarrelPerDay, "OilBarrelPerDay", "OilBarrelsPerDay", BaseUnits.Undefined, - new QuantityValue(600000000000000, 1104078437) - ); - yield return new (VolumeFlowUnit.OilBarrelPerHour, "OilBarrelPerHour", "OilBarrelsPerHour", BaseUnits.Undefined, - new QuantityValue(25000000000000, 1104078437) - ); - yield return new (VolumeFlowUnit.OilBarrelPerMinute, "OilBarrelPerMinute", "OilBarrelsPerMinute", BaseUnits.Undefined, - new QuantityValue(1250000000000, 3312235311) - ); - yield return new (VolumeFlowUnit.OilBarrelPerSecond, "OilBarrelPerSecond", "OilBarrelsPerSecond", BaseUnits.Undefined, - new QuantityValue(62500000000, 9936705933) - ); - yield return new (VolumeFlowUnit.UkGallonPerDay, "UkGallonPerDay", "UkGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(8640000000000, 454609) - ); - yield return new (VolumeFlowUnit.UkGallonPerHour, "UkGallonPerHour", "UkGallonsPerHour", BaseUnits.Undefined, - new QuantityValue(360000000000, 454609) - ); - yield return new (VolumeFlowUnit.UkGallonPerMinute, "UkGallonPerMinute", "UkGallonsPerMinute", BaseUnits.Undefined, - new QuantityValue(6000000000, 454609) - ); - yield return new (VolumeFlowUnit.UkGallonPerSecond, "UkGallonPerSecond", "UkGallonsPerSecond", BaseUnits.Undefined, - new QuantityValue(100000000, 454609) - ); - yield return new (VolumeFlowUnit.UsGallonPerDay, "UsGallonPerDay", "UsGallonsPerDay", BaseUnits.Undefined, - new QuantityValue(3600000000000000, 157725491) - ); - yield return new (VolumeFlowUnit.UsGallonPerHour, "UsGallonPerHour", "UsGallonsPerHour", BaseUnits.Undefined, - new QuantityValue(150000000000000, 157725491) - ); - yield return new (VolumeFlowUnit.UsGallonPerMinute, "UsGallonPerMinute", "UsGallonsPerMinute", BaseUnits.Undefined, - new QuantityValue(2500000000000, 157725491) - ); - yield return new (VolumeFlowUnit.UsGallonPerSecond, "UsGallonPerSecond", "UsGallonsPerSecond", BaseUnits.Undefined, - new QuantityValue(125000000000, 473176473) - ); + yield return new (VolumeFlowUnit.AcreFootPerDay, VolumeFlowUnits.AcreFootPerDay); + yield return new (VolumeFlowUnit.AcreFootPerHour, VolumeFlowUnits.AcreFootPerHour); + yield return new (VolumeFlowUnit.AcreFootPerMinute, VolumeFlowUnits.AcreFootPerMinute); + yield return new (VolumeFlowUnit.AcreFootPerSecond, VolumeFlowUnits.AcreFootPerSecond); + yield return new (VolumeFlowUnit.CentiliterPerDay, VolumeFlowUnits.CentiliterPerDay); + yield return new (VolumeFlowUnit.CentiliterPerHour, VolumeFlowUnits.CentiliterPerHour); + yield return new (VolumeFlowUnit.CentiliterPerMinute, VolumeFlowUnits.CentiliterPerMinute); + yield return new (VolumeFlowUnit.CentiliterPerSecond, VolumeFlowUnits.CentiliterPerSecond); + yield return new (VolumeFlowUnit.CubicCentimeterPerMinute, VolumeFlowUnits.CubicCentimeterPerMinute); + yield return new (VolumeFlowUnit.CubicDecimeterPerMinute, VolumeFlowUnits.CubicDecimeterPerMinute); + yield return new (VolumeFlowUnit.CubicFootPerHour, VolumeFlowUnits.CubicFootPerHour); + yield return new (VolumeFlowUnit.CubicFootPerMinute, VolumeFlowUnits.CubicFootPerMinute); + yield return new (VolumeFlowUnit.CubicFootPerSecond, VolumeFlowUnits.CubicFootPerSecond); + yield return new (VolumeFlowUnit.CubicInchPerMinute, VolumeFlowUnits.CubicInchPerMinute); + yield return new (VolumeFlowUnit.CubicInchPerSecond, VolumeFlowUnits.CubicInchPerSecond); + yield return new (VolumeFlowUnit.CubicMeterPerDay, VolumeFlowUnits.CubicMeterPerDay); + yield return new (VolumeFlowUnit.CubicMeterPerHour, VolumeFlowUnits.CubicMeterPerHour); + yield return new (VolumeFlowUnit.CubicMeterPerMinute, VolumeFlowUnits.CubicMeterPerMinute); + yield return new (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnits.CubicMeterPerSecond); + yield return new (VolumeFlowUnit.CubicMillimeterPerMinute, VolumeFlowUnits.CubicMillimeterPerMinute); + yield return new (VolumeFlowUnit.CubicMillimeterPerSecond, VolumeFlowUnits.CubicMillimeterPerSecond); + yield return new (VolumeFlowUnit.CubicYardPerDay, VolumeFlowUnits.CubicYardPerDay); + yield return new (VolumeFlowUnit.CubicYardPerHour, VolumeFlowUnits.CubicYardPerHour); + yield return new (VolumeFlowUnit.CubicYardPerMinute, VolumeFlowUnits.CubicYardPerMinute); + yield return new (VolumeFlowUnit.CubicYardPerSecond, VolumeFlowUnits.CubicYardPerSecond); + yield return new (VolumeFlowUnit.DecaliterPerDay, VolumeFlowUnits.DecaliterPerDay); + yield return new (VolumeFlowUnit.DecaliterPerHour, VolumeFlowUnits.DecaliterPerHour); + yield return new (VolumeFlowUnit.DecaliterPerMinute, VolumeFlowUnits.DecaliterPerMinute); + yield return new (VolumeFlowUnit.DecaliterPerSecond, VolumeFlowUnits.DecaliterPerSecond); + yield return new (VolumeFlowUnit.DeciliterPerDay, VolumeFlowUnits.DeciliterPerDay); + yield return new (VolumeFlowUnit.DeciliterPerHour, VolumeFlowUnits.DeciliterPerHour); + yield return new (VolumeFlowUnit.DeciliterPerMinute, VolumeFlowUnits.DeciliterPerMinute); + yield return new (VolumeFlowUnit.DeciliterPerSecond, VolumeFlowUnits.DeciliterPerSecond); + yield return new (VolumeFlowUnit.HectoliterPerDay, VolumeFlowUnits.HectoliterPerDay); + yield return new (VolumeFlowUnit.HectoliterPerHour, VolumeFlowUnits.HectoliterPerHour); + yield return new (VolumeFlowUnit.HectoliterPerMinute, VolumeFlowUnits.HectoliterPerMinute); + yield return new (VolumeFlowUnit.HectoliterPerSecond, VolumeFlowUnits.HectoliterPerSecond); + yield return new (VolumeFlowUnit.KiloliterPerDay, VolumeFlowUnits.KiloliterPerDay); + yield return new (VolumeFlowUnit.KiloliterPerHour, VolumeFlowUnits.KiloliterPerHour); + yield return new (VolumeFlowUnit.KiloliterPerMinute, VolumeFlowUnits.KiloliterPerMinute); + yield return new (VolumeFlowUnit.KiloliterPerSecond, VolumeFlowUnits.KiloliterPerSecond); + yield return new (VolumeFlowUnit.KilousGallonPerMinute, VolumeFlowUnits.KilousGallonPerMinute); + yield return new (VolumeFlowUnit.LiterPerDay, VolumeFlowUnits.LiterPerDay); + yield return new (VolumeFlowUnit.LiterPerHour, VolumeFlowUnits.LiterPerHour); + yield return new (VolumeFlowUnit.LiterPerMinute, VolumeFlowUnits.LiterPerMinute); + yield return new (VolumeFlowUnit.LiterPerSecond, VolumeFlowUnits.LiterPerSecond); + yield return new (VolumeFlowUnit.MegaliterPerDay, VolumeFlowUnits.MegaliterPerDay); + yield return new (VolumeFlowUnit.MegaliterPerHour, VolumeFlowUnits.MegaliterPerHour); + yield return new (VolumeFlowUnit.MegaliterPerMinute, VolumeFlowUnits.MegaliterPerMinute); + yield return new (VolumeFlowUnit.MegaliterPerSecond, VolumeFlowUnits.MegaliterPerSecond); + yield return new (VolumeFlowUnit.MegaukGallonPerDay, VolumeFlowUnits.MegaukGallonPerDay); + yield return new (VolumeFlowUnit.MegaukGallonPerSecond, VolumeFlowUnits.MegaukGallonPerSecond); + yield return new (VolumeFlowUnit.MegausGallonPerDay, VolumeFlowUnits.MegausGallonPerDay); + yield return new (VolumeFlowUnit.MicroliterPerDay, VolumeFlowUnits.MicroliterPerDay); + yield return new (VolumeFlowUnit.MicroliterPerHour, VolumeFlowUnits.MicroliterPerHour); + yield return new (VolumeFlowUnit.MicroliterPerMinute, VolumeFlowUnits.MicroliterPerMinute); + yield return new (VolumeFlowUnit.MicroliterPerSecond, VolumeFlowUnits.MicroliterPerSecond); + yield return new (VolumeFlowUnit.MilliliterPerDay, VolumeFlowUnits.MilliliterPerDay); + yield return new (VolumeFlowUnit.MilliliterPerHour, VolumeFlowUnits.MilliliterPerHour); + yield return new (VolumeFlowUnit.MilliliterPerMinute, VolumeFlowUnits.MilliliterPerMinute); + yield return new (VolumeFlowUnit.MilliliterPerSecond, VolumeFlowUnits.MilliliterPerSecond); + yield return new (VolumeFlowUnit.MillionUsGallonPerDay, VolumeFlowUnits.MillionUsGallonPerDay); + yield return new (VolumeFlowUnit.NanoliterPerDay, VolumeFlowUnits.NanoliterPerDay); + yield return new (VolumeFlowUnit.NanoliterPerHour, VolumeFlowUnits.NanoliterPerHour); + yield return new (VolumeFlowUnit.NanoliterPerMinute, VolumeFlowUnits.NanoliterPerMinute); + yield return new (VolumeFlowUnit.NanoliterPerSecond, VolumeFlowUnits.NanoliterPerSecond); + yield return new (VolumeFlowUnit.OilBarrelPerDay, VolumeFlowUnits.OilBarrelPerDay); + yield return new (VolumeFlowUnit.OilBarrelPerHour, VolumeFlowUnits.OilBarrelPerHour); + yield return new (VolumeFlowUnit.OilBarrelPerMinute, VolumeFlowUnits.OilBarrelPerMinute); + yield return new (VolumeFlowUnit.OilBarrelPerSecond, VolumeFlowUnits.OilBarrelPerSecond); + yield return new (VolumeFlowUnit.UkGallonPerDay, VolumeFlowUnits.UkGallonPerDay); + yield return new (VolumeFlowUnit.UkGallonPerHour, VolumeFlowUnits.UkGallonPerHour); + yield return new (VolumeFlowUnit.UkGallonPerMinute, VolumeFlowUnits.UkGallonPerMinute); + yield return new (VolumeFlowUnit.UkGallonPerSecond, VolumeFlowUnits.UkGallonPerSecond); + yield return new (VolumeFlowUnit.UsGallonPerDay, VolumeFlowUnits.UsGallonPerDay); + yield return new (VolumeFlowUnit.UsGallonPerHour, VolumeFlowUnits.UsGallonPerHour); + yield return new (VolumeFlowUnit.UsGallonPerMinute, VolumeFlowUnits.UsGallonPerMinute); + yield return new (VolumeFlowUnit.UsGallonPerSecond, VolumeFlowUnits.UsGallonPerSecond); } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs index 1800e157d8..f8c88486cb 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs @@ -117,10 +117,8 @@ public static VolumeFlowPerAreaInfo CreateDefault(FuncAn of representing the default unit mappings for VolumeFlowPerArea. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot, "CubicFootPerMinutePerSquareFoot", "CubicFeetPerMinutePerSquareFoot", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), - new QuantityValue(25000, 127) - ); - yield return new (VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter, "CubicMeterPerSecondPerSquareMeter", "CubicMetersPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second)); + yield return new (VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot, VolumeFlowPerAreaUnits.CubicFootPerMinutePerSquareFoot); + yield return new (VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter, VolumeFlowPerAreaUnits.CubicMeterPerSecondPerSquareMeter); } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs index 28c22481d5..f8fad8901b 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs @@ -117,31 +117,15 @@ public static VolumePerLengthInfo CreateDefault(FuncAn of representing the default unit mappings for VolumePerLength. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumePerLengthUnit.CubicMeterPerMeter, "CubicMeterPerMeter", "CubicMetersPerMeter", new BaseUnits(length: LengthUnit.Meter)); - yield return new (VolumePerLengthUnit.CubicYardPerFoot, "CubicYardPerFoot", "CubicYardsPerFoot", BaseUnits.Undefined, - new QuantityValue(1562500, 3919347) - ); - yield return new (VolumePerLengthUnit.CubicYardPerUsSurveyFoot, "CubicYardPerUsSurveyFoot", "CubicYardsPerUsSurveyFoot", BaseUnits.Undefined, - new QuantityValue(781250000000, 1959669580653) - ); - yield return new (VolumePerLengthUnit.ImperialGallonPerMile, "ImperialGallonPerMile", "ImperialGallonsPerMile", BaseUnits.Undefined, - new QuantityValue(160934400000, 454609) - ); - yield return new (VolumePerLengthUnit.LiterPerKilometer, "LiterPerKilometer", "LitersPerKilometer", BaseUnits.Undefined, - 1000000 - ); - yield return new (VolumePerLengthUnit.LiterPerMeter, "LiterPerMeter", "LitersPerMeter", new BaseUnits(length: LengthUnit.Decimeter), - 1000 - ); - yield return new (VolumePerLengthUnit.LiterPerMillimeter, "LiterPerMillimeter", "LitersPerMillimeter", BaseUnits.Undefined, - 1 - ); - yield return new (VolumePerLengthUnit.OilBarrelPerFoot, "OilBarrelPerFoot", "OilBarrelsPerFoot", BaseUnits.Undefined, - new QuantityValue(50000000, 26080593) - ); - yield return new (VolumePerLengthUnit.UsGallonPerMile, "UsGallonPerMile", "UsGallonsPerMile", BaseUnits.Undefined, - new QuantityValue(48000000000, 112903) - ); + yield return new (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnits.CubicMeterPerMeter); + yield return new (VolumePerLengthUnit.CubicYardPerFoot, VolumePerLengthUnits.CubicYardPerFoot); + yield return new (VolumePerLengthUnit.CubicYardPerUsSurveyFoot, VolumePerLengthUnits.CubicYardPerUsSurveyFoot); + yield return new (VolumePerLengthUnit.ImperialGallonPerMile, VolumePerLengthUnits.ImperialGallonPerMile); + yield return new (VolumePerLengthUnit.LiterPerKilometer, VolumePerLengthUnits.LiterPerKilometer); + yield return new (VolumePerLengthUnit.LiterPerMeter, VolumePerLengthUnits.LiterPerMeter); + yield return new (VolumePerLengthUnit.LiterPerMillimeter, VolumePerLengthUnits.LiterPerMillimeter); + yield return new (VolumePerLengthUnit.OilBarrelPerFoot, VolumePerLengthUnits.OilBarrelPerFoot); + yield return new (VolumePerLengthUnit.UsGallonPerMile, VolumePerLengthUnits.UsGallonPerMile); } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs index e9ea8a0dc5..4dab098ced 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs @@ -120,31 +120,15 @@ public static VolumetricHeatCapacityInfo CreateDefault(FuncAn of representing the default unit mappings for VolumetricHeatCapacity. public static IEnumerable> GetDefaultMappings() { - yield return new (VolumetricHeatCapacityUnit.BtuPerCubicFootDegreeFahrenheit, "BtuPerCubicFootDegreeFahrenheit", "BtusPerCubicFootDegreeFahrenheit", BaseUnits.Undefined, - new QuantityValue(98322384, 6594099078875) - ); - yield return new (VolumetricHeatCapacityUnit.CaloriePerCubicCentimeterDegreeCelsius, "CaloriePerCubicCentimeterDegreeCelsius", "CaloriesPerCubicCentimeterDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(1, 4184000) - ); - yield return new (VolumetricHeatCapacityUnit.JoulePerCubicMeterDegreeCelsius, "JoulePerCubicMeterDegreeCelsius", "JoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - 1 - ); - yield return new (VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin, "JoulePerCubicMeterKelvin", "JoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin)); - yield return new (VolumetricHeatCapacityUnit.KilocaloriePerCubicCentimeterDegreeCelsius, "KilocaloriePerCubicCentimeterDegreeCelsius", "KilocaloriesPerCubicCentimeterDegreeCelsius", BaseUnits.Undefined, - new QuantityValue(1, 4184000000) - ); - yield return new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterDegreeCelsius, "KilojoulePerCubicMeterDegreeCelsius", "KilojoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000) - ); - yield return new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterKelvin, "KilojoulePerCubicMeterKelvin", "KilojoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000) - ); - yield return new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterDegreeCelsius, "MegajoulePerCubicMeterDegreeCelsius", "MegajoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), - new QuantityValue(1, 1000000) - ); - yield return new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterKelvin, "MegajoulePerCubicMeterKelvin", "MegajoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), - new QuantityValue(1, 1000000) - ); + yield return new (VolumetricHeatCapacityUnit.BtuPerCubicFootDegreeFahrenheit, VolumetricHeatCapacityUnits.BtuPerCubicFootDegreeFahrenheit); + yield return new (VolumetricHeatCapacityUnit.CaloriePerCubicCentimeterDegreeCelsius, VolumetricHeatCapacityUnits.CaloriePerCubicCentimeterDegreeCelsius); + yield return new (VolumetricHeatCapacityUnit.JoulePerCubicMeterDegreeCelsius, VolumetricHeatCapacityUnits.JoulePerCubicMeterDegreeCelsius); + yield return new (VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin, VolumetricHeatCapacityUnits.JoulePerCubicMeterKelvin); + yield return new (VolumetricHeatCapacityUnit.KilocaloriePerCubicCentimeterDegreeCelsius, VolumetricHeatCapacityUnits.KilocaloriePerCubicCentimeterDegreeCelsius); + yield return new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterDegreeCelsius, VolumetricHeatCapacityUnits.KilojoulePerCubicMeterDegreeCelsius); + yield return new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterKelvin, VolumetricHeatCapacityUnits.KilojoulePerCubicMeterKelvin); + yield return new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterDegreeCelsius, VolumetricHeatCapacityUnits.MegajoulePerCubicMeterDegreeCelsius); + yield return new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterKelvin, VolumetricHeatCapacityUnits.MegajoulePerCubicMeterKelvin); } } diff --git a/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs index 0789620514..a93563c1ef 100644 --- a/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs @@ -116,22 +116,12 @@ public static WarpingMomentOfInertiaInfo CreateDefault(FuncAn of representing the default unit mappings for WarpingMomentOfInertia. public static IEnumerable> GetDefaultMappings() { - yield return new (WarpingMomentOfInertiaUnit.CentimeterToTheSixth, "CentimeterToTheSixth", "CentimetersToTheSixth", new BaseUnits(length: LengthUnit.Centimeter), - 1000000000000 - ); - yield return new (WarpingMomentOfInertiaUnit.DecimeterToTheSixth, "DecimeterToTheSixth", "DecimetersToTheSixth", new BaseUnits(length: LengthUnit.Decimeter), - 1000000 - ); - yield return new (WarpingMomentOfInertiaUnit.FootToTheSixth, "FootToTheSixth", "FeetToTheSixth", new BaseUnits(length: LengthUnit.Foot), - new QuantityValue(3814697265625000000, 3058791354808281) - ); - yield return new (WarpingMomentOfInertiaUnit.InchToTheSixth, "InchToTheSixth", "InchesToTheSixth", new BaseUnits(length: LengthUnit.Inch), - new QuantityValue(new BigInteger(15625) * QuantityValue.PowerOfTen(18), 4195872914689) - ); - yield return new (WarpingMomentOfInertiaUnit.MeterToTheSixth, "MeterToTheSixth", "MetersToTheSixth", new BaseUnits(length: LengthUnit.Meter)); - yield return new (WarpingMomentOfInertiaUnit.MillimeterToTheSixth, "MillimeterToTheSixth", "MillimetersToTheSixth", new BaseUnits(length: LengthUnit.Millimeter), - 1000000000000000000 - ); + yield return new (WarpingMomentOfInertiaUnit.CentimeterToTheSixth, WarpingMomentOfInertiaUnits.CentimeterToTheSixth); + yield return new (WarpingMomentOfInertiaUnit.DecimeterToTheSixth, WarpingMomentOfInertiaUnits.DecimeterToTheSixth); + yield return new (WarpingMomentOfInertiaUnit.FootToTheSixth, WarpingMomentOfInertiaUnits.FootToTheSixth); + yield return new (WarpingMomentOfInertiaUnit.InchToTheSixth, WarpingMomentOfInertiaUnits.InchToTheSixth); + yield return new (WarpingMomentOfInertiaUnit.MeterToTheSixth, WarpingMomentOfInertiaUnits.MeterToTheSixth); + yield return new (WarpingMomentOfInertiaUnit.MillimeterToTheSixth, WarpingMomentOfInertiaUnits.MillimeterToTheSixth); } } diff --git a/UnitsNet/GeneratedCode/Units/AbsorbedDoseOfIonizingRadiationUnits.g.cs b/UnitsNet/GeneratedCode/Units/AbsorbedDoseOfIonizingRadiationUnits.g.cs new file mode 100644 index 0000000000..7c050570ea --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/AbsorbedDoseOfIonizingRadiationUnits.g.cs @@ -0,0 +1,113 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class AbsorbedDoseOfIonizingRadiationUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Centigray = new("Centigray", "Centigrays", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Decigray = new("Decigray", "Decigrays", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf Femtogray = new("Femtogray", "Femtograys", BaseUnits.Undefined, new QuantityValue(1, 1000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigagray = new("Gigagray", "Gigagrays", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Gray = new("Gray", "Grays", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilogray = new("Kilogray", "Kilograys", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilorad = new("Kilorad", "Kilorads", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf Megagray = new("Megagray", "Megagrays", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megarad = new("Megarad", "Megarads", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microgray = new("Microgray", "Micrograys", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milligray = new("Milligray", "Milligrays", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millirad = new("Millirad", "Millirads", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanogray = new("Nanogray", "Nanograys", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Petagray = new("Petagray", "Petagrays", BaseUnits.Undefined, 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Picogray = new("Picogray", "Picograys", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Rad = new("Rad", "Rads", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Teragray = new("Teragray", "Teragrays", new BaseUnits(length: LengthUnit.Megameter, time: DurationUnit.Second), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/AccelerationUnits.g.cs b/UnitsNet/GeneratedCode/Units/AccelerationUnits.g.cs new file mode 100644 index 0000000000..01ab773f8b --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/AccelerationUnits.g.cs @@ -0,0 +1,98 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class AccelerationUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentimeterPerSecondSquared = new("CentimeterPerSecondSquared", "CentimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecimeterPerSecondSquared = new("DecimeterPerSecondSquared", "DecimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf FootPerSecondSquared = new("FootPerSecondSquared", "FeetPerSecondSquared", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), new QuantityValue(381, 1250)); + + /// + /// The unit of . + /// + public static readonly UnitOf InchPerSecondSquared = new("InchPerSecondSquared", "InchesPerSecondSquared", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), new QuantityValue(127, 5000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilometerPerSecondSquared = new("KilometerPerSecondSquared", "KilometersPerSecondSquared", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KnotPerHour = new("KnotPerHour", "KnotsPerHour", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Hour), new QuantityValue(463, 3240000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KnotPerMinute = new("KnotPerMinute", "KnotsPerMinute", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Minute), new QuantityValue(463, 54000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KnotPerSecond = new("KnotPerSecond", "KnotsPerSecond", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Second), new QuantityValue(463, 900)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeterPerSecondSquared = new("MeterPerSecondSquared", "MetersPerSecondSquared", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrometerPerSecondSquared = new("MicrometerPerSecondSquared", "MicrometersPerSecondSquared", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterPerSecondSquared = new("MillimeterPerSecondSquared", "MillimetersPerSecondSquared", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillistandardGravity = new("MillistandardGravity", "MillistandardGravity", BaseUnits.Undefined, new QuantityValue(196133, 20000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanometerPerSecondSquared = new("NanometerPerSecondSquared", "NanometersPerSecondSquared", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardGravity = new("StandardGravity", "StandardGravity", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/AmountOfSubstanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/AmountOfSubstanceUnits.g.cs new file mode 100644 index 0000000000..779c2c22bc --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/AmountOfSubstanceUnits.g.cs @@ -0,0 +1,113 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class AmountOfSubstanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Centimole = new("Centimole", "Centimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Centimole), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentipoundMole = new("CentipoundMole", "CentipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.CentipoundMole), new QuantityValue(45359237, 10000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Decimole = new("Decimole", "Decimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Decimole), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecipoundMole = new("DecipoundMole", "DecipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.DecipoundMole), new QuantityValue(45359237, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Femtomole = new("Femtomole", "Femtomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Femtomole), new QuantityValue(1, 1000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilomole = new("Kilomole", "Kilomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Kilomole), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundMole = new("KilopoundMole", "KilopoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.KilopoundMole), new QuantityValue(45359237, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Megamole = new("Megamole", "Megamoles", new BaseUnits(amount: AmountOfSubstanceUnit.Megamole), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Micromole = new("Micromole", "Micromoles", new BaseUnits(amount: AmountOfSubstanceUnit.Micromole), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicropoundMole = new("MicropoundMole", "MicropoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.MicropoundMole), new QuantityValue(45359237, 100000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millimole = new("Millimole", "Millimoles", new BaseUnits(amount: AmountOfSubstanceUnit.Millimole), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillipoundMole = new("MillipoundMole", "MillipoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.MillipoundMole), new QuantityValue(45359237, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Mole = new("Mole", "Moles", new BaseUnits(amount: AmountOfSubstanceUnit.Mole), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanomole = new("Nanomole", "Nanomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Nanomole), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanopoundMole = new("NanopoundMole", "NanopoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.NanopoundMole), new QuantityValue(45359237, 100000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Picomole = new("Picomole", "Picomoles", new BaseUnits(amount: AmountOfSubstanceUnit.Picomole), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundMole = new("PoundMole", "PoundMoles", new BaseUnits(amount: AmountOfSubstanceUnit.PoundMole), new QuantityValue(45359237, 100000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/AmplitudeRatioUnits.g.cs b/UnitsNet/GeneratedCode/Units/AmplitudeRatioUnits.g.cs new file mode 100644 index 0000000000..b6978d64ee --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/AmplitudeRatioUnits.g.cs @@ -0,0 +1,54 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class AmplitudeRatioUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DecibelMicrovolt = new("DecibelMicrovolt", "DecibelMicrovolts", BaseUnits.Undefined, + new ConversionExpression(coefficient: 1, constantTerm: 120), + new ConversionExpression(coefficient: 1, constantTerm: -120)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecibelMillivolt = new("DecibelMillivolt", "DecibelMillivolts", BaseUnits.Undefined, + new ConversionExpression(coefficient: 1, constantTerm: 60), + new ConversionExpression(coefficient: 1, constantTerm: -60)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecibelUnloaded = new("DecibelUnloaded", "DecibelsUnloaded", BaseUnits.Undefined, + new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(2218487499, 1000000000)), + new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(-2218487499, 1000000000))); + + /// + /// The unit of . + /// + public static readonly UnitOf DecibelVolt = new("DecibelVolt", "DecibelVolts", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/AngleUnits.g.cs b/UnitsNet/GeneratedCode/Units/AngleUnits.g.cs new file mode 100644 index 0000000000..14217b4723 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/AngleUnits.g.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class AngleUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Arcminute = new("Arcminute", "Arcminutes", BaseUnits.Undefined, new QuantityValue(3141592653589793, new BigInteger(108) * QuantityValue.PowerOfTen(17))); + + /// + /// The unit of . + /// + public static readonly UnitOf Arcsecond = new("Arcsecond", "Arcseconds", BaseUnits.Undefined, new QuantityValue(3141592653589793, new BigInteger(648) * QuantityValue.PowerOfTen(18))); + + /// + /// The unit of . + /// + public static readonly UnitOf Centiradian = new("Centiradian", "Centiradians", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Deciradian = new("Deciradian", "Deciradians", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf Degree = new("Degree", "Degrees", BaseUnits.Undefined, new QuantityValue(3141592653589793, 180000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gradian = new("Gradian", "Gradians", BaseUnits.Undefined, new QuantityValue(3141592653589793, 200000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microdegree = new("Microdegree", "Microdegrees", BaseUnits.Undefined, new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(22))); + + /// + /// The unit of . + /// + public static readonly UnitOf Microradian = new("Microradian", "Microradians", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millidegree = new("Millidegree", "Millidegrees", BaseUnits.Undefined, new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(19))); + + /// + /// The unit of . + /// + public static readonly UnitOf Milliradian = new("Milliradian", "Milliradians", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanodegree = new("Nanodegree", "Nanodegrees", BaseUnits.Undefined, new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(25))); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanoradian = new("Nanoradian", "Nanoradians", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NatoMil = new("NatoMil", "NatoMils", BaseUnits.Undefined, new QuantityValue(3141592653589793, 3200000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Radian = new("Radian", "Radians", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Revolution = new("Revolution", "Revolutions", BaseUnits.Undefined, new QuantityValue(3141592653589793, 500000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/AreaDensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/AreaDensityUnits.g.cs new file mode 100644 index 0000000000..ec82d1e967 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/AreaDensityUnits.g.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class AreaDensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GramPerSquareMeter = new("GramPerSquareMeter", "GramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerSquareMeter = new("KilogramPerSquareMeter", "KilogramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerSquareMeter = new("MilligramPerSquareMeter", "MilligramsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerSquareFoot = new("PoundPerSquareFoot", "PoundsPerSquareFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), new QuantityValue(45359237, 9290304)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerThousandSquareFeet = new("PoundPerThousandSquareFeet", "PoundsPerThousandSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), new QuantityValue(45359237, 9290304000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/AreaMomentOfInertiaUnits.g.cs b/UnitsNet/GeneratedCode/Units/AreaMomentOfInertiaUnits.g.cs new file mode 100644 index 0000000000..0d90c694f4 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/AreaMomentOfInertiaUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class AreaMomentOfInertiaUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentimeterToTheFourth = new("CentimeterToTheFourth", "CentimetersToTheFourth", new BaseUnits(length: LengthUnit.Centimeter), new QuantityValue(1, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecimeterToTheFourth = new("DecimeterToTheFourth", "DecimetersToTheFourth", new BaseUnits(length: LengthUnit.Decimeter), new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf FootToTheFourth = new("FootToTheFourth", "FeetToTheFourth", new BaseUnits(length: LengthUnit.Foot), new QuantityValue(21071715921, 2441406250000)); + + /// + /// The unit of . + /// + public static readonly UnitOf InchToTheFourth = new("InchToTheFourth", "InchesToTheFourth", new BaseUnits(length: LengthUnit.Inch), new QuantityValue(260144641, 625000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeterToTheFourth = new("MeterToTheFourth", "MetersToTheFourth", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterToTheFourth = new("MillimeterToTheFourth", "MillimetersToTheFourth", new BaseUnits(length: LengthUnit.Millimeter), new QuantityValue(1, 1000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/AreaPerLengthUnits.g.cs b/UnitsNet/GeneratedCode/Units/AreaPerLengthUnits.g.cs new file mode 100644 index 0000000000..b942cfeb7f --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/AreaPerLengthUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class AreaPerLengthUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf SquareCentimeterPerMeter = new("SquareCentimeterPerMeter", "SquareCentimetersPerMeter", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareFootPerFoot = new("SquareFootPerFoot", "SquareFeetPerFoot", BaseUnits.Undefined, new QuantityValue(381, 1250)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareInchPerFoot = new("SquareInchPerFoot", "SquareInchesPerFoot", BaseUnits.Undefined, new QuantityValue(127, 60000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareInchPerInch = new("SquareInchPerInch", "SquareInchesPerInch", BaseUnits.Undefined, new QuantityValue(127, 5000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMeterPerMeter = new("SquareMeterPerMeter", "SquareMetersPerMeter", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMillimeterPerMeter = new("SquareMillimeterPerMeter", "SquareMillimetersPerMeter", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/AreaUnits.g.cs b/UnitsNet/GeneratedCode/Units/AreaUnits.g.cs new file mode 100644 index 0000000000..f62d859b3c --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/AreaUnits.g.cs @@ -0,0 +1,98 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class AreaUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Acre = new("Acre", "Acres", BaseUnits.Undefined, new QuantityValue(316160658, 78125)); + + /// + /// The unit of . + /// + public static readonly UnitOf Hectare = new("Hectare", "Hectares", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareCentimeter = new("SquareCentimeter", "SquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareDecimeter = new("SquareDecimeter", "SquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareFoot = new("SquareFoot", "SquareFeet", new BaseUnits(length: LengthUnit.Foot), new QuantityValue(145161, 1562500)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareInch = new("SquareInch", "SquareInches", new BaseUnits(length: LengthUnit.Inch), new QuantityValue(16129, 25000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareKilometer = new("SquareKilometer", "SquareKilometers", new BaseUnits(length: LengthUnit.Kilometer), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMeter = new("SquareMeter", "SquareMeters", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMicrometer = new("SquareMicrometer", "SquareMicrometers", new BaseUnits(length: LengthUnit.Micrometer), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMile = new("SquareMile", "SquareMiles", new BaseUnits(length: LengthUnit.Mile), new QuantityValue(40468564224, 15625)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMillimeter = new("SquareMillimeter", "SquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareNauticalMile = new("SquareNauticalMile", "SquareNauticalMiles", BaseUnits.Undefined, 3429904); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareYard = new("SquareYard", "SquareYards", new BaseUnits(length: LengthUnit.Yard), new QuantityValue(1306449, 1562500)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsSurveySquareFoot = new("UsSurveySquareFoot", "UsSurveySquareFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), new QuantityValue(1440000, 15499969)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/BitRateUnits.g.cs b/UnitsNet/GeneratedCode/Units/BitRateUnits.g.cs new file mode 100644 index 0000000000..6fbf7d9165 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/BitRateUnits.g.cs @@ -0,0 +1,223 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class BitRateUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BitPerSecond = new("BitPerSecond", "BitsPerSecond", new BaseUnits(time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf BytePerSecond = new("BytePerSecond", "BytesPerSecond", BaseUnits.Undefined, 8); + + /// + /// The unit of . + /// + public static readonly UnitOf ExabitPerSecond = new("ExabitPerSecond", "ExabitsPerSecond", BaseUnits.Undefined, 1000000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf ExabytePerSecond = new("ExabytePerSecond", "ExabytesPerSecond", BaseUnits.Undefined, 8000000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf ExaoctetPerSecond = new("ExaoctetPerSecond", "ExaoctetsPerSecond", BaseUnits.Undefined, 8000000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf ExbibitPerSecond = new("ExbibitPerSecond", "ExbibitsPerSecond", BaseUnits.Undefined, 1152921504606846976); + + /// + /// The unit of . + /// + public static readonly UnitOf ExbibytePerSecond = new("ExbibytePerSecond", "ExbibytesPerSecond", BaseUnits.Undefined, new QuantityValue(BigInteger.Pow(2, 63), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf ExbioctetPerSecond = new("ExbioctetPerSecond", "ExbioctetsPerSecond", BaseUnits.Undefined, new QuantityValue(BigInteger.Pow(2, 63), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf GibibitPerSecond = new("GibibitPerSecond", "GibibitsPerSecond", BaseUnits.Undefined, 1073741824); + + /// + /// The unit of . + /// + public static readonly UnitOf GibibytePerSecond = new("GibibytePerSecond", "GibibytesPerSecond", BaseUnits.Undefined, 8589934592); + + /// + /// The unit of . + /// + public static readonly UnitOf GibioctetPerSecond = new("GibioctetPerSecond", "GibioctetsPerSecond", BaseUnits.Undefined, 8589934592); + + /// + /// The unit of . + /// + public static readonly UnitOf GigabitPerSecond = new("GigabitPerSecond", "GigabitsPerSecond", new BaseUnits(time: DurationUnit.Nanosecond), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigabytePerSecond = new("GigabytePerSecond", "GigabytesPerSecond", BaseUnits.Undefined, 8000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigaoctetPerSecond = new("GigaoctetPerSecond", "GigaoctetsPerSecond", BaseUnits.Undefined, 8000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KibibitPerSecond = new("KibibitPerSecond", "KibibitsPerSecond", BaseUnits.Undefined, 1024); + + /// + /// The unit of . + /// + public static readonly UnitOf KibibytePerSecond = new("KibibytePerSecond", "KibibytesPerSecond", BaseUnits.Undefined, 8192); + + /// + /// The unit of . + /// + public static readonly UnitOf KibioctetPerSecond = new("KibioctetPerSecond", "KibioctetsPerSecond", BaseUnits.Undefined, 8192); + + /// + /// The unit of . + /// + public static readonly UnitOf KilobitPerSecond = new("KilobitPerSecond", "KilobitsPerSecond", new BaseUnits(time: DurationUnit.Millisecond), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilobytePerSecond = new("KilobytePerSecond", "KilobytesPerSecond", BaseUnits.Undefined, 8000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilooctetPerSecond = new("KilooctetPerSecond", "KilooctetsPerSecond", BaseUnits.Undefined, 8000); + + /// + /// The unit of . + /// + public static readonly UnitOf MebibitPerSecond = new("MebibitPerSecond", "MebibitsPerSecond", BaseUnits.Undefined, 1048576); + + /// + /// The unit of . + /// + public static readonly UnitOf MebibytePerSecond = new("MebibytePerSecond", "MebibytesPerSecond", BaseUnits.Undefined, 8388608); + + /// + /// The unit of . + /// + public static readonly UnitOf MebioctetPerSecond = new("MebioctetPerSecond", "MebioctetsPerSecond", BaseUnits.Undefined, 8388608); + + /// + /// The unit of . + /// + public static readonly UnitOf MegabitPerSecond = new("MegabitPerSecond", "MegabitsPerSecond", new BaseUnits(time: DurationUnit.Microsecond), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegabytePerSecond = new("MegabytePerSecond", "MegabytesPerSecond", BaseUnits.Undefined, 8000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaoctetPerSecond = new("MegaoctetPerSecond", "MegaoctetsPerSecond", BaseUnits.Undefined, 8000000); + + /// + /// The unit of . + /// + public static readonly UnitOf OctetPerSecond = new("OctetPerSecond", "OctetsPerSecond", BaseUnits.Undefined, 8); + + /// + /// The unit of . + /// + public static readonly UnitOf PebibitPerSecond = new("PebibitPerSecond", "PebibitsPerSecond", BaseUnits.Undefined, 1125899906842624); + + /// + /// The unit of . + /// + public static readonly UnitOf PebibytePerSecond = new("PebibytePerSecond", "PebibytesPerSecond", BaseUnits.Undefined, 9007199254740992); + + /// + /// The unit of . + /// + public static readonly UnitOf PebioctetPerSecond = new("PebioctetPerSecond", "PebioctetsPerSecond", BaseUnits.Undefined, 9007199254740992); + + /// + /// The unit of . + /// + public static readonly UnitOf PetabitPerSecond = new("PetabitPerSecond", "PetabitsPerSecond", BaseUnits.Undefined, 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf PetabytePerSecond = new("PetabytePerSecond", "PetabytesPerSecond", BaseUnits.Undefined, 8000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf PetaoctetPerSecond = new("PetaoctetPerSecond", "PetaoctetsPerSecond", BaseUnits.Undefined, 8000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TebibitPerSecond = new("TebibitPerSecond", "TebibitsPerSecond", BaseUnits.Undefined, 1099511627776); + + /// + /// The unit of . + /// + public static readonly UnitOf TebibytePerSecond = new("TebibytePerSecond", "TebibytesPerSecond", BaseUnits.Undefined, 8796093022208); + + /// + /// The unit of . + /// + public static readonly UnitOf TebioctetPerSecond = new("TebioctetPerSecond", "TebioctetsPerSecond", BaseUnits.Undefined, 8796093022208); + + /// + /// The unit of . + /// + public static readonly UnitOf TerabitPerSecond = new("TerabitPerSecond", "TerabitsPerSecond", new BaseUnits(time: DurationUnit.Picosecond), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TerabytePerSecond = new("TerabytePerSecond", "TerabytesPerSecond", BaseUnits.Undefined, 8000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TeraoctetPerSecond = new("TeraoctetPerSecond", "TeraoctetsPerSecond", BaseUnits.Undefined, 8000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/BrakeSpecificFuelConsumptionUnits.g.cs b/UnitsNet/GeneratedCode/Units/BrakeSpecificFuelConsumptionUnits.g.cs new file mode 100644 index 0000000000..47ca42a9ca --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/BrakeSpecificFuelConsumptionUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class BrakeSpecificFuelConsumptionUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GramPerKiloWattHour = new("GramPerKiloWattHour", "GramsPerKiloWattHour", BaseUnits.Undefined, new QuantityValue(1, 3600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerJoule = new("KilogramPerJoule", "KilogramsPerJoule", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerMechanicalHorsepowerHour = new("PoundPerMechanicalHorsepowerHour", "PoundsPerMechanicalHorsepowerHour", BaseUnits.Undefined, new QuantityValue(32399455, 191751395532579)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/CoefficientOfThermalExpansionUnits.g.cs b/UnitsNet/GeneratedCode/Units/CoefficientOfThermalExpansionUnits.g.cs new file mode 100644 index 0000000000..20f57ece63 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/CoefficientOfThermalExpansionUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class CoefficientOfThermalExpansionUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf PerDegreeCelsius = new("PerDegreeCelsius", "PerDegreeCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PerDegreeFahrenheit = new("PerDegreeFahrenheit", "PerDegreeFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), new QuantityValue(9, 5)); + + /// + /// The unit of . + /// + public static readonly UnitOf PerKelvin = new("PerKelvin", "PerKelvin", new BaseUnits(temperature: TemperatureUnit.Kelvin), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PpmPerDegreeCelsius = new("PpmPerDegreeCelsius", "PpmPerDegreeCelsius", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PpmPerDegreeFahrenheit = new("PpmPerDegreeFahrenheit", "PpmPerDegreeFahrenheit", BaseUnits.Undefined, new QuantityValue(9, 5000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PpmPerKelvin = new("PpmPerKelvin", "PpmPerKelvin", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/CompressibilityUnits.g.cs b/UnitsNet/GeneratedCode/Units/CompressibilityUnits.g.cs new file mode 100644 index 0000000000..fe49cec5d9 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/CompressibilityUnits.g.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class CompressibilityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf InverseAtmosphere = new("InverseAtmosphere", "InverseAtmospheres", BaseUnits.Undefined, new QuantityValue(1, 101325)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseBar = new("InverseBar", "InverseBars", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseKilopascal = new("InverseKilopascal", "InverseKilopascals", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseMegapascal = new("InverseMegapascal", "InverseMegapascals", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseMillibar = new("InverseMillibar", "InverseMillibars", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf InversePascal = new("InversePascal", "InversePascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf InversePoundForcePerSquareInch = new("InversePoundForcePerSquareInch", "InversePoundsForcePerSquareInch", BaseUnits.Undefined, new QuantityValue(1000000000000, 6894757293168361)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/DensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/DensityUnits.g.cs new file mode 100644 index 0000000000..2dc6848cfe --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/DensityUnits.g.cs @@ -0,0 +1,308 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class DensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerDeciliter = new("CentigramPerDeciliter", "CentigramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerLiter = new("CentigramPerLiter", "CentigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Centigram), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerMilliliter = new("CentigramPerMilliliter", "CentigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Centigram), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerDeciliter = new("DecigramPerDeciliter", "DecigramsPerDeciliter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerLiter = new("DecigramPerLiter", "DecigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Decigram), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerMilliliter = new("DecigramPerMilliliter", "DecigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Decigram), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf FemtogramPerDeciliter = new("FemtogramPerDeciliter", "FemtogramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 100000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf FemtogramPerLiter = new("FemtogramPerLiter", "FemtogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Femtogram), new QuantityValue(1, 1000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf FemtogramPerMilliliter = new("FemtogramPerMilliliter", "FemtogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Femtogram), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerCubicCentimeter = new("GramPerCubicCentimeter", "GramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerCubicFoot = new("GramPerCubicFoot", "GramsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Gram), new QuantityValue(1953125, 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerCubicInch = new("GramPerCubicInch", "GramsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Gram), new QuantityValue(125000000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerCubicMeter = new("GramPerCubicMeter", "GramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerCubicMillimeter = new("GramPerCubicMillimeter", "GramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerDeciliter = new("GramPerDeciliter", "GramsPerDeciliter", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerLiter = new("GramPerLiter", "GramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerMilliliter = new("GramPerMilliliter", "GramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerCubicCentimeter = new("KilogramPerCubicCentimeter", "KilogramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerCubicMeter = new("KilogramPerCubicMeter", "KilogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerCubicMillimeter = new("KilogramPerCubicMillimeter", "KilogramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerLiter = new("KilogramPerLiter", "KilogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundPerCubicFoot = new("KilopoundPerCubicFoot", "KilopoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilopound), new QuantityValue(3543690390625, 221225364)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundPerCubicInch = new("KilopoundPerCubicInch", "KilopoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound), new QuantityValue(56699046250000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundPerCubicYard = new("KilopoundPerCubicYard", "KilopoundsPerCubicYard", new BaseUnits(length: LengthUnit.Yard, mass: MassUnit.Kilopound), new QuantityValue(3543690390625, 5973084828)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerCubicMeter = new("MicrogramPerCubicMeter", "MicrogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerDeciliter = new("MicrogramPerDeciliter", "MicrogramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerLiter = new("MicrogramPerLiter", "MicrogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Microgram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerMilliliter = new("MicrogramPerMilliliter", "MicrogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerCubicMeter = new("MilligramPerCubicMeter", "MilligramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerDeciliter = new("MilligramPerDeciliter", "MilligramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerLiter = new("MilligramPerLiter", "MilligramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerMilliliter = new("MilligramPerMilliliter", "MilligramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerDeciliter = new("NanogramPerDeciliter", "NanogramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerLiter = new("NanogramPerLiter", "NanogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Nanogram), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerMilliliter = new("NanogramPerMilliliter", "NanogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Nanogram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicogramPerDeciliter = new("PicogramPerDeciliter", "PicogramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 100000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicogramPerLiter = new("PicogramPerLiter", "PicogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Picogram), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicogramPerMilliliter = new("PicogramPerMilliliter", "PicogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Picogram), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerCubicCentimeter = new("PoundPerCubicCentimeter", "PoundsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Pound), new QuantityValue(45359237, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerCubicFoot = new("PoundPerCubicFoot", "PoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), new QuantityValue(28349523125, 1769802912)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerCubicInch = new("PoundPerCubicInch", "PoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), new QuantityValue(56699046250, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerCubicMeter = new("PoundPerCubicMeter", "PoundsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Pound), new QuantityValue(45359237, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerCubicMillimeter = new("PoundPerCubicMillimeter", "PoundsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Pound), 453592370); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerCubicYard = new("PoundPerCubicYard", "PoundsPerCubicYard", new BaseUnits(length: LengthUnit.Yard, mass: MassUnit.Pound), new QuantityValue(28349523125, 47784678624)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerImperialGallon = new("PoundPerImperialGallon", "PoundsPerImperialGallon", BaseUnits.Undefined, new QuantityValue(45359237, 454609)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerUSGallon = new("PoundPerUSGallon", "PoundsPerUSGallon", BaseUnits.Undefined, new QuantityValue(736351250, 6145149)); + + /// + /// The unit of . + /// + public static readonly UnitOf SlugPerCubicCentimeter = new("SlugPerCubicCentimeter", "SlugsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Slug), new QuantityValue(8896443230521, 609600)); + + /// + /// The unit of . + /// + public static readonly UnitOf SlugPerCubicFoot = new("SlugPerCubicFoot", "SlugsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), new QuantityValue(5560277019075625, 10788718551552)); + + /// + /// The unit of . + /// + public static readonly UnitOf SlugPerCubicInch = new("SlugPerCubicInch", "SlugsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Slug), new QuantityValue(5560277019075625, 6243471384)); + + /// + /// The unit of . + /// + public static readonly UnitOf SlugPerCubicMeter = new("SlugPerCubicMeter", "SlugsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Slug), new QuantityValue(8896443230521, 609600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SlugPerCubicMillimeter = new("SlugPerCubicMillimeter", "SlugsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Slug), new QuantityValue(44482216152605, 3048)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerCubicCentimeter = new("TonnePerCubicCentimeter", "TonnesPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerCubicFoot = new("TonnePerCubicFoot", "TonnesPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Tonne), new QuantityValue(1953125000000, 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerCubicInch = new("TonnePerCubicInch", "TonnesPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Tonne), new QuantityValue(125000000000000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerCubicMeter = new("TonnePerCubicMeter", "TonnesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerCubicMillimeter = new("TonnePerCubicMillimeter", "TonnesPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/DoseAreaProductUnits.g.cs b/UnitsNet/GeneratedCode/Units/DoseAreaProductUnits.g.cs new file mode 100644 index 0000000000..d9272b9689 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/DoseAreaProductUnits.g.cs @@ -0,0 +1,153 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class DoseAreaProductUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentigraySquareCentimeter = new("CentigraySquareCentimeter", "CentigraySquareCentimeters", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigraySquareDecimeter = new("CentigraySquareDecimeter", "CentigraySquareDecimeters", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigraySquareMeter = new("CentigraySquareMeter", "CentigraySquareMeters", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigraySquareMicrometer = new("CentigraySquareMicrometer", "CentigraySquareMicrometers", BaseUnits.Undefined, new QuantityValue(1, 100000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigraySquareMillimeter = new("CentigraySquareMillimeter", "CentigraySquareMillimeters", BaseUnits.Undefined, new QuantityValue(1, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigraySquareCentimeter = new("DecigraySquareCentimeter", "DecigraySquareCentimeters", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigraySquareDecimeter = new("DecigraySquareDecimeter", "DecigraySquareDecimeters", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigraySquareMeter = new("DecigraySquareMeter", "DecigraySquareMeters", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigraySquareMicrometer = new("DecigraySquareMicrometer", "DecigraySquareMicrometers", BaseUnits.Undefined, new QuantityValue(1, 10000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigraySquareMillimeter = new("DecigraySquareMillimeter", "DecigraySquareMillimeters", BaseUnits.Undefined, new QuantityValue(1, 10000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GraySquareCentimeter = new("GraySquareCentimeter", "GraySquareCentimeters", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GraySquareDecimeter = new("GraySquareDecimeter", "GraySquareDecimeters", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf GraySquareMeter = new("GraySquareMeter", "GraySquareMeters", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf GraySquareMicrometer = new("GraySquareMicrometer", "GraySquareMicrometers", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GraySquareMillimeter = new("GraySquareMillimeter", "GraySquareMillimeters", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrograySquareCentimeter = new("MicrograySquareCentimeter", "MicrograySquareCentimeters", BaseUnits.Undefined, new QuantityValue(1, 10000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrograySquareDecimeter = new("MicrograySquareDecimeter", "MicrograySquareDecimeters", BaseUnits.Undefined, new QuantityValue(1, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrograySquareMeter = new("MicrograySquareMeter", "MicrograySquareMeters", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrograySquareMicrometer = new("MicrograySquareMicrometer", "MicrograySquareMicrometers", BaseUnits.Undefined, new QuantityValue(1, 1000000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrograySquareMillimeter = new("MicrograySquareMillimeter", "MicrograySquareMillimeters", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligraySquareCentimeter = new("MilligraySquareCentimeter", "MilligraySquareCentimeters", BaseUnits.Undefined, new QuantityValue(1, 10000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligraySquareDecimeter = new("MilligraySquareDecimeter", "MilligraySquareDecimeters", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligraySquareMeter = new("MilligraySquareMeter", "MilligraySquareMeters", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligraySquareMicrometer = new("MilligraySquareMicrometer", "MilligraySquareMicrometers", BaseUnits.Undefined, new QuantityValue(1, 1000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligraySquareMillimeter = new("MilligraySquareMillimeter", "MilligraySquareMillimeters", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/DurationUnits.g.cs b/UnitsNet/GeneratedCode/Units/DurationUnits.g.cs new file mode 100644 index 0000000000..000269f2d8 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/DurationUnits.g.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class DurationUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Day = new("Day", "Days", new BaseUnits(time: DurationUnit.Day), 86400); + + /// + /// The unit of . + /// + public static readonly UnitOf Hour = new("Hour", "Hours", new BaseUnits(time: DurationUnit.Hour), 3600); + + /// + /// The unit of . + /// + public static readonly UnitOf JulianYear = new("JulianYear", "JulianYears", new BaseUnits(time: DurationUnit.JulianYear), 31557600); + + /// + /// The unit of . + /// + public static readonly UnitOf Microsecond = new("Microsecond", "Microseconds", new BaseUnits(time: DurationUnit.Microsecond), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millisecond = new("Millisecond", "Milliseconds", new BaseUnits(time: DurationUnit.Millisecond), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Minute = new("Minute", "Minutes", new BaseUnits(time: DurationUnit.Minute), 60); + + /// + /// The unit of . + /// + public static readonly UnitOf Month30 = new("Month30", "Months30", new BaseUnits(time: DurationUnit.Month30), 2592000); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanosecond = new("Nanosecond", "Nanoseconds", new BaseUnits(time: DurationUnit.Nanosecond), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Picosecond = new("Picosecond", "Picoseconds", new BaseUnits(time: DurationUnit.Picosecond), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Second = new("Second", "Seconds", new BaseUnits(time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Sol = new("Sol", "Sols", new BaseUnits(time: DurationUnit.Sol), new QuantityValue(22193811, 250)); + + /// + /// The unit of . + /// + public static readonly UnitOf Week = new("Week", "Weeks", new BaseUnits(time: DurationUnit.Week), 604800); + + /// + /// The unit of . + /// + public static readonly UnitOf Year365 = new("Year365", "Years365", new BaseUnits(time: DurationUnit.Year365), 31536000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/DynamicViscosityUnits.g.cs b/UnitsNet/GeneratedCode/Units/DynamicViscosityUnits.g.cs new file mode 100644 index 0000000000..4a4c5b39df --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/DynamicViscosityUnits.g.cs @@ -0,0 +1,78 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class DynamicViscosityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Centipoise = new("Centipoise", "Centipoise", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicropascalSecond = new("MicropascalSecond", "MicropascalSeconds", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillipascalSecond = new("MillipascalSecond", "MillipascalSeconds", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonSecondPerMeterSquared = new("NewtonSecondPerMeterSquared", "NewtonSecondsPerMeterSquared", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalSecond = new("PascalSecond", "PascalSeconds", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Poise = new("Poise", "Poise", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForceSecondPerSquareFoot = new("PoundForceSecondPerSquareFoot", "PoundsForceSecondPerSquareFoot", BaseUnits.Undefined, new QuantityValue(8896443230521, 185806080000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForceSecondPerSquareInch = new("PoundForceSecondPerSquareInch", "PoundsForceSecondPerSquareInch", BaseUnits.Undefined, new QuantityValue(8896443230521, 1290320000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerFootSecond = new("PoundPerFootSecond", "PoundsPerFootSecond", BaseUnits.Undefined, new QuantityValue(45359237, 30480000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Reyn = new("Reyn", "Reyns", BaseUnits.Undefined, new QuantityValue(8896443230521, 1290320000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricAdmittanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricAdmittanceUnits.g.cs new file mode 100644 index 0000000000..b872715b97 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricAdmittanceUnits.g.cs @@ -0,0 +1,109 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + [System.Obsolete("Admittance is a complex number, which is not currently supported by UnitsNet. Please use either ElectricConductance or ElectricSusceptance instead.")] + public static class ElectricAdmittanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Gigamho = new("Gigamho", "Gigamhos", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigasiemens = new("Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilomho = new("Kilomho", "Kilomhos", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilosiemens = new("Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megamho = new("Megamho", "Megamhos", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megasiemens = new("Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Mho = new("Mho", "Mhos", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Micromho = new("Micromho", "Micromhos", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microsiemens = new("Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millimho = new("Millimho", "Millimhos", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millisiemens = new("Millisiemens", "Millisiemens", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanomho = new("Nanomho", "Nanomhos", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanosiemens = new("Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Siemens = new("Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Teramho = new("Teramho", "Teramhos", BaseUnits.Undefined, 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Terasiemens = new("Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricApparentEnergyUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricApparentEnergyUnits.g.cs new file mode 100644 index 0000000000..d24f110a7d --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricApparentEnergyUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricApparentEnergyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf KilovoltampereHour = new("KilovoltampereHour", "KilovoltampereHours", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegavoltampereHour = new("MegavoltampereHour", "MegavoltampereHours", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf VoltampereHour = new("VoltampereHour", "VoltampereHours", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricApparentPowerUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricApparentPowerUnits.g.cs new file mode 100644 index 0000000000..a0cf01db2f --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricApparentPowerUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricApparentPowerUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Gigavoltampere = new("Gigavoltampere", "Gigavoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilovoltampere = new("Kilovoltampere", "Kilovoltamperes", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megavoltampere = new("Megavoltampere", "Megavoltamperes", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microvoltampere = new("Microvoltampere", "Microvoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millivoltampere = new("Millivoltampere", "Millivoltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Voltampere = new("Voltampere", "Voltamperes", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricCapacitanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricCapacitanceUnits.g.cs new file mode 100644 index 0000000000..cf6d5d8cb0 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricCapacitanceUnits.g.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricCapacitanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Farad = new("Farad", "Farads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilofarad = new("Kilofarad", "Kilofarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megafarad = new("Megafarad", "Megafarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microfarad = new("Microfarad", "Microfarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millifarad = new("Millifarad", "Millifarads", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanofarad = new("Nanofarad", "Nanofarads", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Picofarad = new("Picofarad", "Picofarads", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), new QuantityValue(1, 1000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricChargeDensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricChargeDensityUnits.g.cs new file mode 100644 index 0000000000..916f006fd3 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricChargeDensityUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricChargeDensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CoulombPerCubicMeter = new("CoulombPerCubicMeter", "CoulombsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricChargeUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricChargeUnits.g.cs new file mode 100644 index 0000000000..46b78d9a98 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricChargeUnits.g.cs @@ -0,0 +1,83 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricChargeUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf AmpereHour = new("AmpereHour", "AmpereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), 3600); + + /// + /// The unit of . + /// + public static readonly UnitOf Coulomb = new("Coulomb", "Coulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KiloampereHour = new("KiloampereHour", "KiloampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Kiloampere), 3600000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilocoulomb = new("Kilocoulomb", "Kilocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Kiloampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaampereHour = new("MegaampereHour", "MegaampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Megaampere), 3600000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megacoulomb = new("Megacoulomb", "Megacoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Megaampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microcoulomb = new("Microcoulomb", "Microcoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliampereHour = new("MilliampereHour", "MilliampereHours", new BaseUnits(time: DurationUnit.Hour, current: ElectricCurrentUnit.Milliampere), new QuantityValue(18, 5)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millicoulomb = new("Millicoulomb", "Millicoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanocoulomb = new("Nanocoulomb", "Nanocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Nanoampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Picocoulomb = new("Picocoulomb", "Picocoulombs", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Picoampere), new QuantityValue(1, 1000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricConductanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricConductanceUnits.g.cs new file mode 100644 index 0000000000..beae131b2f --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricConductanceUnits.g.cs @@ -0,0 +1,108 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricConductanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Gigamho = new("Gigamho", "Gigamhos", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigasiemens = new("Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilomho = new("Kilomho", "Kilomhos", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilosiemens = new("Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megamho = new("Megamho", "Megamhos", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megasiemens = new("Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Mho = new("Mho", "Mhos", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Micromho = new("Micromho", "Micromhos", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microsiemens = new("Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millimho = new("Millimho", "Millimhos", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millisiemens = new("Millisiemens", "Millisiemens", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanomho = new("Nanomho", "Nanomhos", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanosiemens = new("Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Siemens = new("Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Teramho = new("Teramho", "Teramhos", BaseUnits.Undefined, 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Terasiemens = new("Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricConductivityUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricConductivityUnits.g.cs new file mode 100644 index 0000000000..72f0620915 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricConductivityUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricConductivityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf MicrosiemensPerCentimeter = new("MicrosiemensPerCentimeter", "MicrosiemensPerCentimeter", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillisiemensPerCentimeter = new("MillisiemensPerCentimeter", "MillisiemensPerCentimeter", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf SiemensPerCentimeter = new("SiemensPerCentimeter", "SiemensPerCentimeter", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf SiemensPerFoot = new("SiemensPerFoot", "SiemensPerFoot", BaseUnits.Undefined, new QuantityValue(1250, 381)); + + /// + /// The unit of . + /// + public static readonly UnitOf SiemensPerInch = new("SiemensPerInch", "SiemensPerInch", BaseUnits.Undefined, new QuantityValue(5000, 127)); + + /// + /// The unit of . + /// + public static readonly UnitOf SiemensPerMeter = new("SiemensPerMeter", "SiemensPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricCurrentDensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricCurrentDensityUnits.g.cs new file mode 100644 index 0000000000..74ea07a967 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricCurrentDensityUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricCurrentDensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf AmperePerSquareFoot = new("AmperePerSquareFoot", "AmperesPerSquareFoot", new BaseUnits(length: LengthUnit.Foot, current: ElectricCurrentUnit.Ampere), new QuantityValue(1562500, 145161)); + + /// + /// The unit of . + /// + public static readonly UnitOf AmperePerSquareInch = new("AmperePerSquareInch", "AmperesPerSquareInch", new BaseUnits(length: LengthUnit.Inch, current: ElectricCurrentUnit.Ampere), new QuantityValue(25000000, 16129)); + + /// + /// The unit of . + /// + public static readonly UnitOf AmperePerSquareMeter = new("AmperePerSquareMeter", "AmperesPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricCurrentGradientUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricCurrentGradientUnits.g.cs new file mode 100644 index 0000000000..a1ae929a57 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricCurrentGradientUnits.g.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricCurrentGradientUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf AmperePerMicrosecond = new("AmperePerMicrosecond", "AmperesPerMicrosecond", new BaseUnits(time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf AmperePerMillisecond = new("AmperePerMillisecond", "AmperesPerMillisecond", new BaseUnits(time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf AmperePerMinute = new("AmperePerMinute", "AmperesPerMinute", new BaseUnits(time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf AmperePerNanosecond = new("AmperePerNanosecond", "AmperesPerNanosecond", new BaseUnits(time: DurationUnit.Nanosecond, current: ElectricCurrentUnit.Ampere), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf AmperePerSecond = new("AmperePerSecond", "AmperesPerSecond", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliamperePerMinute = new("MilliamperePerMinute", "MilliamperesPerMinute", new BaseUnits(time: DurationUnit.Minute, current: ElectricCurrentUnit.Milliampere), new QuantityValue(1, 60000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliamperePerSecond = new("MilliamperePerSecond", "MilliamperesPerSecond", new BaseUnits(time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), new QuantityValue(1, 1000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricCurrentUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricCurrentUnits.g.cs new file mode 100644 index 0000000000..3efb8bd6eb --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricCurrentUnits.g.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricCurrentUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Ampere = new("Ampere", "Amperes", new BaseUnits(current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Centiampere = new("Centiampere", "Centiamperes", new BaseUnits(current: ElectricCurrentUnit.Centiampere), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Femtoampere = new("Femtoampere", "Femtoamperes", new BaseUnits(current: ElectricCurrentUnit.Femtoampere), new QuantityValue(1, 1000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kiloampere = new("Kiloampere", "Kiloamperes", new BaseUnits(current: ElectricCurrentUnit.Kiloampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megaampere = new("Megaampere", "Megaamperes", new BaseUnits(current: ElectricCurrentUnit.Megaampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microampere = new("Microampere", "Microamperes", new BaseUnits(current: ElectricCurrentUnit.Microampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milliampere = new("Milliampere", "Milliamperes", new BaseUnits(current: ElectricCurrentUnit.Milliampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanoampere = new("Nanoampere", "Nanoamperes", new BaseUnits(current: ElectricCurrentUnit.Nanoampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Picoampere = new("Picoampere", "Picoamperes", new BaseUnits(current: ElectricCurrentUnit.Picoampere), new QuantityValue(1, 1000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricFieldUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricFieldUnits.g.cs new file mode 100644 index 0000000000..97e85a8dde --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricFieldUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricFieldUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf VoltPerMeter = new("VoltPerMeter", "VoltsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricImpedanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricImpedanceUnits.g.cs new file mode 100644 index 0000000000..61a0386ebf --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricImpedanceUnits.g.cs @@ -0,0 +1,69 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + [System.Obsolete("Impedance is a complex number, which is not currently supported by UnitsNet. Please use either ElectricResistance or ElectricReactance instead.")] + public static class ElectricImpedanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Gigaohm = new("Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kiloohm = new("Kiloohm", "Kiloohms", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megaohm = new("Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microohm = new("Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milliohm = new("Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanoohm = new("Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Ohm = new("Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Teraohm = new("Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricInductanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricInductanceUnits.g.cs new file mode 100644 index 0000000000..d58db0cc07 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricInductanceUnits.g.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricInductanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Henry = new("Henry", "Henries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Microhenry = new("Microhenry", "Microhenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millihenry = new("Millihenry", "Millihenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanohenry = new("Nanohenry", "Nanohenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Picohenry = new("Picohenry", "Picohenries", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricPotentialChangeRateUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricPotentialChangeRateUnits.g.cs new file mode 100644 index 0000000000..5ced6a8aac --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricPotentialChangeRateUnits.g.cs @@ -0,0 +1,128 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricPotentialChangeRateUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf KilovoltPerHour = new("KilovoltPerHour", "KilovoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Milliampere), new QuantityValue(5, 18)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilovoltPerMicrosecond = new("KilovoltPerMicrosecond", "KilovoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Milliampere), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilovoltPerMinute = new("KilovoltPerMinute", "KilovoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Milliampere), new QuantityValue(50, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilovoltPerSecond = new("KilovoltPerSecond", "KilovoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegavoltPerHour = new("MegavoltPerHour", "MegavoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Microampere), new QuantityValue(2500, 9)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegavoltPerMicrosecond = new("MegavoltPerMicrosecond", "MegavoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Microampere), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegavoltPerMinute = new("MegavoltPerMinute", "MegavoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Microampere), new QuantityValue(50000, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegavoltPerSecond = new("MegavoltPerSecond", "MegavoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrovoltPerHour = new("MicrovoltPerHour", "MicrovoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 3600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrovoltPerMicrosecond = new("MicrovoltPerMicrosecond", "MicrovoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrovoltPerMinute = new("MicrovoltPerMinute", "MicrovoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 60000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrovoltPerSecond = new("MicrovoltPerSecond", "MicrovoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillivoltPerHour = new("MillivoltPerHour", "MillivoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 3600000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillivoltPerMicrosecond = new("MillivoltPerMicrosecond", "MillivoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MillivoltPerMinute = new("MillivoltPerMinute", "MillivoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 60000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillivoltPerSecond = new("MillivoltPerSecond", "MillivoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf VoltPerHour = new("VoltPerHour", "VoltsPerHour", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf VoltPerMicrosecond = new("VoltPerMicrosecond", "VoltsPerMicrosecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond, current: ElectricCurrentUnit.Ampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf VoltPerMinute = new("VoltPerMinute", "VoltsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf VoltPerSecond = new("VoltPerSecond", "VoltsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricPotentialUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricPotentialUnits.g.cs new file mode 100644 index 0000000000..3822b6bac0 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricPotentialUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricPotentialUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Kilovolt = new("Kilovolt", "Kilovolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megavolt = new("Megavolt", "Megavolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microvolt = new("Microvolt", "Microvolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millivolt = new("Millivolt", "Millivolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanovolt = new("Nanovolt", "Nanovolts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Volt = new("Volt", "Volts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricReactanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricReactanceUnits.g.cs new file mode 100644 index 0000000000..59bcab870b --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricReactanceUnits.g.cs @@ -0,0 +1,68 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricReactanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Gigaohm = new("Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kiloohm = new("Kiloohm", "Kiloohms", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megaohm = new("Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microohm = new("Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milliohm = new("Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanoohm = new("Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Ohm = new("Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Teraohm = new("Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricReactiveEnergyUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricReactiveEnergyUnits.g.cs new file mode 100644 index 0000000000..c5fcd37d6b --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricReactiveEnergyUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricReactiveEnergyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf KilovoltampereReactiveHour = new("KilovoltampereReactiveHour", "KilovoltampereReactiveHours", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegavoltampereReactiveHour = new("MegavoltampereReactiveHour", "MegavoltampereReactiveHours", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf VoltampereReactiveHour = new("VoltampereReactiveHour", "VoltampereReactiveHours", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricReactivePowerUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricReactivePowerUnits.g.cs new file mode 100644 index 0000000000..994926d543 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricReactivePowerUnits.g.cs @@ -0,0 +1,48 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricReactivePowerUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GigavoltampereReactive = new("GigavoltampereReactive", "GigavoltamperesReactive", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilovoltampereReactive = new("KilovoltampereReactive", "KilovoltamperesReactive", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegavoltampereReactive = new("MegavoltampereReactive", "MegavoltamperesReactive", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf VoltampereReactive = new("VoltampereReactive", "VoltamperesReactive", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricResistanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricResistanceUnits.g.cs new file mode 100644 index 0000000000..fbe7c103a2 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricResistanceUnits.g.cs @@ -0,0 +1,68 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricResistanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Gigaohm = new("Gigaohm", "Gigaohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kiloohm = new("Kiloohm", "Kiloohms", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megaohm = new("Megaohm", "Megaohms", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microohm = new("Microohm", "Microohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milliohm = new("Milliohm", "Milliohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanoohm = new("Nanoohm", "Nanoohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Ohm = new("Ohm", "Ohms", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Teraohm = new("Teraohm", "Teraohms", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricResistivityUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricResistivityUnits.g.cs new file mode 100644 index 0000000000..4731fcbac2 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricResistivityUnits.g.cs @@ -0,0 +1,98 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricResistivityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf KiloohmCentimeter = new("KiloohmCentimeter", "KiloohmsCentimeter", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf KiloohmMeter = new("KiloohmMeter", "KiloohmMeters", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaohmCentimeter = new("MegaohmCentimeter", "MegaohmsCentimeter", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaohmMeter = new("MegaohmMeter", "MegaohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicroohmCentimeter = new("MicroohmCentimeter", "MicroohmsCentimeter", BaseUnits.Undefined, new QuantityValue(1, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicroohmMeter = new("MicroohmMeter", "MicroohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliohmCentimeter = new("MilliohmCentimeter", "MilliohmsCentimeter", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliohmMeter = new("MilliohmMeter", "MilliohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanoohmCentimeter = new("NanoohmCentimeter", "NanoohmsCentimeter", BaseUnits.Undefined, new QuantityValue(1, 100000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanoohmMeter = new("NanoohmMeter", "NanoohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf OhmCentimeter = new("OhmCentimeter", "OhmsCentimeter", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf OhmMeter = new("OhmMeter", "OhmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PicoohmCentimeter = new("PicoohmCentimeter", "PicoohmsCentimeter", BaseUnits.Undefined, new QuantityValue(1, 100000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicoohmMeter = new("PicoohmMeter", "PicoohmMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricSurfaceChargeDensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricSurfaceChargeDensityUnits.g.cs new file mode 100644 index 0000000000..d9847e7acc --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricSurfaceChargeDensityUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricSurfaceChargeDensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CoulombPerSquareCentimeter = new("CoulombPerSquareCentimeter", "CoulombsPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf CoulombPerSquareInch = new("CoulombPerSquareInch", "CoulombsPerSquareInch", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(25000000, 16129)); + + /// + /// The unit of . + /// + public static readonly UnitOf CoulombPerSquareMeter = new("CoulombPerSquareMeter", "CoulombsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ElectricSusceptanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ElectricSusceptanceUnits.g.cs new file mode 100644 index 0000000000..ca12b32d58 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ElectricSusceptanceUnits.g.cs @@ -0,0 +1,108 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ElectricSusceptanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Gigamho = new("Gigamho", "Gigamhos", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigasiemens = new("Gigasiemens", "Gigasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilomho = new("Kilomho", "Kilomhos", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilosiemens = new("Kilosiemens", "Kilosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megamho = new("Megamho", "Megamhos", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megasiemens = new("Megasiemens", "Megasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Mho = new("Mho", "Mhos", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Micromho = new("Micromho", "Micromhos", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microsiemens = new("Microsiemens", "Microsiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millimho = new("Millimho", "Millimhos", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millisiemens = new("Millisiemens", "Millisiemens", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanomho = new("Nanomho", "Nanomhos", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanosiemens = new("Nanosiemens", "Nanosiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Siemens = new("Siemens", "Siemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Teramho = new("Teramho", "Teramhos", BaseUnits.Undefined, 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Terasiemens = new("Terasiemens", "Terasiemens", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/EnergyDensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/EnergyDensityUnits.g.cs new file mode 100644 index 0000000000..0047ff6e1a --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/EnergyDensityUnits.g.cs @@ -0,0 +1,88 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class EnergyDensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GigajoulePerCubicMeter = new("GigajoulePerCubicMeter", "GigajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattHourPerCubicMeter = new("GigawattHourPerCubicMeter", "GigawattHoursPerCubicMeter", BaseUnits.Undefined, 3600000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerCubicMeter = new("JoulePerCubicMeter", "JoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerCubicMeter = new("KilojoulePerCubicMeter", "KilojoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattHourPerCubicMeter = new("KilowattHourPerCubicMeter", "KilowattHoursPerCubicMeter", BaseUnits.Undefined, 3600000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerCubicMeter = new("MegajoulePerCubicMeter", "MegajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattHourPerCubicMeter = new("MegawattHourPerCubicMeter", "MegawattHoursPerCubicMeter", BaseUnits.Undefined, 3600000000); + + /// + /// The unit of . + /// + public static readonly UnitOf PetajoulePerCubicMeter = new("PetajoulePerCubicMeter", "PetajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Femtometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf PetawattHourPerCubicMeter = new("PetawattHourPerCubicMeter", "PetawattHoursPerCubicMeter", BaseUnits.Undefined, 3600000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TerajoulePerCubicMeter = new("TerajoulePerCubicMeter", "TerajoulesPerCubicMeter", new BaseUnits(length: LengthUnit.Picometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattHourPerCubicMeter = new("TerawattHourPerCubicMeter", "TerawattHoursPerCubicMeter", BaseUnits.Undefined, 3600000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf WattHourPerCubicMeter = new("WattHourPerCubicMeter", "WattHoursPerCubicMeter", BaseUnits.Undefined, 3600); + } +} diff --git a/UnitsNet/GeneratedCode/Units/EnergyUnits.g.cs b/UnitsNet/GeneratedCode/Units/EnergyUnits.g.cs new file mode 100644 index 0000000000..0d76cd26c2 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/EnergyUnits.g.cs @@ -0,0 +1,228 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class EnergyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BritishThermalUnit = new("BritishThermalUnit", "BritishThermalUnits", BaseUnits.Undefined, new QuantityValue(52752792631, 50000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Calorie = new("Calorie", "Calories", BaseUnits.Undefined, new QuantityValue(523, 125)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecathermEc = new("DecathermEc", "DecathermsEc", BaseUnits.Undefined, new QuantityValue(52752792631, 50)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecathermImperial = new("DecathermImperial", "DecathermsImperial", BaseUnits.Undefined, new QuantityValue(26376396314337, 25000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecathermUs = new("DecathermUs", "DecathermsUs", BaseUnits.Undefined, 1054804000); + + /// + /// The unit of . + /// + public static readonly UnitOf ElectronVolt = new("ElectronVolt", "ElectronVolts", BaseUnits.Undefined, new QuantityValue(801088317, new BigInteger(5) * QuantityValue.PowerOfTen(27))); + + /// + /// The unit of . + /// + public static readonly UnitOf Erg = new("Erg", "Ergs", BaseUnits.Undefined, new QuantityValue(1, 10000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf FootPound = new("FootPound", "FootPounds", BaseUnits.Undefined, new QuantityValue(3389544870828501, 2500000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GigabritishThermalUnit = new("GigabritishThermalUnit", "GigabritishThermalUnits", BaseUnits.Undefined, 1055055852620); + + /// + /// The unit of . + /// + public static readonly UnitOf GigaelectronVolt = new("GigaelectronVolt", "GigaelectronVolts", BaseUnits.Undefined, new QuantityValue(801088317, 5000000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigajoule = new("Gigajoule", "Gigajoules", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattDay = new("GigawattDay", "GigawattDays", BaseUnits.Undefined, 86400000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattHour = new("GigawattHour", "GigawattHours", BaseUnits.Undefined, 3600000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf HorsepowerHour = new("HorsepowerHour", "HorsepowerHours", BaseUnits.Undefined, new QuantityValue(1342259768728053, 500000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Joule = new("Joule", "Joules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilobritishThermalUnit = new("KilobritishThermalUnit", "KilobritishThermalUnits", BaseUnits.Undefined, new QuantityValue(52752792631, 50000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilocalorie = new("Kilocalorie", "Kilocalories", BaseUnits.Undefined, 4184); + + /// + /// The unit of . + /// + public static readonly UnitOf KiloelectronVolt = new("KiloelectronVolt", "KiloelectronVolts", BaseUnits.Undefined, new QuantityValue(801088317, new BigInteger(5) * QuantityValue.PowerOfTen(24))); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilojoule = new("Kilojoule", "Kilojoules", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattDay = new("KilowattDay", "KilowattDays", BaseUnits.Undefined, 86400000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattHour = new("KilowattHour", "KilowattHours", BaseUnits.Undefined, 3600000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegabritishThermalUnit = new("MegabritishThermalUnit", "MegabritishThermalUnits", BaseUnits.Undefined, new QuantityValue(52752792631, 50)); + + /// + /// The unit of . + /// + public static readonly UnitOf Megacalorie = new("Megacalorie", "Megacalories", BaseUnits.Undefined, 4184000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaelectronVolt = new("MegaelectronVolt", "MegaelectronVolts", BaseUnits.Undefined, new QuantityValue(801088317, new BigInteger(5) * QuantityValue.PowerOfTen(21))); + + /// + /// The unit of . + /// + public static readonly UnitOf Megajoule = new("Megajoule", "Megajoules", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattDay = new("MegawattDay", "MegawattDays", BaseUnits.Undefined, 86400000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattHour = new("MegawattHour", "MegawattHours", BaseUnits.Undefined, 3600000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microjoule = new("Microjoule", "Microjoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millijoule = new("Millijoule", "Millijoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanojoule = new("Nanojoule", "Nanojoules", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Petajoule = new("Petajoule", "Petajoules", BaseUnits.Undefined, 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TeraelectronVolt = new("TeraelectronVolt", "TeraelectronVolts", BaseUnits.Undefined, new QuantityValue(801088317, 5000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Terajoule = new("Terajoule", "Terajoules", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattDay = new("TerawattDay", "TerawattDays", BaseUnits.Undefined, 86400000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattHour = new("TerawattHour", "TerawattHours", BaseUnits.Undefined, 3600000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf ThermEc = new("ThermEc", "ThermsEc", BaseUnits.Undefined, new QuantityValue(52752792631, 500)); + + /// + /// The unit of . + /// + public static readonly UnitOf ThermImperial = new("ThermImperial", "ThermsImperial", BaseUnits.Undefined, new QuantityValue(26376396314337, 250000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ThermUs = new("ThermUs", "ThermsUs", BaseUnits.Undefined, 105480400); + + /// + /// The unit of . + /// + public static readonly UnitOf WattDay = new("WattDay", "WattDays", BaseUnits.Undefined, 86400); + + /// + /// The unit of . + /// + public static readonly UnitOf WattHour = new("WattHour", "WattHours", BaseUnits.Undefined, 3600); + } +} diff --git a/UnitsNet/GeneratedCode/Units/EntropyUnits.g.cs b/UnitsNet/GeneratedCode/Units/EntropyUnits.g.cs new file mode 100644 index 0000000000..0bf3e1d267 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/EntropyUnits.g.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class EntropyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CaloriePerKelvin = new("CaloriePerKelvin", "CaloriesPerKelvin", BaseUnits.Undefined, new QuantityValue(523, 125)); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerDegreeCelsius = new("JoulePerDegreeCelsius", "JoulesPerDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerKelvin = new("JoulePerKelvin", "JoulesPerKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilocaloriePerKelvin = new("KilocaloriePerKelvin", "KilocaloriesPerKelvin", BaseUnits.Undefined, 4184); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerDegreeCelsius = new("KilojoulePerDegreeCelsius", "KilojoulesPerDegreeCelsius", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerKelvin = new("KilojoulePerKelvin", "KilojoulesPerKelvin", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerKelvin = new("MegajoulePerKelvin", "MegajoulesPerKelvin", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/FluidResistanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/FluidResistanceUnits.g.cs new file mode 100644 index 0000000000..dd83fc8394 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/FluidResistanceUnits.g.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class FluidResistanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DyneSecondPerCentimeterToTheFifth = new("DyneSecondPerCentimeterToTheFifth", "DyneSecondsPerCentimeterToTheFifth", BaseUnits.Undefined, 100000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapascalSecondPerCubicMeter = new("MegapascalSecondPerCubicMeter", "MegapascalSecondsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Microsecond), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterMercuryMinutePerCubicCentimeter = new("MillimeterMercuryMinutePerCubicCentimeter", "MillimeterMercuryMinutesPerCubicCentimeter", BaseUnits.Undefined, 7999342080); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterMercuryMinutePerCubicMeter = new("MillimeterMercuryMinutePerCubicMeter", "MillimeterMercuryMinutesPerCubicMeter", BaseUnits.Undefined, new QuantityValue(24997944, 3125)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterMercuryMinutePerLiter = new("MillimeterMercuryMinutePerLiter", "MillimeterMercuryMinutesPerLiter", BaseUnits.Undefined, new QuantityValue(199983552, 25)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterMercuryMinutePerMilliliter = new("MillimeterMercuryMinutePerMilliliter", "MillimeterMercuryMinutesPerMilliliter", BaseUnits.Undefined, 7999342080); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterMercurySecondPerCubicCentimeter = new("MillimeterMercurySecondPerCubicCentimeter", "MillimeterMercurySecondsPerCubicCentimeter", BaseUnits.Undefined, 133322368); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterMercurySecondPerCubicMeter = new("MillimeterMercurySecondPerCubicMeter", "MillimeterMercurySecondsPerCubicMeter", BaseUnits.Undefined, new QuantityValue(2083162, 15625)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterMercurySecondPerLiter = new("MillimeterMercurySecondPerLiter", "MillimeterMercurySecondsPerLiter", BaseUnits.Undefined, new QuantityValue(16665296, 125)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterMercurySecondPerMilliliter = new("MillimeterMercurySecondPerMilliliter", "MillimeterMercurySecondsPerMilliliter", BaseUnits.Undefined, 133322368); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalMinutePerCubicCentimeter = new("PascalMinutePerCubicCentimeter", "PascalMinutesPerCubicCentimeter", BaseUnits.Undefined, 60000000); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalMinutePerCubicMeter = new("PascalMinutePerCubicMeter", "PascalMinutesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), 60); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalMinutePerLiter = new("PascalMinutePerLiter", "PascalMinutesPerLiter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), 60000); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalMinutePerMilliliter = new("PascalMinutePerMilliliter", "PascalMinutesPerMilliliter", BaseUnits.Undefined, 60000000); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalSecondPerCubicCentimeter = new("PascalSecondPerCubicCentimeter", "PascalSecondsPerCubicCentimeter", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalSecondPerCubicMeter = new("PascalSecondPerCubicMeter", "PascalSecondsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalSecondPerLiter = new("PascalSecondPerLiter", "PascalSecondsPerLiter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalSecondPerMilliliter = new("PascalSecondPerMilliliter", "PascalSecondsPerMilliliter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf WoodUnit = new("WoodUnit", "WoodUnits", BaseUnits.Undefined, new QuantityValue(199983552, 25)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ForceChangeRateUnits.g.cs b/UnitsNet/GeneratedCode/Units/ForceChangeRateUnits.g.cs new file mode 100644 index 0000000000..f6255552d5 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ForceChangeRateUnits.g.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ForceChangeRateUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentinewtonPerSecond = new("CentinewtonPerSecond", "CentinewtonsPerSecond", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecanewtonPerMinute = new("DecanewtonPerMinute", "DecanewtonsPerMinute", BaseUnits.Undefined, new QuantityValue(1, 6)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecanewtonPerSecond = new("DecanewtonPerSecond", "DecanewtonsPerSecond", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecinewtonPerSecond = new("DecinewtonPerSecond", "DecinewtonsPerSecond", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerMinute = new("KilonewtonPerMinute", "KilonewtonsPerMinute", BaseUnits.Undefined, new QuantityValue(50, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerSecond = new("KilonewtonPerSecond", "KilonewtonsPerSecond", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerMinute = new("KilopoundForcePerMinute", "KilopoundsForcePerMinute", BaseUnits.Undefined, new QuantityValue(8896443230521, 120000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerSecond = new("KilopoundForcePerSecond", "KilopoundsForcePerSecond", BaseUnits.Undefined, new QuantityValue(8896443230521, 2000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicronewtonPerSecond = new("MicronewtonPerSecond", "MicronewtonsPerSecond", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillinewtonPerSecond = new("MillinewtonPerSecond", "MillinewtonsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanonewtonPerSecond = new("NanonewtonPerSecond", "NanonewtonsPerSecond", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerMinute = new("NewtonPerMinute", "NewtonsPerMinute", BaseUnits.Undefined, new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerSecond = new("NewtonPerSecond", "NewtonsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerMinute = new("PoundForcePerMinute", "PoundsForcePerMinute", BaseUnits.Undefined, new QuantityValue(8896443230521, 120000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerSecond = new("PoundForcePerSecond", "PoundsForcePerSecond", BaseUnits.Undefined, new QuantityValue(8896443230521, 2000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ForcePerLengthUnits.g.cs b/UnitsNet/GeneratedCode/Units/ForcePerLengthUnits.g.cs new file mode 100644 index 0000000000..d2f53c940a --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ForcePerLengthUnits.g.cs @@ -0,0 +1,218 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ForcePerLengthUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentinewtonPerCentimeter = new("CentinewtonPerCentimeter", "CentinewtonsPerCentimeter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf CentinewtonPerMeter = new("CentinewtonPerMeter", "CentinewtonsPerMeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentinewtonPerMillimeter = new("CentinewtonPerMillimeter", "CentinewtonsPerMillimeter", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecanewtonPerCentimeter = new("DecanewtonPerCentimeter", "DecanewtonsPerCentimeter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf DecanewtonPerMeter = new("DecanewtonPerMeter", "DecanewtonsPerMeter", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecanewtonPerMillimeter = new("DecanewtonPerMillimeter", "DecanewtonsPerMillimeter", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf DecinewtonPerCentimeter = new("DecinewtonPerCentimeter", "DecinewtonsPerCentimeter", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecinewtonPerMeter = new("DecinewtonPerMeter", "DecinewtonsPerMeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecinewtonPerMillimeter = new("DecinewtonPerMillimeter", "DecinewtonsPerMillimeter", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForcePerCentimeter = new("KilogramForcePerCentimeter", "KilogramsForcePerCentimeter", BaseUnits.Undefined, new QuantityValue(196133, 200)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForcePerMeter = new("KilogramForcePerMeter", "KilogramsForcePerMeter", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForcePerMillimeter = new("KilogramForcePerMillimeter", "KilogramsForcePerMillimeter", BaseUnits.Undefined, new QuantityValue(196133, 20)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerCentimeter = new("KilonewtonPerCentimeter", "KilonewtonsPerCentimeter", BaseUnits.Undefined, 100000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerMeter = new("KilonewtonPerMeter", "KilonewtonsPerMeter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerMillimeter = new("KilonewtonPerMillimeter", "KilonewtonsPerMillimeter", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerFoot = new("KilopoundForcePerFoot", "KilopoundsForcePerFoot", BaseUnits.Undefined, new QuantityValue(8896443230521, 609600000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerInch = new("KilopoundForcePerInch", "KilopoundsForcePerInch", BaseUnits.Undefined, new QuantityValue(8896443230521, 50800000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonPerCentimeter = new("MeganewtonPerCentimeter", "MeganewtonsPerCentimeter", BaseUnits.Undefined, 100000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonPerMeter = new("MeganewtonPerMeter", "MeganewtonsPerMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonPerMillimeter = new("MeganewtonPerMillimeter", "MeganewtonsPerMillimeter", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicronewtonPerCentimeter = new("MicronewtonPerCentimeter", "MicronewtonsPerCentimeter", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicronewtonPerMeter = new("MicronewtonPerMeter", "MicronewtonsPerMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicronewtonPerMillimeter = new("MicronewtonPerMillimeter", "MicronewtonsPerMillimeter", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillinewtonPerCentimeter = new("MillinewtonPerCentimeter", "MillinewtonsPerCentimeter", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillinewtonPerMeter = new("MillinewtonPerMeter", "MillinewtonsPerMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillinewtonPerMillimeter = new("MillinewtonPerMillimeter", "MillinewtonsPerMillimeter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NanonewtonPerCentimeter = new("NanonewtonPerCentimeter", "NanonewtonsPerCentimeter", BaseUnits.Undefined, new QuantityValue(1, 10000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanonewtonPerMeter = new("NanonewtonPerMeter", "NanonewtonsPerMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanonewtonPerMillimeter = new("NanonewtonPerMillimeter", "NanonewtonsPerMillimeter", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerCentimeter = new("NewtonPerCentimeter", "NewtonsPerCentimeter", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerMeter = new("NewtonPerMeter", "NewtonsPerMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerMillimeter = new("NewtonPerMillimeter", "NewtonsPerMillimeter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerFoot = new("PoundForcePerFoot", "PoundsForcePerFoot", BaseUnits.Undefined, new QuantityValue(8896443230521, 609600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerInch = new("PoundForcePerInch", "PoundsForcePerInch", BaseUnits.Undefined, new QuantityValue(8896443230521, 50800000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerYard = new("PoundForcePerYard", "PoundsForcePerYard", BaseUnits.Undefined, new QuantityValue(8896443230521, 1828800000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForcePerCentimeter = new("TonneForcePerCentimeter", "TonnesForcePerCentimeter", BaseUnits.Undefined, 980665); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForcePerMeter = new("TonneForcePerMeter", "TonnesForcePerMeter", BaseUnits.Undefined, new QuantityValue(196133, 20)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForcePerMillimeter = new("TonneForcePerMillimeter", "TonnesForcePerMillimeter", BaseUnits.Undefined, 9806650); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ForceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ForceUnits.g.cs new file mode 100644 index 0000000000..efd94ccac6 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ForceUnits.g.cs @@ -0,0 +1,108 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ForceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Decanewton = new("Decanewton", "Decanewtons", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf Dyn = new("Dyn", "Dyne", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramForce = new("GramForce", "GramsForce", BaseUnits.Undefined, new QuantityValue(196133, 20000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForce = new("KilogramForce", "KilogramsForce", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilonewton = new("Kilonewton", "Kilonewtons", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilopond = new("Kilopond", "Kiloponds", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForce = new("KilopoundForce", "KilopoundsForce", BaseUnits.Undefined, new QuantityValue(8896443230521, 2000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Meganewton = new("Meganewton", "Meganewtons", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Micronewton = new("Micronewton", "Micronewtons", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millinewton = new("Millinewton", "Millinewtons", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Newton = new("Newton", "Newtons", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf OunceForce = new("OunceForce", "OunceForce", BaseUnits.Undefined, new QuantityValue(8896443230521, 32000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Poundal = new("Poundal", "Poundals", BaseUnits.Undefined, new QuantityValue(17281869297, 125000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForce = new("PoundForce", "PoundsForce", BaseUnits.Undefined, new QuantityValue(8896443230521, 2000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ShortTonForce = new("ShortTonForce", "ShortTonsForce", BaseUnits.Undefined, new QuantityValue(8896443230521, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForce = new("TonneForce", "TonnesForce", BaseUnits.Undefined, new QuantityValue(196133, 20)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/FrequencyUnits.g.cs b/UnitsNet/GeneratedCode/Units/FrequencyUnits.g.cs new file mode 100644 index 0000000000..0fef8e6eec --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/FrequencyUnits.g.cs @@ -0,0 +1,88 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class FrequencyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BeatPerMinute = new("BeatPerMinute", "BeatsPerMinute", new BaseUnits(time: DurationUnit.Minute), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf CyclePerHour = new("CyclePerHour", "CyclesPerHour", new BaseUnits(time: DurationUnit.Hour), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf CyclePerMinute = new("CyclePerMinute", "CyclesPerMinute", new BaseUnits(time: DurationUnit.Minute), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigahertz = new("Gigahertz", "Gigahertz", new BaseUnits(time: DurationUnit.Nanosecond), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Hertz = new("Hertz", "Hertz", new BaseUnits(time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilohertz = new("Kilohertz", "Kilohertz", new BaseUnits(time: DurationUnit.Millisecond), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megahertz = new("Megahertz", "Megahertz", new BaseUnits(time: DurationUnit.Microsecond), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microhertz = new("Microhertz", "Microhertz", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millihertz = new("Millihertz", "Millihertz", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PerSecond = new("PerSecond", "PerSecond", new BaseUnits(time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf RadianPerSecond = new("RadianPerSecond", "RadiansPerSecond", BaseUnits.Undefined, new QuantityValue(500000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf Terahertz = new("Terahertz", "Terahertz", new BaseUnits(time: DurationUnit.Picosecond), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/FuelEfficiencyUnits.g.cs b/UnitsNet/GeneratedCode/Units/FuelEfficiencyUnits.g.cs new file mode 100644 index 0000000000..fd75306dc7 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/FuelEfficiencyUnits.g.cs @@ -0,0 +1,50 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class FuelEfficiencyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf KilometerPerLiter = new("KilometerPerLiter", "KilometersPerLiter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPer100Kilometers = new("LiterPer100Kilometers", "LitersPer100Kilometers", BaseUnits.Undefined, + new ConversionExpression(coefficient: 100, exponent: -1), + new ConversionExpression(coefficient: 100, exponent: -1)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilePerUkGallon = new("MilePerUkGallon", "MilesPerUkGallon", BaseUnits.Undefined, new QuantityValue(804672, 2273045)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilePerUsGallon = new("MilePerUsGallon", "MilesPerUsGallon", BaseUnits.Undefined, new QuantityValue(48000, 112903)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/HeatFluxUnits.g.cs b/UnitsNet/GeneratedCode/Units/HeatFluxUnits.g.cs new file mode 100644 index 0000000000..47ba42f9b7 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/HeatFluxUnits.g.cs @@ -0,0 +1,153 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class HeatFluxUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerHourSquareFoot = new("BtuPerHourSquareFoot", "BtusPerHourSquareFoot", BaseUnits.Undefined, new QuantityValue(52752792631, 16722547200)); + + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerMinuteSquareFoot = new("BtuPerMinuteSquareFoot", "BtusPerMinuteSquareFoot", BaseUnits.Undefined, new QuantityValue(52752792631, 278709120)); + + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerSecondSquareFoot = new("BtuPerSecondSquareFoot", "BtusPerSecondSquareFoot", BaseUnits.Undefined, new QuantityValue(52752792631, 4645152)); + + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerSecondSquareInch = new("BtuPerSecondSquareInch", "BtusPerSecondSquareInch", BaseUnits.Undefined, new QuantityValue(52752792631, 32258)); + + /// + /// The unit of . + /// + public static readonly UnitOf CaloriePerSecondSquareCentimeter = new("CaloriePerSecondSquareCentimeter", "CaloriesPerSecondSquareCentimeter", BaseUnits.Undefined, 41840); + + /// + /// The unit of . + /// + public static readonly UnitOf CentiwattPerSquareMeter = new("CentiwattPerSquareMeter", "CentiwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentiwattPerSquareMillimeter = new("CentiwattPerSquareMillimeter", "CentiwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciwattPerSquareMeter = new("DeciwattPerSquareMeter", "DeciwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciwattPerSquareMillimeter = new("DeciwattPerSquareMillimeter", "DeciwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), 100000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilocaloriePerHourSquareMeter = new("KilocaloriePerHourSquareMeter", "KilocaloriesPerHourSquareMeter", BaseUnits.Undefined, new QuantityValue(523, 450)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilocaloriePerSecondSquareCentimeter = new("KilocaloriePerSecondSquareCentimeter", "KilocaloriesPerSecondSquareCentimeter", BaseUnits.Undefined, 41840000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerSquareMeter = new("KilowattPerSquareMeter", "KilowattsPerSquareMeter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerSquareMillimeter = new("KilowattPerSquareMillimeter", "KilowattsPerSquareMillimeter", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrowattPerSquareMeter = new("MicrowattPerSquareMeter", "MicrowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrowattPerSquareMillimeter = new("MicrowattPerSquareMillimeter", "MicrowattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerSquareMeter = new("MilliwattPerSquareMeter", "MilliwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerSquareMillimeter = new("MilliwattPerSquareMillimeter", "MilliwattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf NanowattPerSquareMeter = new("NanowattPerSquareMeter", "NanowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanowattPerSquareMillimeter = new("NanowattPerSquareMillimeter", "NanowattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerFootSecond = new("PoundForcePerFootSecond", "PoundsForcePerFootSecond", BaseUnits.Undefined, new QuantityValue(8896443230521, 609600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerSecondCubed = new("PoundPerSecondCubed", "PoundsPerSecondCubed", BaseUnits.Undefined, new QuantityValue(45359237, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerSquareFoot = new("WattPerSquareFoot", "WattsPerSquareFoot", BaseUnits.Undefined, new QuantityValue(1562500, 145161)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerSquareInch = new("WattPerSquareInch", "WattsPerSquareInch", BaseUnits.Undefined, new QuantityValue(25000000, 16129)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerSquareMeter = new("WattPerSquareMeter", "WattsPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerSquareMillimeter = new("WattPerSquareMillimeter", "WattsPerSquareMillimeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/HeatTransferCoefficientUnits.g.cs b/UnitsNet/GeneratedCode/Units/HeatTransferCoefficientUnits.g.cs new file mode 100644 index 0000000000..492dd3cec5 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/HeatTransferCoefficientUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class HeatTransferCoefficientUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerHourSquareFootDegreeFahrenheit = new("BtuPerHourSquareFootDegreeFahrenheit", "BtusPerHourSquareFootDegreeFahrenheit", BaseUnits.Undefined, new QuantityValue(52752792631, 9290304000)); + + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerSecondSquareInchDegreeFahrenheit = new("BtuPerSecondSquareInchDegreeFahrenheit", "BtusPerSecondSquareInchDegreeFahrenheit", BaseUnits.Undefined, new QuantityValue(474775133679, 161290)); + + /// + /// The unit of . + /// + public static readonly UnitOf CaloriePerHourSquareMeterDegreeCelsius = new("CaloriePerHourSquareMeterDegreeCelsius", "CaloriesPerHourSquareMeterDegreeCelsius", BaseUnits.Undefined, new QuantityValue(523, 450000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilocaloriePerHourSquareMeterDegreeCelsius = new("KilocaloriePerHourSquareMeterDegreeCelsius", "KilocaloriesPerHourSquareMeterDegreeCelsius", BaseUnits.Undefined, new QuantityValue(523, 450)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerSquareMeterCelsius = new("WattPerSquareMeterCelsius", "WattsPerSquareMeterCelsius", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerSquareMeterKelvin = new("WattPerSquareMeterKelvin", "WattsPerSquareMeterKelvin", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/IlluminanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/IlluminanceUnits.g.cs new file mode 100644 index 0000000000..f64ef1c82c --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/IlluminanceUnits.g.cs @@ -0,0 +1,48 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class IlluminanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Kilolux = new("Kilolux", "Kilolux", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Lux = new("Lux", "Lux", new BaseUnits(length: LengthUnit.Meter, luminousIntensity: LuminousIntensityUnit.Candela), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Megalux = new("Megalux", "Megalux", new BaseUnits(length: LengthUnit.Millimeter, luminousIntensity: LuminousIntensityUnit.Candela), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Millilux = new("Millilux", "Millilux", BaseUnits.Undefined, new QuantityValue(1, 1000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ImpulseUnits.g.cs b/UnitsNet/GeneratedCode/Units/ImpulseUnits.g.cs new file mode 100644 index 0000000000..0ed180fc4a --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ImpulseUnits.g.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ImpulseUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentinewtonSecond = new("CentinewtonSecond", "CentinewtonSeconds", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecanewtonSecond = new("DecanewtonSecond", "DecanewtonSeconds", new BaseUnits(length: LengthUnit.Decameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecinewtonSecond = new("DecinewtonSecond", "DecinewtonSeconds", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramMeterPerSecond = new("KilogramMeterPerSecond", "KilogramMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonSecond = new("KilonewtonSecond", "KilonewtonSeconds", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonSecond = new("MeganewtonSecond", "MeganewtonSeconds", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicronewtonSecond = new("MicronewtonSecond", "MicronewtonSeconds", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillinewtonSecond = new("MillinewtonSecond", "MillinewtonSeconds", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanonewtonSecond = new("NanonewtonSecond", "NanonewtonSeconds", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonSecond = new("NewtonSecond", "NewtonSeconds", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundFootPerSecond = new("PoundFootPerSecond", "PoundFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound, time: DurationUnit.Second), new QuantityValue(17281869297, 125000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForceSecond = new("PoundForceSecond", "PoundForceSeconds", BaseUnits.Undefined, new QuantityValue(8896443230521, 2000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SlugFootPerSecond = new("SlugFootPerSecond", "SlugFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug, time: DurationUnit.Second), new QuantityValue(8896443230521, 2000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/InformationUnits.g.cs b/UnitsNet/GeneratedCode/Units/InformationUnits.g.cs new file mode 100644 index 0000000000..a8b7a032b8 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/InformationUnits.g.cs @@ -0,0 +1,223 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class InformationUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Bit = new("Bit", "Bits", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Byte = new("Byte", "Bytes", BaseUnits.Undefined, 8); + + /// + /// The unit of . + /// + public static readonly UnitOf Exabit = new("Exabit", "Exabits", BaseUnits.Undefined, 1000000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Exabyte = new("Exabyte", "Exabytes", BaseUnits.Undefined, 8000000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Exaoctet = new("Exaoctet", "Exaoctets", BaseUnits.Undefined, 8000000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Exbibit = new("Exbibit", "Exbibits", BaseUnits.Undefined, 1152921504606846976); + + /// + /// The unit of . + /// + public static readonly UnitOf Exbibyte = new("Exbibyte", "Exbibytes", BaseUnits.Undefined, new QuantityValue(BigInteger.Pow(2, 63), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Exbioctet = new("Exbioctet", "Exbioctets", BaseUnits.Undefined, new QuantityValue(BigInteger.Pow(2, 63), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gibibit = new("Gibibit", "Gibibits", BaseUnits.Undefined, 1073741824); + + /// + /// The unit of . + /// + public static readonly UnitOf Gibibyte = new("Gibibyte", "Gibibytes", BaseUnits.Undefined, 8589934592); + + /// + /// The unit of . + /// + public static readonly UnitOf Gibioctet = new("Gibioctet", "Gibioctets", BaseUnits.Undefined, 8589934592); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigabit = new("Gigabit", "Gigabits", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigabyte = new("Gigabyte", "Gigabytes", BaseUnits.Undefined, 8000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigaoctet = new("Gigaoctet", "Gigaoctets", BaseUnits.Undefined, 8000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kibibit = new("Kibibit", "Kibibits", BaseUnits.Undefined, 1024); + + /// + /// The unit of . + /// + public static readonly UnitOf Kibibyte = new("Kibibyte", "Kibibytes", BaseUnits.Undefined, 8192); + + /// + /// The unit of . + /// + public static readonly UnitOf Kibioctet = new("Kibioctet", "Kibioctets", BaseUnits.Undefined, 8192); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilobit = new("Kilobit", "Kilobits", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilobyte = new("Kilobyte", "Kilobytes", BaseUnits.Undefined, 8000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilooctet = new("Kilooctet", "Kilooctets", BaseUnits.Undefined, 8000); + + /// + /// The unit of . + /// + public static readonly UnitOf Mebibit = new("Mebibit", "Mebibits", BaseUnits.Undefined, 1048576); + + /// + /// The unit of . + /// + public static readonly UnitOf Mebibyte = new("Mebibyte", "Mebibytes", BaseUnits.Undefined, 8388608); + + /// + /// The unit of . + /// + public static readonly UnitOf Mebioctet = new("Mebioctet", "Mebioctets", BaseUnits.Undefined, 8388608); + + /// + /// The unit of . + /// + public static readonly UnitOf Megabit = new("Megabit", "Megabits", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megabyte = new("Megabyte", "Megabytes", BaseUnits.Undefined, 8000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megaoctet = new("Megaoctet", "Megaoctets", BaseUnits.Undefined, 8000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Octet = new("Octet", "Octets", BaseUnits.Undefined, 8); + + /// + /// The unit of . + /// + public static readonly UnitOf Pebibit = new("Pebibit", "Pebibits", BaseUnits.Undefined, 1125899906842624); + + /// + /// The unit of . + /// + public static readonly UnitOf Pebibyte = new("Pebibyte", "Pebibytes", BaseUnits.Undefined, 9007199254740992); + + /// + /// The unit of . + /// + public static readonly UnitOf Pebioctet = new("Pebioctet", "Pebioctets", BaseUnits.Undefined, 9007199254740992); + + /// + /// The unit of . + /// + public static readonly UnitOf Petabit = new("Petabit", "Petabits", BaseUnits.Undefined, 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Petabyte = new("Petabyte", "Petabytes", BaseUnits.Undefined, 8000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Petaoctet = new("Petaoctet", "Petaoctets", BaseUnits.Undefined, 8000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Tebibit = new("Tebibit", "Tebibits", BaseUnits.Undefined, 1099511627776); + + /// + /// The unit of . + /// + public static readonly UnitOf Tebibyte = new("Tebibyte", "Tebibytes", BaseUnits.Undefined, 8796093022208); + + /// + /// The unit of . + /// + public static readonly UnitOf Tebioctet = new("Tebioctet", "Tebioctets", BaseUnits.Undefined, 8796093022208); + + /// + /// The unit of . + /// + public static readonly UnitOf Terabit = new("Terabit", "Terabits", BaseUnits.Undefined, 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Terabyte = new("Terabyte", "Terabytes", BaseUnits.Undefined, 8000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Teraoctet = new("Teraoctet", "Teraoctets", BaseUnits.Undefined, 8000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/IrradianceUnits.g.cs b/UnitsNet/GeneratedCode/Units/IrradianceUnits.g.cs new file mode 100644 index 0000000000..49b430e1b0 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/IrradianceUnits.g.cs @@ -0,0 +1,98 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class IrradianceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerSquareCentimeter = new("KilowattPerSquareCentimeter", "KilowattsPerSquareCentimeter", BaseUnits.Undefined, 10000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerSquareMeter = new("KilowattPerSquareMeter", "KilowattsPerSquareMeter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerSquareCentimeter = new("MegawattPerSquareCentimeter", "MegawattsPerSquareCentimeter", BaseUnits.Undefined, 10000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerSquareMeter = new("MegawattPerSquareMeter", "MegawattsPerSquareMeter", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrowattPerSquareCentimeter = new("MicrowattPerSquareCentimeter", "MicrowattsPerSquareCentimeter", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrowattPerSquareMeter = new("MicrowattPerSquareMeter", "MicrowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerSquareCentimeter = new("MilliwattPerSquareCentimeter", "MilliwattsPerSquareCentimeter", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerSquareMeter = new("MilliwattPerSquareMeter", "MilliwattsPerSquareMeter", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanowattPerSquareCentimeter = new("NanowattPerSquareCentimeter", "NanowattsPerSquareCentimeter", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanowattPerSquareMeter = new("NanowattPerSquareMeter", "NanowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicowattPerSquareCentimeter = new("PicowattPerSquareCentimeter", "PicowattsPerSquareCentimeter", BaseUnits.Undefined, new QuantityValue(1, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicowattPerSquareMeter = new("PicowattPerSquareMeter", "PicowattsPerSquareMeter", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Second), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerSquareCentimeter = new("WattPerSquareCentimeter", "WattsPerSquareCentimeter", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerSquareMeter = new("WattPerSquareMeter", "WattsPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/IrradiationUnits.g.cs b/UnitsNet/GeneratedCode/Units/IrradiationUnits.g.cs new file mode 100644 index 0000000000..f3b6247b64 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/IrradiationUnits.g.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class IrradiationUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerSquareFoot = new("BtuPerSquareFoot", "BtusPerSquareFoot", BaseUnits.Undefined, new QuantityValue(52752792631, 4645152)); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerSquareCentimeter = new("JoulePerSquareCentimeter", "JoulesPerSquareCentimeter", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerSquareMeter = new("JoulePerSquareMeter", "JoulesPerSquareMeter", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerSquareMillimeter = new("JoulePerSquareMillimeter", "JoulesPerSquareMillimeter", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilobtuPerSquareFoot = new("KilobtuPerSquareFoot", "KilobtusPerSquareFoot", BaseUnits.Undefined, new QuantityValue(6594099078875, 580644)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerSquareMeter = new("KilojoulePerSquareMeter", "KilojoulesPerSquareMeter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattHourPerSquareMeter = new("KilowattHourPerSquareMeter", "KilowattHoursPerSquareMeter", BaseUnits.Undefined, 3600000); + + /// + /// The unit of . + /// + public static readonly UnitOf MillijoulePerSquareCentimeter = new("MillijoulePerSquareCentimeter", "MillijoulesPerSquareCentimeter", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf WattHourPerSquareMeter = new("WattHourPerSquareMeter", "WattHoursPerSquareMeter", BaseUnits.Undefined, 3600); + } +} diff --git a/UnitsNet/GeneratedCode/Units/JerkUnits.g.cs b/UnitsNet/GeneratedCode/Units/JerkUnits.g.cs new file mode 100644 index 0000000000..387f1ea838 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/JerkUnits.g.cs @@ -0,0 +1,83 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class JerkUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentimeterPerSecondCubed = new("CentimeterPerSecondCubed", "CentimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecimeterPerSecondCubed = new("DecimeterPerSecondCubed", "DecimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf FootPerSecondCubed = new("FootPerSecondCubed", "FeetPerSecondCubed", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), new QuantityValue(381, 1250)); + + /// + /// The unit of . + /// + public static readonly UnitOf InchPerSecondCubed = new("InchPerSecondCubed", "InchesPerSecondCubed", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), new QuantityValue(127, 5000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilometerPerSecondCubed = new("KilometerPerSecondCubed", "KilometersPerSecondCubed", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MeterPerSecondCubed = new("MeterPerSecondCubed", "MetersPerSecondCubed", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrometerPerSecondCubed = new("MicrometerPerSecondCubed", "MicrometersPerSecondCubed", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterPerSecondCubed = new("MillimeterPerSecondCubed", "MillimetersPerSecondCubed", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillistandardGravitiesPerSecond = new("MillistandardGravitiesPerSecond", "MillistandardGravitiesPerSecond", BaseUnits.Undefined, new QuantityValue(196133, 20000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanometerPerSecondCubed = new("NanometerPerSecondCubed", "NanometersPerSecondCubed", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardGravitiesPerSecond = new("StandardGravitiesPerSecond", "StandardGravitiesPerSecond", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/KinematicViscosityUnits.g.cs b/UnitsNet/GeneratedCode/Units/KinematicViscosityUnits.g.cs new file mode 100644 index 0000000000..930ebbc372 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/KinematicViscosityUnits.g.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class KinematicViscosityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Centistokes = new("Centistokes", "Centistokes", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Decistokes = new("Decistokes", "Decistokes", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilostokes = new("Kilostokes", "Kilostokes", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microstokes = new("Microstokes", "Microstokes", BaseUnits.Undefined, new QuantityValue(1, 10000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millistokes = new("Millistokes", "Millistokes", BaseUnits.Undefined, new QuantityValue(1, 10000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanostokes = new("Nanostokes", "Nanostokes", BaseUnits.Undefined, new QuantityValue(1, 10000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareFootPerSecond = new("SquareFootPerSecond", "SquareFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), new QuantityValue(145161, 1562500)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMeterPerSecond = new("SquareMeterPerSecond", "SquareMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Stokes = new("Stokes", "Stokes", BaseUnits.Undefined, new QuantityValue(1, 10000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/LeakRateUnits.g.cs b/UnitsNet/GeneratedCode/Units/LeakRateUnits.g.cs new file mode 100644 index 0000000000..e9a2b7cbab --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/LeakRateUnits.g.cs @@ -0,0 +1,48 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class LeakRateUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf AtmCubicCentimeterPerSecond = new("AtmCubicCentimeterPerSecond", "AtmCubicCentimetersPerSecond", BaseUnits.Undefined, new QuantityValue(4053, 40000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillibarLiterPerSecond = new("MillibarLiterPerSecond", "MillibarLitersPerSecond", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalCubicMeterPerSecond = new("PascalCubicMeterPerSecond", "PascalCubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf TorrLiterPerSecond = new("TorrLiterPerSecond", "TorrLitersPerSecond", BaseUnits.Undefined, new QuantityValue(2, 15)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/LengthUnits.g.cs b/UnitsNet/GeneratedCode/Units/LengthUnits.g.cs new file mode 100644 index 0000000000..d77b59c01c --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/LengthUnits.g.cs @@ -0,0 +1,238 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class LengthUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Angstrom = new("Angstrom", "Angstroms", new BaseUnits(length: LengthUnit.Angstrom), new QuantityValue(1, 10000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf AstronomicalUnit = new("AstronomicalUnit", "AstronomicalUnits", new BaseUnits(length: LengthUnit.AstronomicalUnit), 149597870700); + + /// + /// The unit of . + /// + public static readonly UnitOf Centimeter = new("Centimeter", "Centimeters", new BaseUnits(length: LengthUnit.Centimeter), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Chain = new("Chain", "Chains", new BaseUnits(length: LengthUnit.Chain), new QuantityValue(12573, 625)); + + /// + /// The unit of . + /// + public static readonly UnitOf DataMile = new("DataMile", "DataMiles", new BaseUnits(length: LengthUnit.DataMile), new QuantityValue(9144, 5)); + + /// + /// The unit of . + /// + public static readonly UnitOf Decameter = new("Decameter", "Decameters", new BaseUnits(length: LengthUnit.Decameter), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf Decimeter = new("Decimeter", "Decimeters", new BaseUnits(length: LengthUnit.Decimeter), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DtpPica = new("DtpPica", "DtpPicas", new BaseUnits(length: LengthUnit.DtpPica), new QuantityValue(127, 30000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DtpPoint = new("DtpPoint", "DtpPoints", new BaseUnits(length: LengthUnit.DtpPoint), new QuantityValue(127, 360000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Fathom = new("Fathom", "Fathoms", new BaseUnits(length: LengthUnit.Fathom), new QuantityValue(1143, 625)); + + /// + /// The unit of . + /// + public static readonly UnitOf Femtometer = new("Femtometer", "Femtometers", new BaseUnits(length: LengthUnit.Femtometer), new QuantityValue(1, 1000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Foot = new("Foot", "Feet", new BaseUnits(length: LengthUnit.Foot), new QuantityValue(381, 1250)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigameter = new("Gigameter", "Gigameters", new BaseUnits(length: LengthUnit.Gigameter), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Hand = new("Hand", "Hands", new BaseUnits(length: LengthUnit.Hand), new QuantityValue(127, 1250)); + + /// + /// The unit of . + /// + public static readonly UnitOf Hectometer = new("Hectometer", "Hectometers", new BaseUnits(length: LengthUnit.Hectometer), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf Inch = new("Inch", "Inches", new BaseUnits(length: LengthUnit.Inch), new QuantityValue(127, 5000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilofoot = new("Kilofoot", "Kilofeet", new BaseUnits(length: LengthUnit.Kilofoot), new QuantityValue(1524, 5)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilolightYear = new("KilolightYear", "KilolightYears", new BaseUnits(length: LengthUnit.KilolightYear), new QuantityValue(QuantityValue.PowerOfTen(7) * new BigInteger(946073047258), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilometer = new("Kilometer", "Kilometers", new BaseUnits(length: LengthUnit.Kilometer), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kiloparsec = new("Kiloparsec", "Kiloparsecs", new BaseUnits(length: LengthUnit.Kiloparsec), new QuantityValue(QuantityValue.PowerOfTen(8) * new BigInteger(308567758128), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kiloyard = new("Kiloyard", "Kiloyards", new BaseUnits(length: LengthUnit.Kiloyard), new QuantityValue(4572, 5)); + + /// + /// The unit of . + /// + public static readonly UnitOf LightYear = new("LightYear", "LightYears", new BaseUnits(length: LengthUnit.LightYear), 9460730472580000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegalightYear = new("MegalightYear", "MegalightYears", new BaseUnits(length: LengthUnit.MegalightYear), new QuantityValue(QuantityValue.PowerOfTen(10) * new BigInteger(946073047258), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Megameter = new("Megameter", "Megameters", new BaseUnits(length: LengthUnit.Megameter), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megaparsec = new("Megaparsec", "Megaparsecs", new BaseUnits(length: LengthUnit.Megaparsec), new QuantityValue(QuantityValue.PowerOfTen(11) * new BigInteger(308567758128), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Meter = new("Meter", "Meters", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Microinch = new("Microinch", "Microinches", new BaseUnits(length: LengthUnit.Microinch), new QuantityValue(127, 5000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Micrometer = new("Micrometer", "Micrometers", new BaseUnits(length: LengthUnit.Micrometer), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Mil = new("Mil", "Mils", new BaseUnits(length: LengthUnit.Mil), new QuantityValue(127, 5000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Mile = new("Mile", "Miles", new BaseUnits(length: LengthUnit.Mile), new QuantityValue(201168, 125)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millimeter = new("Millimeter", "Millimeters", new BaseUnits(length: LengthUnit.Millimeter), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanometer = new("Nanometer", "Nanometers", new BaseUnits(length: LengthUnit.Nanometer), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NauticalMile = new("NauticalMile", "NauticalMiles", new BaseUnits(length: LengthUnit.NauticalMile), 1852); + + /// + /// The unit of . + /// + public static readonly UnitOf Parsec = new("Parsec", "Parsecs", new BaseUnits(length: LengthUnit.Parsec), 30856775812800000); + + /// + /// The unit of . + /// + public static readonly UnitOf Picometer = new("Picometer", "Picometers", new BaseUnits(length: LengthUnit.Picometer), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PrinterPica = new("PrinterPica", "PrinterPicas", new BaseUnits(length: LengthUnit.PrinterPica), new QuantityValue(254, 60225)); + + /// + /// The unit of . + /// + public static readonly UnitOf PrinterPoint = new("PrinterPoint", "PrinterPoints", new BaseUnits(length: LengthUnit.PrinterPoint), new QuantityValue(127, 361350)); + + /// + /// The unit of . + /// + public static readonly UnitOf Shackle = new("Shackle", "Shackles", new BaseUnits(length: LengthUnit.Shackle), new QuantityValue(3429, 125)); + + /// + /// The unit of . + /// + public static readonly UnitOf SolarRadius = new("SolarRadius", "SolarRadiuses", new BaseUnits(length: LengthUnit.SolarRadius), 695700000); + + /// + /// The unit of . + /// + public static readonly UnitOf Twip = new("Twip", "Twips", new BaseUnits(length: LengthUnit.Twip), new QuantityValue(127, 7200000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsSurveyFoot = new("UsSurveyFoot", "UsSurveyFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), new QuantityValue(1200, 3937)); + + /// + /// The unit of . + /// + public static readonly UnitOf Yard = new("Yard", "Yards", new BaseUnits(length: LengthUnit.Yard), new QuantityValue(1143, 1250)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/LevelUnits.g.cs b/UnitsNet/GeneratedCode/Units/LevelUnits.g.cs new file mode 100644 index 0000000000..eed4f88dd9 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/LevelUnits.g.cs @@ -0,0 +1,38 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class LevelUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Decibel = new("Decibel", "Decibels", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Neper = new("Neper", "Nepers", BaseUnits.Undefined, new QuantityValue(500000000, 57564627)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/LinearDensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/LinearDensityUnits.g.cs new file mode 100644 index 0000000000..6abd0f9bb7 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/LinearDensityUnits.g.cs @@ -0,0 +1,118 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class LinearDensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GramPerCentimeter = new("GramPerCentimeter", "GramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerFoot = new("GramPerFoot", "GramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Gram), new QuantityValue(5, 1524)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerMeter = new("GramPerMeter", "GramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerMillimeter = new("GramPerMillimeter", "GramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerCentimeter = new("KilogramPerCentimeter", "KilogramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerFoot = new("KilogramPerFoot", "KilogramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilogram), new QuantityValue(1250, 381)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerMeter = new("KilogramPerMeter", "KilogramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerMillimeter = new("KilogramPerMillimeter", "KilogramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerCentimeter = new("MicrogramPerCentimeter", "MicrogramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), new QuantityValue(1, 10000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerFoot = new("MicrogramPerFoot", "MicrogramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Microgram), new QuantityValue(1, 304800000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerMeter = new("MicrogramPerMeter", "MicrogramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerMillimeter = new("MicrogramPerMillimeter", "MicrogramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Microgram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerCentimeter = new("MilligramPerCentimeter", "MilligramsPerCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerFoot = new("MilligramPerFoot", "MilligramsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Milligram), new QuantityValue(1, 304800)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerMeter = new("MilligramPerMeter", "MilligramsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerMillimeter = new("MilligramPerMillimeter", "MilligramsPerMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Milligram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerFoot = new("PoundPerFoot", "PoundsPerFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), new QuantityValue(45359237, 30480000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerInch = new("PoundPerInch", "PoundsPerInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), new QuantityValue(45359237, 2540000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/LinearPowerDensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/LinearPowerDensityUnits.g.cs new file mode 100644 index 0000000000..9529356fd7 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/LinearPowerDensityUnits.g.cs @@ -0,0 +1,153 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class LinearPowerDensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GigawattPerCentimeter = new("GigawattPerCentimeter", "GigawattsPerCentimeter", BaseUnits.Undefined, 100000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattPerFoot = new("GigawattPerFoot", "GigawattsPerFoot", BaseUnits.Undefined, new QuantityValue(1250000000000, 381)); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattPerInch = new("GigawattPerInch", "GigawattsPerInch", BaseUnits.Undefined, new QuantityValue(5000000000000, 127)); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattPerMeter = new("GigawattPerMeter", "GigawattsPerMeter", new BaseUnits(length: LengthUnit.Gigameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattPerMillimeter = new("GigawattPerMillimeter", "GigawattsPerMillimeter", BaseUnits.Undefined, 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerCentimeter = new("KilowattPerCentimeter", "KilowattsPerCentimeter", BaseUnits.Undefined, 100000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerFoot = new("KilowattPerFoot", "KilowattsPerFoot", BaseUnits.Undefined, new QuantityValue(1250000, 381)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerInch = new("KilowattPerInch", "KilowattsPerInch", BaseUnits.Undefined, new QuantityValue(5000000, 127)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerMeter = new("KilowattPerMeter", "KilowattsPerMeter", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerMillimeter = new("KilowattPerMillimeter", "KilowattsPerMillimeter", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerCentimeter = new("MegawattPerCentimeter", "MegawattsPerCentimeter", BaseUnits.Undefined, 100000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerFoot = new("MegawattPerFoot", "MegawattsPerFoot", BaseUnits.Undefined, new QuantityValue(1250000000, 381)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerInch = new("MegawattPerInch", "MegawattsPerInch", BaseUnits.Undefined, new QuantityValue(5000000000, 127)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerMeter = new("MegawattPerMeter", "MegawattsPerMeter", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerMillimeter = new("MegawattPerMillimeter", "MegawattsPerMillimeter", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerCentimeter = new("MilliwattPerCentimeter", "MilliwattsPerCentimeter", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerFoot = new("MilliwattPerFoot", "MilliwattsPerFoot", BaseUnits.Undefined, new QuantityValue(5, 1524)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerInch = new("MilliwattPerInch", "MilliwattsPerInch", BaseUnits.Undefined, new QuantityValue(5, 127)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerMeter = new("MilliwattPerMeter", "MilliwattsPerMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerMillimeter = new("MilliwattPerMillimeter", "MilliwattsPerMillimeter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerCentimeter = new("WattPerCentimeter", "WattsPerCentimeter", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerFoot = new("WattPerFoot", "WattsPerFoot", BaseUnits.Undefined, new QuantityValue(1250, 381)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerInch = new("WattPerInch", "WattsPerInch", BaseUnits.Undefined, new QuantityValue(5000, 127)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerMeter = new("WattPerMeter", "WattsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerMillimeter = new("WattPerMillimeter", "WattsPerMillimeter", BaseUnits.Undefined, 1000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/LuminanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/LuminanceUnits.g.cs new file mode 100644 index 0000000000..de6cf5e2c2 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/LuminanceUnits.g.cs @@ -0,0 +1,78 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class LuminanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CandelaPerSquareFoot = new("CandelaPerSquareFoot", "CandelasPerSquareFoot", BaseUnits.Undefined, new QuantityValue(1562500, 145161)); + + /// + /// The unit of . + /// + public static readonly UnitOf CandelaPerSquareInch = new("CandelaPerSquareInch", "CandelasPerSquareInch", BaseUnits.Undefined, new QuantityValue(25000000, 16129)); + + /// + /// The unit of . + /// + public static readonly UnitOf CandelaPerSquareMeter = new("CandelaPerSquareMeter", "CandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, luminousIntensity: LuminousIntensityUnit.Candela), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf CenticandelaPerSquareMeter = new("CenticandelaPerSquareMeter", "CenticandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Decameter, luminousIntensity: LuminousIntensityUnit.Candela), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecicandelaPerSquareMeter = new("DecicandelaPerSquareMeter", "DecicandelasPerSquareMeter", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilocandelaPerSquareMeter = new("KilocandelaPerSquareMeter", "KilocandelasPerSquareMeter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrocandelaPerSquareMeter = new("MicrocandelaPerSquareMeter", "MicrocandelasPerSquareMeter", new BaseUnits(length: LengthUnit.Kilometer, luminousIntensity: LuminousIntensityUnit.Candela), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillicandelaPerSquareMeter = new("MillicandelaPerSquareMeter", "MillicandelasPerSquareMeter", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanocandelaPerSquareMeter = new("NanocandelaPerSquareMeter", "NanocandelasPerSquareMeter", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nit = new("Nit", "Nits", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/LuminosityUnits.g.cs b/UnitsNet/GeneratedCode/Units/LuminosityUnits.g.cs new file mode 100644 index 0000000000..1c840f04e4 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/LuminosityUnits.g.cs @@ -0,0 +1,98 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class LuminosityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Decawatt = new("Decawatt", "Decawatts", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf Deciwatt = new("Deciwatt", "Deciwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf Femtowatt = new("Femtowatt", "Femtowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Picogram, time: DurationUnit.Second), new QuantityValue(1, 1000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigawatt = new("Gigawatt", "Gigawatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilowatt = new("Kilowatt", "Kilowatts", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megawatt = new("Megawatt", "Megawatts", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microwatt = new("Microwatt", "Microwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milliwatt = new("Milliwatt", "Milliwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanowatt = new("Nanowatt", "Nanowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Petawatt = new("Petawatt", "Petawatts", BaseUnits.Undefined, 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Picowatt = new("Picowatt", "Picowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SolarLuminosity = new("SolarLuminosity", "SolarLuminosities", BaseUnits.Undefined, new QuantityValue(new BigInteger(3828) * QuantityValue.PowerOfTen(23), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Terawatt = new("Terawatt", "Terawatts", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Watt = new("Watt", "Watts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/LuminousFluxUnits.g.cs b/UnitsNet/GeneratedCode/Units/LuminousFluxUnits.g.cs new file mode 100644 index 0000000000..081551eb10 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/LuminousFluxUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class LuminousFluxUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Lumen = new("Lumen", "Lumens", new BaseUnits(luminousIntensity: LuminousIntensityUnit.Candela), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/LuminousIntensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/LuminousIntensityUnits.g.cs new file mode 100644 index 0000000000..805a196a9a --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/LuminousIntensityUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class LuminousIntensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Candela = new("Candela", "Candela", new BaseUnits(luminousIntensity: LuminousIntensityUnit.Candela), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MagneticFieldUnits.g.cs b/UnitsNet/GeneratedCode/Units/MagneticFieldUnits.g.cs new file mode 100644 index 0000000000..74b08ae578 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MagneticFieldUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MagneticFieldUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Gauss = new("Gauss", "Gausses", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microtesla = new("Microtesla", "Microteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milligauss = new("Milligauss", "Milligausses", BaseUnits.Undefined, new QuantityValue(1, 10000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millitesla = new("Millitesla", "Milliteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanotesla = new("Nanotesla", "Nanoteslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, current: ElectricCurrentUnit.Ampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Tesla = new("Tesla", "Teslas", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MagneticFluxUnits.g.cs b/UnitsNet/GeneratedCode/Units/MagneticFluxUnits.g.cs new file mode 100644 index 0000000000..f3cb20953a --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MagneticFluxUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MagneticFluxUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Weber = new("Weber", "Webers", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MagnetizationUnits.g.cs b/UnitsNet/GeneratedCode/Units/MagnetizationUnits.g.cs new file mode 100644 index 0000000000..575234cc4f --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MagnetizationUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MagnetizationUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf AmperePerMeter = new("AmperePerMeter", "AmperesPerMeter", new BaseUnits(length: LengthUnit.Meter, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MassConcentrationUnits.g.cs b/UnitsNet/GeneratedCode/Units/MassConcentrationUnits.g.cs new file mode 100644 index 0000000000..7b0a53f486 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MassConcentrationUnits.g.cs @@ -0,0 +1,273 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MassConcentrationUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerDeciliter = new("CentigramPerDeciliter", "CentigramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerLiter = new("CentigramPerLiter", "CentigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Centigram), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerMicroliter = new("CentigramPerMicroliter", "CentigramsPerMicroliter", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerMilliliter = new("CentigramPerMilliliter", "CentigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Centigram), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerDeciliter = new("DecigramPerDeciliter", "DecigramsPerDeciliter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerLiter = new("DecigramPerLiter", "DecigramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Decigram), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerMicroliter = new("DecigramPerMicroliter", "DecigramsPerMicroliter", BaseUnits.Undefined, 100000); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerMilliliter = new("DecigramPerMilliliter", "DecigramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Decigram), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerCubicCentimeter = new("GramPerCubicCentimeter", "GramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerCubicMeter = new("GramPerCubicMeter", "GramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerCubicMillimeter = new("GramPerCubicMillimeter", "GramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerDeciliter = new("GramPerDeciliter", "GramsPerDeciliter", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerLiter = new("GramPerLiter", "GramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerMicroliter = new("GramPerMicroliter", "GramsPerMicroliter", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerMilliliter = new("GramPerMilliliter", "GramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerCubicCentimeter = new("KilogramPerCubicCentimeter", "KilogramsPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerCubicMeter = new("KilogramPerCubicMeter", "KilogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerCubicMillimeter = new("KilogramPerCubicMillimeter", "KilogramsPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerLiter = new("KilogramPerLiter", "KilogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundPerCubicFoot = new("KilopoundPerCubicFoot", "KilopoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Kilopound), new QuantityValue(3543690390625, 221225364)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundPerCubicInch = new("KilopoundPerCubicInch", "KilopoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound), new QuantityValue(56699046250000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerCubicMeter = new("MicrogramPerCubicMeter", "MicrogramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerDeciliter = new("MicrogramPerDeciliter", "MicrogramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerLiter = new("MicrogramPerLiter", "MicrogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Microgram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerMicroliter = new("MicrogramPerMicroliter", "MicrogramsPerMicroliter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerMilliliter = new("MicrogramPerMilliliter", "MicrogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Microgram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerCubicMeter = new("MilligramPerCubicMeter", "MilligramsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerDeciliter = new("MilligramPerDeciliter", "MilligramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerLiter = new("MilligramPerLiter", "MilligramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerMicroliter = new("MilligramPerMicroliter", "MilligramsPerMicroliter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerMilliliter = new("MilligramPerMilliliter", "MilligramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerDeciliter = new("NanogramPerDeciliter", "NanogramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerLiter = new("NanogramPerLiter", "NanogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Nanogram), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerMicroliter = new("NanogramPerMicroliter", "NanogramsPerMicroliter", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerMilliliter = new("NanogramPerMilliliter", "NanogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Nanogram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf OuncePerImperialGallon = new("OuncePerImperialGallon", "OuncesPerImperialGallon", BaseUnits.Undefined, new QuantityValue(45359237, 7273744)); + + /// + /// The unit of . + /// + public static readonly UnitOf OuncePerUSGallon = new("OuncePerUSGallon", "OuncesPerUSGallon", BaseUnits.Undefined, new QuantityValue(368175625, 49161192)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicogramPerDeciliter = new("PicogramPerDeciliter", "PicogramsPerDeciliter", BaseUnits.Undefined, new QuantityValue(1, 100000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicogramPerLiter = new("PicogramPerLiter", "PicogramsPerLiter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Picogram), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicogramPerMicroliter = new("PicogramPerMicroliter", "PicogramsPerMicroliter", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicogramPerMilliliter = new("PicogramPerMilliliter", "PicogramsPerMilliliter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Picogram), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerCubicFoot = new("PoundPerCubicFoot", "PoundsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), new QuantityValue(28349523125, 1769802912)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerCubicInch = new("PoundPerCubicInch", "PoundsPerCubicInch", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), new QuantityValue(56699046250, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerImperialGallon = new("PoundPerImperialGallon", "PoundsPerImperialGallon", BaseUnits.Undefined, new QuantityValue(45359237, 454609)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerUSGallon = new("PoundPerUSGallon", "PoundsPerUSGallon", BaseUnits.Undefined, new QuantityValue(736351250, 6145149)); + + /// + /// The unit of . + /// + public static readonly UnitOf SlugPerCubicFoot = new("SlugPerCubicFoot", "SlugsPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), new QuantityValue(5560277019075625, 10788718551552)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerCubicCentimeter = new("TonnePerCubicCentimeter", "TonnesPerCubicCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerCubicMeter = new("TonnePerCubicMeter", "TonnesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerCubicMillimeter = new("TonnePerCubicMillimeter", "TonnesPerCubicMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), 1000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MassFlowUnits.g.cs b/UnitsNet/GeneratedCode/Units/MassFlowUnits.g.cs new file mode 100644 index 0000000000..7e3b006224 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MassFlowUnits.g.cs @@ -0,0 +1,193 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MassFlowUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerDay = new("CentigramPerDay", "CentigramsPerDay", new BaseUnits(mass: MassUnit.Centigram, time: DurationUnit.Day), new QuantityValue(1, 8640000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerSecond = new("CentigramPerSecond", "CentigramsPerSecond", new BaseUnits(mass: MassUnit.Centigram, time: DurationUnit.Second), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecagramPerDay = new("DecagramPerDay", "DecagramsPerDay", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Day), new QuantityValue(1, 8640)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecagramPerSecond = new("DecagramPerSecond", "DecagramsPerSecond", new BaseUnits(mass: MassUnit.Decagram, time: DurationUnit.Second), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerDay = new("DecigramPerDay", "DecigramsPerDay", new BaseUnits(mass: MassUnit.Decigram, time: DurationUnit.Day), new QuantityValue(1, 864000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerSecond = new("DecigramPerSecond", "DecigramsPerSecond", new BaseUnits(mass: MassUnit.Decigram, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerDay = new("GramPerDay", "GramsPerDay", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Day), new QuantityValue(1, 86400)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerHour = new("GramPerHour", "GramsPerHour", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Hour), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerSecond = new("GramPerSecond", "GramsPerSecond", new BaseUnits(mass: MassUnit.Gram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf HectogramPerDay = new("HectogramPerDay", "HectogramsPerDay", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Day), new QuantityValue(1, 864)); + + /// + /// The unit of . + /// + public static readonly UnitOf HectogramPerSecond = new("HectogramPerSecond", "HectogramsPerSecond", new BaseUnits(mass: MassUnit.Hectogram, time: DurationUnit.Second), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerDay = new("KilogramPerDay", "KilogramsPerDay", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Day), new QuantityValue(5, 432)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerHour = new("KilogramPerHour", "KilogramsPerHour", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Hour), new QuantityValue(5, 18)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerMinute = new("KilogramPerMinute", "KilogramsPerMinute", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Minute), new QuantityValue(50, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerSecond = new("KilogramPerSecond", "KilogramsPerSecond", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegagramPerDay = new("MegagramPerDay", "MegagramsPerDay", BaseUnits.Undefined, new QuantityValue(625, 54)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapoundPerDay = new("MegapoundPerDay", "MegapoundsPerDay", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Day), new QuantityValue(45359237, 8640)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapoundPerHour = new("MegapoundPerHour", "MegapoundsPerHour", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Hour), new QuantityValue(45359237, 360)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapoundPerMinute = new("MegapoundPerMinute", "MegapoundsPerMinute", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Minute), new QuantityValue(45359237, 6)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapoundPerSecond = new("MegapoundPerSecond", "MegapoundsPerSecond", new BaseUnits(mass: MassUnit.Megapound, time: DurationUnit.Second), 453592370); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerDay = new("MicrogramPerDay", "MicrogramsPerDay", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Day), new QuantityValue(1, 86400000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerSecond = new("MicrogramPerSecond", "MicrogramsPerSecond", new BaseUnits(mass: MassUnit.Microgram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerDay = new("MilligramPerDay", "MilligramsPerDay", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Day), new QuantityValue(1, 86400000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerSecond = new("MilligramPerSecond", "MilligramsPerSecond", new BaseUnits(mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerDay = new("NanogramPerDay", "NanogramsPerDay", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Day), new QuantityValue(1, 86400000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerSecond = new("NanogramPerSecond", "NanogramsPerSecond", new BaseUnits(mass: MassUnit.Nanogram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerDay = new("PoundPerDay", "PoundsPerDay", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Day), new QuantityValue(45359237, 8640000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerHour = new("PoundPerHour", "PoundsPerHour", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Hour), new QuantityValue(45359237, 360000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerMinute = new("PoundPerMinute", "PoundsPerMinute", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Minute), new QuantityValue(45359237, 6000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerSecond = new("PoundPerSecond", "PoundsPerSecond", new BaseUnits(mass: MassUnit.Pound, time: DurationUnit.Second), new QuantityValue(45359237, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ShortTonPerHour = new("ShortTonPerHour", "ShortTonsPerHour", new BaseUnits(mass: MassUnit.ShortTon, time: DurationUnit.Hour), new QuantityValue(45359237, 180000)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerDay = new("TonnePerDay", "TonnesPerDay", new BaseUnits(mass: MassUnit.Tonne, time: DurationUnit.Day), new QuantityValue(625, 54)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonnePerHour = new("TonnePerHour", "TonnesPerHour", new BaseUnits(mass: MassUnit.Tonne, time: DurationUnit.Hour), new QuantityValue(2500, 9)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MassFluxUnits.g.cs b/UnitsNet/GeneratedCode/Units/MassFluxUnits.g.cs new file mode 100644 index 0000000000..421e90cf79 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MassFluxUnits.g.cs @@ -0,0 +1,88 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MassFluxUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GramPerHourPerSquareCentimeter = new("GramPerHourPerSquareCentimeter", "GramsPerHourPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Hour), new QuantityValue(1, 360)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerHourPerSquareMeter = new("GramPerHourPerSquareMeter", "GramsPerHourPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Hour), new QuantityValue(1, 3600000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerHourPerSquareMillimeter = new("GramPerHourPerSquareMillimeter", "GramsPerHourPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram, time: DurationUnit.Hour), new QuantityValue(5, 18)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerSecondPerSquareCentimeter = new("GramPerSecondPerSquareCentimeter", "GramsPerSecondPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Second), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerSecondPerSquareMeter = new("GramPerSecondPerSquareMeter", "GramsPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerSecondPerSquareMillimeter = new("GramPerSecondPerSquareMillimeter", "GramsPerSecondPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerHourPerSquareCentimeter = new("KilogramPerHourPerSquareCentimeter", "KilogramsPerHourPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), new QuantityValue(25, 9)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerHourPerSquareMeter = new("KilogramPerHourPerSquareMeter", "KilogramsPerHourPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerHourPerSquareMillimeter = new("KilogramPerHourPerSquareMillimeter", "KilogramsPerHourPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Hour), new QuantityValue(2500, 9)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerSecondPerSquareCentimeter = new("KilogramPerSecondPerSquareCentimeter", "KilogramsPerSecondPerSquareCentimeter", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerSecondPerSquareMeter = new("KilogramPerSecondPerSquareMeter", "KilogramsPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerSecondPerSquareMillimeter = new("KilogramPerSecondPerSquareMillimeter", "KilogramsPerSecondPerSquareMillimeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MassFractionUnits.g.cs b/UnitsNet/GeneratedCode/Units/MassFractionUnits.g.cs new file mode 100644 index 0000000000..9ea6024263 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MassFractionUnits.g.cs @@ -0,0 +1,148 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MassFractionUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerGram = new("CentigramPerGram", "CentigramsPerGram", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerKilogram = new("CentigramPerKilogram", "CentigramsPerKilogram", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecagramPerGram = new("DecagramPerGram", "DecagramsPerGram", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecagramPerKilogram = new("DecagramPerKilogram", "DecagramsPerKilogram", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerGram = new("DecigramPerGram", "DecigramsPerGram", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerKilogram = new("DecigramPerKilogram", "DecigramsPerKilogram", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecimalFraction = new("DecimalFraction", "DecimalFractions", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerGram = new("GramPerGram", "GramsPerGram", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerKilogram = new("GramPerKilogram", "GramsPerKilogram", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf HectogramPerGram = new("HectogramPerGram", "HectogramsPerGram", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf HectogramPerKilogram = new("HectogramPerKilogram", "HectogramsPerKilogram", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerGram = new("KilogramPerGram", "KilogramsPerGram", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerKilogram = new("KilogramPerKilogram", "KilogramsPerKilogram", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerGram = new("MicrogramPerGram", "MicrogramsPerGram", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerKilogram = new("MicrogramPerKilogram", "MicrogramsPerKilogram", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerGram = new("MilligramPerGram", "MilligramsPerGram", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerKilogram = new("MilligramPerKilogram", "MilligramsPerKilogram", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerGram = new("NanogramPerGram", "NanogramsPerGram", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerKilogram = new("NanogramPerKilogram", "NanogramsPerKilogram", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerBillion = new("PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerMillion = new("PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerThousand = new("PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerTrillion = new("PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Percent = new("Percent", "Percent", BaseUnits.Undefined, new QuantityValue(1, 100)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MassMomentOfInertiaUnits.g.cs b/UnitsNet/GeneratedCode/Units/MassMomentOfInertiaUnits.g.cs new file mode 100644 index 0000000000..8d5cff9be8 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MassMomentOfInertiaUnits.g.cs @@ -0,0 +1,168 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MassMomentOfInertiaUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GramSquareCentimeter = new("GramSquareCentimeter", "GramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram), new QuantityValue(1, 10000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramSquareDecimeter = new("GramSquareDecimeter", "GramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Gram), new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramSquareMeter = new("GramSquareMeter", "GramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramSquareMillimeter = new("GramSquareMillimeter", "GramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Gram), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramSquareCentimeter = new("KilogramSquareCentimeter", "KilogramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram), new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramSquareDecimeter = new("KilogramSquareDecimeter", "KilogramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramSquareMeter = new("KilogramSquareMeter", "KilogramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramSquareMillimeter = new("KilogramSquareMillimeter", "KilogramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilotonneSquareCentimeter = new("KilotonneSquareCentimeter", "KilotonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilotonne), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf KilotonneSquareDecimeter = new("KilotonneSquareDecimeter", "KilotonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilotonne), 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilotonneSquareMeter = new("KilotonneSquareMeter", "KilotonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilotonne), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilotonneSquareMillimeter = new("KilotonneSquareMillimeter", "KilotonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilotonne), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MegatonneSquareCentimeter = new("MegatonneSquareCentimeter", "MegatonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Megatonne), 100000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegatonneSquareDecimeter = new("MegatonneSquareDecimeter", "MegatonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Megatonne), 10000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegatonneSquareMeter = new("MegatonneSquareMeter", "MegatonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Megatonne), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegatonneSquareMillimeter = new("MegatonneSquareMillimeter", "MegatonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Megatonne), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramSquareCentimeter = new("MilligramSquareCentimeter", "MilligramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), new QuantityValue(1, 10000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramSquareDecimeter = new("MilligramSquareDecimeter", "MilligramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), new QuantityValue(1, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramSquareMeter = new("MilligramSquareMeter", "MilligramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramSquareMillimeter = new("MilligramSquareMillimeter", "MilligramSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Milligram), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundSquareFoot = new("PoundSquareFoot", "PoundSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), new QuantityValue(6584392202157, 156250000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundSquareInch = new("PoundSquareInch", "PoundSquareInches", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound), new QuantityValue(731599133573, 2500000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SlugSquareFoot = new("SlugSquareFoot", "SlugSquareFeet", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Slug), new QuantityValue(3389544870828501, 2500000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SlugSquareInch = new("SlugSquareInch", "SlugSquareInches", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Slug), new QuantityValue(1129848290276167, 120000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneSquareCentimeter = new("TonneSquareCentimeter", "TonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneSquareDecimeter = new("TonneSquareDecimeter", "TonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Tonne), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneSquareMeter = new("TonneSquareMeter", "TonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneSquareMillimeter = new("TonneSquareMillimeter", "TonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), new QuantityValue(1, 1000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MassUnits.g.cs b/UnitsNet/GeneratedCode/Units/MassUnits.g.cs new file mode 100644 index 0000000000..254c930ffc --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MassUnits.g.cs @@ -0,0 +1,183 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MassUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Centigram = new("Centigram", "Centigrams", new BaseUnits(mass: MassUnit.Centigram), new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Dalton = new("Dalton", "Daltons", new BaseUnits(mass: MassUnit.Dalton), new QuantityValue(8302695333, new BigInteger(5) * QuantityValue.PowerOfTen(36))); + + /// + /// The unit of . + /// + public static readonly UnitOf Decagram = new("Decagram", "Decagrams", new BaseUnits(mass: MassUnit.Decagram), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Decigram = new("Decigram", "Decigrams", new BaseUnits(mass: MassUnit.Decigram), new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf EarthMass = new("EarthMass", "EarthMasses", new BaseUnits(mass: MassUnit.EarthMass), new QuantityValue(new BigInteger(59722) * QuantityValue.PowerOfTen(20), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Femtogram = new("Femtogram", "Femtograms", new BaseUnits(mass: MassUnit.Femtogram), new QuantityValue(1, 1000000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigadalton = new("Gigadalton", "Gigadaltons", new BaseUnits(mass: MassUnit.Gigadalton), new QuantityValue(8302695333, new BigInteger(5) * QuantityValue.PowerOfTen(27))); + + /// + /// The unit of . + /// + public static readonly UnitOf Grain = new("Grain", "Grains", new BaseUnits(mass: MassUnit.Grain), new QuantityValue(6479891, 100000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gram = new("Gram", "Grams", new BaseUnits(mass: MassUnit.Gram), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Hectogram = new("Hectogram", "Hectograms", new BaseUnits(mass: MassUnit.Hectogram), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilodalton = new("Kilodalton", "Kilodaltons", new BaseUnits(mass: MassUnit.Kilodalton), new QuantityValue(8302695333, new BigInteger(5) * QuantityValue.PowerOfTen(33))); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilogram = new("Kilogram", "Kilograms", new BaseUnits(mass: MassUnit.Kilogram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilopound = new("Kilopound", "Kilopounds", new BaseUnits(mass: MassUnit.Kilopound), new QuantityValue(45359237, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilotonne = new("Kilotonne", "Kilotonnes", new BaseUnits(mass: MassUnit.Kilotonne), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf LongHundredweight = new("LongHundredweight", "LongHundredweight", new BaseUnits(mass: MassUnit.LongHundredweight), new QuantityValue(317514659, 6250000)); + + /// + /// The unit of . + /// + public static readonly UnitOf LongTon = new("LongTon", "LongTons", new BaseUnits(mass: MassUnit.LongTon), new QuantityValue(317514659, 312500)); + + /// + /// The unit of . + /// + public static readonly UnitOf Megadalton = new("Megadalton", "Megadaltons", new BaseUnits(mass: MassUnit.Megadalton), new QuantityValue(8302695333, new BigInteger(5) * QuantityValue.PowerOfTen(30))); + + /// + /// The unit of . + /// + public static readonly UnitOf Megapound = new("Megapound", "Megapounds", new BaseUnits(mass: MassUnit.Megapound), new QuantityValue(45359237, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Megatonne = new("Megatonne", "Megatonnes", new BaseUnits(mass: MassUnit.Megatonne), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microgram = new("Microgram", "Micrograms", new BaseUnits(mass: MassUnit.Microgram), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milligram = new("Milligram", "Milligrams", new BaseUnits(mass: MassUnit.Milligram), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanogram = new("Nanogram", "Nanograms", new BaseUnits(mass: MassUnit.Nanogram), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Ounce = new("Ounce", "Ounces", new BaseUnits(mass: MassUnit.Ounce), new QuantityValue(45359237, 1600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Picogram = new("Picogram", "Picograms", new BaseUnits(mass: MassUnit.Picogram), new QuantityValue(1, 1000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Pound = new("Pound", "Pounds", new BaseUnits(mass: MassUnit.Pound), new QuantityValue(45359237, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ShortHundredweight = new("ShortHundredweight", "ShortHundredweight", new BaseUnits(mass: MassUnit.ShortHundredweight), new QuantityValue(45359237, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ShortTon = new("ShortTon", "ShortTons", new BaseUnits(mass: MassUnit.ShortTon), new QuantityValue(45359237, 50000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Slug = new("Slug", "Slugs", new BaseUnits(mass: MassUnit.Slug), new QuantityValue(8896443230521, 609600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SolarMass = new("SolarMass", "SolarMasses", new BaseUnits(mass: MassUnit.SolarMass), new QuantityValue(new BigInteger(198947) * QuantityValue.PowerOfTen(25), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Stone = new("Stone", "Stone", new BaseUnits(mass: MassUnit.Stone), new QuantityValue(317514659, 50000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Tonne = new("Tonne", "Tonnes", new BaseUnits(mass: MassUnit.Tonne), 1000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MolalityUnits.g.cs b/UnitsNet/GeneratedCode/Units/MolalityUnits.g.cs new file mode 100644 index 0000000000..3cb43114e7 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MolalityUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MolalityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf MillimolePerKilogram = new("MillimolePerKilogram", "MillimolesPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Millimole), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MolePerGram = new("MolePerGram", "MolesPerGram", new BaseUnits(mass: MassUnit.Gram, amount: AmountOfSubstanceUnit.Mole), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MolePerKilogram = new("MolePerKilogram", "MolesPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Mole), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MolarEnergyUnits.g.cs b/UnitsNet/GeneratedCode/Units/MolarEnergyUnits.g.cs new file mode 100644 index 0000000000..0e7ad96e08 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MolarEnergyUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MolarEnergyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerMole = new("JoulePerMole", "JoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Mole), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerMole = new("KilojoulePerMole", "KilojoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Millimole), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerMole = new("MegajoulePerMole", "MegajoulesPerMole", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Micromole), 1000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MolarEntropyUnits.g.cs b/UnitsNet/GeneratedCode/Units/MolarEntropyUnits.g.cs new file mode 100644 index 0000000000..5e4cb2e2c0 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MolarEntropyUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MolarEntropyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerMoleKelvin = new("JoulePerMoleKelvin", "JoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Mole), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerMoleKelvin = new("KilojoulePerMoleKelvin", "KilojoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Millimole), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerMoleKelvin = new("MegajoulePerMoleKelvin", "MegajoulesPerMoleKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin, amount: AmountOfSubstanceUnit.Micromole), 1000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MolarFlowUnits.g.cs b/UnitsNet/GeneratedCode/Units/MolarFlowUnits.g.cs new file mode 100644 index 0000000000..e679122142 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MolarFlowUnits.g.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MolarFlowUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf KilomolePerHour = new("KilomolePerHour", "KilomolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.Kilomole), new QuantityValue(5, 18)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilomolePerMinute = new("KilomolePerMinute", "KilomolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.Kilomole), new QuantityValue(50, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilomolePerSecond = new("KilomolePerSecond", "KilomolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Kilomole), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MolePerHour = new("MolePerHour", "MolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf MolePerMinute = new("MolePerMinute", "MolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf MolePerSecond = new("MolePerSecond", "MolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.Mole), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundMolePerHour = new("PoundMolePerHour", "PoundMolesPerHour", new BaseUnits(time: DurationUnit.Hour, amount: AmountOfSubstanceUnit.PoundMole), new QuantityValue(45359237, 360000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundMolePerMinute = new("PoundMolePerMinute", "PoundMolesPerMinute", new BaseUnits(time: DurationUnit.Minute, amount: AmountOfSubstanceUnit.PoundMole), new QuantityValue(45359237, 6000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundMolePerSecond = new("PoundMolePerSecond", "PoundMolesPerSecond", new BaseUnits(time: DurationUnit.Second, amount: AmountOfSubstanceUnit.PoundMole), new QuantityValue(45359237, 100000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MolarMassUnits.g.cs b/UnitsNet/GeneratedCode/Units/MolarMassUnits.g.cs new file mode 100644 index 0000000000..4eb26fc711 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MolarMassUnits.g.cs @@ -0,0 +1,98 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MolarMassUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentigramPerMole = new("CentigramPerMole", "CentigramsPerMole", new BaseUnits(mass: MassUnit.Centigram, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecagramPerMole = new("DecagramPerMole", "DecagramsPerMole", new BaseUnits(mass: MassUnit.Decagram, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecigramPerMole = new("DecigramPerMole", "DecigramsPerMole", new BaseUnits(mass: MassUnit.Decigram, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramPerMole = new("GramPerMole", "GramsPerMole", new BaseUnits(mass: MassUnit.Gram, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf HectogramPerMole = new("HectogramPerMole", "HectogramsPerMole", new BaseUnits(mass: MassUnit.Hectogram, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerKilomole = new("KilogramPerKilomole", "KilogramsPerKilomole", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Kilomole), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerMole = new("KilogramPerMole", "KilogramsPerMole", new BaseUnits(mass: MassUnit.Kilogram, amount: AmountOfSubstanceUnit.Mole), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundPerMole = new("KilopoundPerMole", "KilopoundsPerMole", new BaseUnits(mass: MassUnit.Kilopound, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(45359237, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapoundPerMole = new("MegapoundPerMole", "MegapoundsPerMole", new BaseUnits(mass: MassUnit.Megapound, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(45359237, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrogramPerMole = new("MicrogramPerMole", "MicrogramsPerMole", new BaseUnits(mass: MassUnit.Microgram, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramPerMole = new("MilligramPerMole", "MilligramsPerMole", new BaseUnits(mass: MassUnit.Milligram, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanogramPerMole = new("NanogramPerMole", "NanogramsPerMole", new BaseUnits(mass: MassUnit.Nanogram, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerMole = new("PoundPerMole", "PoundsPerMole", new BaseUnits(mass: MassUnit.Pound, amount: AmountOfSubstanceUnit.Mole), new QuantityValue(45359237, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerPoundMole = new("PoundPerPoundMole", "PoundsPerPoundMole", new BaseUnits(mass: MassUnit.Pound, amount: AmountOfSubstanceUnit.PoundMole), new QuantityValue(1, 1000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/MolarityUnits.g.cs b/UnitsNet/GeneratedCode/Units/MolarityUnits.g.cs new file mode 100644 index 0000000000..be63acaa47 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/MolarityUnits.g.cs @@ -0,0 +1,83 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class MolarityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentimolePerLiter = new("CentimolePerLiter", "CentimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Centimole), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecimolePerLiter = new("DecimolePerLiter", "DecimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Decimole), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf FemtomolePerLiter = new("FemtomolePerLiter", "FemtomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Femtomole), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilomolePerCubicMeter = new("KilomolePerCubicMeter", "KilomolesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, amount: AmountOfSubstanceUnit.Kilomole), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicromolePerLiter = new("MicromolePerLiter", "MicromolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Micromole), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimolePerLiter = new("MillimolePerLiter", "MillimolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Millimole), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MolePerCubicMeter = new("MolePerCubicMeter", "MolesPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, amount: AmountOfSubstanceUnit.Mole), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MolePerLiter = new("MolePerLiter", "MolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Mole), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf NanomolePerLiter = new("NanomolePerLiter", "NanomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Nanomole), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicomolePerLiter = new("PicomolePerLiter", "PicomolesPerLiter", new BaseUnits(length: LengthUnit.Decimeter, amount: AmountOfSubstanceUnit.Picomole), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundMolePerCubicFoot = new("PoundMolePerCubicFoot", "PoundMolesPerCubicFoot", new BaseUnits(length: LengthUnit.Foot, amount: AmountOfSubstanceUnit.PoundMole), new QuantityValue(3543690390625, 221225364)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/PermeabilityUnits.g.cs b/UnitsNet/GeneratedCode/Units/PermeabilityUnits.g.cs new file mode 100644 index 0000000000..45c16d969d --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/PermeabilityUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class PermeabilityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf HenryPerMeter = new("HenryPerMeter", "HenriesPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/PermittivityUnits.g.cs b/UnitsNet/GeneratedCode/Units/PermittivityUnits.g.cs new file mode 100644 index 0000000000..a597f71937 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/PermittivityUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class PermittivityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf FaradPerMeter = new("FaradPerMeter", "FaradsPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/PorousMediumPermeabilityUnits.g.cs b/UnitsNet/GeneratedCode/Units/PorousMediumPermeabilityUnits.g.cs new file mode 100644 index 0000000000..055a25a099 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/PorousMediumPermeabilityUnits.g.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class PorousMediumPermeabilityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Darcy = new("Darcy", "Darcys", BaseUnits.Undefined, new QuantityValue(9869233, QuantityValue.PowerOfTen(19))); + + /// + /// The unit of . + /// + public static readonly UnitOf Microdarcy = new("Microdarcy", "Microdarcys", BaseUnits.Undefined, new QuantityValue(9869233, QuantityValue.PowerOfTen(25))); + + /// + /// The unit of . + /// + public static readonly UnitOf Millidarcy = new("Millidarcy", "Millidarcys", BaseUnits.Undefined, new QuantityValue(9869233, QuantityValue.PowerOfTen(22))); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareCentimeter = new("SquareCentimeter", "SquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMeter = new("SquareMeter", "SquareMeters", new BaseUnits(length: LengthUnit.Meter), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/PowerDensityUnits.g.cs b/UnitsNet/GeneratedCode/Units/PowerDensityUnits.g.cs new file mode 100644 index 0000000000..e120c86f11 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/PowerDensityUnits.g.cs @@ -0,0 +1,258 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class PowerDensityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerSecondCubicFoot = new("BtuPerSecondCubicFoot", "BtusPerSecondCubicFoot", BaseUnits.Undefined, new QuantityValue(32970495394375, 884901456)); + + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerSecondCubicInch = new("BtuPerSecondCubicInch", "BtusPerSecondCubicInch", BaseUnits.Undefined, new QuantityValue(131881981577500, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecawattPerCubicFoot = new("DecawattPerCubicFoot", "DecawattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(19531250000, 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecawattPerCubicInch = new("DecawattPerCubicInch", "DecawattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(1250000000000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecawattPerCubicMeter = new("DecawattPerCubicMeter", "DecawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecawattPerLiter = new("DecawattPerLiter", "DecawattsPerLiter", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciwattPerCubicFoot = new("DeciwattPerCubicFoot", "DeciwattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(195312500, 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciwattPerCubicInch = new("DeciwattPerCubicInch", "DeciwattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(12500000000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciwattPerCubicMeter = new("DeciwattPerCubicMeter", "DeciwattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciwattPerLiter = new("DeciwattPerLiter", "DeciwattsPerLiter", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattPerCubicFoot = new("GigawattPerCubicFoot", "GigawattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(1953125000000000000, 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattPerCubicInch = new("GigawattPerCubicInch", "GigawattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(new BigInteger(125) * QuantityValue.PowerOfTen(18), 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattPerCubicMeter = new("GigawattPerCubicMeter", "GigawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattPerLiter = new("GigawattPerLiter", "GigawattsPerLiter", BaseUnits.Undefined, 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerCubicFoot = new("KilowattPerCubicFoot", "KilowattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(1953125000000, 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerCubicInch = new("KilowattPerCubicInch", "KilowattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(125000000000000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerCubicMeter = new("KilowattPerCubicMeter", "KilowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattPerLiter = new("KilowattPerLiter", "KilowattsPerLiter", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerCubicFoot = new("MegawattPerCubicFoot", "MegawattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(1953125000000000, 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerCubicInch = new("MegawattPerCubicInch", "MegawattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(125000000000000000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerCubicMeter = new("MegawattPerCubicMeter", "MegawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattPerLiter = new("MegawattPerLiter", "MegawattsPerLiter", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrowattPerCubicFoot = new("MicrowattPerCubicFoot", "MicrowattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(15625, 442450728)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrowattPerCubicInch = new("MicrowattPerCubicInch", "MicrowattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(125000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrowattPerCubicMeter = new("MicrowattPerCubicMeter", "MicrowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrowattPerLiter = new("MicrowattPerLiter", "MicrowattsPerLiter", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerCubicFoot = new("MilliwattPerCubicFoot", "MilliwattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(1953125, 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerCubicInch = new("MilliwattPerCubicInch", "MilliwattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(125000000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerCubicMeter = new("MilliwattPerCubicMeter", "MilliwattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliwattPerLiter = new("MilliwattPerLiter", "MilliwattsPerLiter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NanowattPerCubicFoot = new("NanowattPerCubicFoot", "NanowattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(125, 3539605824)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanowattPerCubicInch = new("NanowattPerCubicInch", "NanowattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(125, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanowattPerCubicMeter = new("NanowattPerCubicMeter", "NanowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanowattPerLiter = new("NanowattPerLiter", "NanowattsPerLiter", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicowattPerCubicFoot = new("PicowattPerCubicFoot", "PicowattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(1, 28316846592)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicowattPerCubicInch = new("PicowattPerCubicInch", "PicowattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(1, 16387064)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicowattPerCubicMeter = new("PicowattPerCubicMeter", "PicowattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicowattPerLiter = new("PicowattPerLiter", "PicowattsPerLiter", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattPerCubicFoot = new("TerawattPerCubicFoot", "TerawattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(new BigInteger(1953125) * QuantityValue.PowerOfTen(15), 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattPerCubicInch = new("TerawattPerCubicInch", "TerawattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(new BigInteger(125) * QuantityValue.PowerOfTen(21), 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattPerCubicMeter = new("TerawattPerCubicMeter", "TerawattsPerCubicMeter", new BaseUnits(length: LengthUnit.Picometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattPerLiter = new("TerawattPerLiter", "TerawattsPerLiter", BaseUnits.Undefined, 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerCubicFoot = new("WattPerCubicFoot", "WattsPerCubicFoot", BaseUnits.Undefined, new QuantityValue(1953125000, 55306341)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerCubicInch = new("WattPerCubicInch", "WattsPerCubicInch", BaseUnits.Undefined, new QuantityValue(125000000000, 2048383)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerCubicMeter = new("WattPerCubicMeter", "WattsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerLiter = new("WattPerLiter", "WattsPerLiter", BaseUnits.Undefined, 1000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/PowerRatioUnits.g.cs b/UnitsNet/GeneratedCode/Units/PowerRatioUnits.g.cs new file mode 100644 index 0000000000..59b9da5bef --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/PowerRatioUnits.g.cs @@ -0,0 +1,40 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class PowerRatioUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DecibelMilliwatt = new("DecibelMilliwatt", "DecibelMilliwatts", BaseUnits.Undefined, + new ConversionExpression(coefficient: 1, constantTerm: 30), + new ConversionExpression(coefficient: 1, constantTerm: -30)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecibelWatt = new("DecibelWatt", "DecibelWatts", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/PowerUnits.g.cs b/UnitsNet/GeneratedCode/Units/PowerUnits.g.cs new file mode 100644 index 0000000000..3f38946fa0 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/PowerUnits.g.cs @@ -0,0 +1,163 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class PowerUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BoilerHorsepower = new("BoilerHorsepower", "BoilerHorsepower", BaseUnits.Undefined, new QuantityValue(19625, 2)); + + /// + /// The unit of . + /// + public static readonly UnitOf BritishThermalUnitPerHour = new("BritishThermalUnitPerHour", "BritishThermalUnitsPerHour", BaseUnits.Undefined, new QuantityValue(52752792631, 180000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Decawatt = new("Decawatt", "Decawatts", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf Deciwatt = new("Deciwatt", "Deciwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Hectogram, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf ElectricalHorsepower = new("ElectricalHorsepower", "ElectricalHorsepower", BaseUnits.Undefined, 746); + + /// + /// The unit of . + /// + public static readonly UnitOf Femtowatt = new("Femtowatt", "Femtowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Picogram, time: DurationUnit.Second), new QuantityValue(1, 1000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GigajoulePerHour = new("GigajoulePerHour", "GigajoulesPerHour", BaseUnits.Undefined, new QuantityValue(2500000, 9)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigawatt = new("Gigawatt", "Gigawatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Millisecond), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf HydraulicHorsepower = new("HydraulicHorsepower", "HydraulicHorsepower", BaseUnits.Undefined, new QuantityValue(37284993579113511, 50000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerHour = new("JoulePerHour", "JoulesPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilobritishThermalUnitPerHour = new("KilobritishThermalUnitPerHour", "KilobritishThermalUnitsPerHour", BaseUnits.Undefined, new QuantityValue(52752792631, 180000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerHour = new("KilojoulePerHour", "KilojoulesPerHour", BaseUnits.Undefined, new QuantityValue(5, 18)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilowatt = new("Kilowatt", "Kilowatts", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MechanicalHorsepower = new("MechanicalHorsepower", "MechanicalHorsepower", BaseUnits.Undefined, new QuantityValue(149139974303117, 200000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegabritishThermalUnitPerHour = new("MegabritishThermalUnitPerHour", "MegabritishThermalUnitsPerHour", BaseUnits.Undefined, new QuantityValue(52752792631, 180000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerHour = new("MegajoulePerHour", "MegajoulesPerHour", BaseUnits.Undefined, new QuantityValue(2500, 9)); + + /// + /// The unit of . + /// + public static readonly UnitOf Megawatt = new("Megawatt", "Megawatts", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MetricHorsepower = new("MetricHorsepower", "MetricHorsepower", BaseUnits.Undefined, new QuantityValue(588399, 800)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microwatt = new("Microwatt", "Microwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillijoulePerHour = new("MillijoulePerHour", "MillijoulesPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milliwatt = new("Milliwatt", "Milliwatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanowatt = new("Nanowatt", "Nanowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Microgram, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Petawatt = new("Petawatt", "Petawatts", BaseUnits.Undefined, 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Picowatt = new("Picowatt", "Picowatts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Nanogram, time: DurationUnit.Second), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Terawatt = new("Terawatt", "Terawatts", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TonOfRefrigeration = new("TonOfRefrigeration", "TonsOfRefrigeration", BaseUnits.Undefined, new QuantityValue(3516853, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Watt = new("Watt", "Watts", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/PressureChangeRateUnits.g.cs b/UnitsNet/GeneratedCode/Units/PressureChangeRateUnits.g.cs new file mode 100644 index 0000000000..fcb921736c --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/PressureChangeRateUnits.g.cs @@ -0,0 +1,118 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class PressureChangeRateUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf AtmospherePerSecond = new("AtmospherePerSecond", "AtmospheresPerSecond", BaseUnits.Undefined, 101325); + + /// + /// The unit of . + /// + public static readonly UnitOf BarPerMinute = new("BarPerMinute", "BarsPerMinute", BaseUnits.Undefined, new QuantityValue(5000, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf BarPerSecond = new("BarPerSecond", "BarsPerSecond", BaseUnits.Undefined, 100000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopascalPerMinute = new("KilopascalPerMinute", "KilopascalsPerMinute", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), new QuantityValue(50, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopascalPerSecond = new("KilopascalPerSecond", "KilopascalsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerSquareInchPerMinute = new("KilopoundForcePerSquareInchPerMinute", "KilopoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound, time: DurationUnit.Minute), new QuantityValue(8896443230521, 77419200)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerSquareInchPerSecond = new("KilopoundForcePerSquareInchPerSecond", "KilopoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Kilopound, time: DurationUnit.Second), new QuantityValue(8896443230521, 1290320)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapascalPerMinute = new("MegapascalPerMinute", "MegapascalsPerMinute", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Minute), new QuantityValue(50000, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapascalPerSecond = new("MegapascalPerSecond", "MegapascalsPerSecond", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapoundForcePerSquareInchPerMinute = new("MegapoundForcePerSquareInchPerMinute", "MegapoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Megapound, time: DurationUnit.Minute), new QuantityValue(44482216152605, 387096)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapoundForcePerSquareInchPerSecond = new("MegapoundForcePerSquareInchPerSecond", "MegapoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Megapound, time: DurationUnit.Second), new QuantityValue(222411080763025, 32258)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillibarPerMinute = new("MillibarPerMinute", "MillibarsPerMinute", BaseUnits.Undefined, new QuantityValue(5, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillibarPerSecond = new("MillibarPerSecond", "MillibarsPerSecond", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterOfMercuryPerSecond = new("MillimeterOfMercuryPerSecond", "MillimetersOfMercuryPerSecond", BaseUnits.Undefined, new QuantityValue(26664477483, 200000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalPerMinute = new("PascalPerMinute", "PascalsPerMinute", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Minute), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf PascalPerSecond = new("PascalPerSecond", "PascalsPerSecond", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerSquareInchPerMinute = new("PoundForcePerSquareInchPerMinute", "PoundsForcePerSquareInchPerMinute", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound, time: DurationUnit.Minute), new QuantityValue(8896443230521, 77419200000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerSquareInchPerSecond = new("PoundForcePerSquareInchPerSecond", "PoundsForcePerSquareInchPerSecond", new BaseUnits(length: LengthUnit.Inch, mass: MassUnit.Pound, time: DurationUnit.Second), new QuantityValue(8896443230521, 1290320000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/PressureUnits.g.cs b/UnitsNet/GeneratedCode/Units/PressureUnits.g.cs new file mode 100644 index 0000000000..50c7b30429 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/PressureUnits.g.cs @@ -0,0 +1,278 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class PressureUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Atmosphere = new("Atmosphere", "Atmospheres", BaseUnits.Undefined, 101325); + + /// + /// The unit of . + /// + public static readonly UnitOf Bar = new("Bar", "Bars", BaseUnits.Undefined, 100000); + + /// + /// The unit of . + /// + public static readonly UnitOf Centibar = new("Centibar", "Centibars", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf CentimeterOfWaterColumn = new("CentimeterOfWaterColumn", "CentimetersOfWaterColumn", BaseUnits.Undefined, new QuantityValue(196133, 2000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Decapascal = new("Decapascal", "Decapascals", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 10); + + /// + /// The unit of . + /// + public static readonly UnitOf Decibar = new("Decibar", "Decibars", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf DynePerSquareCentimeter = new("DynePerSquareCentimeter", "DynesPerSquareCentimeter", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf FootOfHead = new("FootOfHead", "FeetOfHead", BaseUnits.Undefined, new QuantityValue(466922140449, 156250000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigapascal = new("Gigapascal", "Gigapascals", new BaseUnits(length: LengthUnit.Nanometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Hectopascal = new("Hectopascal", "Hectopascals", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf InchOfMercury = new("InchOfMercury", "InchesOfMercury", BaseUnits.Undefined, new QuantityValue(3386388640341, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf InchOfWaterColumn = new("InchOfWaterColumn", "InchesOfWaterColumn", BaseUnits.Undefined, new QuantityValue(24908891, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilobar = new("Kilobar", "Kilobars", BaseUnits.Undefined, 100000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForcePerSquareCentimeter = new("KilogramForcePerSquareCentimeter", "KilogramsForcePerSquareCentimeter", BaseUnits.Undefined, new QuantityValue(196133, 2)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForcePerSquareMeter = new("KilogramForcePerSquareMeter", "KilogramsForcePerSquareMeter", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForcePerSquareMillimeter = new("KilogramForcePerSquareMillimeter", "KilogramsForcePerSquareMillimeter", BaseUnits.Undefined, 9806650); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerSquareCentimeter = new("KilonewtonPerSquareCentimeter", "KilonewtonsPerSquareCentimeter", BaseUnits.Undefined, 10000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerSquareMeter = new("KilonewtonPerSquareMeter", "KilonewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerSquareMillimeter = new("KilonewtonPerSquareMillimeter", "KilonewtonsPerSquareMillimeter", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilopascal = new("Kilopascal", "Kilopascals", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerSquareFoot = new("KilopoundForcePerSquareFoot", "KilopoundsForcePerSquareFoot", BaseUnits.Undefined, new QuantityValue(8896443230521, 185806080)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerSquareInch = new("KilopoundForcePerSquareInch", "KilopoundsForcePerSquareInch", BaseUnits.Undefined, new QuantityValue(8896443230521, 1290320)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerSquareMil = new("KilopoundForcePerSquareMil", "KilopoundsForcePerSquareMil", BaseUnits.Undefined, new QuantityValue(111205540381512500, 16129)); + + /// + /// The unit of . + /// + public static readonly UnitOf Megabar = new("Megabar", "Megabars", BaseUnits.Undefined, 100000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonPerSquareMeter = new("MeganewtonPerSquareMeter", "MeganewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megapascal = new("Megapascal", "Megapascals", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MeterOfHead = new("MeterOfHead", "MetersOfHead", BaseUnits.Undefined, new QuantityValue(1225517429, 125000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeterOfWaterColumn = new("MeterOfWaterColumn", "MetersOfWaterColumn", BaseUnits.Undefined, new QuantityValue(196133, 20)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microbar = new("Microbar", "Microbars", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf Micropascal = new("Micropascal", "Micropascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millibar = new("Millibar", "Millibars", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramForcePerSquareFoot = new("MilligramForcePerSquareFoot", "MilligramsForcePerSquareFoot", BaseUnits.Undefined, new QuantityValue(196133, 1858060800)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilligramForcePerSquareMeter = new("MilligramForcePerSquareMeter", "MilligramsForcePerSquareMeter", BaseUnits.Undefined, new QuantityValue(196133, 20000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterOfMercury = new("MillimeterOfMercury", "MillimetersOfMercury", BaseUnits.Undefined, new QuantityValue(26664477483, 200000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterOfWaterColumn = new("MillimeterOfWaterColumn", "MillimetersOfWaterColumn", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millipascal = new("Millipascal", "Millipascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Gram, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millitorr = new("Millitorr", "Millitorrs", BaseUnits.Undefined, new QuantityValue(4053, 30400)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerSquareCentimeter = new("NewtonPerSquareCentimeter", "NewtonsPerSquareCentimeter", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerSquareMeter = new("NewtonPerSquareMeter", "NewtonsPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerSquareMillimeter = new("NewtonPerSquareMillimeter", "NewtonsPerSquareMillimeter", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Pascal = new("Pascal", "Pascals", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerSquareFoot = new("PoundForcePerSquareFoot", "PoundsForcePerSquareFoot", BaseUnits.Undefined, new QuantityValue(8896443230521, 185806080000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerSquareInch = new("PoundForcePerSquareInch", "PoundsForcePerSquareInch", BaseUnits.Undefined, new QuantityValue(8896443230521, 1290320000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerSquareMil = new("PoundForcePerSquareMil", "PoundsForcePerSquareMil", BaseUnits.Undefined, new QuantityValue(222411080763025, 32258)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundPerInchSecondSquared = new("PoundPerInchSecondSquared", "PoundsPerInchSecondSquared", BaseUnits.Undefined, new QuantityValue(8896443230521, 498177842352)); + + /// + /// The unit of . + /// + public static readonly UnitOf TechnicalAtmosphere = new("TechnicalAtmosphere", "TechnicalAtmospheres", BaseUnits.Undefined, new QuantityValue(196133, 2)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForcePerSquareCentimeter = new("TonneForcePerSquareCentimeter", "TonnesForcePerSquareCentimeter", BaseUnits.Undefined, 98066500); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForcePerSquareMeter = new("TonneForcePerSquareMeter", "TonnesForcePerSquareMeter", BaseUnits.Undefined, new QuantityValue(196133, 20)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForcePerSquareMillimeter = new("TonneForcePerSquareMillimeter", "TonnesForcePerSquareMillimeter", BaseUnits.Undefined, 9806650000); + + /// + /// The unit of . + /// + public static readonly UnitOf Torr = new("Torr", "Torrs", BaseUnits.Undefined, new QuantityValue(20265, 152)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RadiationEquivalentDoseRateUnits.g.cs b/UnitsNet/GeneratedCode/Units/RadiationEquivalentDoseRateUnits.g.cs new file mode 100644 index 0000000000..1bfa24b857 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RadiationEquivalentDoseRateUnits.g.cs @@ -0,0 +1,78 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RadiationEquivalentDoseRateUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf MicrosievertPerHour = new("MicrosievertPerHour", "MicrosievertsPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrosievertPerSecond = new("MicrosievertPerSecond", "MicrosievertsPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliroentgenEquivalentManPerHour = new("MilliroentgenEquivalentManPerHour", "MilliroentgensEquivalentManPerHour", BaseUnits.Undefined, new QuantityValue(1, 360000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillisievertPerHour = new("MillisievertPerHour", "MillisievertsPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillisievertPerSecond = new("MillisievertPerSecond", "MillisievertsPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanosievertPerHour = new("NanosievertPerHour", "NanosievertsPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanosievertPerSecond = new("NanosievertPerSecond", "NanosievertsPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf RoentgenEquivalentManPerHour = new("RoentgenEquivalentManPerHour", "RoentgensEquivalentManPerHour", BaseUnits.Undefined, new QuantityValue(1, 360000)); + + /// + /// The unit of . + /// + public static readonly UnitOf SievertPerHour = new("SievertPerHour", "SievertsPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf SievertPerSecond = new("SievertPerSecond", "SievertsPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RadiationEquivalentDoseUnits.g.cs b/UnitsNet/GeneratedCode/Units/RadiationEquivalentDoseUnits.g.cs new file mode 100644 index 0000000000..c5f487612c --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RadiationEquivalentDoseUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RadiationEquivalentDoseUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Microsievert = new("Microsievert", "Microsieverts", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliroentgenEquivalentMan = new("MilliroentgenEquivalentMan", "MilliroentgensEquivalentMan", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millisievert = new("Millisievert", "Millisieverts", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanosievert = new("Nanosievert", "Nanosieverts", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf RoentgenEquivalentMan = new("RoentgenEquivalentMan", "RoentgensEquivalentMan", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Sievert = new("Sievert", "Sieverts", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RadiationExposureUnits.g.cs b/UnitsNet/GeneratedCode/Units/RadiationExposureUnits.g.cs new file mode 100644 index 0000000000..932a2f886a --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RadiationExposureUnits.g.cs @@ -0,0 +1,68 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RadiationExposureUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CoulombPerKilogram = new("CoulombPerKilogram", "CoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrocoulombPerKilogram = new("MicrocoulombPerKilogram", "MicrocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microroentgen = new("Microroentgen", "Microroentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Microampere), new QuantityValue(129, 500000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillicoulombPerKilogram = new("MillicoulombPerKilogram", "MillicoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milliroentgen = new("Milliroentgen", "Milliroentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Milliampere), new QuantityValue(129, 500000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanocoulombPerKilogram = new("NanocoulombPerKilogram", "NanocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Nanoampere), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicocoulombPerKilogram = new("PicocoulombPerKilogram", "PicocoulombsPerKilogram", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Picoampere), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Roentgen = new("Roentgen", "Roentgens", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, current: ElectricCurrentUnit.Ampere), new QuantityValue(129, 500000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RadioactivityUnits.g.cs b/UnitsNet/GeneratedCode/Units/RadioactivityUnits.g.cs new file mode 100644 index 0000000000..d20e221df3 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RadioactivityUnits.g.cs @@ -0,0 +1,173 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RadioactivityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Becquerel = new("Becquerel", "Becquerels", new BaseUnits(time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Curie = new("Curie", "Curies", new BaseUnits(time: DurationUnit.Second), 37000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Exabecquerel = new("Exabecquerel", "Exabecquerels", BaseUnits.Undefined, 1000000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigabecquerel = new("Gigabecquerel", "Gigabecquerels", new BaseUnits(time: DurationUnit.Nanosecond), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigacurie = new("Gigacurie", "Gigacuries", new BaseUnits(time: DurationUnit.Nanosecond), new QuantityValue(new BigInteger(37) * QuantityValue.PowerOfTen(18), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Gigarutherford = new("Gigarutherford", "Gigarutherfords", new BaseUnits(time: DurationUnit.Nanosecond), 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilobecquerel = new("Kilobecquerel", "Kilobecquerels", new BaseUnits(time: DurationUnit.Millisecond), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilocurie = new("Kilocurie", "Kilocuries", new BaseUnits(time: DurationUnit.Millisecond), 37000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Kilorutherford = new("Kilorutherford", "Kilorutherfords", new BaseUnits(time: DurationUnit.Millisecond), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megabecquerel = new("Megabecquerel", "Megabecquerels", new BaseUnits(time: DurationUnit.Microsecond), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megacurie = new("Megacurie", "Megacuries", new BaseUnits(time: DurationUnit.Microsecond), 37000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Megarutherford = new("Megarutherford", "Megarutherfords", new BaseUnits(time: DurationUnit.Microsecond), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microbecquerel = new("Microbecquerel", "Microbecquerels", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microcurie = new("Microcurie", "Microcuries", BaseUnits.Undefined, 37000); + + /// + /// The unit of . + /// + public static readonly UnitOf Microrutherford = new("Microrutherford", "Microrutherfords", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf Millibecquerel = new("Millibecquerel", "Millibecquerels", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Millicurie = new("Millicurie", "Millicuries", BaseUnits.Undefined, 37000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Millirutherford = new("Millirutherford", "Millirutherfords", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanobecquerel = new("Nanobecquerel", "Nanobecquerels", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanocurie = new("Nanocurie", "Nanocuries", BaseUnits.Undefined, 37); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanorutherford = new("Nanorutherford", "Nanorutherfords", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Petabecquerel = new("Petabecquerel", "Petabecquerels", BaseUnits.Undefined, 1000000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Picobecquerel = new("Picobecquerel", "Picobecquerels", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Picocurie = new("Picocurie", "Picocuries", BaseUnits.Undefined, new QuantityValue(37, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Picorutherford = new("Picorutherford", "Picorutherfords", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Rutherford = new("Rutherford", "Rutherfords", new BaseUnits(time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Terabecquerel = new("Terabecquerel", "Terabecquerels", new BaseUnits(time: DurationUnit.Picosecond), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf Teracurie = new("Teracurie", "Teracuries", new BaseUnits(time: DurationUnit.Picosecond), new QuantityValue(new BigInteger(37) * QuantityValue.PowerOfTen(21), 1)); + + /// + /// The unit of . + /// + public static readonly UnitOf Terarutherford = new("Terarutherford", "Terarutherfords", new BaseUnits(time: DurationUnit.Picosecond), 1000000000000000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RatioChangeRateUnits.g.cs b/UnitsNet/GeneratedCode/Units/RatioChangeRateUnits.g.cs new file mode 100644 index 0000000000..df24602311 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RatioChangeRateUnits.g.cs @@ -0,0 +1,38 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RatioChangeRateUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DecimalFractionPerSecond = new("DecimalFractionPerSecond", "DecimalFractionsPerSecond", new BaseUnits(time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PercentPerSecond = new("PercentPerSecond", "PercentsPerSecond", BaseUnits.Undefined, new QuantityValue(1, 100)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RatioUnits.g.cs b/UnitsNet/GeneratedCode/Units/RatioUnits.g.cs new file mode 100644 index 0000000000..22e3161ab0 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RatioUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RatioUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DecimalFraction = new("DecimalFraction", "DecimalFractions", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerBillion = new("PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerMillion = new("PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerThousand = new("PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerTrillion = new("PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Percent = new("Percent", "Percent", BaseUnits.Undefined, new QuantityValue(1, 100)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ReciprocalAreaUnits.g.cs b/UnitsNet/GeneratedCode/Units/ReciprocalAreaUnits.g.cs new file mode 100644 index 0000000000..7193c4a5fe --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ReciprocalAreaUnits.g.cs @@ -0,0 +1,83 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ReciprocalAreaUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareCentimeter = new("InverseSquareCentimeter", "InverseSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter), 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareDecimeter = new("InverseSquareDecimeter", "InverseSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareFoot = new("InverseSquareFoot", "InverseSquareFeet", new BaseUnits(length: LengthUnit.Foot), new QuantityValue(1562500, 145161)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareInch = new("InverseSquareInch", "InverseSquareInches", new BaseUnits(length: LengthUnit.Inch), new QuantityValue(25000000, 16129)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareKilometer = new("InverseSquareKilometer", "InverseSquareKilometers", new BaseUnits(length: LengthUnit.Kilometer), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareMeter = new("InverseSquareMeter", "InverseSquareMeters", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareMicrometer = new("InverseSquareMicrometer", "InverseSquareMicrometers", new BaseUnits(length: LengthUnit.Micrometer), 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareMile = new("InverseSquareMile", "InverseSquareMiles", new BaseUnits(length: LengthUnit.Mile), new QuantityValue(15625, 40468564224)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareMillimeter = new("InverseSquareMillimeter", "InverseSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseSquareYard = new("InverseSquareYard", "InverseSquareYards", new BaseUnits(length: LengthUnit.Yard), new QuantityValue(1562500, 1306449)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseUsSurveySquareFoot = new("InverseUsSurveySquareFoot", "InverseUsSurveySquareFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), new QuantityValue(15499969, 1440000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ReciprocalLengthUnits.g.cs b/UnitsNet/GeneratedCode/Units/ReciprocalLengthUnits.g.cs new file mode 100644 index 0000000000..e339fd3e92 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ReciprocalLengthUnits.g.cs @@ -0,0 +1,78 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ReciprocalLengthUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf InverseCentimeter = new("InverseCentimeter", "InverseCentimeters", new BaseUnits(length: LengthUnit.Centimeter), 100); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseFoot = new("InverseFoot", "InverseFeet", new BaseUnits(length: LengthUnit.Foot), new QuantityValue(1250, 381)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseInch = new("InverseInch", "InverseInches", new BaseUnits(length: LengthUnit.Inch), new QuantityValue(5000, 127)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseMeter = new("InverseMeter", "InverseMeters", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseMicroinch = new("InverseMicroinch", "InverseMicroinches", new BaseUnits(length: LengthUnit.Microinch), new QuantityValue(5000000000, 127)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseMil = new("InverseMil", "InverseMils", new BaseUnits(length: LengthUnit.Mil), new QuantityValue(5000000, 127)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseMile = new("InverseMile", "InverseMiles", new BaseUnits(length: LengthUnit.Mile), new QuantityValue(125, 201168)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseMillimeter = new("InverseMillimeter", "InverseMillimeters", new BaseUnits(length: LengthUnit.Millimeter), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseUsSurveyFoot = new("InverseUsSurveyFoot", "InverseUsSurveyFeet", new BaseUnits(length: LengthUnit.UsSurveyFoot), new QuantityValue(3937, 1200)); + + /// + /// The unit of . + /// + public static readonly UnitOf InverseYard = new("InverseYard", "InverseYards", new BaseUnits(length: LengthUnit.Yard), new QuantityValue(1250, 1143)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RelativeHumidityUnits.g.cs b/UnitsNet/GeneratedCode/Units/RelativeHumidityUnits.g.cs new file mode 100644 index 0000000000..2223869424 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RelativeHumidityUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RelativeHumidityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Percent = new("Percent", "Percent", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RotationalAccelerationUnits.g.cs b/UnitsNet/GeneratedCode/Units/RotationalAccelerationUnits.g.cs new file mode 100644 index 0000000000..c8fe767bb5 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RotationalAccelerationUnits.g.cs @@ -0,0 +1,48 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RotationalAccelerationUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DegreePerSecondSquared = new("DegreePerSecondSquared", "DegreesPerSecondSquared", BaseUnits.Undefined, new QuantityValue(3141592653589793, 180000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf RadianPerSecondSquared = new("RadianPerSecondSquared", "RadiansPerSecondSquared", new BaseUnits(time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf RevolutionPerMinutePerSecond = new("RevolutionPerMinutePerSecond", "RevolutionsPerMinutePerSecond", BaseUnits.Undefined, new QuantityValue(3141592653589793, 30000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf RevolutionPerSecondSquared = new("RevolutionPerSecondSquared", "RevolutionsPerSecondSquared", BaseUnits.Undefined, new QuantityValue(3141592653589793, 500000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RotationalSpeedUnits.g.cs b/UnitsNet/GeneratedCode/Units/RotationalSpeedUnits.g.cs new file mode 100644 index 0000000000..e0fa4799e8 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RotationalSpeedUnits.g.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RotationalSpeedUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentiradianPerSecond = new("CentiradianPerSecond", "CentiradiansPerSecond", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciradianPerSecond = new("DeciradianPerSecond", "DeciradiansPerSecond", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreePerMinute = new("DegreePerMinute", "DegreesPerMinute", BaseUnits.Undefined, new QuantityValue(3141592653589793, new BigInteger(108) * QuantityValue.PowerOfTen(17))); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreePerSecond = new("DegreePerSecond", "DegreesPerSecond", BaseUnits.Undefined, new QuantityValue(3141592653589793, 180000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrodegreePerSecond = new("MicrodegreePerSecond", "MicrodegreesPerSecond", BaseUnits.Undefined, new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(22))); + + /// + /// The unit of . + /// + public static readonly UnitOf MicroradianPerSecond = new("MicroradianPerSecond", "MicroradiansPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillidegreePerSecond = new("MillidegreePerSecond", "MillidegreesPerSecond", BaseUnits.Undefined, new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(19))); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliradianPerSecond = new("MilliradianPerSecond", "MilliradiansPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanodegreePerSecond = new("NanodegreePerSecond", "NanodegreesPerSecond", BaseUnits.Undefined, new QuantityValue(3141592653589793, new BigInteger(18) * QuantityValue.PowerOfTen(25))); + + /// + /// The unit of . + /// + public static readonly UnitOf NanoradianPerSecond = new("NanoradianPerSecond", "NanoradiansPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf RadianPerSecond = new("RadianPerSecond", "RadiansPerSecond", new BaseUnits(time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf RevolutionPerMinute = new("RevolutionPerMinute", "RevolutionsPerMinute", BaseUnits.Undefined, new QuantityValue(3141592653589793, 30000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf RevolutionPerSecond = new("RevolutionPerSecond", "RevolutionsPerSecond", BaseUnits.Undefined, new QuantityValue(3141592653589793, 500000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RotationalStiffnessPerLengthUnits.g.cs b/UnitsNet/GeneratedCode/Units/RotationalStiffnessPerLengthUnits.g.cs new file mode 100644 index 0000000000..a441c2fa7a --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RotationalStiffnessPerLengthUnits.g.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RotationalStiffnessPerLengthUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonMeterPerRadianPerMeter = new("KilonewtonMeterPerRadianPerMeter", "KilonewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForceFootPerDegreesPerFoot = new("KilopoundForceFootPerDegreesPerFoot", "KilopoundForceFeetPerDegreesPerFeet", BaseUnits.Undefined, new QuantityValue(QuantityValue.PowerOfTen(7) * new BigInteger(80067989074689), 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonMeterPerRadianPerMeter = new("MeganewtonMeterPerRadianPerMeter", "MeganewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Megameter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonMeterPerRadianPerMeter = new("NewtonMeterPerRadianPerMeter", "NewtonMetersPerRadianPerMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForceFootPerDegreesPerFoot = new("PoundForceFootPerDegreesPerFoot", "PoundForceFeetPerDegreesPerFeet", BaseUnits.Undefined, new QuantityValue(800679890746890000, 3141592653589793)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/RotationalStiffnessUnits.g.cs b/UnitsNet/GeneratedCode/Units/RotationalStiffnessUnits.g.cs new file mode 100644 index 0000000000..3e00ae9bdc --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/RotationalStiffnessUnits.g.cs @@ -0,0 +1,198 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class RotationalStiffnessUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentinewtonMeterPerDegree = new("CentinewtonMeterPerDegree", "CentinewtonMetersPerDegree", BaseUnits.Undefined, new QuantityValue(1800000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentinewtonMillimeterPerDegree = new("CentinewtonMillimeterPerDegree", "CentinewtonMillimetersPerDegree", BaseUnits.Undefined, new QuantityValue(1800000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentinewtonMillimeterPerRadian = new("CentinewtonMillimeterPerRadian", "CentinewtonMillimetersPerRadian", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecanewtonMeterPerDegree = new("DecanewtonMeterPerDegree", "DecanewtonMetersPerDegree", BaseUnits.Undefined, new QuantityValue(1800000000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecanewtonMillimeterPerDegree = new("DecanewtonMillimeterPerDegree", "DecanewtonMillimetersPerDegree", BaseUnits.Undefined, new QuantityValue(1800000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecanewtonMillimeterPerRadian = new("DecanewtonMillimeterPerRadian", "DecanewtonMillimetersPerRadian", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecinewtonMeterPerDegree = new("DecinewtonMeterPerDegree", "DecinewtonMetersPerDegree", BaseUnits.Undefined, new QuantityValue(18000000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecinewtonMillimeterPerDegree = new("DecinewtonMillimeterPerDegree", "DecinewtonMillimetersPerDegree", BaseUnits.Undefined, new QuantityValue(18000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecinewtonMillimeterPerRadian = new("DecinewtonMillimeterPerRadian", "DecinewtonMillimetersPerRadian", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonMeterPerDegree = new("KilonewtonMeterPerDegree", "KilonewtonMetersPerDegree", BaseUnits.Undefined, new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(19), 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonMeterPerRadian = new("KilonewtonMeterPerRadian", "KilonewtonMetersPerRadian", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonMillimeterPerDegree = new("KilonewtonMillimeterPerDegree", "KilonewtonMillimetersPerDegree", BaseUnits.Undefined, new QuantityValue(180000000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonMillimeterPerRadian = new("KilonewtonMillimeterPerRadian", "KilonewtonMillimetersPerRadian", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForceFootPerDegrees = new("KilopoundForceFootPerDegrees", "KilopoundForceFeetPerDegrees", BaseUnits.Undefined, new QuantityValue(QuantityValue.PowerOfTen(3) * new BigInteger(244047230699652072), 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForceFootPerRadian = new("KilopoundForceFootPerRadian", "KilopoundForceFeetPerRadian", BaseUnits.Undefined, new QuantityValue(3389544870828501, 2500000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonMeterPerDegree = new("MeganewtonMeterPerDegree", "MeganewtonMetersPerDegree", BaseUnits.Undefined, new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(22), 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonMeterPerRadian = new("MeganewtonMeterPerRadian", "MeganewtonMetersPerRadian", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonMillimeterPerDegree = new("MeganewtonMillimeterPerDegree", "MeganewtonMillimetersPerDegree", BaseUnits.Undefined, new QuantityValue(new BigInteger(18) * QuantityValue.PowerOfTen(19), 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonMillimeterPerRadian = new("MeganewtonMillimeterPerRadian", "MeganewtonMillimetersPerRadian", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicronewtonMeterPerDegree = new("MicronewtonMeterPerDegree", "MicronewtonMetersPerDegree", BaseUnits.Undefined, new QuantityValue(180000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicronewtonMillimeterPerDegree = new("MicronewtonMillimeterPerDegree", "MicronewtonMillimetersPerDegree", BaseUnits.Undefined, new QuantityValue(180000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicronewtonMillimeterPerRadian = new("MicronewtonMillimeterPerRadian", "MicronewtonMillimetersPerRadian", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillinewtonMeterPerDegree = new("MillinewtonMeterPerDegree", "MillinewtonMetersPerDegree", BaseUnits.Undefined, new QuantityValue(180000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillinewtonMillimeterPerDegree = new("MillinewtonMillimeterPerDegree", "MillinewtonMillimetersPerDegree", BaseUnits.Undefined, new QuantityValue(180000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillinewtonMillimeterPerRadian = new("MillinewtonMillimeterPerRadian", "MillinewtonMillimetersPerRadian", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanonewtonMeterPerDegree = new("NanonewtonMeterPerDegree", "NanonewtonMetersPerDegree", BaseUnits.Undefined, new QuantityValue(180000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanonewtonMillimeterPerDegree = new("NanonewtonMillimeterPerDegree", "NanonewtonMillimetersPerDegree", BaseUnits.Undefined, new QuantityValue(180000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanonewtonMillimeterPerRadian = new("NanonewtonMillimeterPerRadian", "NanonewtonMillimetersPerRadian", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonMeterPerDegree = new("NewtonMeterPerDegree", "NewtonMetersPerDegree", BaseUnits.Undefined, new QuantityValue(180000000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonMeterPerRadian = new("NewtonMeterPerRadian", "NewtonMetersPerRadian", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonMillimeterPerDegree = new("NewtonMillimeterPerDegree", "NewtonMillimetersPerDegree", BaseUnits.Undefined, new QuantityValue(180000000000000, 3141592653589793)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonMillimeterPerRadian = new("NewtonMillimeterPerRadian", "NewtonMillimetersPerRadian", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForceFeetPerRadian = new("PoundForceFeetPerRadian", "PoundForceFeetPerRadian", BaseUnits.Undefined, new QuantityValue(3389544870828501, 2500000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForceFootPerDegrees = new("PoundForceFootPerDegrees", "PoundForceFeetPerDegrees", BaseUnits.Undefined, new QuantityValue(244047230699652072, 3141592653589793)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ScalarUnits.g.cs b/UnitsNet/GeneratedCode/Units/ScalarUnits.g.cs new file mode 100644 index 0000000000..4bacfd8d78 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ScalarUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ScalarUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Amount = new("Amount", "Amount", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/SolidAngleUnits.g.cs b/UnitsNet/GeneratedCode/Units/SolidAngleUnits.g.cs new file mode 100644 index 0000000000..531263f886 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/SolidAngleUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class SolidAngleUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf Steradian = new("Steradian", "Steradians", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/SpecificEnergyUnits.g.cs b/UnitsNet/GeneratedCode/Units/SpecificEnergyUnits.g.cs new file mode 100644 index 0000000000..896e8bdd36 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/SpecificEnergyUnits.g.cs @@ -0,0 +1,178 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class SpecificEnergyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerPound = new("BtuPerPound", "BtuPerPound", BaseUnits.Undefined, 2326); + + /// + /// The unit of . + /// + public static readonly UnitOf CaloriePerGram = new("CaloriePerGram", "CaloriesPerGram", BaseUnits.Undefined, 4184); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattDayPerKilogram = new("GigawattDayPerKilogram", "GigawattDaysPerKilogram", BaseUnits.Undefined, 86400000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattDayPerShortTon = new("GigawattDayPerShortTon", "GigawattDaysPerShortTon", BaseUnits.Undefined, new QuantityValue(4320000000000000000, 45359237)); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattDayPerTonne = new("GigawattDayPerTonne", "GigawattDaysPerTonne", BaseUnits.Undefined, 86400000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattHourPerKilogram = new("GigawattHourPerKilogram", "GigawattHoursPerKilogram", BaseUnits.Undefined, 3600000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf GigawattHourPerPound = new("GigawattHourPerPound", "GigawattHoursPerPound", BaseUnits.Undefined, 7936640000000); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerKilogram = new("JoulePerKilogram", "JoulesPerKilogram", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilocaloriePerGram = new("KilocaloriePerGram", "KilocaloriesPerGram", BaseUnits.Undefined, 4184000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerKilogram = new("KilojoulePerKilogram", "KilojoulesPerKilogram", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattDayPerKilogram = new("KilowattDayPerKilogram", "KilowattDaysPerKilogram", BaseUnits.Undefined, 86400000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattDayPerShortTon = new("KilowattDayPerShortTon", "KilowattDaysPerShortTon", BaseUnits.Undefined, new QuantityValue(4320000000000, 45359237)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattDayPerTonne = new("KilowattDayPerTonne", "KilowattDaysPerTonne", BaseUnits.Undefined, 86400); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattHourPerKilogram = new("KilowattHourPerKilogram", "KilowattHoursPerKilogram", BaseUnits.Undefined, 3600000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilowattHourPerPound = new("KilowattHourPerPound", "KilowattHoursPerPound", BaseUnits.Undefined, 7936640); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerKilogram = new("MegajoulePerKilogram", "MegajoulesPerKilogram", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerTonne = new("MegajoulePerTonne", "MegajoulesPerTonne", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattDayPerKilogram = new("MegawattDayPerKilogram", "MegawattDaysPerKilogram", BaseUnits.Undefined, 86400000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattDayPerShortTon = new("MegawattDayPerShortTon", "MegawattDaysPerShortTon", BaseUnits.Undefined, new QuantityValue(4320000000000000, 45359237)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattDayPerTonne = new("MegawattDayPerTonne", "MegawattDaysPerTonne", BaseUnits.Undefined, 86400000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattHourPerKilogram = new("MegawattHourPerKilogram", "MegawattHoursPerKilogram", BaseUnits.Undefined, 3600000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegawattHourPerPound = new("MegawattHourPerPound", "MegawattHoursPerPound", BaseUnits.Undefined, 7936640000); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattDayPerKilogram = new("TerawattDayPerKilogram", "TerawattDaysPerKilogram", BaseUnits.Undefined, 86400000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattDayPerShortTon = new("TerawattDayPerShortTon", "TerawattDaysPerShortTon", BaseUnits.Undefined, new QuantityValue(new BigInteger(432) * QuantityValue.PowerOfTen(19), 45359237)); + + /// + /// The unit of . + /// + public static readonly UnitOf TerawattDayPerTonne = new("TerawattDayPerTonne", "TerawattDaysPerTonne", BaseUnits.Undefined, 86400000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf WattDayPerKilogram = new("WattDayPerKilogram", "WattDaysPerKilogram", BaseUnits.Undefined, 86400); + + /// + /// The unit of . + /// + public static readonly UnitOf WattDayPerShortTon = new("WattDayPerShortTon", "WattDaysPerShortTon", BaseUnits.Undefined, new QuantityValue(4320000000, 45359237)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattDayPerTonne = new("WattDayPerTonne", "WattDaysPerTonne", BaseUnits.Undefined, new QuantityValue(432, 5)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattHourPerKilogram = new("WattHourPerKilogram", "WattHoursPerKilogram", BaseUnits.Undefined, 3600); + + /// + /// The unit of . + /// + public static readonly UnitOf WattHourPerPound = new("WattHourPerPound", "WattHoursPerPound", BaseUnits.Undefined, new QuantityValue(198416, 25)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/SpecificEntropyUnits.g.cs b/UnitsNet/GeneratedCode/Units/SpecificEntropyUnits.g.cs new file mode 100644 index 0000000000..9e76c80fb9 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/SpecificEntropyUnits.g.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class SpecificEntropyUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerPoundFahrenheit = new("BtuPerPoundFahrenheit", "BtusPerPoundFahrenheit", BaseUnits.Undefined, new QuantityValue(20934, 5)); + + /// + /// The unit of . + /// + public static readonly UnitOf CaloriePerGramKelvin = new("CaloriePerGramKelvin", "CaloriesPerGramKelvin", BaseUnits.Undefined, 4184); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerKilogramDegreeCelsius = new("JoulePerKilogramDegreeCelsius", "JoulesPerKilogramDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerKilogramKelvin = new("JoulePerKilogramKelvin", "JoulesPerKilogramKelvin", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilocaloriePerGramKelvin = new("KilocaloriePerGramKelvin", "KilocaloriesPerGramKelvin", BaseUnits.Undefined, 4184000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerKilogramDegreeCelsius = new("KilojoulePerKilogramDegreeCelsius", "KilojoulesPerKilogramDegreeCelsius", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerKilogramKelvin = new("KilojoulePerKilogramKelvin", "KilojoulesPerKilogramKelvin", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerKilogramDegreeCelsius = new("MegajoulePerKilogramDegreeCelsius", "MegajoulesPerKilogramDegreeCelsius", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerKilogramKelvin = new("MegajoulePerKilogramKelvin", "MegajoulesPerKilogramKelvin", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/SpecificFuelConsumptionUnits.g.cs b/UnitsNet/GeneratedCode/Units/SpecificFuelConsumptionUnits.g.cs new file mode 100644 index 0000000000..8c6e6d94a1 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/SpecificFuelConsumptionUnits.g.cs @@ -0,0 +1,48 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class SpecificFuelConsumptionUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GramPerKilonewtonSecond = new("GramPerKilonewtonSecond", "GramsPerKilonewtonSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerKilogramForceHour = new("KilogramPerKilogramForceHour", "KilogramsPerKilogramForceHour", BaseUnits.Undefined, new QuantityValue(50000000, 1765197)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramPerKilonewtonSecond = new("KilogramPerKilonewtonSecond", "KilogramsPerKilonewtonSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundMassPerPoundForceHour = new("PoundMassPerPoundForceHour", "PoundsMassPerPoundForceHour", BaseUnits.Undefined, new QuantityValue(50000000, 1765197)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/SpecificVolumeUnits.g.cs b/UnitsNet/GeneratedCode/Units/SpecificVolumeUnits.g.cs new file mode 100644 index 0000000000..3df49989a3 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/SpecificVolumeUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class SpecificVolumeUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CubicFootPerPound = new("CubicFootPerPound", "CubicFeetPerPound", new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound), new QuantityValue(1769802912, 28349523125)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMeterPerKilogram = new("CubicMeterPerKilogram", "CubicMetersPerKilogram", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMillimeterPerKilogram = new("CubicMillimeterPerKilogram", "CubicMillimetersPerKilogram", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram), new QuantityValue(1, 1000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/SpecificWeightUnits.g.cs b/UnitsNet/GeneratedCode/Units/SpecificWeightUnits.g.cs new file mode 100644 index 0000000000..cee5ca900c --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/SpecificWeightUnits.g.cs @@ -0,0 +1,113 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class SpecificWeightUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForcePerCubicCentimeter = new("KilogramForcePerCubicCentimeter", "KilogramsForcePerCubicCentimeter", BaseUnits.Undefined, 9806650); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForcePerCubicMeter = new("KilogramForcePerCubicMeter", "KilogramsForcePerCubicMeter", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForcePerCubicMillimeter = new("KilogramForcePerCubicMillimeter", "KilogramsForcePerCubicMillimeter", BaseUnits.Undefined, 9806650000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerCubicCentimeter = new("KilonewtonPerCubicCentimeter", "KilonewtonsPerCubicCentimeter", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerCubicMeter = new("KilonewtonPerCubicMeter", "KilonewtonsPerCubicMeter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonPerCubicMillimeter = new("KilonewtonPerCubicMillimeter", "KilonewtonsPerCubicMillimeter", BaseUnits.Undefined, 1000000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerCubicFoot = new("KilopoundForcePerCubicFoot", "KilopoundsForcePerCubicFoot", BaseUnits.Undefined, new QuantityValue(1112055403815125, 7079211648)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForcePerCubicInch = new("KilopoundForcePerCubicInch", "KilopoundsForcePerCubicInch", BaseUnits.Undefined, new QuantityValue(1112055403815125, 4096766)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonPerCubicMeter = new("MeganewtonPerCubicMeter", "MeganewtonsPerCubicMeter", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerCubicCentimeter = new("NewtonPerCubicCentimeter", "NewtonsPerCubicCentimeter", BaseUnits.Undefined, 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerCubicMeter = new("NewtonPerCubicMeter", "NewtonsPerCubicMeter", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonPerCubicMillimeter = new("NewtonPerCubicMillimeter", "NewtonsPerCubicMillimeter", BaseUnits.Undefined, 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerCubicFoot = new("PoundForcePerCubicFoot", "PoundsForcePerCubicFoot", BaseUnits.Undefined, new QuantityValue(8896443230521, 56633693184)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForcePerCubicInch = new("PoundForcePerCubicInch", "PoundsForcePerCubicInch", BaseUnits.Undefined, new QuantityValue(8896443230521, 32774128)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForcePerCubicCentimeter = new("TonneForcePerCubicCentimeter", "TonnesForcePerCubicCentimeter", BaseUnits.Undefined, 9806650000); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForcePerCubicMeter = new("TonneForcePerCubicMeter", "TonnesForcePerCubicMeter", BaseUnits.Undefined, new QuantityValue(196133, 20)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForcePerCubicMillimeter = new("TonneForcePerCubicMillimeter", "TonnesForcePerCubicMillimeter", BaseUnits.Undefined, 9806650000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/SpeedUnits.g.cs b/UnitsNet/GeneratedCode/Units/SpeedUnits.g.cs new file mode 100644 index 0000000000..ac2e03ec07 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/SpeedUnits.g.cs @@ -0,0 +1,193 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class SpeedUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentimeterPerHour = new("CentimeterPerHour", "CentimetersPerHour", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Hour), new QuantityValue(1, 360000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentimeterPerMinute = new("CentimeterPerMinute", "CentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), new QuantityValue(1, 6000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentimeterPerSecond = new("CentimeterPerSecond", "CentimetersPerSecond", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Second), new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecimeterPerMinute = new("DecimeterPerMinute", "DecimetersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), new QuantityValue(1, 600)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecimeterPerSecond = new("DecimeterPerSecond", "DecimetersPerSecond", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Second), new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf FootPerHour = new("FootPerHour", "FeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), new QuantityValue(127, 1500000)); + + /// + /// The unit of . + /// + public static readonly UnitOf FootPerMinute = new("FootPerMinute", "FeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), new QuantityValue(127, 25000)); + + /// + /// The unit of . + /// + public static readonly UnitOf FootPerSecond = new("FootPerSecond", "FeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), new QuantityValue(381, 1250)); + + /// + /// The unit of . + /// + public static readonly UnitOf InchPerHour = new("InchPerHour", "InchesPerHour", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Hour), new QuantityValue(127, 18000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf InchPerMinute = new("InchPerMinute", "InchesPerMinute", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Minute), new QuantityValue(127, 300000)); + + /// + /// The unit of . + /// + public static readonly UnitOf InchPerSecond = new("InchPerSecond", "InchesPerSecond", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), new QuantityValue(127, 5000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilometerPerHour = new("KilometerPerHour", "KilometersPerHour", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Hour), new QuantityValue(5, 18)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilometerPerMinute = new("KilometerPerMinute", "KilometersPerMinute", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Minute), new QuantityValue(50, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilometerPerSecond = new("KilometerPerSecond", "KilometersPerSecond", new BaseUnits(length: LengthUnit.Kilometer, time: DurationUnit.Second), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf Knot = new("Knot", "Knots", new BaseUnits(length: LengthUnit.NauticalMile, time: DurationUnit.Hour), new QuantityValue(463, 900)); + + /// + /// The unit of . + /// + public static readonly UnitOf Mach = new("Mach", "Mach", BaseUnits.Undefined, new QuantityValue(34029, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeterPerHour = new("MeterPerHour", "MetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeterPerMinute = new("MeterPerMinute", "MetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeterPerSecond = new("MeterPerSecond", "MetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrometerPerMinute = new("MicrometerPerMinute", "MicrometersPerMinute", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Minute), new QuantityValue(1, 60000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrometerPerSecond = new("MicrometerPerSecond", "MicrometersPerSecond", new BaseUnits(length: LengthUnit.Micrometer, time: DurationUnit.Second), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilePerHour = new("MilePerHour", "MilesPerHour", new BaseUnits(length: LengthUnit.Mile, time: DurationUnit.Hour), new QuantityValue(1397, 3125)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterPerHour = new("MillimeterPerHour", "MillimetersPerHour", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Hour), new QuantityValue(1, 3600000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterPerMinute = new("MillimeterPerMinute", "MillimetersPerMinute", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Minute), new QuantityValue(1, 60000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterPerSecond = new("MillimeterPerSecond", "MillimetersPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanometerPerMinute = new("NanometerPerMinute", "NanometersPerMinute", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Minute), new QuantityValue(1, 60000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanometerPerSecond = new("NanometerPerSecond", "NanometersPerSecond", new BaseUnits(length: LengthUnit.Nanometer, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsSurveyFootPerHour = new("UsSurveyFootPerHour", "UsSurveyFeetPerHour", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Hour), new QuantityValue(1, 11811)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsSurveyFootPerMinute = new("UsSurveyFootPerMinute", "UsSurveyFeetPerMinute", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Minute), new QuantityValue(20, 3937)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsSurveyFootPerSecond = new("UsSurveyFootPerSecond", "UsSurveyFeetPerSecond", new BaseUnits(length: LengthUnit.UsSurveyFoot, time: DurationUnit.Second), new QuantityValue(1200, 3937)); + + /// + /// The unit of . + /// + public static readonly UnitOf YardPerHour = new("YardPerHour", "YardsPerHour", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Hour), new QuantityValue(127, 500000)); + + /// + /// The unit of . + /// + public static readonly UnitOf YardPerMinute = new("YardPerMinute", "YardsPerMinute", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Minute), new QuantityValue(381, 25000)); + + /// + /// The unit of . + /// + public static readonly UnitOf YardPerSecond = new("YardPerSecond", "YardsPerSecond", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Second), new QuantityValue(1143, 1250)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/StandardVolumeFlowUnits.g.cs b/UnitsNet/GeneratedCode/Units/StandardVolumeFlowUnits.g.cs new file mode 100644 index 0000000000..714bb7754b --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/StandardVolumeFlowUnits.g.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class StandardVolumeFlowUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf StandardCubicCentimeterPerMinute = new("StandardCubicCentimeterPerMinute", "StandardCubicCentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), new QuantityValue(1, 60000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardCubicFootPerHour = new("StandardCubicFootPerHour", "StandardCubicFeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), new QuantityValue(6145149, 781250000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardCubicFootPerMinute = new("StandardCubicFootPerMinute", "StandardCubicFeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), new QuantityValue(18435447, 39062500000)); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardCubicFootPerSecond = new("StandardCubicFootPerSecond", "StandardCubicFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), new QuantityValue(55306341, 1953125000)); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardCubicMeterPerDay = new("StandardCubicMeterPerDay", "StandardCubicMetersPerDay", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Day), new QuantityValue(1, 86400)); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardCubicMeterPerHour = new("StandardCubicMeterPerHour", "StandardCubicMetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardCubicMeterPerMinute = new("StandardCubicMeterPerMinute", "StandardCubicMetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardCubicMeterPerSecond = new("StandardCubicMeterPerSecond", "StandardCubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf StandardLiterPerMinute = new("StandardLiterPerMinute", "StandardLitersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), new QuantityValue(1, 60000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/TemperatureChangeRateUnits.g.cs b/UnitsNet/GeneratedCode/Units/TemperatureChangeRateUnits.g.cs new file mode 100644 index 0000000000..917ffaeb69 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/TemperatureChangeRateUnits.g.cs @@ -0,0 +1,113 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class TemperatureChangeRateUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentidegreeCelsiusPerSecond = new("CentidegreeCelsiusPerSecond", "CentidegreesCelsiusPerSecond", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecadegreeCelsiusPerSecond = new("DecadegreeCelsiusPerSecond", "DecadegreesCelsiusPerSecond", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DecidegreeCelsiusPerSecond = new("DecidegreeCelsiusPerSecond", "DecidegreesCelsiusPerSecond", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeCelsiusPerHour = new("DegreeCelsiusPerHour", "DegreesCelsiusPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.DegreeCelsius), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeCelsiusPerMinute = new("DegreeCelsiusPerMinute", "DegreesCelsiusPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.DegreeCelsius), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeCelsiusPerSecond = new("DegreeCelsiusPerSecond", "DegreesCelsiusPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeFahrenheitPerHour = new("DegreeFahrenheitPerHour", "DegreesFahrenheitPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.DegreeFahrenheit), new QuantityValue(1, 6480)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeFahrenheitPerMinute = new("DegreeFahrenheitPerMinute", "DegreesFahrenheitPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.DegreeFahrenheit), new QuantityValue(1, 108)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeFahrenheitPerSecond = new("DegreeFahrenheitPerSecond", "DegreesFahrenheitPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.DegreeFahrenheit), new QuantityValue(5, 9)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeKelvinPerHour = new("DegreeKelvinPerHour", "DegreesKelvinPerHour", new BaseUnits(time: DurationUnit.Hour, temperature: TemperatureUnit.Kelvin), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeKelvinPerMinute = new("DegreeKelvinPerMinute", "DegreesKelvinPerMinute", new BaseUnits(time: DurationUnit.Minute, temperature: TemperatureUnit.Kelvin), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeKelvinPerSecond = new("DegreeKelvinPerSecond", "DegreesKelvinPerSecond", new BaseUnits(time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf HectodegreeCelsiusPerSecond = new("HectodegreeCelsiusPerSecond", "HectodegreesCelsiusPerSecond", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf KilodegreeCelsiusPerSecond = new("KilodegreeCelsiusPerSecond", "KilodegreesCelsiusPerSecond", new BaseUnits(time: DurationUnit.Millisecond, temperature: TemperatureUnit.DegreeCelsius), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicrodegreeCelsiusPerSecond = new("MicrodegreeCelsiusPerSecond", "MicrodegreesCelsiusPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillidegreeCelsiusPerSecond = new("MillidegreeCelsiusPerSecond", "MillidegreesCelsiusPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanodegreeCelsiusPerSecond = new("NanodegreeCelsiusPerSecond", "NanodegreesCelsiusPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/TemperatureDeltaUnits.g.cs b/UnitsNet/GeneratedCode/Units/TemperatureDeltaUnits.g.cs new file mode 100644 index 0000000000..e105793510 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/TemperatureDeltaUnits.g.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class TemperatureDeltaUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DegreeCelsius = new("DegreeCelsius", "DegreesCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeDelisle = new("DegreeDelisle", "DegreesDelisle", new BaseUnits(temperature: TemperatureUnit.DegreeDelisle), new QuantityValue(-2, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeFahrenheit = new("DegreeFahrenheit", "DegreesFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), new QuantityValue(5, 9)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeNewton = new("DegreeNewton", "DegreesNewton", new BaseUnits(temperature: TemperatureUnit.DegreeNewton), new QuantityValue(100, 33)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeRankine = new("DegreeRankine", "DegreesRankine", new BaseUnits(temperature: TemperatureUnit.DegreeRankine), new QuantityValue(5, 9)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeReaumur = new("DegreeReaumur", "DegreesReaumur", new BaseUnits(temperature: TemperatureUnit.DegreeReaumur), new QuantityValue(5, 4)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeRoemer = new("DegreeRoemer", "DegreesRoemer", new BaseUnits(temperature: TemperatureUnit.DegreeRoemer), new QuantityValue(40, 21)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kelvin = new("Kelvin", "Kelvins", new BaseUnits(temperature: TemperatureUnit.Kelvin), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MillidegreeCelsius = new("MillidegreeCelsius", "MillidegreesCelsius", BaseUnits.Undefined, new QuantityValue(1, 1000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/TemperatureGradientUnits.g.cs b/UnitsNet/GeneratedCode/Units/TemperatureGradientUnits.g.cs new file mode 100644 index 0000000000..d019192f30 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/TemperatureGradientUnits.g.cs @@ -0,0 +1,48 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class TemperatureGradientUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DegreeCelsiusPerKilometer = new("DegreeCelsiusPerKilometer", "DegreesCelsiusPerKilometer", new BaseUnits(length: LengthUnit.Kilometer, temperature: TemperatureUnit.DegreeCelsius), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeCelsiusPerMeter = new("DegreeCelsiusPerMeter", "DegreesCelsiusPerMeter", new BaseUnits(length: LengthUnit.Meter, temperature: TemperatureUnit.DegreeCelsius), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeFahrenheitPerFoot = new("DegreeFahrenheitPerFoot", "DegreesFahrenheitPerFoot", new BaseUnits(length: LengthUnit.Foot, temperature: TemperatureUnit.DegreeFahrenheit), new QuantityValue(6250, 3429)); + + /// + /// The unit of . + /// + public static readonly UnitOf KelvinPerMeter = new("KelvinPerMeter", "KelvinsPerMeter", new BaseUnits(length: LengthUnit.Meter, temperature: TemperatureUnit.Kelvin), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/TemperatureUnits.g.cs b/UnitsNet/GeneratedCode/Units/TemperatureUnits.g.cs new file mode 100644 index 0000000000..55924d2f75 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/TemperatureUnits.g.cs @@ -0,0 +1,92 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class TemperatureUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DegreeCelsius = new("DegreeCelsius", "DegreesCelsius", new BaseUnits(temperature: TemperatureUnit.DegreeCelsius), + new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(-5463, 20)), + new ConversionExpression(coefficient: 1, constantTerm: new QuantityValue(5463, 20))); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeDelisle = new("DegreeDelisle", "DegreesDelisle", new BaseUnits(temperature: TemperatureUnit.DegreeDelisle), + new ConversionExpression(coefficient: new QuantityValue(-3, 2), constantTerm: new QuantityValue(22389, 40)), + new ConversionExpression(coefficient: new QuantityValue(-2, 3), constantTerm: new QuantityValue(7463, 20))); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeFahrenheit = new("DegreeFahrenheit", "DegreesFahrenheit", new BaseUnits(temperature: TemperatureUnit.DegreeFahrenheit), + new ConversionExpression(coefficient: new QuantityValue(9, 5), constantTerm: new QuantityValue(-45967, 100)), + new ConversionExpression(coefficient: new QuantityValue(5, 9), constantTerm: new QuantityValue(45967, 180))); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeNewton = new("DegreeNewton", "DegreesNewton", new BaseUnits(temperature: TemperatureUnit.DegreeNewton), + new ConversionExpression(coefficient: new QuantityValue(33, 100), constantTerm: new QuantityValue(-180279, 2000)), + new ConversionExpression(coefficient: new QuantityValue(100, 33), constantTerm: new QuantityValue(5463, 20))); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeRankine = new("DegreeRankine", "DegreesRankine", new BaseUnits(temperature: TemperatureUnit.DegreeRankine), new QuantityValue(5, 9)); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeReaumur = new("DegreeReaumur", "DegreesReaumur", new BaseUnits(temperature: TemperatureUnit.DegreeReaumur), + new ConversionExpression(coefficient: new QuantityValue(4, 5), constantTerm: new QuantityValue(-5463, 25)), + new ConversionExpression(coefficient: new QuantityValue(5, 4), constantTerm: new QuantityValue(5463, 20))); + + /// + /// The unit of . + /// + public static readonly UnitOf DegreeRoemer = new("DegreeRoemer", "DegreesRoemer", new BaseUnits(temperature: TemperatureUnit.DegreeRoemer), + new ConversionExpression(coefficient: new QuantityValue(21, 40), constantTerm: new QuantityValue(-108723, 800)), + new ConversionExpression(coefficient: new QuantityValue(40, 21), constantTerm: new QuantityValue(36241, 140))); + + /// + /// The unit of . + /// + public static readonly UnitOf Kelvin = new("Kelvin", "Kelvins", new BaseUnits(temperature: TemperatureUnit.Kelvin), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MillidegreeCelsius = new("MillidegreeCelsius", "MillidegreesCelsius", new BaseUnits(temperature: TemperatureUnit.MillidegreeCelsius), + new ConversionExpression(coefficient: 1000, constantTerm: -273150), + new ConversionExpression(coefficient: new QuantityValue(1, 1000), constantTerm: new QuantityValue(5463, 20))); + + /// + /// The unit of . + /// + public static readonly UnitOf SolarTemperature = new("SolarTemperature", "SolarTemperatures", new BaseUnits(temperature: TemperatureUnit.SolarTemperature), 5778); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ThermalConductivityUnits.g.cs b/UnitsNet/GeneratedCode/Units/ThermalConductivityUnits.g.cs new file mode 100644 index 0000000000..96b260f2e8 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ThermalConductivityUnits.g.cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ThermalConductivityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerHourFootFahrenheit = new("BtuPerHourFootFahrenheit", "BtusPerHourFootFahrenheit", BaseUnits.Undefined, new QuantityValue(52752792631, 30480000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerSecondInchFahrenheit = new("BtuPerSecondInchFahrenheit", "BtusPerSecondInchFahrenheit", BaseUnits.Undefined, new QuantityValue(474775133679, 6350000)); + + /// + /// The unit of . + /// + public static readonly UnitOf WattPerMeterKelvin = new("WattPerMeterKelvin", "WattsPerMeterKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ThermalInsulanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ThermalInsulanceUnits.g.cs new file mode 100644 index 0000000000..62bdb20e2d --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ThermalInsulanceUnits.g.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ThermalInsulanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf HourSquareFeetDegreeFahrenheitPerBtu = new("HourSquareFeetDegreeFahrenheitPerBtu", "HourSquareFeetDegreesFahrenheitPerBtu", BaseUnits.Undefined, new QuantityValue(9290304000000, 52752792631)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareCentimeterHourDegreeCelsiusPerKilocalorie = new("SquareCentimeterHourDegreeCelsiusPerKilocalorie", "SquareCentimeterHourDegreesCelsiusPerKilocalorie", BaseUnits.Undefined, new QuantityValue(45, 523)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareCentimeterKelvinPerWatt = new("SquareCentimeterKelvinPerWatt", "SquareCentimeterKelvinsPerWatt", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMeterDegreeCelsiusPerWatt = new("SquareMeterDegreeCelsiusPerWatt", "SquareMeterDegreesCelsiusPerWatt", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMeterKelvinPerKilowatt = new("SquareMeterKelvinPerKilowatt", "SquareMeterKelvinsPerKilowatt", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMeterKelvinPerWatt = new("SquareMeterKelvinPerWatt", "SquareMeterKelvinsPerWatt", new BaseUnits(mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf SquareMillimeterKelvinPerWatt = new("SquareMillimeterKelvinPerWatt", "SquareMillimeterKelvinsPerWatt", BaseUnits.Undefined, new QuantityValue(1, 1000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/ThermalResistanceUnits.g.cs b/UnitsNet/GeneratedCode/Units/ThermalResistanceUnits.g.cs new file mode 100644 index 0000000000..3f2ae96bba --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/ThermalResistanceUnits.g.cs @@ -0,0 +1,38 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class ThermalResistanceUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf DegreeCelsiusPerWatt = new("DegreeCelsiusPerWatt", "DegreesCelsiusPerWatt", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KelvinPerWatt = new("KelvinPerWatt", "KelvinsPerWatt", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/TorqueUnits.g.cs b/UnitsNet/GeneratedCode/Units/TorqueUnits.g.cs new file mode 100644 index 0000000000..1aba56ac54 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/TorqueUnits.g.cs @@ -0,0 +1,163 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class TorqueUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf GramForceCentimeter = new("GramForceCentimeter", "GramForceCentimeters", BaseUnits.Undefined, new QuantityValue(196133, 2000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramForceMeter = new("GramForceMeter", "GramForceMeters", BaseUnits.Undefined, new QuantityValue(196133, 20000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf GramForceMillimeter = new("GramForceMillimeter", "GramForceMillimeters", BaseUnits.Undefined, new QuantityValue(196133, 20000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForceCentimeter = new("KilogramForceCentimeter", "KilogramForceCentimeters", BaseUnits.Undefined, new QuantityValue(196133, 2000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForceMeter = new("KilogramForceMeter", "KilogramForceMeters", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilogramForceMillimeter = new("KilogramForceMillimeter", "KilogramForceMillimeters", BaseUnits.Undefined, new QuantityValue(196133, 20000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonCentimeter = new("KilonewtonCentimeter", "KilonewtonCentimeters", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonMeter = new("KilonewtonMeter", "KilonewtonMeters", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilonewtonMillimeter = new("KilonewtonMillimeter", "KilonewtonMillimeters", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForceFoot = new("KilopoundForceFoot", "KilopoundForceFeet", BaseUnits.Undefined, new QuantityValue(3389544870828501, 2500000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KilopoundForceInch = new("KilopoundForceInch", "KilopoundForceInches", BaseUnits.Undefined, new QuantityValue(1129848290276167, 10000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonCentimeter = new("MeganewtonCentimeter", "MeganewtonCentimeters", BaseUnits.Undefined, 10000); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonMeter = new("MeganewtonMeter", "MeganewtonMeters", new BaseUnits(length: LengthUnit.Kilometer, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MeganewtonMillimeter = new("MeganewtonMillimeter", "MeganewtonMillimeters", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapoundForceFoot = new("MegapoundForceFoot", "MegapoundForceFeet", BaseUnits.Undefined, new QuantityValue(3389544870828501, 2500000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegapoundForceInch = new("MegapoundForceInch", "MegapoundForceInches", BaseUnits.Undefined, new QuantityValue(1129848290276167, 10000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonCentimeter = new("NewtonCentimeter", "NewtonCentimeters", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonMeter = new("NewtonMeter", "NewtonMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NewtonMillimeter = new("NewtonMillimeter", "NewtonMillimeters", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf OunceForceFoot = new("OunceForceFoot", "OunceForceFeet", BaseUnits.Undefined, new QuantityValue(3389544870828501, 40000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf OunceForceInch = new("OunceForceInch", "OunceForceInches", BaseUnits.Undefined, new QuantityValue(1129848290276167, 160000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundalFoot = new("PoundalFoot", "PoundalFeet", BaseUnits.Undefined, new QuantityValue(6584392202157, 156250000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForceFoot = new("PoundForceFoot", "PoundForceFeet", BaseUnits.Undefined, new QuantityValue(3389544870828501, 2500000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PoundForceInch = new("PoundForceInch", "PoundForceInches", BaseUnits.Undefined, new QuantityValue(1129848290276167, 10000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForceCentimeter = new("TonneForceCentimeter", "TonneForceCentimeters", BaseUnits.Undefined, new QuantityValue(196133, 2000)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForceMeter = new("TonneForceMeter", "TonneForceMeters", BaseUnits.Undefined, new QuantityValue(196133, 20)); + + /// + /// The unit of . + /// + public static readonly UnitOf TonneForceMillimeter = new("TonneForceMillimeter", "TonneForceMillimeters", BaseUnits.Undefined, new QuantityValue(196133, 20000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/TurbidityUnits.g.cs b/UnitsNet/GeneratedCode/Units/TurbidityUnits.g.cs new file mode 100644 index 0000000000..8407d51dec --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/TurbidityUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class TurbidityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf NTU = new("NTU", "NTU", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/VitaminAUnits.g.cs b/UnitsNet/GeneratedCode/Units/VitaminAUnits.g.cs new file mode 100644 index 0000000000..b4f5d4236b --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/VitaminAUnits.g.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class VitaminAUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf InternationalUnit = new("InternationalUnit", "InternationalUnits", BaseUnits.Undefined, 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/VolumeConcentrationUnits.g.cs b/UnitsNet/GeneratedCode/Units/VolumeConcentrationUnits.g.cs new file mode 100644 index 0000000000..476a9f3655 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/VolumeConcentrationUnits.g.cs @@ -0,0 +1,128 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class VolumeConcentrationUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentiliterPerLiter = new("CentiliterPerLiter", "CentilitersPerLiter", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentiliterPerMilliliter = new("CentiliterPerMilliliter", "CentilitersPerMilliliter", BaseUnits.Undefined, 10); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciliterPerLiter = new("DeciliterPerLiter", "DecilitersPerLiter", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciliterPerMilliliter = new("DeciliterPerMilliliter", "DecilitersPerMilliliter", BaseUnits.Undefined, 100); + + /// + /// The unit of . + /// + public static readonly UnitOf DecimalFraction = new("DecimalFraction", "DecimalFractions", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPerLiter = new("LiterPerLiter", "LitersPerLiter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPerMilliliter = new("LiterPerMilliliter", "LitersPerMilliliter", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MicroliterPerLiter = new("MicroliterPerLiter", "MicrolitersPerLiter", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicroliterPerMilliliter = new("MicroliterPerMilliliter", "MicrolitersPerMilliliter", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliliterPerLiter = new("MilliliterPerLiter", "MillilitersPerLiter", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliliterPerMilliliter = new("MilliliterPerMilliliter", "MillilitersPerMilliliter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf NanoliterPerLiter = new("NanoliterPerLiter", "NanolitersPerLiter", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanoliterPerMilliliter = new("NanoliterPerMilliliter", "NanolitersPerMilliliter", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerBillion = new("PartPerBillion", "PartsPerBillion", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerMillion = new("PartPerMillion", "PartsPerMillion", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerThousand = new("PartPerThousand", "PartsPerThousand", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PartPerTrillion = new("PartPerTrillion", "PartsPerTrillion", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Percent = new("Percent", "Percent", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicoliterPerLiter = new("PicoliterPerLiter", "PicolitersPerLiter", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf PicoliterPerMilliliter = new("PicoliterPerMilliliter", "PicolitersPerMilliliter", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/VolumeFlowPerAreaUnits.g.cs b/UnitsNet/GeneratedCode/Units/VolumeFlowPerAreaUnits.g.cs new file mode 100644 index 0000000000..2853f69fcd --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/VolumeFlowPerAreaUnits.g.cs @@ -0,0 +1,38 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class VolumeFlowPerAreaUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CubicFootPerMinutePerSquareFoot = new("CubicFootPerMinutePerSquareFoot", "CubicFeetPerMinutePerSquareFoot", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), new QuantityValue(127, 25000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMeterPerSecondPerSquareMeter = new("CubicMeterPerSecondPerSquareMeter", "CubicMetersPerSecondPerSquareMeter", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + } +} diff --git a/UnitsNet/GeneratedCode/Units/VolumeFlowUnits.g.cs b/UnitsNet/GeneratedCode/Units/VolumeFlowUnits.g.cs new file mode 100644 index 0000000000..07edf4921a --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/VolumeFlowUnits.g.cs @@ -0,0 +1,418 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class VolumeFlowUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf AcreFootPerDay = new("AcreFootPerDay", "AcreFeetPerDay", BaseUnits.Undefined, new QuantityValue(2230689087, 156250000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf AcreFootPerHour = new("AcreFootPerHour", "AcreFeetPerHour", BaseUnits.Undefined, new QuantityValue(6692067261, 19531250000)); + + /// + /// The unit of . + /// + public static readonly UnitOf AcreFootPerMinute = new("AcreFootPerMinute", "AcreFeetPerMinute", BaseUnits.Undefined, new QuantityValue(20076201783, 976562500)); + + /// + /// The unit of . + /// + public static readonly UnitOf AcreFootPerSecond = new("AcreFootPerSecond", "AcreFeetPerSecond", BaseUnits.Undefined, new QuantityValue(60228605349, 48828125)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentiliterPerDay = new("CentiliterPerDay", "CentilitersPerDay", BaseUnits.Undefined, new QuantityValue(1, 8640000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentiliterPerHour = new("CentiliterPerHour", "CentilitersPerHour", BaseUnits.Undefined, new QuantityValue(1, 360000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentiliterPerMinute = new("CentiliterPerMinute", "CentilitersPerMinute", BaseUnits.Undefined, new QuantityValue(1, 6000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CentiliterPerSecond = new("CentiliterPerSecond", "CentilitersPerSecond", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicCentimeterPerMinute = new("CubicCentimeterPerMinute", "CubicCentimetersPerMinute", new BaseUnits(length: LengthUnit.Centimeter, time: DurationUnit.Minute), new QuantityValue(1, 60000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicDecimeterPerMinute = new("CubicDecimeterPerMinute", "CubicDecimetersPerMinute", new BaseUnits(length: LengthUnit.Decimeter, time: DurationUnit.Minute), new QuantityValue(1, 60000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicFootPerHour = new("CubicFootPerHour", "CubicFeetPerHour", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Hour), new QuantityValue(6145149, 781250000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicFootPerMinute = new("CubicFootPerMinute", "CubicFeetPerMinute", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Minute), new QuantityValue(18435447, 39062500000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicFootPerSecond = new("CubicFootPerSecond", "CubicFeetPerSecond", new BaseUnits(length: LengthUnit.Foot, time: DurationUnit.Second), new QuantityValue(55306341, 1953125000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicInchPerMinute = new("CubicInchPerMinute", "CubicInchesPerMinute", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Minute), new QuantityValue(2048383, 7500000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicInchPerSecond = new("CubicInchPerSecond", "CubicInchesPerSecond", new BaseUnits(length: LengthUnit.Inch, time: DurationUnit.Second), new QuantityValue(2048383, 125000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMeterPerDay = new("CubicMeterPerDay", "CubicMetersPerDay", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Day), new QuantityValue(1, 86400)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMeterPerHour = new("CubicMeterPerHour", "CubicMetersPerHour", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Hour), new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMeterPerMinute = new("CubicMeterPerMinute", "CubicMetersPerMinute", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Minute), new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMeterPerSecond = new("CubicMeterPerSecond", "CubicMetersPerSecond", new BaseUnits(length: LengthUnit.Meter, time: DurationUnit.Second), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMillimeterPerMinute = new("CubicMillimeterPerMinute", "CubicMillimetersPerMinute", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Minute), new QuantityValue(1, 60000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMillimeterPerSecond = new("CubicMillimeterPerSecond", "CubicMillimetersPerSecond", new BaseUnits(length: LengthUnit.Millimeter, time: DurationUnit.Second), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicYardPerDay = new("CubicYardPerDay", "CubicYardsPerDay", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Day), new QuantityValue(55306341, 6250000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicYardPerHour = new("CubicYardPerHour", "CubicYardsPerHour", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Hour), new QuantityValue(165919023, 781250000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicYardPerMinute = new("CubicYardPerMinute", "CubicYardsPerMinute", new BaseUnits(length: LengthUnit.Yard, time: DurationUnit.Minute), new QuantityValue(497757069, 39062500000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicYardPerSecond = new("CubicYardPerSecond", "CubicYardsPerSecond", BaseUnits.Undefined, new QuantityValue(1493271207, 1953125000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecaliterPerDay = new("DecaliterPerDay", "DecalitersPerDay", BaseUnits.Undefined, new QuantityValue(1, 8640000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecaliterPerHour = new("DecaliterPerHour", "DecalitersPerHour", BaseUnits.Undefined, new QuantityValue(1, 360000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecaliterPerMinute = new("DecaliterPerMinute", "DecalitersPerMinute", BaseUnits.Undefined, new QuantityValue(1, 6000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecaliterPerSecond = new("DecaliterPerSecond", "DecalitersPerSecond", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciliterPerDay = new("DeciliterPerDay", "DecilitersPerDay", BaseUnits.Undefined, new QuantityValue(1, 864000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciliterPerHour = new("DeciliterPerHour", "DecilitersPerHour", BaseUnits.Undefined, new QuantityValue(1, 36000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciliterPerMinute = new("DeciliterPerMinute", "DecilitersPerMinute", BaseUnits.Undefined, new QuantityValue(1, 600000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciliterPerSecond = new("DeciliterPerSecond", "DecilitersPerSecond", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf HectoliterPerDay = new("HectoliterPerDay", "HectolitersPerDay", BaseUnits.Undefined, new QuantityValue(1, 864000)); + + /// + /// The unit of . + /// + public static readonly UnitOf HectoliterPerHour = new("HectoliterPerHour", "HectolitersPerHour", BaseUnits.Undefined, new QuantityValue(1, 36000)); + + /// + /// The unit of . + /// + public static readonly UnitOf HectoliterPerMinute = new("HectoliterPerMinute", "HectolitersPerMinute", BaseUnits.Undefined, new QuantityValue(1, 600)); + + /// + /// The unit of . + /// + public static readonly UnitOf HectoliterPerSecond = new("HectoliterPerSecond", "HectolitersPerSecond", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf KiloliterPerDay = new("KiloliterPerDay", "KilolitersPerDay", BaseUnits.Undefined, new QuantityValue(1, 86400)); + + /// + /// The unit of . + /// + public static readonly UnitOf KiloliterPerHour = new("KiloliterPerHour", "KilolitersPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600)); + + /// + /// The unit of . + /// + public static readonly UnitOf KiloliterPerMinute = new("KiloliterPerMinute", "KilolitersPerMinute", BaseUnits.Undefined, new QuantityValue(1, 60)); + + /// + /// The unit of . + /// + public static readonly UnitOf KiloliterPerSecond = new("KiloliterPerSecond", "KilolitersPerSecond", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilousGallonPerMinute = new("KilousGallonPerMinute", "KilousGallonsPerMinute", BaseUnits.Undefined, new QuantityValue(157725491, 2500000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPerDay = new("LiterPerDay", "LitersPerDay", BaseUnits.Undefined, new QuantityValue(1, 86400000)); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPerHour = new("LiterPerHour", "LitersPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600000)); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPerMinute = new("LiterPerMinute", "LitersPerMinute", BaseUnits.Undefined, new QuantityValue(1, 60000)); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPerSecond = new("LiterPerSecond", "LitersPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaliterPerDay = new("MegaliterPerDay", "MegalitersPerDay", BaseUnits.Undefined, new QuantityValue(5, 432)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaliterPerHour = new("MegaliterPerHour", "MegalitersPerHour", BaseUnits.Undefined, new QuantityValue(5, 18)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaliterPerMinute = new("MegaliterPerMinute", "MegalitersPerMinute", BaseUnits.Undefined, new QuantityValue(50, 3)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaliterPerSecond = new("MegaliterPerSecond", "MegalitersPerSecond", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaukGallonPerDay = new("MegaukGallonPerDay", "MegaukGallonsPerDay", BaseUnits.Undefined, new QuantityValue(454609, 8640000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaukGallonPerSecond = new("MegaukGallonPerSecond", "MegaukGallonsPerSecond", BaseUnits.Undefined, new QuantityValue(454609, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegausGallonPerDay = new("MegausGallonPerDay", "MegausGallonsPerDay", BaseUnits.Undefined, new QuantityValue(157725491, 3600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicroliterPerDay = new("MicroliterPerDay", "MicrolitersPerDay", BaseUnits.Undefined, new QuantityValue(1, 86400000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicroliterPerHour = new("MicroliterPerHour", "MicrolitersPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicroliterPerMinute = new("MicroliterPerMinute", "MicrolitersPerMinute", BaseUnits.Undefined, new QuantityValue(1, 60000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MicroliterPerSecond = new("MicroliterPerSecond", "MicrolitersPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliliterPerDay = new("MilliliterPerDay", "MillilitersPerDay", BaseUnits.Undefined, new QuantityValue(1, 86400000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliliterPerHour = new("MilliliterPerHour", "MillilitersPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliliterPerMinute = new("MilliliterPerMinute", "MillilitersPerMinute", BaseUnits.Undefined, new QuantityValue(1, 60000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MilliliterPerSecond = new("MilliliterPerSecond", "MillilitersPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillionUsGallonPerDay = new("MillionUsGallonPerDay", "MillionUsGallonsPerDay", BaseUnits.Undefined, new QuantityValue(157725491, 3600000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanoliterPerDay = new("NanoliterPerDay", "NanolitersPerDay", BaseUnits.Undefined, new QuantityValue(1, 86400000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanoliterPerHour = new("NanoliterPerHour", "NanolitersPerHour", BaseUnits.Undefined, new QuantityValue(1, 3600000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanoliterPerMinute = new("NanoliterPerMinute", "NanolitersPerMinute", BaseUnits.Undefined, new QuantityValue(1, 60000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf NanoliterPerSecond = new("NanoliterPerSecond", "NanolitersPerSecond", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf OilBarrelPerDay = new("OilBarrelPerDay", "OilBarrelsPerDay", BaseUnits.Undefined, new QuantityValue(1104078437, 600000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf OilBarrelPerHour = new("OilBarrelPerHour", "OilBarrelsPerHour", BaseUnits.Undefined, new QuantityValue(1104078437, 25000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf OilBarrelPerMinute = new("OilBarrelPerMinute", "OilBarrelsPerMinute", BaseUnits.Undefined, new QuantityValue(3312235311, 1250000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf OilBarrelPerSecond = new("OilBarrelPerSecond", "OilBarrelsPerSecond", BaseUnits.Undefined, new QuantityValue(9936705933, 62500000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UkGallonPerDay = new("UkGallonPerDay", "UkGallonsPerDay", BaseUnits.Undefined, new QuantityValue(454609, 8640000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UkGallonPerHour = new("UkGallonPerHour", "UkGallonsPerHour", BaseUnits.Undefined, new QuantityValue(454609, 360000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UkGallonPerMinute = new("UkGallonPerMinute", "UkGallonsPerMinute", BaseUnits.Undefined, new QuantityValue(454609, 6000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UkGallonPerSecond = new("UkGallonPerSecond", "UkGallonsPerSecond", BaseUnits.Undefined, new QuantityValue(454609, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsGallonPerDay = new("UsGallonPerDay", "UsGallonsPerDay", BaseUnits.Undefined, new QuantityValue(157725491, 3600000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsGallonPerHour = new("UsGallonPerHour", "UsGallonsPerHour", BaseUnits.Undefined, new QuantityValue(157725491, 150000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsGallonPerMinute = new("UsGallonPerMinute", "UsGallonsPerMinute", BaseUnits.Undefined, new QuantityValue(157725491, 2500000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsGallonPerSecond = new("UsGallonPerSecond", "UsGallonsPerSecond", BaseUnits.Undefined, new QuantityValue(473176473, 125000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/VolumePerLengthUnits.g.cs b/UnitsNet/GeneratedCode/Units/VolumePerLengthUnits.g.cs new file mode 100644 index 0000000000..86f13e6ae2 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/VolumePerLengthUnits.g.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class VolumePerLengthUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CubicMeterPerMeter = new("CubicMeterPerMeter", "CubicMetersPerMeter", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicYardPerFoot = new("CubicYardPerFoot", "CubicYardsPerFoot", BaseUnits.Undefined, new QuantityValue(3919347, 1562500)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicYardPerUsSurveyFoot = new("CubicYardPerUsSurveyFoot", "CubicYardsPerUsSurveyFoot", BaseUnits.Undefined, new QuantityValue(1959669580653, 781250000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ImperialGallonPerMile = new("ImperialGallonPerMile", "ImperialGallonsPerMile", BaseUnits.Undefined, new QuantityValue(454609, 160934400000)); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPerKilometer = new("LiterPerKilometer", "LitersPerKilometer", BaseUnits.Undefined, new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPerMeter = new("LiterPerMeter", "LitersPerMeter", new BaseUnits(length: LengthUnit.Decimeter), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf LiterPerMillimeter = new("LiterPerMillimeter", "LitersPerMillimeter", BaseUnits.Undefined, 1); + + /// + /// The unit of . + /// + public static readonly UnitOf OilBarrelPerFoot = new("OilBarrelPerFoot", "OilBarrelsPerFoot", BaseUnits.Undefined, new QuantityValue(26080593, 50000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsGallonPerMile = new("UsGallonPerMile", "UsGallonsPerMile", BaseUnits.Undefined, new QuantityValue(112903, 48000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/VolumeUnits.g.cs b/UnitsNet/GeneratedCode/Units/VolumeUnits.g.cs new file mode 100644 index 0000000000..4c762b9507 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/VolumeUnits.g.cs @@ -0,0 +1,298 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class VolumeUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf AcreFoot = new("AcreFoot", "AcreFeet", BaseUnits.Undefined, new QuantityValue(60228605349, 48828125)); + + /// + /// The unit of . + /// + public static readonly UnitOf AuTablespoon = new("AuTablespoon", "AuTablespoons", BaseUnits.Undefined, new QuantityValue(1, 50000)); + + /// + /// The unit of . + /// + public static readonly UnitOf BoardFoot = new("BoardFoot", "BoardFeet", BaseUnits.Undefined, new QuantityValue(18435447, 7812500000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Centiliter = new("Centiliter", "Centiliters", BaseUnits.Undefined, new QuantityValue(1, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicCentimeter = new("CubicCentimeter", "CubicCentimeters", new BaseUnits(length: LengthUnit.Centimeter), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicDecimeter = new("CubicDecimeter", "CubicDecimeters", new BaseUnits(length: LengthUnit.Decimeter), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicFoot = new("CubicFoot", "CubicFeet", new BaseUnits(length: LengthUnit.Foot), new QuantityValue(55306341, 1953125000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicHectometer = new("CubicHectometer", "CubicHectometers", new BaseUnits(length: LengthUnit.Hectometer), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicInch = new("CubicInch", "CubicInches", new BaseUnits(length: LengthUnit.Inch), new QuantityValue(2048383, 125000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicKilometer = new("CubicKilometer", "CubicKilometers", new BaseUnits(length: LengthUnit.Kilometer), 1000000000); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMeter = new("CubicMeter", "CubicMeters", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMicrometer = new("CubicMicrometer", "CubicMicrometers", new BaseUnits(length: LengthUnit.Micrometer), new QuantityValue(1, 1000000000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMile = new("CubicMile", "CubicMiles", new BaseUnits(length: LengthUnit.Mile), new QuantityValue(8140980127813632, 1953125)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicMillimeter = new("CubicMillimeter", "CubicMillimeters", new BaseUnits(length: LengthUnit.Millimeter), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf CubicYard = new("CubicYard", "CubicYards", new BaseUnits(length: LengthUnit.Yard), new QuantityValue(1493271207, 1953125000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Decaliter = new("Decaliter", "Decaliters", BaseUnits.Undefined, new QuantityValue(1, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecausGallon = new("DecausGallon", "DecausGallons", BaseUnits.Undefined, new QuantityValue(473176473, 12500000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Deciliter = new("Deciliter", "Deciliters", BaseUnits.Undefined, new QuantityValue(1, 10000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DeciusGallon = new("DeciusGallon", "DeciusGallons", BaseUnits.Undefined, new QuantityValue(473176473, 1250000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Hectoliter = new("Hectoliter", "Hectoliters", BaseUnits.Undefined, new QuantityValue(1, 10)); + + /// + /// The unit of . + /// + public static readonly UnitOf HectousGallon = new("HectousGallon", "HectousGallons", BaseUnits.Undefined, new QuantityValue(473176473, 1250000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf HundredCubicFoot = new("HundredCubicFoot", "HundredCubicFeet", BaseUnits.Undefined, new QuantityValue(55306341, 19531250)); + + /// + /// The unit of . + /// + public static readonly UnitOf ImperialBeerBarrel = new("ImperialBeerBarrel", "ImperialBeerBarrels", BaseUnits.Undefined, new QuantityValue(4091481, 25000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ImperialGallon = new("ImperialGallon", "ImperialGallons", BaseUnits.Undefined, new QuantityValue(454609, 100000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ImperialOunce = new("ImperialOunce", "ImperialOunces", BaseUnits.Undefined, new QuantityValue(454609, 16000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ImperialPint = new("ImperialPint", "ImperialPints", BaseUnits.Undefined, new QuantityValue(454609, 800000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ImperialQuart = new("ImperialQuart", "ImperialQuarts", BaseUnits.Undefined, new QuantityValue(454609, 400000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf KiloimperialGallon = new("KiloimperialGallon", "KiloimperialGallons", BaseUnits.Undefined, new QuantityValue(454609, 100000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Kiloliter = new("Kiloliter", "Kiloliters", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilousGallon = new("KilousGallon", "KilousGallons", BaseUnits.Undefined, new QuantityValue(473176473, 125000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Liter = new("Liter", "Liters", new BaseUnits(length: LengthUnit.Decimeter), new QuantityValue(1, 1000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MegaimperialGallon = new("MegaimperialGallon", "MegaimperialGallons", BaseUnits.Undefined, new QuantityValue(454609, 100)); + + /// + /// The unit of . + /// + public static readonly UnitOf Megaliter = new("Megaliter", "Megaliters", new BaseUnits(length: LengthUnit.Decameter), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegausGallon = new("MegausGallon", "MegausGallons", BaseUnits.Undefined, new QuantityValue(473176473, 125000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MetricCup = new("MetricCup", "MetricCups", BaseUnits.Undefined, new QuantityValue(1, 4000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MetricTablespoon = new("MetricTablespoon", "MetricTablespoons", BaseUnits.Undefined, new QuantityValue(3, 200000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MetricTeaspoon = new("MetricTeaspoon", "MetricTeaspoons", BaseUnits.Undefined, new QuantityValue(1, 200000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Microliter = new("Microliter", "Microliters", new BaseUnits(length: LengthUnit.Millimeter), new QuantityValue(1, 1000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf Milliliter = new("Milliliter", "Milliliters", new BaseUnits(length: LengthUnit.Centimeter), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf MillionCubicFoot = new("MillionCubicFoot", "MillionCubicFeet", BaseUnits.Undefined, new QuantityValue(442450728, 15625)); + + /// + /// The unit of . + /// + public static readonly UnitOf Nanoliter = new("Nanoliter", "Nanoliters", BaseUnits.Undefined, new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf OilBarrel = new("OilBarrel", "OilBarrels", BaseUnits.Undefined, new QuantityValue(9936705933, 62500000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf ThousandCubicFoot = new("ThousandCubicFoot", "ThousandCubicFeet", BaseUnits.Undefined, new QuantityValue(55306341, 1953125)); + + /// + /// The unit of . + /// + public static readonly UnitOf ThousandCubicMeter = new("ThousandCubicMeter", "ThousandCubicMeters", BaseUnits.Undefined, 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf UkTablespoon = new("UkTablespoon", "UkTablespoons", BaseUnits.Undefined, new QuantityValue(3, 200000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsBeerBarrel = new("UsBeerBarrel", "UsBeerBarrels", BaseUnits.Undefined, new QuantityValue(14668470663, 125000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsCustomaryCup = new("UsCustomaryCup", "UsCustomaryCups", BaseUnits.Undefined, new QuantityValue(473176473, 2000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsGallon = new("UsGallon", "UsGallons", BaseUnits.Undefined, new QuantityValue(473176473, 125000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsLegalCup = new("UsLegalCup", "UsLegalCups", BaseUnits.Undefined, new QuantityValue(3, 12500)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsOunce = new("UsOunce", "UsOunces", BaseUnits.Undefined, new QuantityValue(473176473, 16000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsPint = new("UsPint", "UsPints", BaseUnits.Undefined, new QuantityValue(473176473, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsQuart = new("UsQuart", "UsQuarts", BaseUnits.Undefined, new QuantityValue(473176473, 500000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsTablespoon = new("UsTablespoon", "UsTablespoons", BaseUnits.Undefined, new QuantityValue(473176473, 32000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf UsTeaspoon = new("UsTeaspoon", "UsTeaspoons", BaseUnits.Undefined, new QuantityValue(157725491, 32000000000000)); + } +} diff --git a/UnitsNet/GeneratedCode/Units/VolumetricHeatCapacityUnits.g.cs b/UnitsNet/GeneratedCode/Units/VolumetricHeatCapacityUnits.g.cs new file mode 100644 index 0000000000..4496cbb18b --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/VolumetricHeatCapacityUnits.g.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class VolumetricHeatCapacityUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf BtuPerCubicFootDegreeFahrenheit = new("BtuPerCubicFootDegreeFahrenheit", "BtusPerCubicFootDegreeFahrenheit", BaseUnits.Undefined, new QuantityValue(6594099078875, 98322384)); + + /// + /// The unit of . + /// + public static readonly UnitOf CaloriePerCubicCentimeterDegreeCelsius = new("CaloriePerCubicCentimeterDegreeCelsius", "CaloriesPerCubicCentimeterDegreeCelsius", BaseUnits.Undefined, 4184000); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerCubicMeterDegreeCelsius = new("JoulePerCubicMeterDegreeCelsius", "JoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf JoulePerCubicMeterKelvin = new("JoulePerCubicMeterKelvin", "JoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf KilocaloriePerCubicCentimeterDegreeCelsius = new("KilocaloriePerCubicCentimeterDegreeCelsius", "KilocaloriesPerCubicCentimeterDegreeCelsius", BaseUnits.Undefined, 4184000000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerCubicMeterDegreeCelsius = new("KilojoulePerCubicMeterDegreeCelsius", "KilojoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf KilojoulePerCubicMeterKelvin = new("KilojoulePerCubicMeterKelvin", "KilojoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerCubicMeterDegreeCelsius = new("MegajoulePerCubicMeterDegreeCelsius", "MegajoulesPerCubicMeterDegreeCelsius", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.DegreeCelsius), 1000000); + + /// + /// The unit of . + /// + public static readonly UnitOf MegajoulePerCubicMeterKelvin = new("MegajoulePerCubicMeterKelvin", "MegajoulesPerCubicMeterKelvin", new BaseUnits(length: LengthUnit.Micrometer, mass: MassUnit.Kilogram, time: DurationUnit.Second, temperature: TemperatureUnit.Kelvin), 1000000); + } +} diff --git a/UnitsNet/GeneratedCode/Units/WarpingMomentOfInertiaUnits.g.cs b/UnitsNet/GeneratedCode/Units/WarpingMomentOfInertiaUnits.g.cs new file mode 100644 index 0000000000..f2b5bc41e3 --- /dev/null +++ b/UnitsNet/GeneratedCode/Units/WarpingMomentOfInertiaUnits.g.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by \generate-code.bat. +// +// Changes to this file will be lost when the code is regenerated. +// The build server regenerates the code before each build and a pre-build +// step will regenerate the code on each local build. +// +// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. +// +// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. +// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. +// +// +//------------------------------------------------------------------------------ + +// Licensed under MIT No Attribution, see LICENSE file at the root. +// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. + +// ReSharper disable once CheckNamespace +namespace UnitsNet.Units +{ + /// + /// The units of , such as . + /// + public static class WarpingMomentOfInertiaUnits + { + /// + /// The unit of . + /// + public static readonly UnitOf CentimeterToTheSixth = new("CentimeterToTheSixth", "CentimetersToTheSixth", new BaseUnits(length: LengthUnit.Centimeter), new QuantityValue(1, 1000000000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf DecimeterToTheSixth = new("DecimeterToTheSixth", "DecimetersToTheSixth", new BaseUnits(length: LengthUnit.Decimeter), new QuantityValue(1, 1000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf FootToTheSixth = new("FootToTheSixth", "FeetToTheSixth", new BaseUnits(length: LengthUnit.Foot), new QuantityValue(3058791354808281, 3814697265625000000)); + + /// + /// The unit of . + /// + public static readonly UnitOf InchToTheSixth = new("InchToTheSixth", "InchesToTheSixth", new BaseUnits(length: LengthUnit.Inch), new QuantityValue(4195872914689, new BigInteger(15625) * QuantityValue.PowerOfTen(18))); + + /// + /// The unit of . + /// + public static readonly UnitOf MeterToTheSixth = new("MeterToTheSixth", "MetersToTheSixth", new BaseUnits(length: LengthUnit.Meter), 1); + + /// + /// The unit of . + /// + public static readonly UnitOf MillimeterToTheSixth = new("MillimeterToTheSixth", "MillimetersToTheSixth", new BaseUnits(length: LengthUnit.Millimeter), new QuantityValue(1, 1000000000000000000)); + } +}