diff --git a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs index 985a8f5ebb..0b2f661d03 100644 --- a/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs +++ b/CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs @@ -227,63 +227,18 @@ 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) { - 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($@" + 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/Docs/extending-with-custom-units.md b/Docs/extending-with-custom-units.md index cfbba73989..8e77cd625d 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 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 +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 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? Currently, no. diff --git a/UnitsNet.Tests/UnitOfTests.cs b/UnitsNet.Tests/UnitOfTests.cs new file mode 100644 index 0000000000..781792fcfa --- /dev/null +++ b/UnitsNet.Tests/UnitOfTests.cs @@ -0,0 +1,174 @@ +// 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.Linq; +using System.Reflection; +using UnitsNet.Units; +using Xunit; + +namespace UnitsNet.Tests; + +public class UnitOfTests +{ + // 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: 1.8, constantTerm: -459.67), + new ConversionExpression(coefficient: QuantityValue.FromTerms(5, 9), constantTerm: QuantityValue.FromTerms(45967, 180))); + + [Fact] + 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)); + } + + [Fact] + 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_WhenNotGiven_IsUndefined() + { + 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, footPerDay.BaseUnits); + Assert.Equal(baseUnits, ((IUnitDefinition)footPerDay).BaseUnits); + Assert.Equal(new QuantityValue(86400), Speed.FromFeetPerSecond(1).As(footPerDay)); + } + + [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(402.336m, length.Value); + } + + [Fact] + public void From_AffineUnit_ReturnsQuantityInBaseUnit() + { + Temperature temperature = Temperature.Info.From(98.6, Fahrenheit); + + Assert.Equal(Temperature.BaseUnit, temperature.Unit); + Assert.Equal(Temperature.FromDegreesFahrenheit(98.6).Kelvins, temperature.Value); + } + + [Fact] + 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() + { + Assert.Throws(() => Length.Info.From(1, (UnitOf)null!)); + } +} 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 new file mode 100644 index 0000000000..ab00551d37 --- /dev/null +++ b/UnitsNet/CustomCode/QuantityInfo/Units/UnitOf.cs @@ -0,0 +1,137 @@ +// 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 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 . +public sealed class UnitOf : UnitOf + 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 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 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) + { + } + + /// + /// 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 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, 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) + : 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)); + 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; } + + /// + public ConversionExpression ConversionFromBase { get; } + + /// + public ConversionExpression ConversionToBase { get; } + + /// + /// The base units the unit is made of, or if it isn't made of the base + /// units of UnitsNet, such as a furlong. + /// + public BaseUnits BaseUnits { 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..dbf26d391d 100644 --- a/UnitsNet/Extensions/QuantityExtensions.cs +++ b/UnitsNet/Extensions/QuantityExtensions.cs @@ -112,6 +112,26 @@ 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)); + UnitInfo fromUnit = quantity.GetUnitInfo(); + if (fromUnit.QuantityInfo.FindUnitInfo(unit) is { } toUnit) + { + return toUnit.GetValueFrom(quantity.Value, fromUnit); + } + + return unit.ConversionFromBase.Evaluate(fromUnit.ConvertValueToBaseUnit(quantity.Value)); + } + /// /// The quantity to convert. /// The target unit. diff --git a/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs b/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs index f4fd3d7330..d5037b5f2f 100644 --- a/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs @@ -120,55 +120,26 @@ 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, AbsorbedDoseOfIonizingRadiationUnits.Centigray), + new (AbsorbedDoseOfIonizingRadiationUnit.Decigray, AbsorbedDoseOfIonizingRadiationUnits.Decigray), + new (AbsorbedDoseOfIonizingRadiationUnit.Femtogray, AbsorbedDoseOfIonizingRadiationUnits.Femtogray), + new (AbsorbedDoseOfIonizingRadiationUnit.Gigagray, AbsorbedDoseOfIonizingRadiationUnits.Gigagray), + new (AbsorbedDoseOfIonizingRadiationUnit.Gray, AbsorbedDoseOfIonizingRadiationUnits.Gray), + new (AbsorbedDoseOfIonizingRadiationUnit.Kilogray, AbsorbedDoseOfIonizingRadiationUnits.Kilogray), + new (AbsorbedDoseOfIonizingRadiationUnit.Kilorad, AbsorbedDoseOfIonizingRadiationUnits.Kilorad), + new (AbsorbedDoseOfIonizingRadiationUnit.Megagray, AbsorbedDoseOfIonizingRadiationUnits.Megagray), + new (AbsorbedDoseOfIonizingRadiationUnit.Megarad, AbsorbedDoseOfIonizingRadiationUnits.Megarad), + new (AbsorbedDoseOfIonizingRadiationUnit.Microgray, AbsorbedDoseOfIonizingRadiationUnits.Microgray), + new (AbsorbedDoseOfIonizingRadiationUnit.Milligray, AbsorbedDoseOfIonizingRadiationUnits.Milligray), + new (AbsorbedDoseOfIonizingRadiationUnit.Millirad, AbsorbedDoseOfIonizingRadiationUnits.Millirad), + new (AbsorbedDoseOfIonizingRadiationUnit.Nanogray, AbsorbedDoseOfIonizingRadiationUnits.Nanogray), + new (AbsorbedDoseOfIonizingRadiationUnit.Petagray, AbsorbedDoseOfIonizingRadiationUnits.Petagray), + new (AbsorbedDoseOfIonizingRadiationUnit.Picogray, AbsorbedDoseOfIonizingRadiationUnits.Picogray), + new (AbsorbedDoseOfIonizingRadiationUnit.Rad, AbsorbedDoseOfIonizingRadiationUnits.Rad), + new (AbsorbedDoseOfIonizingRadiationUnit.Teragray, AbsorbedDoseOfIonizingRadiationUnits.Teragray), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs index debceb5f65..aa1e2c31ac 100644 --- a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs @@ -123,46 +123,23 @@ 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, AccelerationUnits.CentimeterPerSecondSquared), + new (AccelerationUnit.DecimeterPerSecondSquared, AccelerationUnits.DecimeterPerSecondSquared), + new (AccelerationUnit.FootPerSecondSquared, AccelerationUnits.FootPerSecondSquared), + new (AccelerationUnit.InchPerSecondSquared, AccelerationUnits.InchPerSecondSquared), + new (AccelerationUnit.KilometerPerSecondSquared, AccelerationUnits.KilometerPerSecondSquared), + new (AccelerationUnit.KnotPerHour, AccelerationUnits.KnotPerHour), + new (AccelerationUnit.KnotPerMinute, AccelerationUnits.KnotPerMinute), + new (AccelerationUnit.KnotPerSecond, AccelerationUnits.KnotPerSecond), + new (AccelerationUnit.MeterPerSecondSquared, AccelerationUnits.MeterPerSecondSquared), + new (AccelerationUnit.MicrometerPerSecondSquared, AccelerationUnits.MicrometerPerSecondSquared), + new (AccelerationUnit.MillimeterPerSecondSquared, AccelerationUnits.MillimeterPerSecondSquared), + new (AccelerationUnit.MillistandardGravity, AccelerationUnits.MillistandardGravity), + new (AccelerationUnit.NanometerPerSecondSquared, AccelerationUnits.NanometerPerSecondSquared), + new (AccelerationUnit.StandardGravity, AccelerationUnits.StandardGravity), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs index 11f278d0af..0992af4090 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.g.cs @@ -122,55 +122,26 @@ 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, AmountOfSubstanceUnits.Centimole), + new (AmountOfSubstanceUnit.CentipoundMole, AmountOfSubstanceUnits.CentipoundMole), + new (AmountOfSubstanceUnit.Decimole, AmountOfSubstanceUnits.Decimole), + new (AmountOfSubstanceUnit.DecipoundMole, AmountOfSubstanceUnits.DecipoundMole), + new (AmountOfSubstanceUnit.Femtomole, AmountOfSubstanceUnits.Femtomole), + new (AmountOfSubstanceUnit.Kilomole, AmountOfSubstanceUnits.Kilomole), + new (AmountOfSubstanceUnit.KilopoundMole, AmountOfSubstanceUnits.KilopoundMole), + new (AmountOfSubstanceUnit.Megamole, AmountOfSubstanceUnits.Megamole), + new (AmountOfSubstanceUnit.Micromole, AmountOfSubstanceUnits.Micromole), + new (AmountOfSubstanceUnit.MicropoundMole, AmountOfSubstanceUnits.MicropoundMole), + new (AmountOfSubstanceUnit.Millimole, AmountOfSubstanceUnits.Millimole), + new (AmountOfSubstanceUnit.MillipoundMole, AmountOfSubstanceUnits.MillipoundMole), + new (AmountOfSubstanceUnit.Mole, AmountOfSubstanceUnits.Mole), + new (AmountOfSubstanceUnit.Nanomole, AmountOfSubstanceUnits.Nanomole), + new (AmountOfSubstanceUnit.NanopoundMole, AmountOfSubstanceUnits.NanopoundMole), + new (AmountOfSubstanceUnit.Picomole, AmountOfSubstanceUnits.Picomole), + new (AmountOfSubstanceUnit.PoundMole, AmountOfSubstanceUnits.PoundMole), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs index 285feba890..d6ba8a5ee2 100644 --- a/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.g.cs @@ -116,19 +116,13 @@ 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, AmplitudeRatioUnits.DecibelMicrovolt), + new (AmplitudeRatioUnit.DecibelMillivolt, AmplitudeRatioUnits.DecibelMillivolt), + new (AmplitudeRatioUnit.DecibelUnloaded, AmplitudeRatioUnits.DecibelUnloaded), + new (AmplitudeRatioUnit.DecibelVolt, AmplitudeRatioUnits.DecibelVolt), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs index f41544faa7..3d1949cd9c 100644 --- a/UnitsNet/GeneratedCode/Quantities/Angle.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Angle.g.cs @@ -119,49 +119,24 @@ 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, AngleUnits.Arcminute), + new (AngleUnit.Arcsecond, AngleUnits.Arcsecond), + new (AngleUnit.Centiradian, AngleUnits.Centiradian), + new (AngleUnit.Deciradian, AngleUnits.Deciradian), + new (AngleUnit.Degree, AngleUnits.Degree), + new (AngleUnit.Gradian, AngleUnits.Gradian), + new (AngleUnit.Microdegree, AngleUnits.Microdegree), + new (AngleUnit.Microradian, AngleUnits.Microradian), + new (AngleUnit.Millidegree, AngleUnits.Millidegree), + new (AngleUnit.Milliradian, AngleUnits.Milliradian), + new (AngleUnit.Nanodegree, AngleUnits.Nanodegree), + new (AngleUnit.Nanoradian, AngleUnits.Nanoradian), + new (AngleUnit.NatoMil, AngleUnits.NatoMil), + new (AngleUnit.Radian, AngleUnits.Radian), + new (AngleUnit.Revolution, AngleUnits.Revolution), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Area.g.cs b/UnitsNet/GeneratedCode/Quantities/Area.g.cs index 0db6e3a84a..ab8d172db4 100644 --- a/UnitsNet/GeneratedCode/Quantities/Area.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Area.g.cs @@ -138,46 +138,23 @@ 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, AreaUnits.Acre), + new (AreaUnit.Hectare, AreaUnits.Hectare), + new (AreaUnit.SquareCentimeter, AreaUnits.SquareCentimeter), + new (AreaUnit.SquareDecimeter, AreaUnits.SquareDecimeter), + new (AreaUnit.SquareFoot, AreaUnits.SquareFoot), + new (AreaUnit.SquareInch, AreaUnits.SquareInch), + new (AreaUnit.SquareKilometer, AreaUnits.SquareKilometer), + new (AreaUnit.SquareMeter, AreaUnits.SquareMeter), + new (AreaUnit.SquareMicrometer, AreaUnits.SquareMicrometer), + new (AreaUnit.SquareMile, AreaUnits.SquareMile), + new (AreaUnit.SquareMillimeter, AreaUnits.SquareMillimeter), + new (AreaUnit.SquareNauticalMile, AreaUnits.SquareNauticalMile), + new (AreaUnit.SquareYard, AreaUnits.SquareYard), + new (AreaUnit.UsSurveySquareFoot, AreaUnits.UsSurveySquareFoot), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs index 5e304a5a93..b1c9931517 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaDensity.g.cs @@ -121,19 +121,14 @@ 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, AreaDensityUnits.GramPerSquareMeter), + new (AreaDensityUnit.KilogramPerSquareMeter, AreaDensityUnits.KilogramPerSquareMeter), + new (AreaDensityUnit.MilligramPerSquareMeter, AreaDensityUnits.MilligramPerSquareMeter), + new (AreaDensityUnit.PoundPerSquareFoot, AreaDensityUnits.PoundPerSquareFoot), + new (AreaDensityUnit.PoundPerThousandSquareFeet, AreaDensityUnits.PoundPerThousandSquareFeet), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs index 9d040c557d..261f3273cb 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs @@ -119,22 +119,15 @@ 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, AreaMomentOfInertiaUnits.CentimeterToTheFourth), + new (AreaMomentOfInertiaUnit.DecimeterToTheFourth, AreaMomentOfInertiaUnits.DecimeterToTheFourth), + new (AreaMomentOfInertiaUnit.FootToTheFourth, AreaMomentOfInertiaUnits.FootToTheFourth), + new (AreaMomentOfInertiaUnit.InchToTheFourth, AreaMomentOfInertiaUnits.InchToTheFourth), + new (AreaMomentOfInertiaUnit.MeterToTheFourth, AreaMomentOfInertiaUnits.MeterToTheFourth), + new (AreaMomentOfInertiaUnit.MillimeterToTheFourth, AreaMomentOfInertiaUnits.MillimeterToTheFourth), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs index cab8674135..da4747b98e 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaPerLength.g.cs @@ -117,22 +117,15 @@ 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, AreaPerLengthUnits.SquareCentimeterPerMeter), + new (AreaPerLengthUnit.SquareFootPerFoot, AreaPerLengthUnits.SquareFootPerFoot), + new (AreaPerLengthUnit.SquareInchPerFoot, AreaPerLengthUnits.SquareInchPerFoot), + new (AreaPerLengthUnit.SquareInchPerInch, AreaPerLengthUnits.SquareInchPerInch), + new (AreaPerLengthUnit.SquareMeterPerMeter, AreaPerLengthUnits.SquareMeterPerMeter), + new (AreaPerLengthUnit.SquareMillimeterPerMeter, AreaPerLengthUnits.SquareMillimeterPerMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs index c94befb97b..648bf826d1 100644 --- a/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BitRate.g.cs @@ -122,121 +122,48 @@ 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, BitRateUnits.BitPerSecond), + new (BitRateUnit.BytePerSecond, BitRateUnits.BytePerSecond), + new (BitRateUnit.ExabitPerSecond, BitRateUnits.ExabitPerSecond), + new (BitRateUnit.ExabytePerSecond, BitRateUnits.ExabytePerSecond), + new (BitRateUnit.ExaoctetPerSecond, BitRateUnits.ExaoctetPerSecond), + new (BitRateUnit.ExbibitPerSecond, BitRateUnits.ExbibitPerSecond), + new (BitRateUnit.ExbibytePerSecond, BitRateUnits.ExbibytePerSecond), + new (BitRateUnit.ExbioctetPerSecond, BitRateUnits.ExbioctetPerSecond), + new (BitRateUnit.GibibitPerSecond, BitRateUnits.GibibitPerSecond), + new (BitRateUnit.GibibytePerSecond, BitRateUnits.GibibytePerSecond), + new (BitRateUnit.GibioctetPerSecond, BitRateUnits.GibioctetPerSecond), + new (BitRateUnit.GigabitPerSecond, BitRateUnits.GigabitPerSecond), + new (BitRateUnit.GigabytePerSecond, BitRateUnits.GigabytePerSecond), + new (BitRateUnit.GigaoctetPerSecond, BitRateUnits.GigaoctetPerSecond), + new (BitRateUnit.KibibitPerSecond, BitRateUnits.KibibitPerSecond), + new (BitRateUnit.KibibytePerSecond, BitRateUnits.KibibytePerSecond), + new (BitRateUnit.KibioctetPerSecond, BitRateUnits.KibioctetPerSecond), + new (BitRateUnit.KilobitPerSecond, BitRateUnits.KilobitPerSecond), + new (BitRateUnit.KilobytePerSecond, BitRateUnits.KilobytePerSecond), + new (BitRateUnit.KilooctetPerSecond, BitRateUnits.KilooctetPerSecond), + new (BitRateUnit.MebibitPerSecond, BitRateUnits.MebibitPerSecond), + new (BitRateUnit.MebibytePerSecond, BitRateUnits.MebibytePerSecond), + new (BitRateUnit.MebioctetPerSecond, BitRateUnits.MebioctetPerSecond), + new (BitRateUnit.MegabitPerSecond, BitRateUnits.MegabitPerSecond), + new (BitRateUnit.MegabytePerSecond, BitRateUnits.MegabytePerSecond), + new (BitRateUnit.MegaoctetPerSecond, BitRateUnits.MegaoctetPerSecond), + new (BitRateUnit.OctetPerSecond, BitRateUnits.OctetPerSecond), + new (BitRateUnit.PebibitPerSecond, BitRateUnits.PebibitPerSecond), + new (BitRateUnit.PebibytePerSecond, BitRateUnits.PebibytePerSecond), + new (BitRateUnit.PebioctetPerSecond, BitRateUnits.PebioctetPerSecond), + new (BitRateUnit.PetabitPerSecond, BitRateUnits.PetabitPerSecond), + new (BitRateUnit.PetabytePerSecond, BitRateUnits.PetabytePerSecond), + new (BitRateUnit.PetaoctetPerSecond, BitRateUnits.PetaoctetPerSecond), + new (BitRateUnit.TebibitPerSecond, BitRateUnits.TebibitPerSecond), + new (BitRateUnit.TebibytePerSecond, BitRateUnits.TebibytePerSecond), + new (BitRateUnit.TebioctetPerSecond, BitRateUnits.TebioctetPerSecond), + new (BitRateUnit.TerabitPerSecond, BitRateUnits.TerabitPerSecond), + new (BitRateUnit.TerabytePerSecond, BitRateUnits.TerabytePerSecond), + new (BitRateUnit.TeraoctetPerSecond, BitRateUnits.TeraoctetPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs index c50c4dc245..80bb7a8fc6 100644 --- a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs @@ -118,13 +118,12 @@ 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, BrakeSpecificFuelConsumptionUnits.GramPerKiloWattHour), + new (BrakeSpecificFuelConsumptionUnit.KilogramPerJoule, BrakeSpecificFuelConsumptionUnits.KilogramPerJoule), + new (BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour, BrakeSpecificFuelConsumptionUnits.PoundPerMechanicalHorsepowerHour), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs index f9f8add9d4..6d6c858f6e 100644 --- a/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs @@ -117,22 +117,15 @@ 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, CoefficientOfThermalExpansionUnits.PerDegreeCelsius), + new (CoefficientOfThermalExpansionUnit.PerDegreeFahrenheit, CoefficientOfThermalExpansionUnits.PerDegreeFahrenheit), + new (CoefficientOfThermalExpansionUnit.PerKelvin, CoefficientOfThermalExpansionUnits.PerKelvin), + new (CoefficientOfThermalExpansionUnit.PpmPerDegreeCelsius, CoefficientOfThermalExpansionUnits.PpmPerDegreeCelsius), + new (CoefficientOfThermalExpansionUnit.PpmPerDegreeFahrenheit, CoefficientOfThermalExpansionUnits.PpmPerDegreeFahrenheit), + new (CoefficientOfThermalExpansionUnit.PpmPerKelvin, CoefficientOfThermalExpansionUnits.PpmPerKelvin), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs b/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs index 2a24174364..16684b5bca 100644 --- a/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Compressibility.g.cs @@ -117,25 +117,16 @@ 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, CompressibilityUnits.InverseAtmosphere), + new (CompressibilityUnit.InverseBar, CompressibilityUnits.InverseBar), + new (CompressibilityUnit.InverseKilopascal, CompressibilityUnits.InverseKilopascal), + new (CompressibilityUnit.InverseMegapascal, CompressibilityUnits.InverseMegapascal), + new (CompressibilityUnit.InverseMillibar, CompressibilityUnits.InverseMillibar), + new (CompressibilityUnit.InversePascal, CompressibilityUnits.InversePascal), + new (CompressibilityUnit.InversePoundForcePerSquareInch, CompressibilityUnits.InversePoundForcePerSquareInch), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Density.g.cs b/UnitsNet/GeneratedCode/Quantities/Density.g.cs index c934fdc2d3..ce9a4fdd83 100644 --- a/UnitsNet/GeneratedCode/Quantities/Density.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Density.g.cs @@ -127,172 +127,65 @@ 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, DensityUnits.CentigramPerDeciliter), + new (DensityUnit.CentigramPerLiter, DensityUnits.CentigramPerLiter), + new (DensityUnit.CentigramPerMilliliter, DensityUnits.CentigramPerMilliliter), + new (DensityUnit.DecigramPerDeciliter, DensityUnits.DecigramPerDeciliter), + new (DensityUnit.DecigramPerLiter, DensityUnits.DecigramPerLiter), + new (DensityUnit.DecigramPerMilliliter, DensityUnits.DecigramPerMilliliter), + new (DensityUnit.FemtogramPerDeciliter, DensityUnits.FemtogramPerDeciliter), + new (DensityUnit.FemtogramPerLiter, DensityUnits.FemtogramPerLiter), + new (DensityUnit.FemtogramPerMilliliter, DensityUnits.FemtogramPerMilliliter), + new (DensityUnit.GramPerCubicCentimeter, DensityUnits.GramPerCubicCentimeter), + new (DensityUnit.GramPerCubicFoot, DensityUnits.GramPerCubicFoot), + new (DensityUnit.GramPerCubicInch, DensityUnits.GramPerCubicInch), + new (DensityUnit.GramPerCubicMeter, DensityUnits.GramPerCubicMeter), + new (DensityUnit.GramPerCubicMillimeter, DensityUnits.GramPerCubicMillimeter), + new (DensityUnit.GramPerDeciliter, DensityUnits.GramPerDeciliter), + new (DensityUnit.GramPerLiter, DensityUnits.GramPerLiter), + new (DensityUnit.GramPerMilliliter, DensityUnits.GramPerMilliliter), + new (DensityUnit.KilogramPerCubicCentimeter, DensityUnits.KilogramPerCubicCentimeter), + new (DensityUnit.KilogramPerCubicMeter, DensityUnits.KilogramPerCubicMeter), + new (DensityUnit.KilogramPerCubicMillimeter, DensityUnits.KilogramPerCubicMillimeter), + new (DensityUnit.KilogramPerLiter, DensityUnits.KilogramPerLiter), + new (DensityUnit.KilopoundPerCubicFoot, DensityUnits.KilopoundPerCubicFoot), + new (DensityUnit.KilopoundPerCubicInch, DensityUnits.KilopoundPerCubicInch), + new (DensityUnit.KilopoundPerCubicYard, DensityUnits.KilopoundPerCubicYard), + new (DensityUnit.MicrogramPerCubicMeter, DensityUnits.MicrogramPerCubicMeter), + new (DensityUnit.MicrogramPerDeciliter, DensityUnits.MicrogramPerDeciliter), + new (DensityUnit.MicrogramPerLiter, DensityUnits.MicrogramPerLiter), + new (DensityUnit.MicrogramPerMilliliter, DensityUnits.MicrogramPerMilliliter), + new (DensityUnit.MilligramPerCubicMeter, DensityUnits.MilligramPerCubicMeter), + new (DensityUnit.MilligramPerDeciliter, DensityUnits.MilligramPerDeciliter), + new (DensityUnit.MilligramPerLiter, DensityUnits.MilligramPerLiter), + new (DensityUnit.MilligramPerMilliliter, DensityUnits.MilligramPerMilliliter), + new (DensityUnit.NanogramPerDeciliter, DensityUnits.NanogramPerDeciliter), + new (DensityUnit.NanogramPerLiter, DensityUnits.NanogramPerLiter), + new (DensityUnit.NanogramPerMilliliter, DensityUnits.NanogramPerMilliliter), + new (DensityUnit.PicogramPerDeciliter, DensityUnits.PicogramPerDeciliter), + new (DensityUnit.PicogramPerLiter, DensityUnits.PicogramPerLiter), + new (DensityUnit.PicogramPerMilliliter, DensityUnits.PicogramPerMilliliter), + new (DensityUnit.PoundPerCubicCentimeter, DensityUnits.PoundPerCubicCentimeter), + new (DensityUnit.PoundPerCubicFoot, DensityUnits.PoundPerCubicFoot), + new (DensityUnit.PoundPerCubicInch, DensityUnits.PoundPerCubicInch), + new (DensityUnit.PoundPerCubicMeter, DensityUnits.PoundPerCubicMeter), + new (DensityUnit.PoundPerCubicMillimeter, DensityUnits.PoundPerCubicMillimeter), + new (DensityUnit.PoundPerCubicYard, DensityUnits.PoundPerCubicYard), + new (DensityUnit.PoundPerImperialGallon, DensityUnits.PoundPerImperialGallon), + new (DensityUnit.PoundPerUSGallon, DensityUnits.PoundPerUSGallon), + new (DensityUnit.SlugPerCubicCentimeter, DensityUnits.SlugPerCubicCentimeter), + new (DensityUnit.SlugPerCubicFoot, DensityUnits.SlugPerCubicFoot), + new (DensityUnit.SlugPerCubicInch, DensityUnits.SlugPerCubicInch), + new (DensityUnit.SlugPerCubicMeter, DensityUnits.SlugPerCubicMeter), + new (DensityUnit.SlugPerCubicMillimeter, DensityUnits.SlugPerCubicMillimeter), + new (DensityUnit.TonnePerCubicCentimeter, DensityUnits.TonnePerCubicCentimeter), + new (DensityUnit.TonnePerCubicFoot, DensityUnits.TonnePerCubicFoot), + new (DensityUnit.TonnePerCubicInch, DensityUnits.TonnePerCubicInch), + new (DensityUnit.TonnePerCubicMeter, DensityUnits.TonnePerCubicMeter), + new (DensityUnit.TonnePerCubicMillimeter, DensityUnits.TonnePerCubicMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs b/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs index 21ced4f1b9..9ecd32d8da 100644 --- a/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/DoseAreaProduct.g.cs @@ -121,79 +121,34 @@ 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, DoseAreaProductUnits.CentigraySquareCentimeter), + new (DoseAreaProductUnit.CentigraySquareDecimeter, DoseAreaProductUnits.CentigraySquareDecimeter), + new (DoseAreaProductUnit.CentigraySquareMeter, DoseAreaProductUnits.CentigraySquareMeter), + new (DoseAreaProductUnit.CentigraySquareMicrometer, DoseAreaProductUnits.CentigraySquareMicrometer), + new (DoseAreaProductUnit.CentigraySquareMillimeter, DoseAreaProductUnits.CentigraySquareMillimeter), + new (DoseAreaProductUnit.DecigraySquareCentimeter, DoseAreaProductUnits.DecigraySquareCentimeter), + new (DoseAreaProductUnit.DecigraySquareDecimeter, DoseAreaProductUnits.DecigraySquareDecimeter), + new (DoseAreaProductUnit.DecigraySquareMeter, DoseAreaProductUnits.DecigraySquareMeter), + new (DoseAreaProductUnit.DecigraySquareMicrometer, DoseAreaProductUnits.DecigraySquareMicrometer), + new (DoseAreaProductUnit.DecigraySquareMillimeter, DoseAreaProductUnits.DecigraySquareMillimeter), + new (DoseAreaProductUnit.GraySquareCentimeter, DoseAreaProductUnits.GraySquareCentimeter), + new (DoseAreaProductUnit.GraySquareDecimeter, DoseAreaProductUnits.GraySquareDecimeter), + new (DoseAreaProductUnit.GraySquareMeter, DoseAreaProductUnits.GraySquareMeter), + new (DoseAreaProductUnit.GraySquareMicrometer, DoseAreaProductUnits.GraySquareMicrometer), + new (DoseAreaProductUnit.GraySquareMillimeter, DoseAreaProductUnits.GraySquareMillimeter), + new (DoseAreaProductUnit.MicrograySquareCentimeter, DoseAreaProductUnits.MicrograySquareCentimeter), + new (DoseAreaProductUnit.MicrograySquareDecimeter, DoseAreaProductUnits.MicrograySquareDecimeter), + new (DoseAreaProductUnit.MicrograySquareMeter, DoseAreaProductUnits.MicrograySquareMeter), + new (DoseAreaProductUnit.MicrograySquareMicrometer, DoseAreaProductUnits.MicrograySquareMicrometer), + new (DoseAreaProductUnit.MicrograySquareMillimeter, DoseAreaProductUnits.MicrograySquareMillimeter), + new (DoseAreaProductUnit.MilligraySquareCentimeter, DoseAreaProductUnits.MilligraySquareCentimeter), + new (DoseAreaProductUnit.MilligraySquareDecimeter, DoseAreaProductUnits.MilligraySquareDecimeter), + new (DoseAreaProductUnit.MilligraySquareMeter, DoseAreaProductUnits.MilligraySquareMeter), + new (DoseAreaProductUnit.MilligraySquareMicrometer, DoseAreaProductUnits.MilligraySquareMicrometer), + new (DoseAreaProductUnit.MilligraySquareMillimeter, DoseAreaProductUnits.MilligraySquareMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs index 5a1dee5c57..6112319601 100644 --- a/UnitsNet/GeneratedCode/Quantities/Duration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Duration.g.cs @@ -139,43 +139,22 @@ 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, DurationUnits.Day), + new (DurationUnit.Hour, DurationUnits.Hour), + new (DurationUnit.JulianYear, DurationUnits.JulianYear), + new (DurationUnit.Microsecond, DurationUnits.Microsecond), + new (DurationUnit.Millisecond, DurationUnits.Millisecond), + new (DurationUnit.Minute, DurationUnits.Minute), + new (DurationUnit.Month30, DurationUnits.Month30), + new (DurationUnit.Nanosecond, DurationUnits.Nanosecond), + new (DurationUnit.Picosecond, DurationUnits.Picosecond), + new (DurationUnit.Second, DurationUnits.Second), + new (DurationUnit.Sol, DurationUnits.Sol), + new (DurationUnit.Week, DurationUnits.Week), + new (DurationUnit.Year365, DurationUnits.Year365), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs index dde593ef6f..049dd2a902 100644 --- a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs @@ -121,34 +121,19 @@ 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, DynamicViscosityUnits.Centipoise), + new (DynamicViscosityUnit.MicropascalSecond, DynamicViscosityUnits.MicropascalSecond), + new (DynamicViscosityUnit.MillipascalSecond, DynamicViscosityUnits.MillipascalSecond), + new (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnits.NewtonSecondPerMeterSquared), + new (DynamicViscosityUnit.PascalSecond, DynamicViscosityUnits.PascalSecond), + new (DynamicViscosityUnit.Poise, DynamicViscosityUnits.Poise), + new (DynamicViscosityUnit.PoundForceSecondPerSquareFoot, DynamicViscosityUnits.PoundForceSecondPerSquareFoot), + new (DynamicViscosityUnit.PoundForceSecondPerSquareInch, DynamicViscosityUnits.PoundForceSecondPerSquareInch), + new (DynamicViscosityUnit.PoundPerFootSecond, DynamicViscosityUnits.PoundPerFootSecond), + new (DynamicViscosityUnit.Reyn, DynamicViscosityUnits.Reyn), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs index 778fcfcbb9..22bb0c1893 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricAdmittance.g.cs @@ -120,52 +120,25 @@ 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, ElectricAdmittanceUnits.Gigamho), + new (ElectricAdmittanceUnit.Gigasiemens, ElectricAdmittanceUnits.Gigasiemens), + new (ElectricAdmittanceUnit.Kilomho, ElectricAdmittanceUnits.Kilomho), + new (ElectricAdmittanceUnit.Kilosiemens, ElectricAdmittanceUnits.Kilosiemens), + new (ElectricAdmittanceUnit.Megamho, ElectricAdmittanceUnits.Megamho), + new (ElectricAdmittanceUnit.Megasiemens, ElectricAdmittanceUnits.Megasiemens), + new (ElectricAdmittanceUnit.Mho, ElectricAdmittanceUnits.Mho), + new (ElectricAdmittanceUnit.Micromho, ElectricAdmittanceUnits.Micromho), + new (ElectricAdmittanceUnit.Microsiemens, ElectricAdmittanceUnits.Microsiemens), + new (ElectricAdmittanceUnit.Millimho, ElectricAdmittanceUnits.Millimho), + new (ElectricAdmittanceUnit.Millisiemens, ElectricAdmittanceUnits.Millisiemens), + new (ElectricAdmittanceUnit.Nanomho, ElectricAdmittanceUnits.Nanomho), + new (ElectricAdmittanceUnit.Nanosiemens, ElectricAdmittanceUnits.Nanosiemens), + new (ElectricAdmittanceUnit.Siemens, ElectricAdmittanceUnits.Siemens), + new (ElectricAdmittanceUnit.Teramho, ElectricAdmittanceUnits.Teramho), + new (ElectricAdmittanceUnit.Terasiemens, ElectricAdmittanceUnits.Terasiemens), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs index b74b86ae15..21d434c4a0 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs @@ -118,13 +118,12 @@ 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, ElectricApparentEnergyUnits.KilovoltampereHour), + new (ElectricApparentEnergyUnit.MegavoltampereHour, ElectricApparentEnergyUnits.MegavoltampereHour), + new (ElectricApparentEnergyUnit.VoltampereHour, ElectricApparentEnergyUnits.VoltampereHour), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs index cc39059cae..734679b855 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricApparentPower.g.cs @@ -120,22 +120,15 @@ 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, ElectricApparentPowerUnits.Gigavoltampere), + new (ElectricApparentPowerUnit.Kilovoltampere, ElectricApparentPowerUnits.Kilovoltampere), + new (ElectricApparentPowerUnit.Megavoltampere, ElectricApparentPowerUnits.Megavoltampere), + new (ElectricApparentPowerUnit.Microvoltampere, ElectricApparentPowerUnits.Microvoltampere), + new (ElectricApparentPowerUnit.Millivoltampere, ElectricApparentPowerUnits.Millivoltampere), + new (ElectricApparentPowerUnit.Voltampere, ElectricApparentPowerUnits.Voltampere), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs index a639eddcae..11d4420742 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCapacitance.g.cs @@ -120,25 +120,16 @@ 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, ElectricCapacitanceUnits.Farad), + new (ElectricCapacitanceUnit.Kilofarad, ElectricCapacitanceUnits.Kilofarad), + new (ElectricCapacitanceUnit.Megafarad, ElectricCapacitanceUnits.Megafarad), + new (ElectricCapacitanceUnit.Microfarad, ElectricCapacitanceUnits.Microfarad), + new (ElectricCapacitanceUnit.Millifarad, ElectricCapacitanceUnits.Millifarad), + new (ElectricCapacitanceUnit.Nanofarad, ElectricCapacitanceUnits.Nanofarad), + new (ElectricCapacitanceUnit.Picofarad, ElectricCapacitanceUnits.Picofarad), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs index c3af99af9e..d5faa11ded 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCharge.g.cs @@ -128,37 +128,20 @@ 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, ElectricChargeUnits.AmpereHour), + new (ElectricChargeUnit.Coulomb, ElectricChargeUnits.Coulomb), + new (ElectricChargeUnit.KiloampereHour, ElectricChargeUnits.KiloampereHour), + new (ElectricChargeUnit.Kilocoulomb, ElectricChargeUnits.Kilocoulomb), + new (ElectricChargeUnit.MegaampereHour, ElectricChargeUnits.MegaampereHour), + new (ElectricChargeUnit.Megacoulomb, ElectricChargeUnits.Megacoulomb), + new (ElectricChargeUnit.Microcoulomb, ElectricChargeUnits.Microcoulomb), + new (ElectricChargeUnit.MilliampereHour, ElectricChargeUnits.MilliampereHour), + new (ElectricChargeUnit.Millicoulomb, ElectricChargeUnits.Millicoulomb), + new (ElectricChargeUnit.Nanocoulomb, ElectricChargeUnits.Nanocoulomb), + new (ElectricChargeUnit.Picocoulomb, ElectricChargeUnits.Picocoulomb), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricChargeDensity.g.cs index ff23698f29..e60e95b4c6 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, ElectricChargeDensityUnits.CoulombPerCubicMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs index 9b34f2e776..dc9bd61264 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductance.g.cs @@ -120,52 +120,25 @@ 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, ElectricConductanceUnits.Gigamho), + new (ElectricConductanceUnit.Gigasiemens, ElectricConductanceUnits.Gigasiemens), + new (ElectricConductanceUnit.Kilomho, ElectricConductanceUnits.Kilomho), + new (ElectricConductanceUnit.Kilosiemens, ElectricConductanceUnits.Kilosiemens), + new (ElectricConductanceUnit.Megamho, ElectricConductanceUnits.Megamho), + new (ElectricConductanceUnit.Megasiemens, ElectricConductanceUnits.Megasiemens), + new (ElectricConductanceUnit.Mho, ElectricConductanceUnits.Mho), + new (ElectricConductanceUnit.Micromho, ElectricConductanceUnits.Micromho), + new (ElectricConductanceUnit.Microsiemens, ElectricConductanceUnits.Microsiemens), + new (ElectricConductanceUnit.Millimho, ElectricConductanceUnits.Millimho), + new (ElectricConductanceUnit.Millisiemens, ElectricConductanceUnits.Millisiemens), + new (ElectricConductanceUnit.Nanomho, ElectricConductanceUnits.Nanomho), + new (ElectricConductanceUnit.Nanosiemens, ElectricConductanceUnits.Nanosiemens), + new (ElectricConductanceUnit.Siemens, ElectricConductanceUnits.Siemens), + new (ElectricConductanceUnit.Teramho, ElectricConductanceUnits.Teramho), + new (ElectricConductanceUnit.Terasiemens, ElectricConductanceUnits.Terasiemens), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs index 491d5de364..dce64047c4 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs @@ -119,22 +119,15 @@ 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, ElectricConductivityUnits.MicrosiemensPerCentimeter), + new (ElectricConductivityUnit.MillisiemensPerCentimeter, ElectricConductivityUnits.MillisiemensPerCentimeter), + new (ElectricConductivityUnit.SiemensPerCentimeter, ElectricConductivityUnits.SiemensPerCentimeter), + new (ElectricConductivityUnit.SiemensPerFoot, ElectricConductivityUnits.SiemensPerFoot), + new (ElectricConductivityUnit.SiemensPerInch, ElectricConductivityUnits.SiemensPerInch), + new (ElectricConductivityUnit.SiemensPerMeter, ElectricConductivityUnits.SiemensPerMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs index 29db343b7d..6a29cc2dff 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrent.g.cs @@ -128,31 +128,18 @@ 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, ElectricCurrentUnits.Ampere), + new (ElectricCurrentUnit.Centiampere, ElectricCurrentUnits.Centiampere), + new (ElectricCurrentUnit.Femtoampere, ElectricCurrentUnits.Femtoampere), + new (ElectricCurrentUnit.Kiloampere, ElectricCurrentUnits.Kiloampere), + new (ElectricCurrentUnit.Megaampere, ElectricCurrentUnits.Megaampere), + new (ElectricCurrentUnit.Microampere, ElectricCurrentUnits.Microampere), + new (ElectricCurrentUnit.Milliampere, ElectricCurrentUnits.Milliampere), + new (ElectricCurrentUnit.Nanoampere, ElectricCurrentUnits.Nanoampere), + new (ElectricCurrentUnit.Picoampere, ElectricCurrentUnits.Picoampere), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs index c20bdef8e4..12a741caa9 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs @@ -120,13 +120,12 @@ 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, ElectricCurrentDensityUnits.AmperePerSquareFoot), + new (ElectricCurrentDensityUnit.AmperePerSquareInch, ElectricCurrentDensityUnits.AmperePerSquareInch), + new (ElectricCurrentDensityUnit.AmperePerSquareMeter, ElectricCurrentDensityUnits.AmperePerSquareMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs index d218226373..e40282075a 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs @@ -117,25 +117,16 @@ 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, ElectricCurrentGradientUnits.AmperePerMicrosecond), + new (ElectricCurrentGradientUnit.AmperePerMillisecond, ElectricCurrentGradientUnits.AmperePerMillisecond), + new (ElectricCurrentGradientUnit.AmperePerMinute, ElectricCurrentGradientUnits.AmperePerMinute), + new (ElectricCurrentGradientUnit.AmperePerNanosecond, ElectricCurrentGradientUnits.AmperePerNanosecond), + new (ElectricCurrentGradientUnit.AmperePerSecond, ElectricCurrentGradientUnits.AmperePerSecond), + new (ElectricCurrentGradientUnit.MilliamperePerMinute, ElectricCurrentGradientUnits.MilliamperePerMinute), + new (ElectricCurrentGradientUnit.MilliamperePerSecond, ElectricCurrentGradientUnits.MilliamperePerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricField.g.cs index efb660104d..5106a75830 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, ElectricFieldUnits.VoltPerMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs index 71835b09c7..556bb9219e 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricImpedance.g.cs @@ -120,28 +120,17 @@ 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, ElectricImpedanceUnits.Gigaohm), + new (ElectricImpedanceUnit.Kiloohm, ElectricImpedanceUnits.Kiloohm), + new (ElectricImpedanceUnit.Megaohm, ElectricImpedanceUnits.Megaohm), + new (ElectricImpedanceUnit.Microohm, ElectricImpedanceUnits.Microohm), + new (ElectricImpedanceUnit.Milliohm, ElectricImpedanceUnits.Milliohm), + new (ElectricImpedanceUnit.Nanoohm, ElectricImpedanceUnits.Nanoohm), + new (ElectricImpedanceUnit.Ohm, ElectricImpedanceUnits.Ohm), + new (ElectricImpedanceUnit.Teraohm, ElectricImpedanceUnits.Teraohm), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs index 0ed85fa627..e5072c0c81 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricInductance.g.cs @@ -119,19 +119,14 @@ 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, ElectricInductanceUnits.Henry), + new (ElectricInductanceUnit.Microhenry, ElectricInductanceUnits.Microhenry), + new (ElectricInductanceUnit.Millihenry, ElectricInductanceUnits.Millihenry), + new (ElectricInductanceUnit.Nanohenry, ElectricInductanceUnits.Nanohenry), + new (ElectricInductanceUnit.Picohenry, ElectricInductanceUnits.Picohenry), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs index f849778462..8899012ea3 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotential.g.cs @@ -129,22 +129,15 @@ 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, ElectricPotentialUnits.Kilovolt), + new (ElectricPotentialUnit.Megavolt, ElectricPotentialUnits.Megavolt), + new (ElectricPotentialUnit.Microvolt, ElectricPotentialUnits.Microvolt), + new (ElectricPotentialUnit.Millivolt, ElectricPotentialUnits.Millivolt), + new (ElectricPotentialUnit.Nanovolt, ElectricPotentialUnits.Nanovolt), + new (ElectricPotentialUnit.Volt, ElectricPotentialUnits.Volt), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs index e175d42d45..2c29634861 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs @@ -117,64 +117,29 @@ 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, ElectricPotentialChangeRateUnits.KilovoltPerHour), + new (ElectricPotentialChangeRateUnit.KilovoltPerMicrosecond, ElectricPotentialChangeRateUnits.KilovoltPerMicrosecond), + new (ElectricPotentialChangeRateUnit.KilovoltPerMinute, ElectricPotentialChangeRateUnits.KilovoltPerMinute), + new (ElectricPotentialChangeRateUnit.KilovoltPerSecond, ElectricPotentialChangeRateUnits.KilovoltPerSecond), + new (ElectricPotentialChangeRateUnit.MegavoltPerHour, ElectricPotentialChangeRateUnits.MegavoltPerHour), + new (ElectricPotentialChangeRateUnit.MegavoltPerMicrosecond, ElectricPotentialChangeRateUnits.MegavoltPerMicrosecond), + new (ElectricPotentialChangeRateUnit.MegavoltPerMinute, ElectricPotentialChangeRateUnits.MegavoltPerMinute), + new (ElectricPotentialChangeRateUnit.MegavoltPerSecond, ElectricPotentialChangeRateUnits.MegavoltPerSecond), + new (ElectricPotentialChangeRateUnit.MicrovoltPerHour, ElectricPotentialChangeRateUnits.MicrovoltPerHour), + new (ElectricPotentialChangeRateUnit.MicrovoltPerMicrosecond, ElectricPotentialChangeRateUnits.MicrovoltPerMicrosecond), + new (ElectricPotentialChangeRateUnit.MicrovoltPerMinute, ElectricPotentialChangeRateUnits.MicrovoltPerMinute), + new (ElectricPotentialChangeRateUnit.MicrovoltPerSecond, ElectricPotentialChangeRateUnits.MicrovoltPerSecond), + new (ElectricPotentialChangeRateUnit.MillivoltPerHour, ElectricPotentialChangeRateUnits.MillivoltPerHour), + new (ElectricPotentialChangeRateUnit.MillivoltPerMicrosecond, ElectricPotentialChangeRateUnits.MillivoltPerMicrosecond), + new (ElectricPotentialChangeRateUnit.MillivoltPerMinute, ElectricPotentialChangeRateUnits.MillivoltPerMinute), + new (ElectricPotentialChangeRateUnit.MillivoltPerSecond, ElectricPotentialChangeRateUnits.MillivoltPerSecond), + new (ElectricPotentialChangeRateUnit.VoltPerHour, ElectricPotentialChangeRateUnits.VoltPerHour), + new (ElectricPotentialChangeRateUnit.VoltPerMicrosecond, ElectricPotentialChangeRateUnits.VoltPerMicrosecond), + new (ElectricPotentialChangeRateUnit.VoltPerMinute, ElectricPotentialChangeRateUnits.VoltPerMinute), + new (ElectricPotentialChangeRateUnit.VoltPerSecond, ElectricPotentialChangeRateUnits.VoltPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs index 3559d695f0..d1d6712ca8 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricReactance.g.cs @@ -119,28 +119,17 @@ 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, ElectricReactanceUnits.Gigaohm), + new (ElectricReactanceUnit.Kiloohm, ElectricReactanceUnits.Kiloohm), + new (ElectricReactanceUnit.Megaohm, ElectricReactanceUnits.Megaohm), + new (ElectricReactanceUnit.Microohm, ElectricReactanceUnits.Microohm), + new (ElectricReactanceUnit.Milliohm, ElectricReactanceUnits.Milliohm), + new (ElectricReactanceUnit.Nanoohm, ElectricReactanceUnits.Nanoohm), + new (ElectricReactanceUnit.Ohm, ElectricReactanceUnits.Ohm), + new (ElectricReactanceUnit.Teraohm, ElectricReactanceUnits.Teraohm), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs index 23a644d3f1..dfd214225f 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs @@ -118,13 +118,12 @@ 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, ElectricReactiveEnergyUnits.KilovoltampereReactiveHour), + new (ElectricReactiveEnergyUnit.MegavoltampereReactiveHour, ElectricReactiveEnergyUnits.MegavoltampereReactiveHour), + new (ElectricReactiveEnergyUnit.VoltampereReactiveHour, ElectricReactiveEnergyUnits.VoltampereReactiveHour), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs index c21c011153..f085d10824 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricReactivePower.g.cs @@ -120,16 +120,13 @@ 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, ElectricReactivePowerUnits.GigavoltampereReactive), + new (ElectricReactivePowerUnit.KilovoltampereReactive, ElectricReactivePowerUnits.KilovoltampereReactive), + new (ElectricReactivePowerUnit.MegavoltampereReactive, ElectricReactivePowerUnits.MegavoltampereReactive), + new (ElectricReactivePowerUnit.VoltampereReactive, ElectricReactivePowerUnits.VoltampereReactive), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs index 0ff74bacd3..2f88b1b2f5 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs @@ -120,28 +120,17 @@ 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, ElectricResistanceUnits.Gigaohm), + new (ElectricResistanceUnit.Kiloohm, ElectricResistanceUnits.Kiloohm), + new (ElectricResistanceUnit.Megaohm, ElectricResistanceUnits.Megaohm), + new (ElectricResistanceUnit.Microohm, ElectricResistanceUnits.Microohm), + new (ElectricResistanceUnit.Milliohm, ElectricResistanceUnits.Milliohm), + new (ElectricResistanceUnit.Nanoohm, ElectricResistanceUnits.Nanoohm), + new (ElectricResistanceUnit.Ohm, ElectricResistanceUnits.Ohm), + new (ElectricResistanceUnit.Teraohm, ElectricResistanceUnits.Teraohm), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs index 109518382d..b2cb324911 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricResistivity.g.cs @@ -119,46 +119,23 @@ 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, ElectricResistivityUnits.KiloohmCentimeter), + new (ElectricResistivityUnit.KiloohmMeter, ElectricResistivityUnits.KiloohmMeter), + new (ElectricResistivityUnit.MegaohmCentimeter, ElectricResistivityUnits.MegaohmCentimeter), + new (ElectricResistivityUnit.MegaohmMeter, ElectricResistivityUnits.MegaohmMeter), + new (ElectricResistivityUnit.MicroohmCentimeter, ElectricResistivityUnits.MicroohmCentimeter), + new (ElectricResistivityUnit.MicroohmMeter, ElectricResistivityUnits.MicroohmMeter), + new (ElectricResistivityUnit.MilliohmCentimeter, ElectricResistivityUnits.MilliohmCentimeter), + new (ElectricResistivityUnit.MilliohmMeter, ElectricResistivityUnits.MilliohmMeter), + new (ElectricResistivityUnit.NanoohmCentimeter, ElectricResistivityUnits.NanoohmCentimeter), + new (ElectricResistivityUnit.NanoohmMeter, ElectricResistivityUnits.NanoohmMeter), + new (ElectricResistivityUnit.OhmCentimeter, ElectricResistivityUnits.OhmCentimeter), + new (ElectricResistivityUnit.OhmMeter, ElectricResistivityUnits.OhmMeter), + new (ElectricResistivityUnit.PicoohmCentimeter, ElectricResistivityUnits.PicoohmCentimeter), + new (ElectricResistivityUnit.PicoohmMeter, ElectricResistivityUnits.PicoohmMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs index c7c8efd3e7..593da95e6e 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs @@ -120,13 +120,12 @@ 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, ElectricSurfaceChargeDensityUnits.CoulombPerSquareCentimeter), + new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch, ElectricSurfaceChargeDensityUnits.CoulombPerSquareInch), + new (ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter, ElectricSurfaceChargeDensityUnits.CoulombPerSquareMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs index 07c01295e5..9336cfb25a 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricSusceptance.g.cs @@ -119,52 +119,25 @@ 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, ElectricSusceptanceUnits.Gigamho), + new (ElectricSusceptanceUnit.Gigasiemens, ElectricSusceptanceUnits.Gigasiemens), + new (ElectricSusceptanceUnit.Kilomho, ElectricSusceptanceUnits.Kilomho), + new (ElectricSusceptanceUnit.Kilosiemens, ElectricSusceptanceUnits.Kilosiemens), + new (ElectricSusceptanceUnit.Megamho, ElectricSusceptanceUnits.Megamho), + new (ElectricSusceptanceUnit.Megasiemens, ElectricSusceptanceUnits.Megasiemens), + new (ElectricSusceptanceUnit.Mho, ElectricSusceptanceUnits.Mho), + new (ElectricSusceptanceUnit.Micromho, ElectricSusceptanceUnits.Micromho), + new (ElectricSusceptanceUnit.Microsiemens, ElectricSusceptanceUnits.Microsiemens), + new (ElectricSusceptanceUnit.Millimho, ElectricSusceptanceUnits.Millimho), + new (ElectricSusceptanceUnit.Millisiemens, ElectricSusceptanceUnits.Millisiemens), + new (ElectricSusceptanceUnit.Nanomho, ElectricSusceptanceUnits.Nanomho), + new (ElectricSusceptanceUnit.Nanosiemens, ElectricSusceptanceUnits.Nanosiemens), + new (ElectricSusceptanceUnit.Siemens, ElectricSusceptanceUnits.Siemens), + new (ElectricSusceptanceUnit.Teramho, ElectricSusceptanceUnits.Teramho), + new (ElectricSusceptanceUnit.Terasiemens, ElectricSusceptanceUnits.Terasiemens), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs index 5b6c1e1d60..c9688c48c3 100644 --- a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs @@ -129,124 +129,49 @@ 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, EnergyUnits.BritishThermalUnit), + new (EnergyUnit.Calorie, EnergyUnits.Calorie), + new (EnergyUnit.DecathermEc, EnergyUnits.DecathermEc), + new (EnergyUnit.DecathermImperial, EnergyUnits.DecathermImperial), + new (EnergyUnit.DecathermUs, EnergyUnits.DecathermUs), + new (EnergyUnit.ElectronVolt, EnergyUnits.ElectronVolt), + new (EnergyUnit.Erg, EnergyUnits.Erg), + new (EnergyUnit.FootPound, EnergyUnits.FootPound), + new (EnergyUnit.GigabritishThermalUnit, EnergyUnits.GigabritishThermalUnit), + new (EnergyUnit.GigaelectronVolt, EnergyUnits.GigaelectronVolt), + new (EnergyUnit.Gigajoule, EnergyUnits.Gigajoule), + new (EnergyUnit.GigawattDay, EnergyUnits.GigawattDay), + new (EnergyUnit.GigawattHour, EnergyUnits.GigawattHour), + new (EnergyUnit.HorsepowerHour, EnergyUnits.HorsepowerHour), + new (EnergyUnit.Joule, EnergyUnits.Joule), + new (EnergyUnit.KilobritishThermalUnit, EnergyUnits.KilobritishThermalUnit), + new (EnergyUnit.Kilocalorie, EnergyUnits.Kilocalorie), + new (EnergyUnit.KiloelectronVolt, EnergyUnits.KiloelectronVolt), + new (EnergyUnit.Kilojoule, EnergyUnits.Kilojoule), + new (EnergyUnit.KilowattDay, EnergyUnits.KilowattDay), + new (EnergyUnit.KilowattHour, EnergyUnits.KilowattHour), + new (EnergyUnit.MegabritishThermalUnit, EnergyUnits.MegabritishThermalUnit), + new (EnergyUnit.Megacalorie, EnergyUnits.Megacalorie), + new (EnergyUnit.MegaelectronVolt, EnergyUnits.MegaelectronVolt), + new (EnergyUnit.Megajoule, EnergyUnits.Megajoule), + new (EnergyUnit.MegawattDay, EnergyUnits.MegawattDay), + new (EnergyUnit.MegawattHour, EnergyUnits.MegawattHour), + new (EnergyUnit.Microjoule, EnergyUnits.Microjoule), + new (EnergyUnit.Millijoule, EnergyUnits.Millijoule), + new (EnergyUnit.Nanojoule, EnergyUnits.Nanojoule), + new (EnergyUnit.Petajoule, EnergyUnits.Petajoule), + new (EnergyUnit.TeraelectronVolt, EnergyUnits.TeraelectronVolt), + new (EnergyUnit.Terajoule, EnergyUnits.Terajoule), + new (EnergyUnit.TerawattDay, EnergyUnits.TerawattDay), + new (EnergyUnit.TerawattHour, EnergyUnits.TerawattHour), + new (EnergyUnit.ThermEc, EnergyUnits.ThermEc), + new (EnergyUnit.ThermImperial, EnergyUnits.ThermImperial), + new (EnergyUnit.ThermUs, EnergyUnits.ThermUs), + new (EnergyUnit.WattDay, EnergyUnits.WattDay), + new (EnergyUnit.WattHour, EnergyUnits.WattHour), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs index 02684511b4..8a33409016 100644 --- a/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/EnergyDensity.g.cs @@ -119,40 +119,21 @@ 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, EnergyDensityUnits.GigajoulePerCubicMeter), + new (EnergyDensityUnit.GigawattHourPerCubicMeter, EnergyDensityUnits.GigawattHourPerCubicMeter), + new (EnergyDensityUnit.JoulePerCubicMeter, EnergyDensityUnits.JoulePerCubicMeter), + new (EnergyDensityUnit.KilojoulePerCubicMeter, EnergyDensityUnits.KilojoulePerCubicMeter), + new (EnergyDensityUnit.KilowattHourPerCubicMeter, EnergyDensityUnits.KilowattHourPerCubicMeter), + new (EnergyDensityUnit.MegajoulePerCubicMeter, EnergyDensityUnits.MegajoulePerCubicMeter), + new (EnergyDensityUnit.MegawattHourPerCubicMeter, EnergyDensityUnits.MegawattHourPerCubicMeter), + new (EnergyDensityUnit.PetajoulePerCubicMeter, EnergyDensityUnits.PetajoulePerCubicMeter), + new (EnergyDensityUnit.PetawattHourPerCubicMeter, EnergyDensityUnits.PetawattHourPerCubicMeter), + new (EnergyDensityUnit.TerajoulePerCubicMeter, EnergyDensityUnits.TerajoulePerCubicMeter), + new (EnergyDensityUnit.TerawattHourPerCubicMeter, EnergyDensityUnits.TerawattHourPerCubicMeter), + new (EnergyDensityUnit.WattHourPerCubicMeter, EnergyDensityUnits.WattHourPerCubicMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs index 94a156cf60..495249568f 100644 --- a/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Entropy.g.cs @@ -119,25 +119,16 @@ 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, EntropyUnits.CaloriePerKelvin), + new (EntropyUnit.JoulePerDegreeCelsius, EntropyUnits.JoulePerDegreeCelsius), + new (EntropyUnit.JoulePerKelvin, EntropyUnits.JoulePerKelvin), + new (EntropyUnit.KilocaloriePerKelvin, EntropyUnits.KilocaloriePerKelvin), + new (EntropyUnit.KilojoulePerDegreeCelsius, EntropyUnits.KilojoulePerDegreeCelsius), + new (EntropyUnit.KilojoulePerKelvin, EntropyUnits.KilojoulePerKelvin), + new (EntropyUnit.MegajoulePerKelvin, EntropyUnits.MegajoulePerKelvin), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs index ba5ba97aea..a9b6cd6ed8 100644 --- a/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/FluidResistance.g.cs @@ -120,61 +120,28 @@ 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, FluidResistanceUnits.DyneSecondPerCentimeterToTheFifth), + new (FluidResistanceUnit.MegapascalSecondPerCubicMeter, FluidResistanceUnits.MegapascalSecondPerCubicMeter), + new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicCentimeter, FluidResistanceUnits.MillimeterMercuryMinutePerCubicCentimeter), + new (FluidResistanceUnit.MillimeterMercuryMinutePerCubicMeter, FluidResistanceUnits.MillimeterMercuryMinutePerCubicMeter), + new (FluidResistanceUnit.MillimeterMercuryMinutePerLiter, FluidResistanceUnits.MillimeterMercuryMinutePerLiter), + new (FluidResistanceUnit.MillimeterMercuryMinutePerMilliliter, FluidResistanceUnits.MillimeterMercuryMinutePerMilliliter), + new (FluidResistanceUnit.MillimeterMercurySecondPerCubicCentimeter, FluidResistanceUnits.MillimeterMercurySecondPerCubicCentimeter), + new (FluidResistanceUnit.MillimeterMercurySecondPerCubicMeter, FluidResistanceUnits.MillimeterMercurySecondPerCubicMeter), + new (FluidResistanceUnit.MillimeterMercurySecondPerLiter, FluidResistanceUnits.MillimeterMercurySecondPerLiter), + new (FluidResistanceUnit.MillimeterMercurySecondPerMilliliter, FluidResistanceUnits.MillimeterMercurySecondPerMilliliter), + new (FluidResistanceUnit.PascalMinutePerCubicCentimeter, FluidResistanceUnits.PascalMinutePerCubicCentimeter), + new (FluidResistanceUnit.PascalMinutePerCubicMeter, FluidResistanceUnits.PascalMinutePerCubicMeter), + new (FluidResistanceUnit.PascalMinutePerLiter, FluidResistanceUnits.PascalMinutePerLiter), + new (FluidResistanceUnit.PascalMinutePerMilliliter, FluidResistanceUnits.PascalMinutePerMilliliter), + new (FluidResistanceUnit.PascalSecondPerCubicCentimeter, FluidResistanceUnits.PascalSecondPerCubicCentimeter), + new (FluidResistanceUnit.PascalSecondPerCubicMeter, FluidResistanceUnits.PascalSecondPerCubicMeter), + new (FluidResistanceUnit.PascalSecondPerLiter, FluidResistanceUnits.PascalSecondPerLiter), + new (FluidResistanceUnit.PascalSecondPerMilliliter, FluidResistanceUnits.PascalSecondPerMilliliter), + new (FluidResistanceUnit.WoodUnit, FluidResistanceUnits.WoodUnit), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Force.g.cs b/UnitsNet/GeneratedCode/Quantities/Force.g.cs index 4ca9de716c..97ebf25ba5 100644 --- a/UnitsNet/GeneratedCode/Quantities/Force.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Force.g.cs @@ -131,52 +131,25 @@ 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, ForceUnits.Decanewton), + new (ForceUnit.Dyn, ForceUnits.Dyn), + new (ForceUnit.GramForce, ForceUnits.GramForce), + new (ForceUnit.KilogramForce, ForceUnits.KilogramForce), + new (ForceUnit.Kilonewton, ForceUnits.Kilonewton), + new (ForceUnit.Kilopond, ForceUnits.Kilopond), + new (ForceUnit.KilopoundForce, ForceUnits.KilopoundForce), + new (ForceUnit.Meganewton, ForceUnits.Meganewton), + new (ForceUnit.Micronewton, ForceUnits.Micronewton), + new (ForceUnit.Millinewton, ForceUnits.Millinewton), + new (ForceUnit.Newton, ForceUnits.Newton), + new (ForceUnit.OunceForce, ForceUnits.OunceForce), + new (ForceUnit.Poundal, ForceUnits.Poundal), + new (ForceUnit.PoundForce, ForceUnits.PoundForce), + new (ForceUnit.ShortTonForce, ForceUnits.ShortTonForce), + new (ForceUnit.TonneForce, ForceUnits.TonneForce), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs index 3268eb43f3..100ee60df8 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs @@ -117,49 +117,24 @@ 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, ForceChangeRateUnits.CentinewtonPerSecond), + new (ForceChangeRateUnit.DecanewtonPerMinute, ForceChangeRateUnits.DecanewtonPerMinute), + new (ForceChangeRateUnit.DecanewtonPerSecond, ForceChangeRateUnits.DecanewtonPerSecond), + new (ForceChangeRateUnit.DecinewtonPerSecond, ForceChangeRateUnits.DecinewtonPerSecond), + new (ForceChangeRateUnit.KilonewtonPerMinute, ForceChangeRateUnits.KilonewtonPerMinute), + new (ForceChangeRateUnit.KilonewtonPerSecond, ForceChangeRateUnits.KilonewtonPerSecond), + new (ForceChangeRateUnit.KilopoundForcePerMinute, ForceChangeRateUnits.KilopoundForcePerMinute), + new (ForceChangeRateUnit.KilopoundForcePerSecond, ForceChangeRateUnits.KilopoundForcePerSecond), + new (ForceChangeRateUnit.MicronewtonPerSecond, ForceChangeRateUnits.MicronewtonPerSecond), + new (ForceChangeRateUnit.MillinewtonPerSecond, ForceChangeRateUnits.MillinewtonPerSecond), + new (ForceChangeRateUnit.NanonewtonPerSecond, ForceChangeRateUnits.NanonewtonPerSecond), + new (ForceChangeRateUnit.NewtonPerMinute, ForceChangeRateUnits.NewtonPerMinute), + new (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnits.NewtonPerSecond), + new (ForceChangeRateUnit.PoundForcePerMinute, ForceChangeRateUnits.PoundForcePerMinute), + new (ForceChangeRateUnit.PoundForcePerSecond, ForceChangeRateUnits.PoundForcePerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs index a04ef47dbb..47971e15a3 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs @@ -127,118 +127,47 @@ 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, ForcePerLengthUnits.CentinewtonPerCentimeter), + new (ForcePerLengthUnit.CentinewtonPerMeter, ForcePerLengthUnits.CentinewtonPerMeter), + new (ForcePerLengthUnit.CentinewtonPerMillimeter, ForcePerLengthUnits.CentinewtonPerMillimeter), + new (ForcePerLengthUnit.DecanewtonPerCentimeter, ForcePerLengthUnits.DecanewtonPerCentimeter), + new (ForcePerLengthUnit.DecanewtonPerMeter, ForcePerLengthUnits.DecanewtonPerMeter), + new (ForcePerLengthUnit.DecanewtonPerMillimeter, ForcePerLengthUnits.DecanewtonPerMillimeter), + new (ForcePerLengthUnit.DecinewtonPerCentimeter, ForcePerLengthUnits.DecinewtonPerCentimeter), + new (ForcePerLengthUnit.DecinewtonPerMeter, ForcePerLengthUnits.DecinewtonPerMeter), + new (ForcePerLengthUnit.DecinewtonPerMillimeter, ForcePerLengthUnits.DecinewtonPerMillimeter), + new (ForcePerLengthUnit.KilogramForcePerCentimeter, ForcePerLengthUnits.KilogramForcePerCentimeter), + new (ForcePerLengthUnit.KilogramForcePerMeter, ForcePerLengthUnits.KilogramForcePerMeter), + new (ForcePerLengthUnit.KilogramForcePerMillimeter, ForcePerLengthUnits.KilogramForcePerMillimeter), + new (ForcePerLengthUnit.KilonewtonPerCentimeter, ForcePerLengthUnits.KilonewtonPerCentimeter), + new (ForcePerLengthUnit.KilonewtonPerMeter, ForcePerLengthUnits.KilonewtonPerMeter), + new (ForcePerLengthUnit.KilonewtonPerMillimeter, ForcePerLengthUnits.KilonewtonPerMillimeter), + new (ForcePerLengthUnit.KilopoundForcePerFoot, ForcePerLengthUnits.KilopoundForcePerFoot), + new (ForcePerLengthUnit.KilopoundForcePerInch, ForcePerLengthUnits.KilopoundForcePerInch), + new (ForcePerLengthUnit.MeganewtonPerCentimeter, ForcePerLengthUnits.MeganewtonPerCentimeter), + new (ForcePerLengthUnit.MeganewtonPerMeter, ForcePerLengthUnits.MeganewtonPerMeter), + new (ForcePerLengthUnit.MeganewtonPerMillimeter, ForcePerLengthUnits.MeganewtonPerMillimeter), + new (ForcePerLengthUnit.MicronewtonPerCentimeter, ForcePerLengthUnits.MicronewtonPerCentimeter), + new (ForcePerLengthUnit.MicronewtonPerMeter, ForcePerLengthUnits.MicronewtonPerMeter), + new (ForcePerLengthUnit.MicronewtonPerMillimeter, ForcePerLengthUnits.MicronewtonPerMillimeter), + new (ForcePerLengthUnit.MillinewtonPerCentimeter, ForcePerLengthUnits.MillinewtonPerCentimeter), + new (ForcePerLengthUnit.MillinewtonPerMeter, ForcePerLengthUnits.MillinewtonPerMeter), + new (ForcePerLengthUnit.MillinewtonPerMillimeter, ForcePerLengthUnits.MillinewtonPerMillimeter), + new (ForcePerLengthUnit.NanonewtonPerCentimeter, ForcePerLengthUnits.NanonewtonPerCentimeter), + new (ForcePerLengthUnit.NanonewtonPerMeter, ForcePerLengthUnits.NanonewtonPerMeter), + new (ForcePerLengthUnit.NanonewtonPerMillimeter, ForcePerLengthUnits.NanonewtonPerMillimeter), + new (ForcePerLengthUnit.NewtonPerCentimeter, ForcePerLengthUnits.NewtonPerCentimeter), + new (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnits.NewtonPerMeter), + new (ForcePerLengthUnit.NewtonPerMillimeter, ForcePerLengthUnits.NewtonPerMillimeter), + new (ForcePerLengthUnit.PoundForcePerFoot, ForcePerLengthUnits.PoundForcePerFoot), + new (ForcePerLengthUnit.PoundForcePerInch, ForcePerLengthUnits.PoundForcePerInch), + new (ForcePerLengthUnit.PoundForcePerYard, ForcePerLengthUnits.PoundForcePerYard), + new (ForcePerLengthUnit.TonneForcePerCentimeter, ForcePerLengthUnits.TonneForcePerCentimeter), + new (ForcePerLengthUnit.TonneForcePerMeter, ForcePerLengthUnits.TonneForcePerMeter), + new (ForcePerLengthUnit.TonneForcePerMillimeter, ForcePerLengthUnits.TonneForcePerMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs index aeae605f14..9ce1baa5b6 100644 --- a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs @@ -118,40 +118,21 @@ 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, FrequencyUnits.BeatPerMinute), + new (FrequencyUnit.CyclePerHour, FrequencyUnits.CyclePerHour), + new (FrequencyUnit.CyclePerMinute, FrequencyUnits.CyclePerMinute), + new (FrequencyUnit.Gigahertz, FrequencyUnits.Gigahertz), + new (FrequencyUnit.Hertz, FrequencyUnits.Hertz), + new (FrequencyUnit.Kilohertz, FrequencyUnits.Kilohertz), + new (FrequencyUnit.Megahertz, FrequencyUnits.Megahertz), + new (FrequencyUnit.Microhertz, FrequencyUnits.Microhertz), + new (FrequencyUnit.Millihertz, FrequencyUnits.Millihertz), + new (FrequencyUnit.PerSecond, FrequencyUnits.PerSecond), + new (FrequencyUnit.RadianPerSecond, FrequencyUnits.RadianPerSecond), + new (FrequencyUnit.Terahertz, FrequencyUnits.Terahertz), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs index 3882818af1..7906a3dc99 100644 --- a/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/FuelEfficiency.g.cs @@ -119,17 +119,13 @@ 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, FuelEfficiencyUnits.KilometerPerLiter), + new (FuelEfficiencyUnit.LiterPer100Kilometers, FuelEfficiencyUnits.LiterPer100Kilometers), + new (FuelEfficiencyUnit.MilePerUkGallon, FuelEfficiencyUnits.MilePerUkGallon), + new (FuelEfficiencyUnit.MilePerUsGallon, FuelEfficiencyUnits.MilePerUsGallon), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs index ada0ae8a40..161ba73937 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatFlux.g.cs @@ -120,79 +120,34 @@ 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, HeatFluxUnits.BtuPerHourSquareFoot), + new (HeatFluxUnit.BtuPerMinuteSquareFoot, HeatFluxUnits.BtuPerMinuteSquareFoot), + new (HeatFluxUnit.BtuPerSecondSquareFoot, HeatFluxUnits.BtuPerSecondSquareFoot), + new (HeatFluxUnit.BtuPerSecondSquareInch, HeatFluxUnits.BtuPerSecondSquareInch), + new (HeatFluxUnit.CaloriePerSecondSquareCentimeter, HeatFluxUnits.CaloriePerSecondSquareCentimeter), + new (HeatFluxUnit.CentiwattPerSquareMeter, HeatFluxUnits.CentiwattPerSquareMeter), + new (HeatFluxUnit.CentiwattPerSquareMillimeter, HeatFluxUnits.CentiwattPerSquareMillimeter), + new (HeatFluxUnit.DeciwattPerSquareMeter, HeatFluxUnits.DeciwattPerSquareMeter), + new (HeatFluxUnit.DeciwattPerSquareMillimeter, HeatFluxUnits.DeciwattPerSquareMillimeter), + new (HeatFluxUnit.KilocaloriePerHourSquareMeter, HeatFluxUnits.KilocaloriePerHourSquareMeter), + new (HeatFluxUnit.KilocaloriePerSecondSquareCentimeter, HeatFluxUnits.KilocaloriePerSecondSquareCentimeter), + new (HeatFluxUnit.KilowattPerSquareMeter, HeatFluxUnits.KilowattPerSquareMeter), + new (HeatFluxUnit.KilowattPerSquareMillimeter, HeatFluxUnits.KilowattPerSquareMillimeter), + new (HeatFluxUnit.MicrowattPerSquareMeter, HeatFluxUnits.MicrowattPerSquareMeter), + new (HeatFluxUnit.MicrowattPerSquareMillimeter, HeatFluxUnits.MicrowattPerSquareMillimeter), + new (HeatFluxUnit.MilliwattPerSquareMeter, HeatFluxUnits.MilliwattPerSquareMeter), + new (HeatFluxUnit.MilliwattPerSquareMillimeter, HeatFluxUnits.MilliwattPerSquareMillimeter), + new (HeatFluxUnit.NanowattPerSquareMeter, HeatFluxUnits.NanowattPerSquareMeter), + new (HeatFluxUnit.NanowattPerSquareMillimeter, HeatFluxUnits.NanowattPerSquareMillimeter), + new (HeatFluxUnit.PoundForcePerFootSecond, HeatFluxUnits.PoundForcePerFootSecond), + new (HeatFluxUnit.PoundPerSecondCubed, HeatFluxUnits.PoundPerSecondCubed), + new (HeatFluxUnit.WattPerSquareFoot, HeatFluxUnits.WattPerSquareFoot), + new (HeatFluxUnit.WattPerSquareInch, HeatFluxUnits.WattPerSquareInch), + new (HeatFluxUnit.WattPerSquareMeter, HeatFluxUnits.WattPerSquareMeter), + new (HeatFluxUnit.WattPerSquareMillimeter, HeatFluxUnits.WattPerSquareMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs index 51ab61baba..419eb43b24 100644 --- a/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs @@ -117,22 +117,15 @@ 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, HeatTransferCoefficientUnits.BtuPerHourSquareFootDegreeFahrenheit), + new (HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit, HeatTransferCoefficientUnits.BtuPerSecondSquareInchDegreeFahrenheit), + new (HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius, HeatTransferCoefficientUnits.CaloriePerHourSquareMeterDegreeCelsius), + new (HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius, HeatTransferCoefficientUnits.KilocaloriePerHourSquareMeterDegreeCelsius), + new (HeatTransferCoefficientUnit.WattPerSquareMeterCelsius, HeatTransferCoefficientUnits.WattPerSquareMeterCelsius), + new (HeatTransferCoefficientUnit.WattPerSquareMeterKelvin, HeatTransferCoefficientUnits.WattPerSquareMeterKelvin), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs index ab83faa289..e290134e3d 100644 --- a/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Illuminance.g.cs @@ -120,16 +120,13 @@ 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, IlluminanceUnits.Kilolux), + new (IlluminanceUnit.Lux, IlluminanceUnits.Lux), + new (IlluminanceUnit.Megalux, IlluminanceUnits.Megalux), + new (IlluminanceUnit.Millilux, IlluminanceUnits.Millilux), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs b/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs index f45683859e..292b7f673a 100644 --- a/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Impulse.g.cs @@ -118,43 +118,22 @@ 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, ImpulseUnits.CentinewtonSecond), + new (ImpulseUnit.DecanewtonSecond, ImpulseUnits.DecanewtonSecond), + new (ImpulseUnit.DecinewtonSecond, ImpulseUnits.DecinewtonSecond), + new (ImpulseUnit.KilogramMeterPerSecond, ImpulseUnits.KilogramMeterPerSecond), + new (ImpulseUnit.KilonewtonSecond, ImpulseUnits.KilonewtonSecond), + new (ImpulseUnit.MeganewtonSecond, ImpulseUnits.MeganewtonSecond), + new (ImpulseUnit.MicronewtonSecond, ImpulseUnits.MicronewtonSecond), + new (ImpulseUnit.MillinewtonSecond, ImpulseUnits.MillinewtonSecond), + new (ImpulseUnit.NanonewtonSecond, ImpulseUnits.NanonewtonSecond), + new (ImpulseUnit.NewtonSecond, ImpulseUnits.NewtonSecond), + new (ImpulseUnit.PoundFootPerSecond, ImpulseUnits.PoundFootPerSecond), + new (ImpulseUnit.PoundForceSecond, ImpulseUnits.PoundForceSecond), + new (ImpulseUnit.SlugFootPerSecond, ImpulseUnits.SlugFootPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Information.g.cs b/UnitsNet/GeneratedCode/Quantities/Information.g.cs index 25c24e18bb..b33c3794d1 100644 --- a/UnitsNet/GeneratedCode/Quantities/Information.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Information.g.cs @@ -119,121 +119,48 @@ 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, InformationUnits.Bit), + new (InformationUnit.Byte, InformationUnits.Byte), + new (InformationUnit.Exabit, InformationUnits.Exabit), + new (InformationUnit.Exabyte, InformationUnits.Exabyte), + new (InformationUnit.Exaoctet, InformationUnits.Exaoctet), + new (InformationUnit.Exbibit, InformationUnits.Exbibit), + new (InformationUnit.Exbibyte, InformationUnits.Exbibyte), + new (InformationUnit.Exbioctet, InformationUnits.Exbioctet), + new (InformationUnit.Gibibit, InformationUnits.Gibibit), + new (InformationUnit.Gibibyte, InformationUnits.Gibibyte), + new (InformationUnit.Gibioctet, InformationUnits.Gibioctet), + new (InformationUnit.Gigabit, InformationUnits.Gigabit), + new (InformationUnit.Gigabyte, InformationUnits.Gigabyte), + new (InformationUnit.Gigaoctet, InformationUnits.Gigaoctet), + new (InformationUnit.Kibibit, InformationUnits.Kibibit), + new (InformationUnit.Kibibyte, InformationUnits.Kibibyte), + new (InformationUnit.Kibioctet, InformationUnits.Kibioctet), + new (InformationUnit.Kilobit, InformationUnits.Kilobit), + new (InformationUnit.Kilobyte, InformationUnits.Kilobyte), + new (InformationUnit.Kilooctet, InformationUnits.Kilooctet), + new (InformationUnit.Mebibit, InformationUnits.Mebibit), + new (InformationUnit.Mebibyte, InformationUnits.Mebibyte), + new (InformationUnit.Mebioctet, InformationUnits.Mebioctet), + new (InformationUnit.Megabit, InformationUnits.Megabit), + new (InformationUnit.Megabyte, InformationUnits.Megabyte), + new (InformationUnit.Megaoctet, InformationUnits.Megaoctet), + new (InformationUnit.Octet, InformationUnits.Octet), + new (InformationUnit.Pebibit, InformationUnits.Pebibit), + new (InformationUnit.Pebibyte, InformationUnits.Pebibyte), + new (InformationUnit.Pebioctet, InformationUnits.Pebioctet), + new (InformationUnit.Petabit, InformationUnits.Petabit), + new (InformationUnit.Petabyte, InformationUnits.Petabyte), + new (InformationUnit.Petaoctet, InformationUnits.Petaoctet), + new (InformationUnit.Tebibit, InformationUnits.Tebibit), + new (InformationUnit.Tebibyte, InformationUnits.Tebibyte), + new (InformationUnit.Tebioctet, InformationUnits.Tebioctet), + new (InformationUnit.Terabit, InformationUnits.Terabit), + new (InformationUnit.Terabyte, InformationUnits.Terabyte), + new (InformationUnit.Teraoctet, InformationUnits.Teraoctet), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs index affb6a176b..3a3a46ebb7 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiance.g.cs @@ -117,46 +117,23 @@ 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, IrradianceUnits.KilowattPerSquareCentimeter), + new (IrradianceUnit.KilowattPerSquareMeter, IrradianceUnits.KilowattPerSquareMeter), + new (IrradianceUnit.MegawattPerSquareCentimeter, IrradianceUnits.MegawattPerSquareCentimeter), + new (IrradianceUnit.MegawattPerSquareMeter, IrradianceUnits.MegawattPerSquareMeter), + new (IrradianceUnit.MicrowattPerSquareCentimeter, IrradianceUnits.MicrowattPerSquareCentimeter), + new (IrradianceUnit.MicrowattPerSquareMeter, IrradianceUnits.MicrowattPerSquareMeter), + new (IrradianceUnit.MilliwattPerSquareCentimeter, IrradianceUnits.MilliwattPerSquareCentimeter), + new (IrradianceUnit.MilliwattPerSquareMeter, IrradianceUnits.MilliwattPerSquareMeter), + new (IrradianceUnit.NanowattPerSquareCentimeter, IrradianceUnits.NanowattPerSquareCentimeter), + new (IrradianceUnit.NanowattPerSquareMeter, IrradianceUnits.NanowattPerSquareMeter), + new (IrradianceUnit.PicowattPerSquareCentimeter, IrradianceUnits.PicowattPerSquareCentimeter), + new (IrradianceUnit.PicowattPerSquareMeter, IrradianceUnits.PicowattPerSquareMeter), + new (IrradianceUnit.WattPerSquareCentimeter, IrradianceUnits.WattPerSquareCentimeter), + new (IrradianceUnit.WattPerSquareMeter, IrradianceUnits.WattPerSquareMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs index 8bde6cb308..ac7a3eabf6 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs @@ -121,31 +121,18 @@ 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, IrradiationUnits.BtuPerSquareFoot), + new (IrradiationUnit.JoulePerSquareCentimeter, IrradiationUnits.JoulePerSquareCentimeter), + new (IrradiationUnit.JoulePerSquareMeter, IrradiationUnits.JoulePerSquareMeter), + new (IrradiationUnit.JoulePerSquareMillimeter, IrradiationUnits.JoulePerSquareMillimeter), + new (IrradiationUnit.KilobtuPerSquareFoot, IrradiationUnits.KilobtuPerSquareFoot), + new (IrradiationUnit.KilojoulePerSquareMeter, IrradiationUnits.KilojoulePerSquareMeter), + new (IrradiationUnit.KilowattHourPerSquareMeter, IrradiationUnits.KilowattHourPerSquareMeter), + new (IrradiationUnit.MillijoulePerSquareCentimeter, IrradiationUnits.MillijoulePerSquareCentimeter), + new (IrradiationUnit.WattHourPerSquareMeter, IrradiationUnits.WattHourPerSquareMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs b/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs index 29d40527a4..253684b9b8 100644 --- a/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Jerk.g.cs @@ -117,37 +117,20 @@ 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, JerkUnits.CentimeterPerSecondCubed), + new (JerkUnit.DecimeterPerSecondCubed, JerkUnits.DecimeterPerSecondCubed), + new (JerkUnit.FootPerSecondCubed, JerkUnits.FootPerSecondCubed), + new (JerkUnit.InchPerSecondCubed, JerkUnits.InchPerSecondCubed), + new (JerkUnit.KilometerPerSecondCubed, JerkUnits.KilometerPerSecondCubed), + new (JerkUnit.MeterPerSecondCubed, JerkUnits.MeterPerSecondCubed), + new (JerkUnit.MicrometerPerSecondCubed, JerkUnits.MicrometerPerSecondCubed), + new (JerkUnit.MillimeterPerSecondCubed, JerkUnits.MillimeterPerSecondCubed), + new (JerkUnit.MillistandardGravitiesPerSecond, JerkUnits.MillistandardGravitiesPerSecond), + new (JerkUnit.NanometerPerSecondCubed, JerkUnits.NanometerPerSecondCubed), + new (JerkUnit.StandardGravitiesPerSecond, JerkUnits.StandardGravitiesPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs index f3665c7b15..4d9ed5d745 100644 --- a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs @@ -123,31 +123,18 @@ 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, KinematicViscosityUnits.Centistokes), + new (KinematicViscosityUnit.Decistokes, KinematicViscosityUnits.Decistokes), + new (KinematicViscosityUnit.Kilostokes, KinematicViscosityUnits.Kilostokes), + new (KinematicViscosityUnit.Microstokes, KinematicViscosityUnits.Microstokes), + new (KinematicViscosityUnit.Millistokes, KinematicViscosityUnits.Millistokes), + new (KinematicViscosityUnit.Nanostokes, KinematicViscosityUnits.Nanostokes), + new (KinematicViscosityUnit.SquareFootPerSecond, KinematicViscosityUnits.SquareFootPerSecond), + new (KinematicViscosityUnit.SquareMeterPerSecond, KinematicViscosityUnits.SquareMeterPerSecond), + new (KinematicViscosityUnit.Stokes, KinematicViscosityUnits.Stokes), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs b/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs index d33a66d643..ff86f202fc 100644 --- a/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LeakRate.g.cs @@ -121,16 +121,13 @@ 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, LeakRateUnits.AtmCubicCentimeterPerSecond), + new (LeakRateUnit.MillibarLiterPerSecond, LeakRateUnits.MillibarLiterPerSecond), + new (LeakRateUnit.PascalCubicMeterPerSecond, LeakRateUnits.PascalCubicMeterPerSecond), + new (LeakRateUnit.TorrLiterPerSecond, LeakRateUnits.TorrLiterPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Length.g.cs b/UnitsNet/GeneratedCode/Quantities/Length.g.cs index dfe52879ca..69796459d7 100644 --- a/UnitsNet/GeneratedCode/Quantities/Length.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Length.g.cs @@ -140,130 +140,51 @@ 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, LengthUnits.Angstrom), + new (LengthUnit.AstronomicalUnit, LengthUnits.AstronomicalUnit), + new (LengthUnit.Centimeter, LengthUnits.Centimeter), + new (LengthUnit.Chain, LengthUnits.Chain), + new (LengthUnit.DataMile, LengthUnits.DataMile), + new (LengthUnit.Decameter, LengthUnits.Decameter), + new (LengthUnit.Decimeter, LengthUnits.Decimeter), + new (LengthUnit.DtpPica, LengthUnits.DtpPica), + new (LengthUnit.DtpPoint, LengthUnits.DtpPoint), + new (LengthUnit.Fathom, LengthUnits.Fathom), + new (LengthUnit.Femtometer, LengthUnits.Femtometer), + new (LengthUnit.Foot, LengthUnits.Foot), + new (LengthUnit.Gigameter, LengthUnits.Gigameter), + new (LengthUnit.Hand, LengthUnits.Hand), + new (LengthUnit.Hectometer, LengthUnits.Hectometer), + new (LengthUnit.Inch, LengthUnits.Inch), + new (LengthUnit.Kilofoot, LengthUnits.Kilofoot), + new (LengthUnit.KilolightYear, LengthUnits.KilolightYear), + new (LengthUnit.Kilometer, LengthUnits.Kilometer), + new (LengthUnit.Kiloparsec, LengthUnits.Kiloparsec), + new (LengthUnit.Kiloyard, LengthUnits.Kiloyard), + new (LengthUnit.LightYear, LengthUnits.LightYear), + new (LengthUnit.MegalightYear, LengthUnits.MegalightYear), + new (LengthUnit.Megameter, LengthUnits.Megameter), + new (LengthUnit.Megaparsec, LengthUnits.Megaparsec), + new (LengthUnit.Meter, LengthUnits.Meter), + new (LengthUnit.Microinch, LengthUnits.Microinch), + new (LengthUnit.Micrometer, LengthUnits.Micrometer), + new (LengthUnit.Mil, LengthUnits.Mil), + new (LengthUnit.Mile, LengthUnits.Mile), + new (LengthUnit.Millimeter, LengthUnits.Millimeter), + new (LengthUnit.Nanometer, LengthUnits.Nanometer), + new (LengthUnit.NauticalMile, LengthUnits.NauticalMile), + new (LengthUnit.Parsec, LengthUnits.Parsec), + new (LengthUnit.Picometer, LengthUnits.Picometer), + new (LengthUnit.PrinterPica, LengthUnits.PrinterPica), + new (LengthUnit.PrinterPoint, LengthUnits.PrinterPoint), + new (LengthUnit.Shackle, LengthUnits.Shackle), + new (LengthUnit.SolarRadius, LengthUnits.SolarRadius), + new (LengthUnit.Twip, LengthUnits.Twip), + new (LengthUnit.UsSurveyFoot, LengthUnits.UsSurveyFoot), + new (LengthUnit.Yard, LengthUnits.Yard), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Level.g.cs b/UnitsNet/GeneratedCode/Quantities/Level.g.cs index 6d11c15fa7..5e0f140184 100644 --- a/UnitsNet/GeneratedCode/Quantities/Level.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Level.g.cs @@ -116,10 +116,11 @@ 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, LevelUnits.Decibel), + new (LevelUnit.Neper, LevelUnits.Neper), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs index 784cf6cf33..c945194abd 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs @@ -125,58 +125,27 @@ 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, LinearDensityUnits.GramPerCentimeter), + new (LinearDensityUnit.GramPerFoot, LinearDensityUnits.GramPerFoot), + new (LinearDensityUnit.GramPerMeter, LinearDensityUnits.GramPerMeter), + new (LinearDensityUnit.GramPerMillimeter, LinearDensityUnits.GramPerMillimeter), + new (LinearDensityUnit.KilogramPerCentimeter, LinearDensityUnits.KilogramPerCentimeter), + new (LinearDensityUnit.KilogramPerFoot, LinearDensityUnits.KilogramPerFoot), + new (LinearDensityUnit.KilogramPerMeter, LinearDensityUnits.KilogramPerMeter), + new (LinearDensityUnit.KilogramPerMillimeter, LinearDensityUnits.KilogramPerMillimeter), + new (LinearDensityUnit.MicrogramPerCentimeter, LinearDensityUnits.MicrogramPerCentimeter), + new (LinearDensityUnit.MicrogramPerFoot, LinearDensityUnits.MicrogramPerFoot), + new (LinearDensityUnit.MicrogramPerMeter, LinearDensityUnits.MicrogramPerMeter), + new (LinearDensityUnit.MicrogramPerMillimeter, LinearDensityUnits.MicrogramPerMillimeter), + new (LinearDensityUnit.MilligramPerCentimeter, LinearDensityUnits.MilligramPerCentimeter), + new (LinearDensityUnit.MilligramPerFoot, LinearDensityUnits.MilligramPerFoot), + new (LinearDensityUnit.MilligramPerMeter, LinearDensityUnits.MilligramPerMeter), + new (LinearDensityUnit.MilligramPerMillimeter, LinearDensityUnits.MilligramPerMillimeter), + new (LinearDensityUnit.PoundPerFoot, LinearDensityUnits.PoundPerFoot), + new (LinearDensityUnit.PoundPerInch, LinearDensityUnits.PoundPerInch), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs index 364ac7ce17..4058888216 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs @@ -120,79 +120,34 @@ 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, LinearPowerDensityUnits.GigawattPerCentimeter), + new (LinearPowerDensityUnit.GigawattPerFoot, LinearPowerDensityUnits.GigawattPerFoot), + new (LinearPowerDensityUnit.GigawattPerInch, LinearPowerDensityUnits.GigawattPerInch), + new (LinearPowerDensityUnit.GigawattPerMeter, LinearPowerDensityUnits.GigawattPerMeter), + new (LinearPowerDensityUnit.GigawattPerMillimeter, LinearPowerDensityUnits.GigawattPerMillimeter), + new (LinearPowerDensityUnit.KilowattPerCentimeter, LinearPowerDensityUnits.KilowattPerCentimeter), + new (LinearPowerDensityUnit.KilowattPerFoot, LinearPowerDensityUnits.KilowattPerFoot), + new (LinearPowerDensityUnit.KilowattPerInch, LinearPowerDensityUnits.KilowattPerInch), + new (LinearPowerDensityUnit.KilowattPerMeter, LinearPowerDensityUnits.KilowattPerMeter), + new (LinearPowerDensityUnit.KilowattPerMillimeter, LinearPowerDensityUnits.KilowattPerMillimeter), + new (LinearPowerDensityUnit.MegawattPerCentimeter, LinearPowerDensityUnits.MegawattPerCentimeter), + new (LinearPowerDensityUnit.MegawattPerFoot, LinearPowerDensityUnits.MegawattPerFoot), + new (LinearPowerDensityUnit.MegawattPerInch, LinearPowerDensityUnits.MegawattPerInch), + new (LinearPowerDensityUnit.MegawattPerMeter, LinearPowerDensityUnits.MegawattPerMeter), + new (LinearPowerDensityUnit.MegawattPerMillimeter, LinearPowerDensityUnits.MegawattPerMillimeter), + new (LinearPowerDensityUnit.MilliwattPerCentimeter, LinearPowerDensityUnits.MilliwattPerCentimeter), + new (LinearPowerDensityUnit.MilliwattPerFoot, LinearPowerDensityUnits.MilliwattPerFoot), + new (LinearPowerDensityUnit.MilliwattPerInch, LinearPowerDensityUnits.MilliwattPerInch), + new (LinearPowerDensityUnit.MilliwattPerMeter, LinearPowerDensityUnits.MilliwattPerMeter), + new (LinearPowerDensityUnit.MilliwattPerMillimeter, LinearPowerDensityUnits.MilliwattPerMillimeter), + new (LinearPowerDensityUnit.WattPerCentimeter, LinearPowerDensityUnits.WattPerCentimeter), + new (LinearPowerDensityUnit.WattPerFoot, LinearPowerDensityUnits.WattPerFoot), + new (LinearPowerDensityUnit.WattPerInch, LinearPowerDensityUnits.WattPerInch), + new (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnits.WattPerMeter), + new (LinearPowerDensityUnit.WattPerMillimeter, LinearPowerDensityUnits.WattPerMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs index 4acd55edfd..802fc94495 100644 --- a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs @@ -120,34 +120,19 @@ 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, LuminanceUnits.CandelaPerSquareFoot), + new (LuminanceUnit.CandelaPerSquareInch, LuminanceUnits.CandelaPerSquareInch), + new (LuminanceUnit.CandelaPerSquareMeter, LuminanceUnits.CandelaPerSquareMeter), + new (LuminanceUnit.CenticandelaPerSquareMeter, LuminanceUnits.CenticandelaPerSquareMeter), + new (LuminanceUnit.DecicandelaPerSquareMeter, LuminanceUnits.DecicandelaPerSquareMeter), + new (LuminanceUnit.KilocandelaPerSquareMeter, LuminanceUnits.KilocandelaPerSquareMeter), + new (LuminanceUnit.MicrocandelaPerSquareMeter, LuminanceUnits.MicrocandelaPerSquareMeter), + new (LuminanceUnit.MillicandelaPerSquareMeter, LuminanceUnits.MillicandelaPerSquareMeter), + new (LuminanceUnit.NanocandelaPerSquareMeter, LuminanceUnits.NanocandelaPerSquareMeter), + new (LuminanceUnit.Nit, LuminanceUnits.Nit), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs index d8c5cc4606..8f9b5a2b74 100644 --- a/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Luminosity.g.cs @@ -119,46 +119,23 @@ 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, LuminosityUnits.Decawatt), + new (LuminosityUnit.Deciwatt, LuminosityUnits.Deciwatt), + new (LuminosityUnit.Femtowatt, LuminosityUnits.Femtowatt), + new (LuminosityUnit.Gigawatt, LuminosityUnits.Gigawatt), + new (LuminosityUnit.Kilowatt, LuminosityUnits.Kilowatt), + new (LuminosityUnit.Megawatt, LuminosityUnits.Megawatt), + new (LuminosityUnit.Microwatt, LuminosityUnits.Microwatt), + new (LuminosityUnit.Milliwatt, LuminosityUnits.Milliwatt), + new (LuminosityUnit.Nanowatt, LuminosityUnits.Nanowatt), + new (LuminosityUnit.Petawatt, LuminosityUnits.Petawatt), + new (LuminosityUnit.Picowatt, LuminosityUnits.Picowatt), + new (LuminosityUnit.SolarLuminosity, LuminosityUnits.SolarLuminosity), + new (LuminosityUnit.Terawatt, LuminosityUnits.Terawatt), + new (LuminosityUnit.Watt, LuminosityUnits.Watt), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousFlux.g.cs index 7c354155d3..9577df71dd 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, LuminousFluxUnits.Lumen), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LuminousIntensity.g.cs index b392682978..578d0d3055 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, LuminousIntensityUnits.Candela), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs index 4c2bdbe3af..d70dd2a98f 100644 --- a/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MagneticField.g.cs @@ -120,22 +120,15 @@ 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, MagneticFieldUnits.Gauss), + new (MagneticFieldUnit.Microtesla, MagneticFieldUnits.Microtesla), + new (MagneticFieldUnit.Milligauss, MagneticFieldUnits.Milligauss), + new (MagneticFieldUnit.Millitesla, MagneticFieldUnits.Millitesla), + new (MagneticFieldUnit.Nanotesla, MagneticFieldUnits.Nanotesla), + new (MagneticFieldUnit.Tesla, MagneticFieldUnits.Tesla), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MagneticFlux.g.cs index 9fcfa55cbe..0ab95fdc1f 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, MagneticFluxUnits.Weber), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs b/UnitsNet/GeneratedCode/Quantities/Magnetization.g.cs index 355296bb0f..38695350a6 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, MagnetizationUnits.AmperePerMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs index f4993cc01a..463c7de420 100644 --- a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs @@ -132,97 +132,40 @@ 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, MassUnits.Centigram), + new (MassUnit.Dalton, MassUnits.Dalton), + new (MassUnit.Decagram, MassUnits.Decagram), + new (MassUnit.Decigram, MassUnits.Decigram), + new (MassUnit.EarthMass, MassUnits.EarthMass), + new (MassUnit.Femtogram, MassUnits.Femtogram), + new (MassUnit.Gigadalton, MassUnits.Gigadalton), + new (MassUnit.Grain, MassUnits.Grain), + new (MassUnit.Gram, MassUnits.Gram), + new (MassUnit.Hectogram, MassUnits.Hectogram), + new (MassUnit.Kilodalton, MassUnits.Kilodalton), + new (MassUnit.Kilogram, MassUnits.Kilogram), + new (MassUnit.Kilopound, MassUnits.Kilopound), + new (MassUnit.Kilotonne, MassUnits.Kilotonne), + new (MassUnit.LongHundredweight, MassUnits.LongHundredweight), + new (MassUnit.LongTon, MassUnits.LongTon), + new (MassUnit.Megadalton, MassUnits.Megadalton), + new (MassUnit.Megapound, MassUnits.Megapound), + new (MassUnit.Megatonne, MassUnits.Megatonne), + new (MassUnit.Microgram, MassUnits.Microgram), + new (MassUnit.Milligram, MassUnits.Milligram), + new (MassUnit.Nanogram, MassUnits.Nanogram), + new (MassUnit.Ounce, MassUnits.Ounce), + new (MassUnit.Picogram, MassUnits.Picogram), + new (MassUnit.Pound, MassUnits.Pound), + new (MassUnit.ShortHundredweight, MassUnits.ShortHundredweight), + new (MassUnit.ShortTon, MassUnits.ShortTon), + new (MassUnit.Slug, MassUnits.Slug), + new (MassUnit.SolarMass, MassUnits.SolarMass), + new (MassUnit.Stone, MassUnits.Stone), + new (MassUnit.Tonne, MassUnits.Tonne), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs index 80fa4ac505..4a0574ecd5 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs @@ -124,151 +124,58 @@ 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, MassConcentrationUnits.CentigramPerDeciliter), + new (MassConcentrationUnit.CentigramPerLiter, MassConcentrationUnits.CentigramPerLiter), + new (MassConcentrationUnit.CentigramPerMicroliter, MassConcentrationUnits.CentigramPerMicroliter), + new (MassConcentrationUnit.CentigramPerMilliliter, MassConcentrationUnits.CentigramPerMilliliter), + new (MassConcentrationUnit.DecigramPerDeciliter, MassConcentrationUnits.DecigramPerDeciliter), + new (MassConcentrationUnit.DecigramPerLiter, MassConcentrationUnits.DecigramPerLiter), + new (MassConcentrationUnit.DecigramPerMicroliter, MassConcentrationUnits.DecigramPerMicroliter), + new (MassConcentrationUnit.DecigramPerMilliliter, MassConcentrationUnits.DecigramPerMilliliter), + new (MassConcentrationUnit.GramPerCubicCentimeter, MassConcentrationUnits.GramPerCubicCentimeter), + new (MassConcentrationUnit.GramPerCubicMeter, MassConcentrationUnits.GramPerCubicMeter), + new (MassConcentrationUnit.GramPerCubicMillimeter, MassConcentrationUnits.GramPerCubicMillimeter), + new (MassConcentrationUnit.GramPerDeciliter, MassConcentrationUnits.GramPerDeciliter), + new (MassConcentrationUnit.GramPerLiter, MassConcentrationUnits.GramPerLiter), + new (MassConcentrationUnit.GramPerMicroliter, MassConcentrationUnits.GramPerMicroliter), + new (MassConcentrationUnit.GramPerMilliliter, MassConcentrationUnits.GramPerMilliliter), + new (MassConcentrationUnit.KilogramPerCubicCentimeter, MassConcentrationUnits.KilogramPerCubicCentimeter), + new (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnits.KilogramPerCubicMeter), + new (MassConcentrationUnit.KilogramPerCubicMillimeter, MassConcentrationUnits.KilogramPerCubicMillimeter), + new (MassConcentrationUnit.KilogramPerLiter, MassConcentrationUnits.KilogramPerLiter), + new (MassConcentrationUnit.KilopoundPerCubicFoot, MassConcentrationUnits.KilopoundPerCubicFoot), + new (MassConcentrationUnit.KilopoundPerCubicInch, MassConcentrationUnits.KilopoundPerCubicInch), + new (MassConcentrationUnit.MicrogramPerCubicMeter, MassConcentrationUnits.MicrogramPerCubicMeter), + new (MassConcentrationUnit.MicrogramPerDeciliter, MassConcentrationUnits.MicrogramPerDeciliter), + new (MassConcentrationUnit.MicrogramPerLiter, MassConcentrationUnits.MicrogramPerLiter), + new (MassConcentrationUnit.MicrogramPerMicroliter, MassConcentrationUnits.MicrogramPerMicroliter), + new (MassConcentrationUnit.MicrogramPerMilliliter, MassConcentrationUnits.MicrogramPerMilliliter), + new (MassConcentrationUnit.MilligramPerCubicMeter, MassConcentrationUnits.MilligramPerCubicMeter), + new (MassConcentrationUnit.MilligramPerDeciliter, MassConcentrationUnits.MilligramPerDeciliter), + new (MassConcentrationUnit.MilligramPerLiter, MassConcentrationUnits.MilligramPerLiter), + new (MassConcentrationUnit.MilligramPerMicroliter, MassConcentrationUnits.MilligramPerMicroliter), + new (MassConcentrationUnit.MilligramPerMilliliter, MassConcentrationUnits.MilligramPerMilliliter), + new (MassConcentrationUnit.NanogramPerDeciliter, MassConcentrationUnits.NanogramPerDeciliter), + new (MassConcentrationUnit.NanogramPerLiter, MassConcentrationUnits.NanogramPerLiter), + new (MassConcentrationUnit.NanogramPerMicroliter, MassConcentrationUnits.NanogramPerMicroliter), + new (MassConcentrationUnit.NanogramPerMilliliter, MassConcentrationUnits.NanogramPerMilliliter), + new (MassConcentrationUnit.OuncePerImperialGallon, MassConcentrationUnits.OuncePerImperialGallon), + new (MassConcentrationUnit.OuncePerUSGallon, MassConcentrationUnits.OuncePerUSGallon), + new (MassConcentrationUnit.PicogramPerDeciliter, MassConcentrationUnits.PicogramPerDeciliter), + new (MassConcentrationUnit.PicogramPerLiter, MassConcentrationUnits.PicogramPerLiter), + new (MassConcentrationUnit.PicogramPerMicroliter, MassConcentrationUnits.PicogramPerMicroliter), + new (MassConcentrationUnit.PicogramPerMilliliter, MassConcentrationUnits.PicogramPerMilliliter), + new (MassConcentrationUnit.PoundPerCubicFoot, MassConcentrationUnits.PoundPerCubicFoot), + new (MassConcentrationUnit.PoundPerCubicInch, MassConcentrationUnits.PoundPerCubicInch), + new (MassConcentrationUnit.PoundPerImperialGallon, MassConcentrationUnits.PoundPerImperialGallon), + new (MassConcentrationUnit.PoundPerUSGallon, MassConcentrationUnits.PoundPerUSGallon), + new (MassConcentrationUnit.SlugPerCubicFoot, MassConcentrationUnits.SlugPerCubicFoot), + new (MassConcentrationUnit.TonnePerCubicCentimeter, MassConcentrationUnits.TonnePerCubicCentimeter), + new (MassConcentrationUnit.TonnePerCubicMeter, MassConcentrationUnits.TonnePerCubicMeter), + new (MassConcentrationUnit.TonnePerCubicMillimeter, MassConcentrationUnits.TonnePerCubicMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs index a3a1b25257..c72fe23198 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs @@ -126,103 +126,42 @@ 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, MassFlowUnits.CentigramPerDay), + new (MassFlowUnit.CentigramPerSecond, MassFlowUnits.CentigramPerSecond), + new (MassFlowUnit.DecagramPerDay, MassFlowUnits.DecagramPerDay), + new (MassFlowUnit.DecagramPerSecond, MassFlowUnits.DecagramPerSecond), + new (MassFlowUnit.DecigramPerDay, MassFlowUnits.DecigramPerDay), + new (MassFlowUnit.DecigramPerSecond, MassFlowUnits.DecigramPerSecond), + new (MassFlowUnit.GramPerDay, MassFlowUnits.GramPerDay), + new (MassFlowUnit.GramPerHour, MassFlowUnits.GramPerHour), + new (MassFlowUnit.GramPerSecond, MassFlowUnits.GramPerSecond), + new (MassFlowUnit.HectogramPerDay, MassFlowUnits.HectogramPerDay), + new (MassFlowUnit.HectogramPerSecond, MassFlowUnits.HectogramPerSecond), + new (MassFlowUnit.KilogramPerDay, MassFlowUnits.KilogramPerDay), + new (MassFlowUnit.KilogramPerHour, MassFlowUnits.KilogramPerHour), + new (MassFlowUnit.KilogramPerMinute, MassFlowUnits.KilogramPerMinute), + new (MassFlowUnit.KilogramPerSecond, MassFlowUnits.KilogramPerSecond), + new (MassFlowUnit.MegagramPerDay, MassFlowUnits.MegagramPerDay), + new (MassFlowUnit.MegapoundPerDay, MassFlowUnits.MegapoundPerDay), + new (MassFlowUnit.MegapoundPerHour, MassFlowUnits.MegapoundPerHour), + new (MassFlowUnit.MegapoundPerMinute, MassFlowUnits.MegapoundPerMinute), + new (MassFlowUnit.MegapoundPerSecond, MassFlowUnits.MegapoundPerSecond), + new (MassFlowUnit.MicrogramPerDay, MassFlowUnits.MicrogramPerDay), + new (MassFlowUnit.MicrogramPerSecond, MassFlowUnits.MicrogramPerSecond), + new (MassFlowUnit.MilligramPerDay, MassFlowUnits.MilligramPerDay), + new (MassFlowUnit.MilligramPerSecond, MassFlowUnits.MilligramPerSecond), + new (MassFlowUnit.NanogramPerDay, MassFlowUnits.NanogramPerDay), + new (MassFlowUnit.NanogramPerSecond, MassFlowUnits.NanogramPerSecond), + new (MassFlowUnit.PoundPerDay, MassFlowUnits.PoundPerDay), + new (MassFlowUnit.PoundPerHour, MassFlowUnits.PoundPerHour), + new (MassFlowUnit.PoundPerMinute, MassFlowUnits.PoundPerMinute), + new (MassFlowUnit.PoundPerSecond, MassFlowUnits.PoundPerSecond), + new (MassFlowUnit.ShortTonPerHour, MassFlowUnits.ShortTonPerHour), + new (MassFlowUnit.TonnePerDay, MassFlowUnits.TonnePerDay), + new (MassFlowUnit.TonnePerHour, MassFlowUnits.TonnePerHour), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs index 14987fa97e..89dae9917e 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlux.g.cs @@ -119,40 +119,21 @@ 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, MassFluxUnits.GramPerHourPerSquareCentimeter), + new (MassFluxUnit.GramPerHourPerSquareMeter, MassFluxUnits.GramPerHourPerSquareMeter), + new (MassFluxUnit.GramPerHourPerSquareMillimeter, MassFluxUnits.GramPerHourPerSquareMillimeter), + new (MassFluxUnit.GramPerSecondPerSquareCentimeter, MassFluxUnits.GramPerSecondPerSquareCentimeter), + new (MassFluxUnit.GramPerSecondPerSquareMeter, MassFluxUnits.GramPerSecondPerSquareMeter), + new (MassFluxUnit.GramPerSecondPerSquareMillimeter, MassFluxUnits.GramPerSecondPerSquareMillimeter), + new (MassFluxUnit.KilogramPerHourPerSquareCentimeter, MassFluxUnits.KilogramPerHourPerSquareCentimeter), + new (MassFluxUnit.KilogramPerHourPerSquareMeter, MassFluxUnits.KilogramPerHourPerSquareMeter), + new (MassFluxUnit.KilogramPerHourPerSquareMillimeter, MassFluxUnits.KilogramPerHourPerSquareMillimeter), + new (MassFluxUnit.KilogramPerSecondPerSquareCentimeter, MassFluxUnits.KilogramPerSecondPerSquareCentimeter), + new (MassFluxUnit.KilogramPerSecondPerSquareMeter, MassFluxUnits.KilogramPerSecondPerSquareMeter), + new (MassFluxUnit.KilogramPerSecondPerSquareMillimeter, MassFluxUnits.KilogramPerSecondPerSquareMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs index 1e123048ec..023bddfca6 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFraction.g.cs @@ -120,76 +120,33 @@ 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, MassFractionUnits.CentigramPerGram), + new (MassFractionUnit.CentigramPerKilogram, MassFractionUnits.CentigramPerKilogram), + new (MassFractionUnit.DecagramPerGram, MassFractionUnits.DecagramPerGram), + new (MassFractionUnit.DecagramPerKilogram, MassFractionUnits.DecagramPerKilogram), + new (MassFractionUnit.DecigramPerGram, MassFractionUnits.DecigramPerGram), + new (MassFractionUnit.DecigramPerKilogram, MassFractionUnits.DecigramPerKilogram), + new (MassFractionUnit.DecimalFraction, MassFractionUnits.DecimalFraction), + new (MassFractionUnit.GramPerGram, MassFractionUnits.GramPerGram), + new (MassFractionUnit.GramPerKilogram, MassFractionUnits.GramPerKilogram), + new (MassFractionUnit.HectogramPerGram, MassFractionUnits.HectogramPerGram), + new (MassFractionUnit.HectogramPerKilogram, MassFractionUnits.HectogramPerKilogram), + new (MassFractionUnit.KilogramPerGram, MassFractionUnits.KilogramPerGram), + new (MassFractionUnit.KilogramPerKilogram, MassFractionUnits.KilogramPerKilogram), + new (MassFractionUnit.MicrogramPerGram, MassFractionUnits.MicrogramPerGram), + new (MassFractionUnit.MicrogramPerKilogram, MassFractionUnits.MicrogramPerKilogram), + new (MassFractionUnit.MilligramPerGram, MassFractionUnits.MilligramPerGram), + new (MassFractionUnit.MilligramPerKilogram, MassFractionUnits.MilligramPerKilogram), + new (MassFractionUnit.NanogramPerGram, MassFractionUnits.NanogramPerGram), + new (MassFractionUnit.NanogramPerKilogram, MassFractionUnits.NanogramPerKilogram), + new (MassFractionUnit.PartPerBillion, MassFractionUnits.PartPerBillion), + new (MassFractionUnit.PartPerMillion, MassFractionUnits.PartPerMillion), + new (MassFractionUnit.PartPerThousand, MassFractionUnits.PartPerThousand), + new (MassFractionUnit.PartPerTrillion, MassFractionUnits.PartPerTrillion), + new (MassFractionUnit.Percent, MassFractionUnits.Percent), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs index f58feb6be4..3fd526eb69 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs @@ -116,88 +116,37 @@ 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, MassMomentOfInertiaUnits.GramSquareCentimeter), + new (MassMomentOfInertiaUnit.GramSquareDecimeter, MassMomentOfInertiaUnits.GramSquareDecimeter), + new (MassMomentOfInertiaUnit.GramSquareMeter, MassMomentOfInertiaUnits.GramSquareMeter), + new (MassMomentOfInertiaUnit.GramSquareMillimeter, MassMomentOfInertiaUnits.GramSquareMillimeter), + new (MassMomentOfInertiaUnit.KilogramSquareCentimeter, MassMomentOfInertiaUnits.KilogramSquareCentimeter), + new (MassMomentOfInertiaUnit.KilogramSquareDecimeter, MassMomentOfInertiaUnits.KilogramSquareDecimeter), + new (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnits.KilogramSquareMeter), + new (MassMomentOfInertiaUnit.KilogramSquareMillimeter, MassMomentOfInertiaUnits.KilogramSquareMillimeter), + new (MassMomentOfInertiaUnit.KilotonneSquareCentimeter, MassMomentOfInertiaUnits.KilotonneSquareCentimeter), + new (MassMomentOfInertiaUnit.KilotonneSquareDecimeter, MassMomentOfInertiaUnits.KilotonneSquareDecimeter), + new (MassMomentOfInertiaUnit.KilotonneSquareMeter, MassMomentOfInertiaUnits.KilotonneSquareMeter), + new (MassMomentOfInertiaUnit.KilotonneSquareMillimeter, MassMomentOfInertiaUnits.KilotonneSquareMillimeter), + new (MassMomentOfInertiaUnit.MegatonneSquareCentimeter, MassMomentOfInertiaUnits.MegatonneSquareCentimeter), + new (MassMomentOfInertiaUnit.MegatonneSquareDecimeter, MassMomentOfInertiaUnits.MegatonneSquareDecimeter), + new (MassMomentOfInertiaUnit.MegatonneSquareMeter, MassMomentOfInertiaUnits.MegatonneSquareMeter), + new (MassMomentOfInertiaUnit.MegatonneSquareMillimeter, MassMomentOfInertiaUnits.MegatonneSquareMillimeter), + new (MassMomentOfInertiaUnit.MilligramSquareCentimeter, MassMomentOfInertiaUnits.MilligramSquareCentimeter), + new (MassMomentOfInertiaUnit.MilligramSquareDecimeter, MassMomentOfInertiaUnits.MilligramSquareDecimeter), + new (MassMomentOfInertiaUnit.MilligramSquareMeter, MassMomentOfInertiaUnits.MilligramSquareMeter), + new (MassMomentOfInertiaUnit.MilligramSquareMillimeter, MassMomentOfInertiaUnits.MilligramSquareMillimeter), + new (MassMomentOfInertiaUnit.PoundSquareFoot, MassMomentOfInertiaUnits.PoundSquareFoot), + new (MassMomentOfInertiaUnit.PoundSquareInch, MassMomentOfInertiaUnits.PoundSquareInch), + new (MassMomentOfInertiaUnit.SlugSquareFoot, MassMomentOfInertiaUnits.SlugSquareFoot), + new (MassMomentOfInertiaUnit.SlugSquareInch, MassMomentOfInertiaUnits.SlugSquareInch), + new (MassMomentOfInertiaUnit.TonneSquareCentimeter, MassMomentOfInertiaUnits.TonneSquareCentimeter), + new (MassMomentOfInertiaUnit.TonneSquareDecimeter, MassMomentOfInertiaUnits.TonneSquareDecimeter), + new (MassMomentOfInertiaUnit.TonneSquareMeter, MassMomentOfInertiaUnits.TonneSquareMeter), + new (MassMomentOfInertiaUnit.TonneSquareMillimeter, MassMomentOfInertiaUnits.TonneSquareMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Molality.g.cs b/UnitsNet/GeneratedCode/Quantities/Molality.g.cs index 5948be35a0..5deeba21cb 100644 --- a/UnitsNet/GeneratedCode/Quantities/Molality.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Molality.g.cs @@ -119,13 +119,12 @@ 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, MolalityUnits.MillimolePerKilogram), + new (MolalityUnit.MolePerGram, MolalityUnits.MolePerGram), + new (MolalityUnit.MolePerKilogram, MolalityUnits.MolePerKilogram), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs index 67a4e4b37a..ce2d5b7491 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEnergy.g.cs @@ -117,13 +117,12 @@ 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, MolarEnergyUnits.JoulePerMole), + new (MolarEnergyUnit.KilojoulePerMole, MolarEnergyUnits.KilojoulePerMole), + new (MolarEnergyUnit.MegajoulePerMole, MolarEnergyUnits.MegajoulePerMole), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs index c0a5fda05e..e8242b01df 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarEntropy.g.cs @@ -116,13 +116,12 @@ 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, MolarEntropyUnits.JoulePerMoleKelvin), + new (MolarEntropyUnit.KilojoulePerMoleKelvin, MolarEntropyUnits.KilojoulePerMoleKelvin), + new (MolarEntropyUnit.MegajoulePerMoleKelvin, MolarEntropyUnits.MegajoulePerMoleKelvin), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs index af2f778a9b..bb73f6acc1 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarFlow.g.cs @@ -120,31 +120,18 @@ 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, MolarFlowUnits.KilomolePerHour), + new (MolarFlowUnit.KilomolePerMinute, MolarFlowUnits.KilomolePerMinute), + new (MolarFlowUnit.KilomolePerSecond, MolarFlowUnits.KilomolePerSecond), + new (MolarFlowUnit.MolePerHour, MolarFlowUnits.MolePerHour), + new (MolarFlowUnit.MolePerMinute, MolarFlowUnits.MolePerMinute), + new (MolarFlowUnit.MolePerSecond, MolarFlowUnits.MolePerSecond), + new (MolarFlowUnit.PoundMolePerHour, MolarFlowUnits.PoundMolePerHour), + new (MolarFlowUnit.PoundMolePerMinute, MolarFlowUnits.PoundMolePerMinute), + new (MolarFlowUnit.PoundMolePerSecond, MolarFlowUnits.PoundMolePerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs index b7c4b16e68..c3fdadc740 100644 --- a/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MolarMass.g.cs @@ -119,46 +119,23 @@ 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, MolarMassUnits.CentigramPerMole), + new (MolarMassUnit.DecagramPerMole, MolarMassUnits.DecagramPerMole), + new (MolarMassUnit.DecigramPerMole, MolarMassUnits.DecigramPerMole), + new (MolarMassUnit.GramPerMole, MolarMassUnits.GramPerMole), + new (MolarMassUnit.HectogramPerMole, MolarMassUnits.HectogramPerMole), + new (MolarMassUnit.KilogramPerKilomole, MolarMassUnits.KilogramPerKilomole), + new (MolarMassUnit.KilogramPerMole, MolarMassUnits.KilogramPerMole), + new (MolarMassUnit.KilopoundPerMole, MolarMassUnits.KilopoundPerMole), + new (MolarMassUnit.MegapoundPerMole, MolarMassUnits.MegapoundPerMole), + new (MolarMassUnit.MicrogramPerMole, MolarMassUnits.MicrogramPerMole), + new (MolarMassUnit.MilligramPerMole, MolarMassUnits.MilligramPerMole), + new (MolarMassUnit.NanogramPerMole, MolarMassUnits.NanogramPerMole), + new (MolarMassUnit.PoundPerMole, MolarMassUnits.PoundPerMole), + new (MolarMassUnit.PoundPerPoundMole, MolarMassUnits.PoundPerPoundMole), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs index e9edd15565..9397a0de59 100644 --- a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs @@ -124,37 +124,20 @@ 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, MolarityUnits.CentimolePerLiter), + new (MolarityUnit.DecimolePerLiter, MolarityUnits.DecimolePerLiter), + new (MolarityUnit.FemtomolePerLiter, MolarityUnits.FemtomolePerLiter), + new (MolarityUnit.KilomolePerCubicMeter, MolarityUnits.KilomolePerCubicMeter), + new (MolarityUnit.MicromolePerLiter, MolarityUnits.MicromolePerLiter), + new (MolarityUnit.MillimolePerLiter, MolarityUnits.MillimolePerLiter), + new (MolarityUnit.MolePerCubicMeter, MolarityUnits.MolePerCubicMeter), + new (MolarityUnit.MolePerLiter, MolarityUnits.MolePerLiter), + new (MolarityUnit.NanomolePerLiter, MolarityUnits.NanomolePerLiter), + new (MolarityUnit.PicomolePerLiter, MolarityUnits.PicomolePerLiter), + new (MolarityUnit.PoundMolePerCubicFoot, MolarityUnits.PoundMolePerCubicFoot), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs b/UnitsNet/GeneratedCode/Quantities/Permeability.g.cs index 09a6c41475..ff0cc3e5d2 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, PermeabilityUnits.HenryPerMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs b/UnitsNet/GeneratedCode/Quantities/Permittivity.g.cs index 5a17c20b4a..253f33e950 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, PermittivityUnits.FaradPerMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs b/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs index a798ce1b4d..d9ccb8b69a 100644 --- a/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PorousMediumPermeability.g.cs @@ -119,19 +119,14 @@ 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, PorousMediumPermeabilityUnits.Darcy), + new (PorousMediumPermeabilityUnit.Microdarcy, PorousMediumPermeabilityUnits.Microdarcy), + new (PorousMediumPermeabilityUnit.Millidarcy, PorousMediumPermeabilityUnits.Millidarcy), + new (PorousMediumPermeabilityUnit.SquareCentimeter, PorousMediumPermeabilityUnits.SquareCentimeter), + new (PorousMediumPermeabilityUnit.SquareMeter, PorousMediumPermeabilityUnits.SquareMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Power.g.cs b/UnitsNet/GeneratedCode/Quantities/Power.g.cs index ab15bcfe09..a117a8e403 100644 --- a/UnitsNet/GeneratedCode/Quantities/Power.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Power.g.cs @@ -135,85 +135,36 @@ 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, PowerUnits.BoilerHorsepower), + new (PowerUnit.BritishThermalUnitPerHour, PowerUnits.BritishThermalUnitPerHour), + new (PowerUnit.Decawatt, PowerUnits.Decawatt), + new (PowerUnit.Deciwatt, PowerUnits.Deciwatt), + new (PowerUnit.ElectricalHorsepower, PowerUnits.ElectricalHorsepower), + new (PowerUnit.Femtowatt, PowerUnits.Femtowatt), + new (PowerUnit.GigajoulePerHour, PowerUnits.GigajoulePerHour), + new (PowerUnit.Gigawatt, PowerUnits.Gigawatt), + new (PowerUnit.HydraulicHorsepower, PowerUnits.HydraulicHorsepower), + new (PowerUnit.JoulePerHour, PowerUnits.JoulePerHour), + new (PowerUnit.KilobritishThermalUnitPerHour, PowerUnits.KilobritishThermalUnitPerHour), + new (PowerUnit.KilojoulePerHour, PowerUnits.KilojoulePerHour), + new (PowerUnit.Kilowatt, PowerUnits.Kilowatt), + new (PowerUnit.MechanicalHorsepower, PowerUnits.MechanicalHorsepower), + new (PowerUnit.MegabritishThermalUnitPerHour, PowerUnits.MegabritishThermalUnitPerHour), + new (PowerUnit.MegajoulePerHour, PowerUnits.MegajoulePerHour), + new (PowerUnit.Megawatt, PowerUnits.Megawatt), + new (PowerUnit.MetricHorsepower, PowerUnits.MetricHorsepower), + new (PowerUnit.Microwatt, PowerUnits.Microwatt), + new (PowerUnit.MillijoulePerHour, PowerUnits.MillijoulePerHour), + new (PowerUnit.Milliwatt, PowerUnits.Milliwatt), + new (PowerUnit.Nanowatt, PowerUnits.Nanowatt), + new (PowerUnit.Petawatt, PowerUnits.Petawatt), + new (PowerUnit.Picowatt, PowerUnits.Picowatt), + new (PowerUnit.Terawatt, PowerUnits.Terawatt), + new (PowerUnit.TonOfRefrigeration, PowerUnits.TonOfRefrigeration), + new (PowerUnit.Watt, PowerUnits.Watt), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs index 1fc413a36c..922a95f92f 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs @@ -117,142 +117,55 @@ 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, PowerDensityUnits.BtuPerSecondCubicFoot), + new (PowerDensityUnit.BtuPerSecondCubicInch, PowerDensityUnits.BtuPerSecondCubicInch), + new (PowerDensityUnit.DecawattPerCubicFoot, PowerDensityUnits.DecawattPerCubicFoot), + new (PowerDensityUnit.DecawattPerCubicInch, PowerDensityUnits.DecawattPerCubicInch), + new (PowerDensityUnit.DecawattPerCubicMeter, PowerDensityUnits.DecawattPerCubicMeter), + new (PowerDensityUnit.DecawattPerLiter, PowerDensityUnits.DecawattPerLiter), + new (PowerDensityUnit.DeciwattPerCubicFoot, PowerDensityUnits.DeciwattPerCubicFoot), + new (PowerDensityUnit.DeciwattPerCubicInch, PowerDensityUnits.DeciwattPerCubicInch), + new (PowerDensityUnit.DeciwattPerCubicMeter, PowerDensityUnits.DeciwattPerCubicMeter), + new (PowerDensityUnit.DeciwattPerLiter, PowerDensityUnits.DeciwattPerLiter), + new (PowerDensityUnit.GigawattPerCubicFoot, PowerDensityUnits.GigawattPerCubicFoot), + new (PowerDensityUnit.GigawattPerCubicInch, PowerDensityUnits.GigawattPerCubicInch), + new (PowerDensityUnit.GigawattPerCubicMeter, PowerDensityUnits.GigawattPerCubicMeter), + new (PowerDensityUnit.GigawattPerLiter, PowerDensityUnits.GigawattPerLiter), + new (PowerDensityUnit.KilowattPerCubicFoot, PowerDensityUnits.KilowattPerCubicFoot), + new (PowerDensityUnit.KilowattPerCubicInch, PowerDensityUnits.KilowattPerCubicInch), + new (PowerDensityUnit.KilowattPerCubicMeter, PowerDensityUnits.KilowattPerCubicMeter), + new (PowerDensityUnit.KilowattPerLiter, PowerDensityUnits.KilowattPerLiter), + new (PowerDensityUnit.MegawattPerCubicFoot, PowerDensityUnits.MegawattPerCubicFoot), + new (PowerDensityUnit.MegawattPerCubicInch, PowerDensityUnits.MegawattPerCubicInch), + new (PowerDensityUnit.MegawattPerCubicMeter, PowerDensityUnits.MegawattPerCubicMeter), + new (PowerDensityUnit.MegawattPerLiter, PowerDensityUnits.MegawattPerLiter), + new (PowerDensityUnit.MicrowattPerCubicFoot, PowerDensityUnits.MicrowattPerCubicFoot), + new (PowerDensityUnit.MicrowattPerCubicInch, PowerDensityUnits.MicrowattPerCubicInch), + new (PowerDensityUnit.MicrowattPerCubicMeter, PowerDensityUnits.MicrowattPerCubicMeter), + new (PowerDensityUnit.MicrowattPerLiter, PowerDensityUnits.MicrowattPerLiter), + new (PowerDensityUnit.MilliwattPerCubicFoot, PowerDensityUnits.MilliwattPerCubicFoot), + new (PowerDensityUnit.MilliwattPerCubicInch, PowerDensityUnits.MilliwattPerCubicInch), + new (PowerDensityUnit.MilliwattPerCubicMeter, PowerDensityUnits.MilliwattPerCubicMeter), + new (PowerDensityUnit.MilliwattPerLiter, PowerDensityUnits.MilliwattPerLiter), + new (PowerDensityUnit.NanowattPerCubicFoot, PowerDensityUnits.NanowattPerCubicFoot), + new (PowerDensityUnit.NanowattPerCubicInch, PowerDensityUnits.NanowattPerCubicInch), + new (PowerDensityUnit.NanowattPerCubicMeter, PowerDensityUnits.NanowattPerCubicMeter), + new (PowerDensityUnit.NanowattPerLiter, PowerDensityUnits.NanowattPerLiter), + new (PowerDensityUnit.PicowattPerCubicFoot, PowerDensityUnits.PicowattPerCubicFoot), + new (PowerDensityUnit.PicowattPerCubicInch, PowerDensityUnits.PicowattPerCubicInch), + new (PowerDensityUnit.PicowattPerCubicMeter, PowerDensityUnits.PicowattPerCubicMeter), + new (PowerDensityUnit.PicowattPerLiter, PowerDensityUnits.PicowattPerLiter), + new (PowerDensityUnit.TerawattPerCubicFoot, PowerDensityUnits.TerawattPerCubicFoot), + new (PowerDensityUnit.TerawattPerCubicInch, PowerDensityUnits.TerawattPerCubicInch), + new (PowerDensityUnit.TerawattPerCubicMeter, PowerDensityUnits.TerawattPerCubicMeter), + new (PowerDensityUnit.TerawattPerLiter, PowerDensityUnits.TerawattPerLiter), + new (PowerDensityUnit.WattPerCubicFoot, PowerDensityUnits.WattPerCubicFoot), + new (PowerDensityUnit.WattPerCubicInch, PowerDensityUnits.WattPerCubicInch), + new (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnits.WattPerCubicMeter), + new (PowerDensityUnit.WattPerLiter, PowerDensityUnits.WattPerLiter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs index e81ee0011f..b33dfda711 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerRatio.g.cs @@ -116,11 +116,11 @@ 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, PowerRatioUnits.DecibelMilliwatt), + new (PowerRatioUnit.DecibelWatt, PowerRatioUnits.DecibelWatt), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs index 49da47b3e5..f70165e11a 100644 --- a/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Pressure.g.cs @@ -132,154 +132,59 @@ 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, PressureUnits.Atmosphere), + new (PressureUnit.Bar, PressureUnits.Bar), + new (PressureUnit.Centibar, PressureUnits.Centibar), + new (PressureUnit.CentimeterOfWaterColumn, PressureUnits.CentimeterOfWaterColumn), + new (PressureUnit.Decapascal, PressureUnits.Decapascal), + new (PressureUnit.Decibar, PressureUnits.Decibar), + new (PressureUnit.DynePerSquareCentimeter, PressureUnits.DynePerSquareCentimeter), + new (PressureUnit.FootOfHead, PressureUnits.FootOfHead), + new (PressureUnit.Gigapascal, PressureUnits.Gigapascal), + new (PressureUnit.Hectopascal, PressureUnits.Hectopascal), + new (PressureUnit.InchOfMercury, PressureUnits.InchOfMercury), + new (PressureUnit.InchOfWaterColumn, PressureUnits.InchOfWaterColumn), + new (PressureUnit.Kilobar, PressureUnits.Kilobar), + new (PressureUnit.KilogramForcePerSquareCentimeter, PressureUnits.KilogramForcePerSquareCentimeter), + new (PressureUnit.KilogramForcePerSquareMeter, PressureUnits.KilogramForcePerSquareMeter), + new (PressureUnit.KilogramForcePerSquareMillimeter, PressureUnits.KilogramForcePerSquareMillimeter), + new (PressureUnit.KilonewtonPerSquareCentimeter, PressureUnits.KilonewtonPerSquareCentimeter), + new (PressureUnit.KilonewtonPerSquareMeter, PressureUnits.KilonewtonPerSquareMeter), + new (PressureUnit.KilonewtonPerSquareMillimeter, PressureUnits.KilonewtonPerSquareMillimeter), + new (PressureUnit.Kilopascal, PressureUnits.Kilopascal), + new (PressureUnit.KilopoundForcePerSquareFoot, PressureUnits.KilopoundForcePerSquareFoot), + new (PressureUnit.KilopoundForcePerSquareInch, PressureUnits.KilopoundForcePerSquareInch), + new (PressureUnit.KilopoundForcePerSquareMil, PressureUnits.KilopoundForcePerSquareMil), + new (PressureUnit.Megabar, PressureUnits.Megabar), + new (PressureUnit.MeganewtonPerSquareMeter, PressureUnits.MeganewtonPerSquareMeter), + new (PressureUnit.Megapascal, PressureUnits.Megapascal), + new (PressureUnit.MeterOfHead, PressureUnits.MeterOfHead), + new (PressureUnit.MeterOfWaterColumn, PressureUnits.MeterOfWaterColumn), + new (PressureUnit.Microbar, PressureUnits.Microbar), + new (PressureUnit.Micropascal, PressureUnits.Micropascal), + new (PressureUnit.Millibar, PressureUnits.Millibar), + new (PressureUnit.MilligramForcePerSquareFoot, PressureUnits.MilligramForcePerSquareFoot), + new (PressureUnit.MilligramForcePerSquareMeter, PressureUnits.MilligramForcePerSquareMeter), + new (PressureUnit.MillimeterOfMercury, PressureUnits.MillimeterOfMercury), + new (PressureUnit.MillimeterOfWaterColumn, PressureUnits.MillimeterOfWaterColumn), + new (PressureUnit.Millipascal, PressureUnits.Millipascal), + new (PressureUnit.Millitorr, PressureUnits.Millitorr), + new (PressureUnit.NewtonPerSquareCentimeter, PressureUnits.NewtonPerSquareCentimeter), + new (PressureUnit.NewtonPerSquareMeter, PressureUnits.NewtonPerSquareMeter), + new (PressureUnit.NewtonPerSquareMillimeter, PressureUnits.NewtonPerSquareMillimeter), + new (PressureUnit.Pascal, PressureUnits.Pascal), + new (PressureUnit.PoundForcePerSquareFoot, PressureUnits.PoundForcePerSquareFoot), + new (PressureUnit.PoundForcePerSquareInch, PressureUnits.PoundForcePerSquareInch), + new (PressureUnit.PoundForcePerSquareMil, PressureUnits.PoundForcePerSquareMil), + new (PressureUnit.PoundPerInchSecondSquared, PressureUnits.PoundPerInchSecondSquared), + new (PressureUnit.TechnicalAtmosphere, PressureUnits.TechnicalAtmosphere), + new (PressureUnit.TonneForcePerSquareCentimeter, PressureUnits.TonneForcePerSquareCentimeter), + new (PressureUnit.TonneForcePerSquareMeter, PressureUnits.TonneForcePerSquareMeter), + new (PressureUnit.TonneForcePerSquareMillimeter, PressureUnits.TonneForcePerSquareMillimeter), + new (PressureUnit.Torr, PressureUnits.Torr), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs index e25c55fafd..60484b1b3e 100644 --- a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs @@ -117,58 +117,27 @@ 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, PressureChangeRateUnits.AtmospherePerSecond), + new (PressureChangeRateUnit.BarPerMinute, PressureChangeRateUnits.BarPerMinute), + new (PressureChangeRateUnit.BarPerSecond, PressureChangeRateUnits.BarPerSecond), + new (PressureChangeRateUnit.KilopascalPerMinute, PressureChangeRateUnits.KilopascalPerMinute), + new (PressureChangeRateUnit.KilopascalPerSecond, PressureChangeRateUnits.KilopascalPerSecond), + new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute, PressureChangeRateUnits.KilopoundForcePerSquareInchPerMinute), + new (PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond, PressureChangeRateUnits.KilopoundForcePerSquareInchPerSecond), + new (PressureChangeRateUnit.MegapascalPerMinute, PressureChangeRateUnits.MegapascalPerMinute), + new (PressureChangeRateUnit.MegapascalPerSecond, PressureChangeRateUnits.MegapascalPerSecond), + new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute, PressureChangeRateUnits.MegapoundForcePerSquareInchPerMinute), + new (PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond, PressureChangeRateUnits.MegapoundForcePerSquareInchPerSecond), + new (PressureChangeRateUnit.MillibarPerMinute, PressureChangeRateUnits.MillibarPerMinute), + new (PressureChangeRateUnit.MillibarPerSecond, PressureChangeRateUnits.MillibarPerSecond), + new (PressureChangeRateUnit.MillimeterOfMercuryPerSecond, PressureChangeRateUnits.MillimeterOfMercuryPerSecond), + new (PressureChangeRateUnit.PascalPerMinute, PressureChangeRateUnits.PascalPerMinute), + new (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnits.PascalPerSecond), + new (PressureChangeRateUnit.PoundForcePerSquareInchPerMinute, PressureChangeRateUnits.PoundForcePerSquareInchPerMinute), + new (PressureChangeRateUnit.PoundForcePerSquareInchPerSecond, PressureChangeRateUnits.PoundForcePerSquareInchPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs index 16b9849dde..42d5b705e8 100644 --- a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs @@ -118,22 +118,15 @@ 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, RadiationEquivalentDoseUnits.Microsievert), + new (RadiationEquivalentDoseUnit.MilliroentgenEquivalentMan, RadiationEquivalentDoseUnits.MilliroentgenEquivalentMan), + new (RadiationEquivalentDoseUnit.Millisievert, RadiationEquivalentDoseUnits.Millisievert), + new (RadiationEquivalentDoseUnit.Nanosievert, RadiationEquivalentDoseUnits.Nanosievert), + new (RadiationEquivalentDoseUnit.RoentgenEquivalentMan, RadiationEquivalentDoseUnits.RoentgenEquivalentMan), + new (RadiationEquivalentDoseUnit.Sievert, RadiationEquivalentDoseUnits.Sievert), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs index fb88e14f29..bdc7729c48 100644 --- a/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs @@ -117,34 +117,19 @@ 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, RadiationEquivalentDoseRateUnits.MicrosievertPerHour), + new (RadiationEquivalentDoseRateUnit.MicrosievertPerSecond, RadiationEquivalentDoseRateUnits.MicrosievertPerSecond), + new (RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour, RadiationEquivalentDoseRateUnits.MilliroentgenEquivalentManPerHour), + new (RadiationEquivalentDoseRateUnit.MillisievertPerHour, RadiationEquivalentDoseRateUnits.MillisievertPerHour), + new (RadiationEquivalentDoseRateUnit.MillisievertPerSecond, RadiationEquivalentDoseRateUnits.MillisievertPerSecond), + new (RadiationEquivalentDoseRateUnit.NanosievertPerHour, RadiationEquivalentDoseRateUnits.NanosievertPerHour), + new (RadiationEquivalentDoseRateUnit.NanosievertPerSecond, RadiationEquivalentDoseRateUnits.NanosievertPerSecond), + new (RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour, RadiationEquivalentDoseRateUnits.RoentgenEquivalentManPerHour), + new (RadiationEquivalentDoseRateUnit.SievertPerHour, RadiationEquivalentDoseRateUnits.SievertPerHour), + new (RadiationEquivalentDoseRateUnit.SievertPerSecond, RadiationEquivalentDoseRateUnits.SievertPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs b/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs index 559bbd243f..1e90e33788 100644 --- a/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RadiationExposure.g.cs @@ -116,28 +116,17 @@ 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, RadiationExposureUnits.CoulombPerKilogram), + new (RadiationExposureUnit.MicrocoulombPerKilogram, RadiationExposureUnits.MicrocoulombPerKilogram), + new (RadiationExposureUnit.Microroentgen, RadiationExposureUnits.Microroentgen), + new (RadiationExposureUnit.MillicoulombPerKilogram, RadiationExposureUnits.MillicoulombPerKilogram), + new (RadiationExposureUnit.Milliroentgen, RadiationExposureUnits.Milliroentgen), + new (RadiationExposureUnit.NanocoulombPerKilogram, RadiationExposureUnits.NanocoulombPerKilogram), + new (RadiationExposureUnit.PicocoulombPerKilogram, RadiationExposureUnits.PicocoulombPerKilogram), + new (RadiationExposureUnit.Roentgen, RadiationExposureUnits.Roentgen), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs b/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs index 54151c6769..bcd1172cb8 100644 --- a/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Radioactivity.g.cs @@ -116,91 +116,38 @@ 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, RadioactivityUnits.Becquerel), + new (RadioactivityUnit.Curie, RadioactivityUnits.Curie), + new (RadioactivityUnit.Exabecquerel, RadioactivityUnits.Exabecquerel), + new (RadioactivityUnit.Gigabecquerel, RadioactivityUnits.Gigabecquerel), + new (RadioactivityUnit.Gigacurie, RadioactivityUnits.Gigacurie), + new (RadioactivityUnit.Gigarutherford, RadioactivityUnits.Gigarutherford), + new (RadioactivityUnit.Kilobecquerel, RadioactivityUnits.Kilobecquerel), + new (RadioactivityUnit.Kilocurie, RadioactivityUnits.Kilocurie), + new (RadioactivityUnit.Kilorutherford, RadioactivityUnits.Kilorutherford), + new (RadioactivityUnit.Megabecquerel, RadioactivityUnits.Megabecquerel), + new (RadioactivityUnit.Megacurie, RadioactivityUnits.Megacurie), + new (RadioactivityUnit.Megarutherford, RadioactivityUnits.Megarutherford), + new (RadioactivityUnit.Microbecquerel, RadioactivityUnits.Microbecquerel), + new (RadioactivityUnit.Microcurie, RadioactivityUnits.Microcurie), + new (RadioactivityUnit.Microrutherford, RadioactivityUnits.Microrutherford), + new (RadioactivityUnit.Millibecquerel, RadioactivityUnits.Millibecquerel), + new (RadioactivityUnit.Millicurie, RadioactivityUnits.Millicurie), + new (RadioactivityUnit.Millirutherford, RadioactivityUnits.Millirutherford), + new (RadioactivityUnit.Nanobecquerel, RadioactivityUnits.Nanobecquerel), + new (RadioactivityUnit.Nanocurie, RadioactivityUnits.Nanocurie), + new (RadioactivityUnit.Nanorutherford, RadioactivityUnits.Nanorutherford), + new (RadioactivityUnit.Petabecquerel, RadioactivityUnits.Petabecquerel), + new (RadioactivityUnit.Picobecquerel, RadioactivityUnits.Picobecquerel), + new (RadioactivityUnit.Picocurie, RadioactivityUnits.Picocurie), + new (RadioactivityUnit.Picorutherford, RadioactivityUnits.Picorutherford), + new (RadioactivityUnit.Rutherford, RadioactivityUnits.Rutherford), + new (RadioactivityUnit.Terabecquerel, RadioactivityUnits.Terabecquerel), + new (RadioactivityUnit.Teracurie, RadioactivityUnits.Teracurie), + new (RadioactivityUnit.Terarutherford, RadioactivityUnits.Terarutherford), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs index ab58fd3757..1b381dad36 100644 --- a/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Ratio.g.cs @@ -120,22 +120,15 @@ 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, RatioUnits.DecimalFraction), + new (RatioUnit.PartPerBillion, RatioUnits.PartPerBillion), + new (RatioUnit.PartPerMillion, RatioUnits.PartPerMillion), + new (RatioUnit.PartPerThousand, RatioUnits.PartPerThousand), + new (RatioUnit.PartPerTrillion, RatioUnits.PartPerTrillion), + new (RatioUnit.Percent, RatioUnits.Percent), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs index 1371abb5a7..e0bbc201ef 100644 --- a/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs @@ -117,10 +117,11 @@ 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, RatioChangeRateUnits.DecimalFractionPerSecond), + new (RatioChangeRateUnit.PercentPerSecond, RatioChangeRateUnits.PercentPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs b/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs index 43983fa83a..2e9a164924 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs @@ -124,37 +124,20 @@ 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, ReciprocalAreaUnits.InverseSquareCentimeter), + new (ReciprocalAreaUnit.InverseSquareDecimeter, ReciprocalAreaUnits.InverseSquareDecimeter), + new (ReciprocalAreaUnit.InverseSquareFoot, ReciprocalAreaUnits.InverseSquareFoot), + new (ReciprocalAreaUnit.InverseSquareInch, ReciprocalAreaUnits.InverseSquareInch), + new (ReciprocalAreaUnit.InverseSquareKilometer, ReciprocalAreaUnits.InverseSquareKilometer), + new (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnits.InverseSquareMeter), + new (ReciprocalAreaUnit.InverseSquareMicrometer, ReciprocalAreaUnits.InverseSquareMicrometer), + new (ReciprocalAreaUnit.InverseSquareMile, ReciprocalAreaUnits.InverseSquareMile), + new (ReciprocalAreaUnit.InverseSquareMillimeter, ReciprocalAreaUnits.InverseSquareMillimeter), + new (ReciprocalAreaUnit.InverseSquareYard, ReciprocalAreaUnits.InverseSquareYard), + new (ReciprocalAreaUnit.InverseUsSurveySquareFoot, ReciprocalAreaUnits.InverseUsSurveySquareFoot), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs index 941da74742..f697fad0ee 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReciprocalLength.g.cs @@ -126,34 +126,19 @@ 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, ReciprocalLengthUnits.InverseCentimeter), + new (ReciprocalLengthUnit.InverseFoot, ReciprocalLengthUnits.InverseFoot), + new (ReciprocalLengthUnit.InverseInch, ReciprocalLengthUnits.InverseInch), + new (ReciprocalLengthUnit.InverseMeter, ReciprocalLengthUnits.InverseMeter), + new (ReciprocalLengthUnit.InverseMicroinch, ReciprocalLengthUnits.InverseMicroinch), + new (ReciprocalLengthUnit.InverseMil, ReciprocalLengthUnits.InverseMil), + new (ReciprocalLengthUnit.InverseMile, ReciprocalLengthUnits.InverseMile), + new (ReciprocalLengthUnit.InverseMillimeter, ReciprocalLengthUnits.InverseMillimeter), + new (ReciprocalLengthUnit.InverseUsSurveyFoot, ReciprocalLengthUnits.InverseUsSurveyFoot), + new (ReciprocalLengthUnit.InverseYard, ReciprocalLengthUnits.InverseYard), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs b/UnitsNet/GeneratedCode/Quantities/RelativeHumidity.g.cs index 19b5fc29e9..f5bb4f4b93 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, RelativeHumidityUnits.Percent), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs index fad8cfbb48..c81b12e52e 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalAcceleration.g.cs @@ -117,16 +117,13 @@ 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, RotationalAccelerationUnits.DegreePerSecondSquared), + new (RotationalAccelerationUnit.RadianPerSecondSquared, RotationalAccelerationUnits.RadianPerSecondSquared), + new (RotationalAccelerationUnit.RevolutionPerMinutePerSecond, RotationalAccelerationUnits.RevolutionPerMinutePerSecond), + new (RotationalAccelerationUnit.RevolutionPerSecondSquared, RotationalAccelerationUnits.RevolutionPerSecondSquared), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs index 30d6665ad8..8677402cdf 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs @@ -120,43 +120,22 @@ 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, RotationalSpeedUnits.CentiradianPerSecond), + new (RotationalSpeedUnit.DeciradianPerSecond, RotationalSpeedUnits.DeciradianPerSecond), + new (RotationalSpeedUnit.DegreePerMinute, RotationalSpeedUnits.DegreePerMinute), + new (RotationalSpeedUnit.DegreePerSecond, RotationalSpeedUnits.DegreePerSecond), + new (RotationalSpeedUnit.MicrodegreePerSecond, RotationalSpeedUnits.MicrodegreePerSecond), + new (RotationalSpeedUnit.MicroradianPerSecond, RotationalSpeedUnits.MicroradianPerSecond), + new (RotationalSpeedUnit.MillidegreePerSecond, RotationalSpeedUnits.MillidegreePerSecond), + new (RotationalSpeedUnit.MilliradianPerSecond, RotationalSpeedUnits.MilliradianPerSecond), + new (RotationalSpeedUnit.NanodegreePerSecond, RotationalSpeedUnits.NanodegreePerSecond), + new (RotationalSpeedUnit.NanoradianPerSecond, RotationalSpeedUnits.NanoradianPerSecond), + new (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnits.RadianPerSecond), + new (RotationalSpeedUnit.RevolutionPerMinute, RotationalSpeedUnits.RevolutionPerMinute), + new (RotationalSpeedUnit.RevolutionPerSecond, RotationalSpeedUnits.RevolutionPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs index 3d1253d943..30168bec3e 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs @@ -119,106 +119,43 @@ 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, RotationalStiffnessUnits.CentinewtonMeterPerDegree), + new (RotationalStiffnessUnit.CentinewtonMillimeterPerDegree, RotationalStiffnessUnits.CentinewtonMillimeterPerDegree), + new (RotationalStiffnessUnit.CentinewtonMillimeterPerRadian, RotationalStiffnessUnits.CentinewtonMillimeterPerRadian), + new (RotationalStiffnessUnit.DecanewtonMeterPerDegree, RotationalStiffnessUnits.DecanewtonMeterPerDegree), + new (RotationalStiffnessUnit.DecanewtonMillimeterPerDegree, RotationalStiffnessUnits.DecanewtonMillimeterPerDegree), + new (RotationalStiffnessUnit.DecanewtonMillimeterPerRadian, RotationalStiffnessUnits.DecanewtonMillimeterPerRadian), + new (RotationalStiffnessUnit.DecinewtonMeterPerDegree, RotationalStiffnessUnits.DecinewtonMeterPerDegree), + new (RotationalStiffnessUnit.DecinewtonMillimeterPerDegree, RotationalStiffnessUnits.DecinewtonMillimeterPerDegree), + new (RotationalStiffnessUnit.DecinewtonMillimeterPerRadian, RotationalStiffnessUnits.DecinewtonMillimeterPerRadian), + new (RotationalStiffnessUnit.KilonewtonMeterPerDegree, RotationalStiffnessUnits.KilonewtonMeterPerDegree), + new (RotationalStiffnessUnit.KilonewtonMeterPerRadian, RotationalStiffnessUnits.KilonewtonMeterPerRadian), + new (RotationalStiffnessUnit.KilonewtonMillimeterPerDegree, RotationalStiffnessUnits.KilonewtonMillimeterPerDegree), + new (RotationalStiffnessUnit.KilonewtonMillimeterPerRadian, RotationalStiffnessUnits.KilonewtonMillimeterPerRadian), + new (RotationalStiffnessUnit.KilopoundForceFootPerDegrees, RotationalStiffnessUnits.KilopoundForceFootPerDegrees), + new (RotationalStiffnessUnit.KilopoundForceFootPerRadian, RotationalStiffnessUnits.KilopoundForceFootPerRadian), + new (RotationalStiffnessUnit.MeganewtonMeterPerDegree, RotationalStiffnessUnits.MeganewtonMeterPerDegree), + new (RotationalStiffnessUnit.MeganewtonMeterPerRadian, RotationalStiffnessUnits.MeganewtonMeterPerRadian), + new (RotationalStiffnessUnit.MeganewtonMillimeterPerDegree, RotationalStiffnessUnits.MeganewtonMillimeterPerDegree), + new (RotationalStiffnessUnit.MeganewtonMillimeterPerRadian, RotationalStiffnessUnits.MeganewtonMillimeterPerRadian), + new (RotationalStiffnessUnit.MicronewtonMeterPerDegree, RotationalStiffnessUnits.MicronewtonMeterPerDegree), + new (RotationalStiffnessUnit.MicronewtonMillimeterPerDegree, RotationalStiffnessUnits.MicronewtonMillimeterPerDegree), + new (RotationalStiffnessUnit.MicronewtonMillimeterPerRadian, RotationalStiffnessUnits.MicronewtonMillimeterPerRadian), + new (RotationalStiffnessUnit.MillinewtonMeterPerDegree, RotationalStiffnessUnits.MillinewtonMeterPerDegree), + new (RotationalStiffnessUnit.MillinewtonMillimeterPerDegree, RotationalStiffnessUnits.MillinewtonMillimeterPerDegree), + new (RotationalStiffnessUnit.MillinewtonMillimeterPerRadian, RotationalStiffnessUnits.MillinewtonMillimeterPerRadian), + new (RotationalStiffnessUnit.NanonewtonMeterPerDegree, RotationalStiffnessUnits.NanonewtonMeterPerDegree), + new (RotationalStiffnessUnit.NanonewtonMillimeterPerDegree, RotationalStiffnessUnits.NanonewtonMillimeterPerDegree), + new (RotationalStiffnessUnit.NanonewtonMillimeterPerRadian, RotationalStiffnessUnits.NanonewtonMillimeterPerRadian), + new (RotationalStiffnessUnit.NewtonMeterPerDegree, RotationalStiffnessUnits.NewtonMeterPerDegree), + new (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnits.NewtonMeterPerRadian), + new (RotationalStiffnessUnit.NewtonMillimeterPerDegree, RotationalStiffnessUnits.NewtonMillimeterPerDegree), + new (RotationalStiffnessUnit.NewtonMillimeterPerRadian, RotationalStiffnessUnits.NewtonMillimeterPerRadian), + new (RotationalStiffnessUnit.PoundForceFeetPerRadian, RotationalStiffnessUnits.PoundForceFeetPerRadian), + new (RotationalStiffnessUnit.PoundForceFootPerDegrees, RotationalStiffnessUnits.PoundForceFootPerDegrees), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs index 22a86ee1d6..fbd43435c1 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs @@ -117,19 +117,14 @@ 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, RotationalStiffnessPerLengthUnits.KilonewtonMeterPerRadianPerMeter), + new (RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot, RotationalStiffnessPerLengthUnits.KilopoundForceFootPerDegreesPerFoot), + new (RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnits.MeganewtonMeterPerRadianPerMeter), + new (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnits.NewtonMeterPerRadianPerMeter), + new (RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot, RotationalStiffnessPerLengthUnits.PoundForceFootPerDegreesPerFoot), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs b/UnitsNet/GeneratedCode/Quantities/Scalar.g.cs index ea1d538076..677ccfa85d 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, ScalarUnits.Amount), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs b/UnitsNet/GeneratedCode/Quantities/SolidAngle.g.cs index 9938dabbf2..9f324b0ab2 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, SolidAngleUnits.Steradian), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs index d24fdad7dc..119297f3d7 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs @@ -125,94 +125,39 @@ 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, SpecificEnergyUnits.BtuPerPound), + new (SpecificEnergyUnit.CaloriePerGram, SpecificEnergyUnits.CaloriePerGram), + new (SpecificEnergyUnit.GigawattDayPerKilogram, SpecificEnergyUnits.GigawattDayPerKilogram), + new (SpecificEnergyUnit.GigawattDayPerShortTon, SpecificEnergyUnits.GigawattDayPerShortTon), + new (SpecificEnergyUnit.GigawattDayPerTonne, SpecificEnergyUnits.GigawattDayPerTonne), + new (SpecificEnergyUnit.GigawattHourPerKilogram, SpecificEnergyUnits.GigawattHourPerKilogram), + new (SpecificEnergyUnit.GigawattHourPerPound, SpecificEnergyUnits.GigawattHourPerPound), + new (SpecificEnergyUnit.JoulePerKilogram, SpecificEnergyUnits.JoulePerKilogram), + new (SpecificEnergyUnit.KilocaloriePerGram, SpecificEnergyUnits.KilocaloriePerGram), + new (SpecificEnergyUnit.KilojoulePerKilogram, SpecificEnergyUnits.KilojoulePerKilogram), + new (SpecificEnergyUnit.KilowattDayPerKilogram, SpecificEnergyUnits.KilowattDayPerKilogram), + new (SpecificEnergyUnit.KilowattDayPerShortTon, SpecificEnergyUnits.KilowattDayPerShortTon), + new (SpecificEnergyUnit.KilowattDayPerTonne, SpecificEnergyUnits.KilowattDayPerTonne), + new (SpecificEnergyUnit.KilowattHourPerKilogram, SpecificEnergyUnits.KilowattHourPerKilogram), + new (SpecificEnergyUnit.KilowattHourPerPound, SpecificEnergyUnits.KilowattHourPerPound), + new (SpecificEnergyUnit.MegajoulePerKilogram, SpecificEnergyUnits.MegajoulePerKilogram), + new (SpecificEnergyUnit.MegajoulePerTonne, SpecificEnergyUnits.MegajoulePerTonne), + new (SpecificEnergyUnit.MegawattDayPerKilogram, SpecificEnergyUnits.MegawattDayPerKilogram), + new (SpecificEnergyUnit.MegawattDayPerShortTon, SpecificEnergyUnits.MegawattDayPerShortTon), + new (SpecificEnergyUnit.MegawattDayPerTonne, SpecificEnergyUnits.MegawattDayPerTonne), + new (SpecificEnergyUnit.MegawattHourPerKilogram, SpecificEnergyUnits.MegawattHourPerKilogram), + new (SpecificEnergyUnit.MegawattHourPerPound, SpecificEnergyUnits.MegawattHourPerPound), + new (SpecificEnergyUnit.TerawattDayPerKilogram, SpecificEnergyUnits.TerawattDayPerKilogram), + new (SpecificEnergyUnit.TerawattDayPerShortTon, SpecificEnergyUnits.TerawattDayPerShortTon), + new (SpecificEnergyUnit.TerawattDayPerTonne, SpecificEnergyUnits.TerawattDayPerTonne), + new (SpecificEnergyUnit.WattDayPerKilogram, SpecificEnergyUnits.WattDayPerKilogram), + new (SpecificEnergyUnit.WattDayPerShortTon, SpecificEnergyUnits.WattDayPerShortTon), + new (SpecificEnergyUnit.WattDayPerTonne, SpecificEnergyUnits.WattDayPerTonne), + new (SpecificEnergyUnit.WattHourPerKilogram, SpecificEnergyUnits.WattHourPerKilogram), + new (SpecificEnergyUnit.WattHourPerPound, SpecificEnergyUnits.WattHourPerPound), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs index 2cbc4c1091..c135545c6a 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEntropy.g.cs @@ -118,31 +118,18 @@ 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, SpecificEntropyUnits.BtuPerPoundFahrenheit), + new (SpecificEntropyUnit.CaloriePerGramKelvin, SpecificEntropyUnits.CaloriePerGramKelvin), + new (SpecificEntropyUnit.JoulePerKilogramDegreeCelsius, SpecificEntropyUnits.JoulePerKilogramDegreeCelsius), + new (SpecificEntropyUnit.JoulePerKilogramKelvin, SpecificEntropyUnits.JoulePerKilogramKelvin), + new (SpecificEntropyUnit.KilocaloriePerGramKelvin, SpecificEntropyUnits.KilocaloriePerGramKelvin), + new (SpecificEntropyUnit.KilojoulePerKilogramDegreeCelsius, SpecificEntropyUnits.KilojoulePerKilogramDegreeCelsius), + new (SpecificEntropyUnit.KilojoulePerKilogramKelvin, SpecificEntropyUnits.KilojoulePerKilogramKelvin), + new (SpecificEntropyUnit.MegajoulePerKilogramDegreeCelsius, SpecificEntropyUnits.MegajoulePerKilogramDegreeCelsius), + new (SpecificEntropyUnit.MegajoulePerKilogramKelvin, SpecificEntropyUnits.MegajoulePerKilogramKelvin), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs index fd474a2463..24064ad905 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs @@ -119,16 +119,13 @@ 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, SpecificFuelConsumptionUnits.GramPerKilonewtonSecond), + new (SpecificFuelConsumptionUnit.KilogramPerKilogramForceHour, SpecificFuelConsumptionUnits.KilogramPerKilogramForceHour), + new (SpecificFuelConsumptionUnit.KilogramPerKilonewtonSecond, SpecificFuelConsumptionUnits.KilogramPerKilonewtonSecond), + new (SpecificFuelConsumptionUnit.PoundMassPerPoundForceHour, SpecificFuelConsumptionUnits.PoundMassPerPoundForceHour), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs index d6f636d4b5..7f69b7c41e 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs @@ -117,13 +117,12 @@ 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, SpecificVolumeUnits.CubicFootPerPound), + new (SpecificVolumeUnit.CubicMeterPerKilogram, SpecificVolumeUnits.CubicMeterPerKilogram), + new (SpecificVolumeUnit.CubicMillimeterPerKilogram, SpecificVolumeUnits.CubicMillimeterPerKilogram), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs index f1307a54a8..4eae7850cc 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs @@ -124,55 +124,26 @@ 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, SpecificWeightUnits.KilogramForcePerCubicCentimeter), + new (SpecificWeightUnit.KilogramForcePerCubicMeter, SpecificWeightUnits.KilogramForcePerCubicMeter), + new (SpecificWeightUnit.KilogramForcePerCubicMillimeter, SpecificWeightUnits.KilogramForcePerCubicMillimeter), + new (SpecificWeightUnit.KilonewtonPerCubicCentimeter, SpecificWeightUnits.KilonewtonPerCubicCentimeter), + new (SpecificWeightUnit.KilonewtonPerCubicMeter, SpecificWeightUnits.KilonewtonPerCubicMeter), + new (SpecificWeightUnit.KilonewtonPerCubicMillimeter, SpecificWeightUnits.KilonewtonPerCubicMillimeter), + new (SpecificWeightUnit.KilopoundForcePerCubicFoot, SpecificWeightUnits.KilopoundForcePerCubicFoot), + new (SpecificWeightUnit.KilopoundForcePerCubicInch, SpecificWeightUnits.KilopoundForcePerCubicInch), + new (SpecificWeightUnit.MeganewtonPerCubicMeter, SpecificWeightUnits.MeganewtonPerCubicMeter), + new (SpecificWeightUnit.NewtonPerCubicCentimeter, SpecificWeightUnits.NewtonPerCubicCentimeter), + new (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnits.NewtonPerCubicMeter), + new (SpecificWeightUnit.NewtonPerCubicMillimeter, SpecificWeightUnits.NewtonPerCubicMillimeter), + new (SpecificWeightUnit.PoundForcePerCubicFoot, SpecificWeightUnits.PoundForcePerCubicFoot), + new (SpecificWeightUnit.PoundForcePerCubicInch, SpecificWeightUnits.PoundForcePerCubicInch), + new (SpecificWeightUnit.TonneForcePerCubicCentimeter, SpecificWeightUnits.TonneForcePerCubicCentimeter), + new (SpecificWeightUnit.TonneForcePerCubicMeter, SpecificWeightUnits.TonneForcePerCubicMeter), + new (SpecificWeightUnit.TonneForcePerCubicMillimeter, SpecificWeightUnits.TonneForcePerCubicMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Speed.g.cs b/UnitsNet/GeneratedCode/Quantities/Speed.g.cs index 8575899a62..33f56e78d3 100644 --- a/UnitsNet/GeneratedCode/Quantities/Speed.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Speed.g.cs @@ -124,103 +124,42 @@ 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, SpeedUnits.CentimeterPerHour), + new (SpeedUnit.CentimeterPerMinute, SpeedUnits.CentimeterPerMinute), + new (SpeedUnit.CentimeterPerSecond, SpeedUnits.CentimeterPerSecond), + new (SpeedUnit.DecimeterPerMinute, SpeedUnits.DecimeterPerMinute), + new (SpeedUnit.DecimeterPerSecond, SpeedUnits.DecimeterPerSecond), + new (SpeedUnit.FootPerHour, SpeedUnits.FootPerHour), + new (SpeedUnit.FootPerMinute, SpeedUnits.FootPerMinute), + new (SpeedUnit.FootPerSecond, SpeedUnits.FootPerSecond), + new (SpeedUnit.InchPerHour, SpeedUnits.InchPerHour), + new (SpeedUnit.InchPerMinute, SpeedUnits.InchPerMinute), + new (SpeedUnit.InchPerSecond, SpeedUnits.InchPerSecond), + new (SpeedUnit.KilometerPerHour, SpeedUnits.KilometerPerHour), + new (SpeedUnit.KilometerPerMinute, SpeedUnits.KilometerPerMinute), + new (SpeedUnit.KilometerPerSecond, SpeedUnits.KilometerPerSecond), + new (SpeedUnit.Knot, SpeedUnits.Knot), + new (SpeedUnit.Mach, SpeedUnits.Mach), + new (SpeedUnit.MeterPerHour, SpeedUnits.MeterPerHour), + new (SpeedUnit.MeterPerMinute, SpeedUnits.MeterPerMinute), + new (SpeedUnit.MeterPerSecond, SpeedUnits.MeterPerSecond), + new (SpeedUnit.MicrometerPerMinute, SpeedUnits.MicrometerPerMinute), + new (SpeedUnit.MicrometerPerSecond, SpeedUnits.MicrometerPerSecond), + new (SpeedUnit.MilePerHour, SpeedUnits.MilePerHour), + new (SpeedUnit.MillimeterPerHour, SpeedUnits.MillimeterPerHour), + new (SpeedUnit.MillimeterPerMinute, SpeedUnits.MillimeterPerMinute), + new (SpeedUnit.MillimeterPerSecond, SpeedUnits.MillimeterPerSecond), + new (SpeedUnit.NanometerPerMinute, SpeedUnits.NanometerPerMinute), + new (SpeedUnit.NanometerPerSecond, SpeedUnits.NanometerPerSecond), + new (SpeedUnit.UsSurveyFootPerHour, SpeedUnits.UsSurveyFootPerHour), + new (SpeedUnit.UsSurveyFootPerMinute, SpeedUnits.UsSurveyFootPerMinute), + new (SpeedUnit.UsSurveyFootPerSecond, SpeedUnits.UsSurveyFootPerSecond), + new (SpeedUnit.YardPerHour, SpeedUnits.YardPerHour), + new (SpeedUnit.YardPerMinute, SpeedUnits.YardPerMinute), + new (SpeedUnit.YardPerSecond, SpeedUnits.YardPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs index 1abc8c9f8c..6da5a0bba6 100644 --- a/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs @@ -116,31 +116,18 @@ 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, StandardVolumeFlowUnits.StandardCubicCentimeterPerMinute), + new (StandardVolumeFlowUnit.StandardCubicFootPerHour, StandardVolumeFlowUnits.StandardCubicFootPerHour), + new (StandardVolumeFlowUnit.StandardCubicFootPerMinute, StandardVolumeFlowUnits.StandardCubicFootPerMinute), + new (StandardVolumeFlowUnit.StandardCubicFootPerSecond, StandardVolumeFlowUnits.StandardCubicFootPerSecond), + new (StandardVolumeFlowUnit.StandardCubicMeterPerDay, StandardVolumeFlowUnits.StandardCubicMeterPerDay), + new (StandardVolumeFlowUnit.StandardCubicMeterPerHour, StandardVolumeFlowUnits.StandardCubicMeterPerHour), + new (StandardVolumeFlowUnit.StandardCubicMeterPerMinute, StandardVolumeFlowUnits.StandardCubicMeterPerMinute), + new (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnits.StandardCubicMeterPerSecond), + new (StandardVolumeFlowUnit.StandardLiterPerMinute, StandardVolumeFlowUnits.StandardLiterPerMinute), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs b/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs index a4d01e36c7..59c24fa671 100644 --- a/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Temperature.g.cs @@ -115,41 +115,19 @@ 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, TemperatureUnits.DegreeCelsius), + new (TemperatureUnit.DegreeDelisle, TemperatureUnits.DegreeDelisle), + new (TemperatureUnit.DegreeFahrenheit, TemperatureUnits.DegreeFahrenheit), + new (TemperatureUnit.DegreeNewton, TemperatureUnits.DegreeNewton), + new (TemperatureUnit.DegreeRankine, TemperatureUnits.DegreeRankine), + new (TemperatureUnit.DegreeReaumur, TemperatureUnits.DegreeReaumur), + new (TemperatureUnit.DegreeRoemer, TemperatureUnits.DegreeRoemer), + new (TemperatureUnit.Kelvin, TemperatureUnits.Kelvin), + new (TemperatureUnit.MillidegreeCelsius, TemperatureUnits.MillidegreeCelsius), + new (TemperatureUnit.SolarTemperature, TemperatureUnits.SolarTemperature), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs index 654fea94fb..89e0e79d52 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureChangeRate.g.cs @@ -117,55 +117,26 @@ 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, TemperatureChangeRateUnits.CentidegreeCelsiusPerSecond), + new (TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond, TemperatureChangeRateUnits.DecadegreeCelsiusPerSecond), + new (TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond, TemperatureChangeRateUnits.DecidegreeCelsiusPerSecond), + new (TemperatureChangeRateUnit.DegreeCelsiusPerHour, TemperatureChangeRateUnits.DegreeCelsiusPerHour), + new (TemperatureChangeRateUnit.DegreeCelsiusPerMinute, TemperatureChangeRateUnits.DegreeCelsiusPerMinute), + new (TemperatureChangeRateUnit.DegreeCelsiusPerSecond, TemperatureChangeRateUnits.DegreeCelsiusPerSecond), + new (TemperatureChangeRateUnit.DegreeFahrenheitPerHour, TemperatureChangeRateUnits.DegreeFahrenheitPerHour), + new (TemperatureChangeRateUnit.DegreeFahrenheitPerMinute, TemperatureChangeRateUnits.DegreeFahrenheitPerMinute), + new (TemperatureChangeRateUnit.DegreeFahrenheitPerSecond, TemperatureChangeRateUnits.DegreeFahrenheitPerSecond), + new (TemperatureChangeRateUnit.DegreeKelvinPerHour, TemperatureChangeRateUnits.DegreeKelvinPerHour), + new (TemperatureChangeRateUnit.DegreeKelvinPerMinute, TemperatureChangeRateUnits.DegreeKelvinPerMinute), + new (TemperatureChangeRateUnit.DegreeKelvinPerSecond, TemperatureChangeRateUnits.DegreeKelvinPerSecond), + new (TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond, TemperatureChangeRateUnits.HectodegreeCelsiusPerSecond), + new (TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond, TemperatureChangeRateUnits.KilodegreeCelsiusPerSecond), + new (TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond, TemperatureChangeRateUnits.MicrodegreeCelsiusPerSecond), + new (TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond, TemperatureChangeRateUnits.MillidegreeCelsiusPerSecond), + new (TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond, TemperatureChangeRateUnits.NanodegreeCelsiusPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs index 96ae1fe2c3..e5cb3bb39f 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureDelta.g.cs @@ -129,31 +129,18 @@ 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, TemperatureDeltaUnits.DegreeCelsius), + new (TemperatureDeltaUnit.DegreeDelisle, TemperatureDeltaUnits.DegreeDelisle), + new (TemperatureDeltaUnit.DegreeFahrenheit, TemperatureDeltaUnits.DegreeFahrenheit), + new (TemperatureDeltaUnit.DegreeNewton, TemperatureDeltaUnits.DegreeNewton), + new (TemperatureDeltaUnit.DegreeRankine, TemperatureDeltaUnits.DegreeRankine), + new (TemperatureDeltaUnit.DegreeReaumur, TemperatureDeltaUnits.DegreeReaumur), + new (TemperatureDeltaUnit.DegreeRoemer, TemperatureDeltaUnits.DegreeRoemer), + new (TemperatureDeltaUnit.Kelvin, TemperatureDeltaUnits.Kelvin), + new (TemperatureDeltaUnit.MillidegreeCelsius, TemperatureDeltaUnits.MillidegreeCelsius), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs b/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs index 1ca57bfa9d..16f55d0bef 100644 --- a/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/TemperatureGradient.g.cs @@ -117,16 +117,13 @@ 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, TemperatureGradientUnits.DegreeCelsiusPerKilometer), + new (TemperatureGradientUnit.DegreeCelsiusPerMeter, TemperatureGradientUnits.DegreeCelsiusPerMeter), + new (TemperatureGradientUnit.DegreeFahrenheitPerFoot, TemperatureGradientUnits.DegreeFahrenheitPerFoot), + new (TemperatureGradientUnit.KelvinPerMeter, TemperatureGradientUnits.KelvinPerMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs index 7e3b9d58cb..5648f48508 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs @@ -119,13 +119,12 @@ 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, ThermalConductivityUnits.BtuPerHourFootFahrenheit), + new (ThermalConductivityUnit.BtuPerSecondInchFahrenheit, ThermalConductivityUnits.BtuPerSecondInchFahrenheit), + new (ThermalConductivityUnit.WattPerMeterKelvin, ThermalConductivityUnits.WattPerMeterKelvin), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs index 7aeb1c1152..51ae69265e 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalInsulance.g.cs @@ -117,25 +117,16 @@ 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, ThermalInsulanceUnits.HourSquareFeetDegreeFahrenheitPerBtu), + new (ThermalInsulanceUnit.SquareCentimeterHourDegreeCelsiusPerKilocalorie, ThermalInsulanceUnits.SquareCentimeterHourDegreeCelsiusPerKilocalorie), + new (ThermalInsulanceUnit.SquareCentimeterKelvinPerWatt, ThermalInsulanceUnits.SquareCentimeterKelvinPerWatt), + new (ThermalInsulanceUnit.SquareMeterDegreeCelsiusPerWatt, ThermalInsulanceUnits.SquareMeterDegreeCelsiusPerWatt), + new (ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt, ThermalInsulanceUnits.SquareMeterKelvinPerKilowatt), + new (ThermalInsulanceUnit.SquareMeterKelvinPerWatt, ThermalInsulanceUnits.SquareMeterKelvinPerWatt), + new (ThermalInsulanceUnit.SquareMillimeterKelvinPerWatt, ThermalInsulanceUnits.SquareMillimeterKelvinPerWatt), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs index eebfec6887..02e9b60fac 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalResistance.g.cs @@ -117,10 +117,11 @@ 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, ThermalResistanceUnits.DegreeCelsiusPerWatt), + new (ThermalResistanceUnit.KelvinPerWatt, ThermalResistanceUnits.KelvinPerWatt), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs index 6bcd17d8d5..4d1abe464e 100644 --- a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs @@ -123,85 +123,36 @@ 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, TorqueUnits.GramForceCentimeter), + new (TorqueUnit.GramForceMeter, TorqueUnits.GramForceMeter), + new (TorqueUnit.GramForceMillimeter, TorqueUnits.GramForceMillimeter), + new (TorqueUnit.KilogramForceCentimeter, TorqueUnits.KilogramForceCentimeter), + new (TorqueUnit.KilogramForceMeter, TorqueUnits.KilogramForceMeter), + new (TorqueUnit.KilogramForceMillimeter, TorqueUnits.KilogramForceMillimeter), + new (TorqueUnit.KilonewtonCentimeter, TorqueUnits.KilonewtonCentimeter), + new (TorqueUnit.KilonewtonMeter, TorqueUnits.KilonewtonMeter), + new (TorqueUnit.KilonewtonMillimeter, TorqueUnits.KilonewtonMillimeter), + new (TorqueUnit.KilopoundForceFoot, TorqueUnits.KilopoundForceFoot), + new (TorqueUnit.KilopoundForceInch, TorqueUnits.KilopoundForceInch), + new (TorqueUnit.MeganewtonCentimeter, TorqueUnits.MeganewtonCentimeter), + new (TorqueUnit.MeganewtonMeter, TorqueUnits.MeganewtonMeter), + new (TorqueUnit.MeganewtonMillimeter, TorqueUnits.MeganewtonMillimeter), + new (TorqueUnit.MegapoundForceFoot, TorqueUnits.MegapoundForceFoot), + new (TorqueUnit.MegapoundForceInch, TorqueUnits.MegapoundForceInch), + new (TorqueUnit.NewtonCentimeter, TorqueUnits.NewtonCentimeter), + new (TorqueUnit.NewtonMeter, TorqueUnits.NewtonMeter), + new (TorqueUnit.NewtonMillimeter, TorqueUnits.NewtonMillimeter), + new (TorqueUnit.OunceForceFoot, TorqueUnits.OunceForceFoot), + new (TorqueUnit.OunceForceInch, TorqueUnits.OunceForceInch), + new (TorqueUnit.PoundalFoot, TorqueUnits.PoundalFoot), + new (TorqueUnit.PoundForceFoot, TorqueUnits.PoundForceFoot), + new (TorqueUnit.PoundForceInch, TorqueUnits.PoundForceInch), + new (TorqueUnit.TonneForceCentimeter, TorqueUnits.TonneForceCentimeter), + new (TorqueUnit.TonneForceMeter, TorqueUnits.TonneForceMeter), + new (TorqueUnit.TonneForceMillimeter, TorqueUnits.TonneForceMillimeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs b/UnitsNet/GeneratedCode/Quantities/Turbidity.g.cs index 130640e9e8..1865fd40a0 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, TurbidityUnits.NTU), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs b/UnitsNet/GeneratedCode/Quantities/VitaminA.g.cs index f08e9633a7..b1dfdd049c 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, VitaminAUnits.InternationalUnit), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs index 5fae8578a3..61a2ca5b93 100644 --- a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs @@ -132,166 +132,63 @@ 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, VolumeUnits.AcreFoot), + new (VolumeUnit.AuTablespoon, VolumeUnits.AuTablespoon), + new (VolumeUnit.BoardFoot, VolumeUnits.BoardFoot), + new (VolumeUnit.Centiliter, VolumeUnits.Centiliter), + new (VolumeUnit.CubicCentimeter, VolumeUnits.CubicCentimeter), + new (VolumeUnit.CubicDecimeter, VolumeUnits.CubicDecimeter), + new (VolumeUnit.CubicFoot, VolumeUnits.CubicFoot), + new (VolumeUnit.CubicHectometer, VolumeUnits.CubicHectometer), + new (VolumeUnit.CubicInch, VolumeUnits.CubicInch), + new (VolumeUnit.CubicKilometer, VolumeUnits.CubicKilometer), + new (VolumeUnit.CubicMeter, VolumeUnits.CubicMeter), + new (VolumeUnit.CubicMicrometer, VolumeUnits.CubicMicrometer), + new (VolumeUnit.CubicMile, VolumeUnits.CubicMile), + new (VolumeUnit.CubicMillimeter, VolumeUnits.CubicMillimeter), + new (VolumeUnit.CubicYard, VolumeUnits.CubicYard), + new (VolumeUnit.Decaliter, VolumeUnits.Decaliter), + new (VolumeUnit.DecausGallon, VolumeUnits.DecausGallon), + new (VolumeUnit.Deciliter, VolumeUnits.Deciliter), + new (VolumeUnit.DeciusGallon, VolumeUnits.DeciusGallon), + new (VolumeUnit.Hectoliter, VolumeUnits.Hectoliter), + new (VolumeUnit.HectousGallon, VolumeUnits.HectousGallon), + new (VolumeUnit.HundredCubicFoot, VolumeUnits.HundredCubicFoot), + new (VolumeUnit.ImperialBeerBarrel, VolumeUnits.ImperialBeerBarrel), + new (VolumeUnit.ImperialGallon, VolumeUnits.ImperialGallon), + new (VolumeUnit.ImperialOunce, VolumeUnits.ImperialOunce), + new (VolumeUnit.ImperialPint, VolumeUnits.ImperialPint), + new (VolumeUnit.ImperialQuart, VolumeUnits.ImperialQuart), + new (VolumeUnit.KiloimperialGallon, VolumeUnits.KiloimperialGallon), + new (VolumeUnit.Kiloliter, VolumeUnits.Kiloliter), + new (VolumeUnit.KilousGallon, VolumeUnits.KilousGallon), + new (VolumeUnit.Liter, VolumeUnits.Liter), + new (VolumeUnit.MegaimperialGallon, VolumeUnits.MegaimperialGallon), + new (VolumeUnit.Megaliter, VolumeUnits.Megaliter), + new (VolumeUnit.MegausGallon, VolumeUnits.MegausGallon), + new (VolumeUnit.MetricCup, VolumeUnits.MetricCup), + new (VolumeUnit.MetricTablespoon, VolumeUnits.MetricTablespoon), + new (VolumeUnit.MetricTeaspoon, VolumeUnits.MetricTeaspoon), + new (VolumeUnit.Microliter, VolumeUnits.Microliter), + new (VolumeUnit.Milliliter, VolumeUnits.Milliliter), + new (VolumeUnit.MillionCubicFoot, VolumeUnits.MillionCubicFoot), + new (VolumeUnit.Nanoliter, VolumeUnits.Nanoliter), + new (VolumeUnit.OilBarrel, VolumeUnits.OilBarrel), + new (VolumeUnit.ThousandCubicFoot, VolumeUnits.ThousandCubicFoot), + new (VolumeUnit.ThousandCubicMeter, VolumeUnits.ThousandCubicMeter), + new (VolumeUnit.UkTablespoon, VolumeUnits.UkTablespoon), + new (VolumeUnit.UsBeerBarrel, VolumeUnits.UsBeerBarrel), + new (VolumeUnit.UsCustomaryCup, VolumeUnits.UsCustomaryCup), + new (VolumeUnit.UsGallon, VolumeUnits.UsGallon), + new (VolumeUnit.UsLegalCup, VolumeUnits.UsLegalCup), + new (VolumeUnit.UsOunce, VolumeUnits.UsOunce), + new (VolumeUnit.UsPint, VolumeUnits.UsPint), + new (VolumeUnit.UsQuart, VolumeUnits.UsQuart), + new (VolumeUnit.UsTablespoon, VolumeUnits.UsTablespoon), + new (VolumeUnit.UsTeaspoon, VolumeUnits.UsTeaspoon), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs index ab7a1cdc96..56be56edbb 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeConcentration.g.cs @@ -121,64 +121,29 @@ 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, VolumeConcentrationUnits.CentiliterPerLiter), + new (VolumeConcentrationUnit.CentiliterPerMilliliter, VolumeConcentrationUnits.CentiliterPerMilliliter), + new (VolumeConcentrationUnit.DeciliterPerLiter, VolumeConcentrationUnits.DeciliterPerLiter), + new (VolumeConcentrationUnit.DeciliterPerMilliliter, VolumeConcentrationUnits.DeciliterPerMilliliter), + new (VolumeConcentrationUnit.DecimalFraction, VolumeConcentrationUnits.DecimalFraction), + new (VolumeConcentrationUnit.LiterPerLiter, VolumeConcentrationUnits.LiterPerLiter), + new (VolumeConcentrationUnit.LiterPerMilliliter, VolumeConcentrationUnits.LiterPerMilliliter), + new (VolumeConcentrationUnit.MicroliterPerLiter, VolumeConcentrationUnits.MicroliterPerLiter), + new (VolumeConcentrationUnit.MicroliterPerMilliliter, VolumeConcentrationUnits.MicroliterPerMilliliter), + new (VolumeConcentrationUnit.MilliliterPerLiter, VolumeConcentrationUnits.MilliliterPerLiter), + new (VolumeConcentrationUnit.MilliliterPerMilliliter, VolumeConcentrationUnits.MilliliterPerMilliliter), + new (VolumeConcentrationUnit.NanoliterPerLiter, VolumeConcentrationUnits.NanoliterPerLiter), + new (VolumeConcentrationUnit.NanoliterPerMilliliter, VolumeConcentrationUnits.NanoliterPerMilliliter), + new (VolumeConcentrationUnit.PartPerBillion, VolumeConcentrationUnits.PartPerBillion), + new (VolumeConcentrationUnit.PartPerMillion, VolumeConcentrationUnits.PartPerMillion), + new (VolumeConcentrationUnit.PartPerThousand, VolumeConcentrationUnits.PartPerThousand), + new (VolumeConcentrationUnit.PartPerTrillion, VolumeConcentrationUnits.PartPerTrillion), + new (VolumeConcentrationUnit.Percent, VolumeConcentrationUnits.Percent), + new (VolumeConcentrationUnit.PicoliterPerLiter, VolumeConcentrationUnits.PicoliterPerLiter), + new (VolumeConcentrationUnit.PicoliterPerMilliliter, VolumeConcentrationUnits.PicoliterPerMilliliter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs index 884e08ce77..15de75c8a1 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs @@ -123,238 +123,87 @@ 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, VolumeFlowUnits.AcreFootPerDay), + new (VolumeFlowUnit.AcreFootPerHour, VolumeFlowUnits.AcreFootPerHour), + new (VolumeFlowUnit.AcreFootPerMinute, VolumeFlowUnits.AcreFootPerMinute), + new (VolumeFlowUnit.AcreFootPerSecond, VolumeFlowUnits.AcreFootPerSecond), + new (VolumeFlowUnit.CentiliterPerDay, VolumeFlowUnits.CentiliterPerDay), + new (VolumeFlowUnit.CentiliterPerHour, VolumeFlowUnits.CentiliterPerHour), + new (VolumeFlowUnit.CentiliterPerMinute, VolumeFlowUnits.CentiliterPerMinute), + new (VolumeFlowUnit.CentiliterPerSecond, VolumeFlowUnits.CentiliterPerSecond), + new (VolumeFlowUnit.CubicCentimeterPerMinute, VolumeFlowUnits.CubicCentimeterPerMinute), + new (VolumeFlowUnit.CubicDecimeterPerMinute, VolumeFlowUnits.CubicDecimeterPerMinute), + new (VolumeFlowUnit.CubicFootPerHour, VolumeFlowUnits.CubicFootPerHour), + new (VolumeFlowUnit.CubicFootPerMinute, VolumeFlowUnits.CubicFootPerMinute), + new (VolumeFlowUnit.CubicFootPerSecond, VolumeFlowUnits.CubicFootPerSecond), + new (VolumeFlowUnit.CubicInchPerMinute, VolumeFlowUnits.CubicInchPerMinute), + new (VolumeFlowUnit.CubicInchPerSecond, VolumeFlowUnits.CubicInchPerSecond), + new (VolumeFlowUnit.CubicMeterPerDay, VolumeFlowUnits.CubicMeterPerDay), + new (VolumeFlowUnit.CubicMeterPerHour, VolumeFlowUnits.CubicMeterPerHour), + new (VolumeFlowUnit.CubicMeterPerMinute, VolumeFlowUnits.CubicMeterPerMinute), + new (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnits.CubicMeterPerSecond), + new (VolumeFlowUnit.CubicMillimeterPerMinute, VolumeFlowUnits.CubicMillimeterPerMinute), + new (VolumeFlowUnit.CubicMillimeterPerSecond, VolumeFlowUnits.CubicMillimeterPerSecond), + new (VolumeFlowUnit.CubicYardPerDay, VolumeFlowUnits.CubicYardPerDay), + new (VolumeFlowUnit.CubicYardPerHour, VolumeFlowUnits.CubicYardPerHour), + new (VolumeFlowUnit.CubicYardPerMinute, VolumeFlowUnits.CubicYardPerMinute), + new (VolumeFlowUnit.CubicYardPerSecond, VolumeFlowUnits.CubicYardPerSecond), + new (VolumeFlowUnit.DecaliterPerDay, VolumeFlowUnits.DecaliterPerDay), + new (VolumeFlowUnit.DecaliterPerHour, VolumeFlowUnits.DecaliterPerHour), + new (VolumeFlowUnit.DecaliterPerMinute, VolumeFlowUnits.DecaliterPerMinute), + new (VolumeFlowUnit.DecaliterPerSecond, VolumeFlowUnits.DecaliterPerSecond), + new (VolumeFlowUnit.DeciliterPerDay, VolumeFlowUnits.DeciliterPerDay), + new (VolumeFlowUnit.DeciliterPerHour, VolumeFlowUnits.DeciliterPerHour), + new (VolumeFlowUnit.DeciliterPerMinute, VolumeFlowUnits.DeciliterPerMinute), + new (VolumeFlowUnit.DeciliterPerSecond, VolumeFlowUnits.DeciliterPerSecond), + new (VolumeFlowUnit.HectoliterPerDay, VolumeFlowUnits.HectoliterPerDay), + new (VolumeFlowUnit.HectoliterPerHour, VolumeFlowUnits.HectoliterPerHour), + new (VolumeFlowUnit.HectoliterPerMinute, VolumeFlowUnits.HectoliterPerMinute), + new (VolumeFlowUnit.HectoliterPerSecond, VolumeFlowUnits.HectoliterPerSecond), + new (VolumeFlowUnit.KiloliterPerDay, VolumeFlowUnits.KiloliterPerDay), + new (VolumeFlowUnit.KiloliterPerHour, VolumeFlowUnits.KiloliterPerHour), + new (VolumeFlowUnit.KiloliterPerMinute, VolumeFlowUnits.KiloliterPerMinute), + new (VolumeFlowUnit.KiloliterPerSecond, VolumeFlowUnits.KiloliterPerSecond), + new (VolumeFlowUnit.KilousGallonPerMinute, VolumeFlowUnits.KilousGallonPerMinute), + new (VolumeFlowUnit.LiterPerDay, VolumeFlowUnits.LiterPerDay), + new (VolumeFlowUnit.LiterPerHour, VolumeFlowUnits.LiterPerHour), + new (VolumeFlowUnit.LiterPerMinute, VolumeFlowUnits.LiterPerMinute), + new (VolumeFlowUnit.LiterPerSecond, VolumeFlowUnits.LiterPerSecond), + new (VolumeFlowUnit.MegaliterPerDay, VolumeFlowUnits.MegaliterPerDay), + new (VolumeFlowUnit.MegaliterPerHour, VolumeFlowUnits.MegaliterPerHour), + new (VolumeFlowUnit.MegaliterPerMinute, VolumeFlowUnits.MegaliterPerMinute), + new (VolumeFlowUnit.MegaliterPerSecond, VolumeFlowUnits.MegaliterPerSecond), + new (VolumeFlowUnit.MegaukGallonPerDay, VolumeFlowUnits.MegaukGallonPerDay), + new (VolumeFlowUnit.MegaukGallonPerSecond, VolumeFlowUnits.MegaukGallonPerSecond), + new (VolumeFlowUnit.MegausGallonPerDay, VolumeFlowUnits.MegausGallonPerDay), + new (VolumeFlowUnit.MicroliterPerDay, VolumeFlowUnits.MicroliterPerDay), + new (VolumeFlowUnit.MicroliterPerHour, VolumeFlowUnits.MicroliterPerHour), + new (VolumeFlowUnit.MicroliterPerMinute, VolumeFlowUnits.MicroliterPerMinute), + new (VolumeFlowUnit.MicroliterPerSecond, VolumeFlowUnits.MicroliterPerSecond), + new (VolumeFlowUnit.MilliliterPerDay, VolumeFlowUnits.MilliliterPerDay), + new (VolumeFlowUnit.MilliliterPerHour, VolumeFlowUnits.MilliliterPerHour), + new (VolumeFlowUnit.MilliliterPerMinute, VolumeFlowUnits.MilliliterPerMinute), + new (VolumeFlowUnit.MilliliterPerSecond, VolumeFlowUnits.MilliliterPerSecond), + new (VolumeFlowUnit.MillionUsGallonPerDay, VolumeFlowUnits.MillionUsGallonPerDay), + new (VolumeFlowUnit.NanoliterPerDay, VolumeFlowUnits.NanoliterPerDay), + new (VolumeFlowUnit.NanoliterPerHour, VolumeFlowUnits.NanoliterPerHour), + new (VolumeFlowUnit.NanoliterPerMinute, VolumeFlowUnits.NanoliterPerMinute), + new (VolumeFlowUnit.NanoliterPerSecond, VolumeFlowUnits.NanoliterPerSecond), + new (VolumeFlowUnit.OilBarrelPerDay, VolumeFlowUnits.OilBarrelPerDay), + new (VolumeFlowUnit.OilBarrelPerHour, VolumeFlowUnits.OilBarrelPerHour), + new (VolumeFlowUnit.OilBarrelPerMinute, VolumeFlowUnits.OilBarrelPerMinute), + new (VolumeFlowUnit.OilBarrelPerSecond, VolumeFlowUnits.OilBarrelPerSecond), + new (VolumeFlowUnit.UkGallonPerDay, VolumeFlowUnits.UkGallonPerDay), + new (VolumeFlowUnit.UkGallonPerHour, VolumeFlowUnits.UkGallonPerHour), + new (VolumeFlowUnit.UkGallonPerMinute, VolumeFlowUnits.UkGallonPerMinute), + new (VolumeFlowUnit.UkGallonPerSecond, VolumeFlowUnits.UkGallonPerSecond), + new (VolumeFlowUnit.UsGallonPerDay, VolumeFlowUnits.UsGallonPerDay), + new (VolumeFlowUnit.UsGallonPerHour, VolumeFlowUnits.UsGallonPerHour), + new (VolumeFlowUnit.UsGallonPerMinute, VolumeFlowUnits.UsGallonPerMinute), + new (VolumeFlowUnit.UsGallonPerSecond, VolumeFlowUnits.UsGallonPerSecond), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs index 1800e157d8..22f0f8919b 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs @@ -117,10 +117,11 @@ 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, VolumeFlowPerAreaUnits.CubicFootPerMinutePerSquareFoot), + new (VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter, VolumeFlowPerAreaUnits.CubicMeterPerSecondPerSquareMeter), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs index 28c22481d5..b4850011ac 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs @@ -117,31 +117,18 @@ 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, VolumePerLengthUnits.CubicMeterPerMeter), + new (VolumePerLengthUnit.CubicYardPerFoot, VolumePerLengthUnits.CubicYardPerFoot), + new (VolumePerLengthUnit.CubicYardPerUsSurveyFoot, VolumePerLengthUnits.CubicYardPerUsSurveyFoot), + new (VolumePerLengthUnit.ImperialGallonPerMile, VolumePerLengthUnits.ImperialGallonPerMile), + new (VolumePerLengthUnit.LiterPerKilometer, VolumePerLengthUnits.LiterPerKilometer), + new (VolumePerLengthUnit.LiterPerMeter, VolumePerLengthUnits.LiterPerMeter), + new (VolumePerLengthUnit.LiterPerMillimeter, VolumePerLengthUnits.LiterPerMillimeter), + new (VolumePerLengthUnit.OilBarrelPerFoot, VolumePerLengthUnits.OilBarrelPerFoot), + new (VolumePerLengthUnit.UsGallonPerMile, VolumePerLengthUnits.UsGallonPerMile), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs index e9ea8a0dc5..b36330126d 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs @@ -120,31 +120,18 @@ 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, VolumetricHeatCapacityUnits.BtuPerCubicFootDegreeFahrenheit), + new (VolumetricHeatCapacityUnit.CaloriePerCubicCentimeterDegreeCelsius, VolumetricHeatCapacityUnits.CaloriePerCubicCentimeterDegreeCelsius), + new (VolumetricHeatCapacityUnit.JoulePerCubicMeterDegreeCelsius, VolumetricHeatCapacityUnits.JoulePerCubicMeterDegreeCelsius), + new (VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin, VolumetricHeatCapacityUnits.JoulePerCubicMeterKelvin), + new (VolumetricHeatCapacityUnit.KilocaloriePerCubicCentimeterDegreeCelsius, VolumetricHeatCapacityUnits.KilocaloriePerCubicCentimeterDegreeCelsius), + new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterDegreeCelsius, VolumetricHeatCapacityUnits.KilojoulePerCubicMeterDegreeCelsius), + new (VolumetricHeatCapacityUnit.KilojoulePerCubicMeterKelvin, VolumetricHeatCapacityUnits.KilojoulePerCubicMeterKelvin), + new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterDegreeCelsius, VolumetricHeatCapacityUnits.MegajoulePerCubicMeterDegreeCelsius), + new (VolumetricHeatCapacityUnit.MegajoulePerCubicMeterKelvin, VolumetricHeatCapacityUnits.MegajoulePerCubicMeterKelvin), + }; } } diff --git a/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs index 0789620514..0aa1abeb78 100644 --- a/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs @@ -116,22 +116,15 @@ 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, WarpingMomentOfInertiaUnits.CentimeterToTheSixth), + new (WarpingMomentOfInertiaUnit.DecimeterToTheSixth, WarpingMomentOfInertiaUnits.DecimeterToTheSixth), + new (WarpingMomentOfInertiaUnit.FootToTheSixth, WarpingMomentOfInertiaUnits.FootToTheSixth), + new (WarpingMomentOfInertiaUnit.InchToTheSixth, WarpingMomentOfInertiaUnits.InchToTheSixth), + new (WarpingMomentOfInertiaUnit.MeterToTheSixth, WarpingMomentOfInertiaUnits.MeterToTheSixth), + 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)); + } +} diff --git a/UnitsNet/QuantityInfo.cs b/UnitsNet/QuantityInfo.cs index 25a337e04f..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) { @@ -308,6 +318,29 @@ 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 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); + } + /// TQuantity IQuantityInstanceInfo.Create(QuantityValue value, UnitKey unitKey) { @@ -361,6 +394,7 @@ public class QuantityInfo : QuantityInfoBase> _unitMappings; + private Dictionary>? _unitsBySource; #if NET @@ -487,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; } } ///