From 53ecf9e97f8677c74704e31526b50583a0b45c1b Mon Sep 17 00:00:00 2001 From: Andreas Gullberg Larsen Date: Thu, 11 Jun 2026 10:08:28 +0200 Subject: [PATCH] Remove .NET nanoFramework support nanoFramework has moved to its own repo, nanoframework/nanoFramework.UnitsNet, which now publishes its own packages. Per #1647, drop the in-repo nanoFramework projects, code generation, build/CI steps and docs. - Remove UnitsNet.NanoFramework projects and generated code - Remove CodeGen NanoFrameworkGen generators and Program.cs wiring - Remove nanoFramework build/pack/version logic from Build scripts - Drop nanoFramework setup steps and -IncludeNanoFramework from GitHub Actions and Azure Pipelines - Delete redundant build-all-targets.bat (now identical to build.bat) - Clean up docs, cSpell and ReSharper dictionary references Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 7 +- .github/workflows/pr.yml | 7 +- AGENTS.md | 7 - Build/build-functions.psm1 | 73 +- Build/build-pack-nano-nugets.psm1 | 14 - Build/build.ps1 | 15 +- Build/init.ps1 | 103 -- Build/set-version-UnitsNet.ps1 | 13 - .../NanoFrameworkGen/NuspecGenerator.cs | 62 - .../NanoFrameworkGen/ProjectGenerator.cs | 78 -- .../NanoFrameworkGen/PropertyGenerator.cs | 56 - .../NanoFrameworkGen/QuantityGenerator.cs | 248 ---- .../NanoFrameworkGen/SolutionGenerator.cs | 62 - .../NanoFrameworkGen/UnitTypeGenerator.cs | 67 -- CodeGen/Generators/NanoFrameworkGenerator.cs | 394 ------- CodeGen/Generators/NanoFrameworkVersions.cs | 14 - CodeGen/Generators/QuantityJsonFilesParser.cs | 2 +- CodeGen/Helpers/FileInfoExtensions.cs | 2 - CodeGen/Program.cs | 20 +- CodeGen/README.md | 8 - Directory.Build.props | 3 - Docs/README.md | 1 - Docs/nanoframework.md | 19 - GITHUB_ACTIONS_MIGRATION_README.md | 7 +- README.md | 1 - .../AbsorbedDoseOfIonizingRadiation.nfproj | 42 - ...ork.AbsorbedDoseOfIonizingRadiation.nuspec | 26 - .../packages.config | 4 - .../Acceleration/Acceleration.nfproj | 42 - ...UnitsNet.NanoFramework.Acceleration.nuspec | 26 - .../Acceleration/packages.config | 4 - .../AmountOfSubstance.nfproj | 42 - ...Net.NanoFramework.AmountOfSubstance.nuspec | 26 - .../AmountOfSubstance/packages.config | 4 - .../AmplitudeRatio/AmplitudeRatio.nfproj | 42 - ...itsNet.NanoFramework.AmplitudeRatio.nuspec | 26 - .../AmplitudeRatio/packages.config | 4 - .../GeneratedCode/Angle/Angle.nfproj | 47 - .../Angle/UnitsNet.NanoFramework.Angle.nuspec | 27 - .../GeneratedCode/Angle/packages.config | 5 - .../GeneratedCode/Area/Area.nfproj | 42 - .../Area/UnitsNet.NanoFramework.Area.nuspec | 26 - .../GeneratedCode/Area/packages.config | 4 - .../AreaDensity/AreaDensity.nfproj | 42 - .../UnitsNet.NanoFramework.AreaDensity.nuspec | 26 - .../GeneratedCode/AreaDensity/packages.config | 4 - .../AreaMomentOfInertia.nfproj | 42 - ...t.NanoFramework.AreaMomentOfInertia.nuspec | 26 - .../AreaMomentOfInertia/packages.config | 4 - .../GeneratedCode/BitRate/BitRate.nfproj | 42 - .../UnitsNet.NanoFramework.BitRate.nuspec | 26 - .../GeneratedCode/BitRate/packages.config | 4 - .../BrakeSpecificFuelConsumption.nfproj | 42 - ...mework.BrakeSpecificFuelConsumption.nuspec | 26 - .../packages.config | 4 - .../CoefficientOfThermalExpansion.nfproj | 42 - ...ework.CoefficientOfThermalExpansion.nuspec | 26 - .../packages.config | 4 - .../Compressibility/Compressibility.nfproj | 42 - ...tsNet.NanoFramework.Compressibility.nuspec | 26 - .../Compressibility/packages.config | 4 - .../GeneratedCode/Density/Density.nfproj | 42 - .../UnitsNet.NanoFramework.Density.nuspec | 26 - .../GeneratedCode/Density/packages.config | 4 - .../DoseAreaProduct/DoseAreaProduct.nfproj | 42 - ...tsNet.NanoFramework.DoseAreaProduct.nuspec | 26 - .../DoseAreaProduct/packages.config | 4 - .../GeneratedCode/Duration/Duration.nfproj | 42 - .../UnitsNet.NanoFramework.Duration.nuspec | 26 - .../GeneratedCode/Duration/packages.config | 4 - .../DynamicViscosity/DynamicViscosity.nfproj | 42 - ...sNet.NanoFramework.DynamicViscosity.nuspec | 26 - .../DynamicViscosity/packages.config | 4 - .../ElectricAdmittance.nfproj | 42 - ...et.NanoFramework.ElectricAdmittance.nuspec | 26 - .../ElectricAdmittance/packages.config | 4 - .../ElectricApparentEnergy.nfproj | 42 - ...anoFramework.ElectricApparentEnergy.nuspec | 26 - .../ElectricApparentEnergy/packages.config | 4 - .../ElectricApparentPower.nfproj | 42 - ...NanoFramework.ElectricApparentPower.nuspec | 26 - .../ElectricApparentPower/packages.config | 4 - .../ElectricCapacitance.nfproj | 42 - ...t.NanoFramework.ElectricCapacitance.nuspec | 26 - .../ElectricCapacitance/packages.config | 4 - .../ElectricCharge/ElectricCharge.nfproj | 42 - ...itsNet.NanoFramework.ElectricCharge.nuspec | 26 - .../ElectricCharge/packages.config | 4 - .../ElectricChargeDensity.nfproj | 42 - ...NanoFramework.ElectricChargeDensity.nuspec | 26 - .../ElectricChargeDensity/packages.config | 4 - .../ElectricConductance.nfproj | 42 - ...t.NanoFramework.ElectricConductance.nuspec | 26 - .../ElectricConductance/packages.config | 4 - .../ElectricConductivity.nfproj | 42 - ....NanoFramework.ElectricConductivity.nuspec | 26 - .../ElectricConductivity/packages.config | 4 - .../ElectricCurrent/ElectricCurrent.nfproj | 42 - ...tsNet.NanoFramework.ElectricCurrent.nuspec | 26 - .../ElectricCurrent/packages.config | 4 - .../ElectricCurrentDensity.nfproj | 42 - ...anoFramework.ElectricCurrentDensity.nuspec | 26 - .../ElectricCurrentDensity/packages.config | 4 - .../ElectricCurrentGradient.nfproj | 42 - ...noFramework.ElectricCurrentGradient.nuspec | 26 - .../ElectricCurrentGradient/packages.config | 4 - .../ElectricField/ElectricField.nfproj | 42 - ...nitsNet.NanoFramework.ElectricField.nuspec | 26 - .../ElectricField/packages.config | 4 - .../ElectricImpedance.nfproj | 42 - ...Net.NanoFramework.ElectricImpedance.nuspec | 26 - .../ElectricImpedance/packages.config | 4 - .../ElectricInductance.nfproj | 42 - ...et.NanoFramework.ElectricInductance.nuspec | 26 - .../ElectricInductance/packages.config | 4 - .../ElectricPotential.nfproj | 42 - ...Net.NanoFramework.ElectricPotential.nuspec | 26 - .../ElectricPotential/packages.config | 4 - .../ElectricPotentialChangeRate.nfproj | 42 - ...amework.ElectricPotentialChangeRate.nuspec | 26 - .../packages.config | 4 - .../ElectricReactance.nfproj | 42 - ...Net.NanoFramework.ElectricReactance.nuspec | 26 - .../ElectricReactance/packages.config | 4 - .../ElectricReactiveEnergy.nfproj | 42 - ...anoFramework.ElectricReactiveEnergy.nuspec | 26 - .../ElectricReactiveEnergy/packages.config | 4 - .../ElectricReactivePower.nfproj | 42 - ...NanoFramework.ElectricReactivePower.nuspec | 26 - .../ElectricReactivePower/packages.config | 4 - .../ElectricResistance.nfproj | 42 - ...et.NanoFramework.ElectricResistance.nuspec | 26 - .../ElectricResistance/packages.config | 4 - .../ElectricResistivity.nfproj | 42 - ...t.NanoFramework.ElectricResistivity.nuspec | 26 - .../ElectricResistivity/packages.config | 4 - .../ElectricSurfaceChargeDensity.nfproj | 42 - ...mework.ElectricSurfaceChargeDensity.nuspec | 26 - .../packages.config | 4 - .../ElectricSusceptance.nfproj | 42 - ...t.NanoFramework.ElectricSusceptance.nuspec | 26 - .../ElectricSusceptance/packages.config | 4 - .../GeneratedCode/Energy/Energy.nfproj | 42 - .../UnitsNet.NanoFramework.Energy.nuspec | 26 - .../GeneratedCode/Energy/packages.config | 4 - .../EnergyDensity/EnergyDensity.nfproj | 42 - ...nitsNet.NanoFramework.EnergyDensity.nuspec | 26 - .../EnergyDensity/packages.config | 4 - .../GeneratedCode/Entropy/Entropy.nfproj | 42 - .../UnitsNet.NanoFramework.Entropy.nuspec | 26 - .../GeneratedCode/Entropy/packages.config | 4 - .../FluidResistance/FluidResistance.nfproj | 42 - ...tsNet.NanoFramework.FluidResistance.nuspec | 26 - .../FluidResistance/packages.config | 4 - .../GeneratedCode/Force/Force.nfproj | 42 - .../Force/UnitsNet.NanoFramework.Force.nuspec | 26 - .../GeneratedCode/Force/packages.config | 4 - .../ForceChangeRate/ForceChangeRate.nfproj | 42 - ...tsNet.NanoFramework.ForceChangeRate.nuspec | 26 - .../ForceChangeRate/packages.config | 4 - .../ForcePerLength/ForcePerLength.nfproj | 42 - ...itsNet.NanoFramework.ForcePerLength.nuspec | 26 - .../ForcePerLength/packages.config | 4 - .../GeneratedCode/Frequency/Frequency.nfproj | 47 - .../UnitsNet.NanoFramework.Frequency.nuspec | 27 - .../GeneratedCode/Frequency/packages.config | 5 - .../FuelEfficiency/FuelEfficiency.nfproj | 42 - ...itsNet.NanoFramework.FuelEfficiency.nuspec | 26 - .../FuelEfficiency/packages.config | 4 - .../GeneratedCode/HeatFlux/HeatFlux.nfproj | 42 - .../UnitsNet.NanoFramework.HeatFlux.nuspec | 26 - .../GeneratedCode/HeatFlux/packages.config | 4 - .../HeatTransferCoefficient.nfproj | 42 - ...noFramework.HeatTransferCoefficient.nuspec | 26 - .../HeatTransferCoefficient/packages.config | 4 - .../Illuminance/Illuminance.nfproj | 42 - .../UnitsNet.NanoFramework.Illuminance.nuspec | 26 - .../GeneratedCode/Illuminance/packages.config | 4 - .../GeneratedCode/Impulse/Impulse.nfproj | 42 - .../UnitsNet.NanoFramework.Impulse.nuspec | 26 - .../GeneratedCode/Impulse/packages.config | 4 - .../Information/Information.nfproj | 42 - .../UnitsNet.NanoFramework.Information.nuspec | 26 - .../GeneratedCode/Information/packages.config | 4 - .../Irradiance/Irradiance.nfproj | 42 - .../UnitsNet.NanoFramework.Irradiance.nuspec | 26 - .../GeneratedCode/Irradiance/packages.config | 4 - .../Irradiation/Irradiation.nfproj | 42 - .../UnitsNet.NanoFramework.Irradiation.nuspec | 26 - .../GeneratedCode/Irradiation/packages.config | 4 - .../GeneratedCode/Jerk/Jerk.nfproj | 42 - .../Jerk/UnitsNet.NanoFramework.Jerk.nuspec | 26 - .../GeneratedCode/Jerk/packages.config | 4 - .../KinematicViscosity.nfproj | 42 - ...et.NanoFramework.KinematicViscosity.nuspec | 26 - .../KinematicViscosity/packages.config | 4 - .../GeneratedCode/LeakRate/LeakRate.nfproj | 42 - .../UnitsNet.NanoFramework.LeakRate.nuspec | 26 - .../GeneratedCode/LeakRate/packages.config | 4 - .../GeneratedCode/Length/Length.nfproj | 42 - .../UnitsNet.NanoFramework.Length.nuspec | 26 - .../GeneratedCode/Length/packages.config | 4 - .../GeneratedCode/Level/Level.nfproj | 42 - .../Level/UnitsNet.NanoFramework.Level.nuspec | 26 - .../GeneratedCode/Level/packages.config | 4 - .../LinearDensity/LinearDensity.nfproj | 42 - ...nitsNet.NanoFramework.LinearDensity.nuspec | 26 - .../LinearDensity/packages.config | 4 - .../LinearPowerDensity.nfproj | 42 - ...et.NanoFramework.LinearPowerDensity.nuspec | 26 - .../LinearPowerDensity/packages.config | 4 - .../GeneratedCode/Luminance/Luminance.nfproj | 42 - .../UnitsNet.NanoFramework.Luminance.nuspec | 26 - .../GeneratedCode/Luminance/packages.config | 4 - .../Luminosity/Luminosity.nfproj | 42 - .../UnitsNet.NanoFramework.Luminosity.nuspec | 26 - .../GeneratedCode/Luminosity/packages.config | 4 - .../LuminousFlux/LuminousFlux.nfproj | 42 - ...UnitsNet.NanoFramework.LuminousFlux.nuspec | 26 - .../LuminousFlux/packages.config | 4 - .../LuminousIntensity.nfproj | 42 - ...Net.NanoFramework.LuminousIntensity.nuspec | 26 - .../LuminousIntensity/packages.config | 4 - .../MagneticField/MagneticField.nfproj | 42 - ...nitsNet.NanoFramework.MagneticField.nuspec | 26 - .../MagneticField/packages.config | 4 - .../MagneticFlux/MagneticFlux.nfproj | 42 - ...UnitsNet.NanoFramework.MagneticFlux.nuspec | 26 - .../MagneticFlux/packages.config | 4 - .../Magnetization/Magnetization.nfproj | 42 - ...nitsNet.NanoFramework.Magnetization.nuspec | 26 - .../Magnetization/packages.config | 4 - .../GeneratedCode/Mass/Mass.nfproj | 42 - .../Mass/UnitsNet.NanoFramework.Mass.nuspec | 26 - .../GeneratedCode/Mass/packages.config | 4 - .../MassConcentration.nfproj | 42 - ...Net.NanoFramework.MassConcentration.nuspec | 26 - .../MassConcentration/packages.config | 4 - .../GeneratedCode/MassFlow/MassFlow.nfproj | 42 - .../UnitsNet.NanoFramework.MassFlow.nuspec | 26 - .../GeneratedCode/MassFlow/packages.config | 4 - .../GeneratedCode/MassFlux/MassFlux.nfproj | 42 - .../UnitsNet.NanoFramework.MassFlux.nuspec | 26 - .../GeneratedCode/MassFlux/packages.config | 4 - .../MassFraction/MassFraction.nfproj | 42 - ...UnitsNet.NanoFramework.MassFraction.nuspec | 26 - .../MassFraction/packages.config | 4 - .../MassMomentOfInertia.nfproj | 42 - ...t.NanoFramework.MassMomentOfInertia.nuspec | 26 - .../MassMomentOfInertia/packages.config | 4 - .../GeneratedCode/Molality/Molality.nfproj | 42 - .../UnitsNet.NanoFramework.Molality.nuspec | 26 - .../GeneratedCode/Molality/packages.config | 4 - .../MolarEnergy/MolarEnergy.nfproj | 42 - .../UnitsNet.NanoFramework.MolarEnergy.nuspec | 26 - .../GeneratedCode/MolarEnergy/packages.config | 4 - .../MolarEntropy/MolarEntropy.nfproj | 42 - ...UnitsNet.NanoFramework.MolarEntropy.nuspec | 26 - .../MolarEntropy/packages.config | 4 - .../GeneratedCode/MolarFlow/MolarFlow.nfproj | 42 - .../UnitsNet.NanoFramework.MolarFlow.nuspec | 26 - .../GeneratedCode/MolarFlow/packages.config | 4 - .../GeneratedCode/MolarMass/MolarMass.nfproj | 42 - .../UnitsNet.NanoFramework.MolarMass.nuspec | 26 - .../GeneratedCode/MolarMass/packages.config | 4 - .../GeneratedCode/Molarity/Molarity.nfproj | 42 - .../UnitsNet.NanoFramework.Molarity.nuspec | 26 - .../GeneratedCode/Molarity/packages.config | 4 - .../Permeability/Permeability.nfproj | 42 - ...UnitsNet.NanoFramework.Permeability.nuspec | 26 - .../Permeability/packages.config | 4 - .../Permittivity/Permittivity.nfproj | 42 - ...UnitsNet.NanoFramework.Permittivity.nuspec | 26 - .../Permittivity/packages.config | 4 - .../PorousMediumPermeability.nfproj | 42 - ...oFramework.PorousMediumPermeability.nuspec | 26 - .../PorousMediumPermeability/packages.config | 4 - .../GeneratedCode/Power/Power.nfproj | 42 - .../Power/UnitsNet.NanoFramework.Power.nuspec | 26 - .../GeneratedCode/Power/packages.config | 4 - .../PowerDensity/PowerDensity.nfproj | 42 - ...UnitsNet.NanoFramework.PowerDensity.nuspec | 26 - .../PowerDensity/packages.config | 4 - .../PowerRatio/PowerRatio.nfproj | 42 - .../UnitsNet.NanoFramework.PowerRatio.nuspec | 26 - .../GeneratedCode/PowerRatio/packages.config | 4 - .../GeneratedCode/Pressure/Pressure.nfproj | 47 - .../UnitsNet.NanoFramework.Pressure.nuspec | 27 - .../GeneratedCode/Pressure/packages.config | 5 - .../PressureChangeRate.nfproj | 42 - ...et.NanoFramework.PressureChangeRate.nuspec | 26 - .../PressureChangeRate/packages.config | 4 - .../GeneratedCode/Properties/AssemblyInfo.cs | 56 - .../AbsorbedDoseOfIonizingRadiation.g.cs | 352 ------ .../Quantities/Acceleration.g.cs | 313 ----- .../Quantities/AmountOfSubstance.g.cs | 349 ------ .../Quantities/AmplitudeRatio.g.cs | 193 --- .../GeneratedCode/Quantities/Angle.g.cs | 325 ----- .../GeneratedCode/Quantities/Area.g.cs | 313 ----- .../GeneratedCode/Quantities/AreaDensity.g.cs | 181 --- .../Quantities/AreaMomentOfInertia.g.cs | 217 ---- .../GeneratedCode/Quantities/BitRate.g.cs | 616 ---------- .../BrakeSpecificFuelConsumption.g.cs | 181 --- .../CoefficientOfThermalExpansion.g.cs | 217 ---- .../Quantities/Compressibility.g.cs | 229 ---- .../GeneratedCode/Quantities/Density.g.cs | 820 ------------- .../Quantities/DoseAreaProduct.g.cs | 448 ------- .../GeneratedCode/Quantities/Duration.g.cs | 301 ----- .../Quantities/DynamicViscosity.g.cs | 268 ----- .../Quantities/ElectricAdmittance.g.cs | 341 ------ .../Quantities/ElectricApparentEnergy.g.cs | 181 --- .../Quantities/ElectricApparentPower.g.cs | 220 ---- .../Quantities/ElectricCapacitance.g.cs | 232 ---- .../Quantities/ElectricCharge.g.cs | 280 ----- .../Quantities/ElectricChargeDensity.g.cs | 160 --- .../Quantities/ElectricConductance.g.cs | 340 ------ .../Quantities/ElectricConductivity.g.cs | 220 ---- .../Quantities/ElectricCurrent.g.cs | 256 ---- .../Quantities/ElectricCurrentDensity.g.cs | 184 --- .../Quantities/ElectricCurrentGradient.g.cs | 229 ---- .../Quantities/ElectricField.g.cs | 160 --- .../Quantities/ElectricImpedance.g.cs | 245 ---- .../Quantities/ElectricInductance.g.cs | 208 ---- .../Quantities/ElectricPotential.g.cs | 220 ---- .../ElectricPotentialChangeRate.g.cs | 385 ------ .../Quantities/ElectricReactance.g.cs | 244 ---- .../Quantities/ElectricReactiveEnergy.g.cs | 181 --- .../Quantities/ElectricReactivePower.g.cs | 196 ---- .../Quantities/ElectricResistance.g.cs | 244 ---- .../Quantities/ElectricResistivity.g.cs | 316 ----- .../ElectricSurfaceChargeDensity.g.cs | 184 --- .../Quantities/ElectricSusceptance.g.cs | 340 ------ .../GeneratedCode/Quantities/Energy.g.cs | 625 ---------- .../Quantities/EnergyDensity.g.cs | 289 ----- .../GeneratedCode/Quantities/Entropy.g.cs | 229 ---- .../Quantities/FluidResistance.g.cs | 376 ------ .../GeneratedCode/Quantities/Force.g.cs | 337 ------ .../Quantities/ForceChangeRate.g.cs | 325 ----- .../Quantities/ForcePerLength.g.cs | 601 ---------- .../GeneratedCode/Quantities/Frequency.g.cs | 289 ----- .../Quantities/FuelEfficiency.g.cs | 196 ---- .../GeneratedCode/Quantities/HeatFlux.g.cs | 361 ------ .../Quantities/HeatTransferCoefficient.g.cs | 205 ---- .../GeneratedCode/Quantities/Illuminance.g.cs | 196 ---- .../GeneratedCode/Quantities/Impulse.g.cs | 301 ----- .../GeneratedCode/Quantities/Information.g.cs | 613 ---------- .../GeneratedCode/Quantities/Irradiance.g.cs | 313 ----- .../GeneratedCode/Quantities/Irradiation.g.cs | 256 ---- .../GeneratedCode/Quantities/Jerk.g.cs | 277 ----- .../Quantities/KinematicViscosity.g.cs | 256 ---- .../GeneratedCode/Quantities/LeakRate.g.cs | 196 ---- .../GeneratedCode/Quantities/Length.g.cs | 649 ---------- .../GeneratedCode/Quantities/Level.g.cs | 169 --- .../Quantities/LinearDensity.g.cs | 364 ------ .../Quantities/LinearPowerDensity.g.cs | 448 ------- .../GeneratedCode/Quantities/Luminance.g.cs | 268 ----- .../GeneratedCode/Quantities/Luminosity.g.cs | 316 ----- .../Quantities/LuminousFlux.g.cs | 160 --- .../Quantities/LuminousIntensity.g.cs | 160 --- .../Quantities/MagneticField.g.cs | 220 ---- .../Quantities/MagneticFlux.g.cs | 160 --- .../Quantities/Magnetization.g.cs | 160 --- .../GeneratedCode/Quantities/Mass.g.cs | 517 -------- .../Quantities/MassConcentration.g.cs | 736 ------------ .../GeneratedCode/Quantities/MassFlow.g.cs | 541 --------- .../GeneratedCode/Quantities/MassFlux.g.cs | 289 ----- .../Quantities/MassFraction.g.cs | 436 ------- .../Quantities/MassMomentOfInertia.g.cs | 481 -------- .../GeneratedCode/Quantities/Molality.g.cs | 184 --- .../GeneratedCode/Quantities/MolarEnergy.g.cs | 181 --- .../Quantities/MolarEntropy.g.cs | 181 --- .../GeneratedCode/Quantities/MolarFlow.g.cs | 253 ---- .../GeneratedCode/Quantities/MolarMass.g.cs | 301 ----- .../GeneratedCode/Quantities/Molarity.g.cs | 280 ----- .../Quantities/Permeability.g.cs | 160 --- .../Quantities/Permittivity.g.cs | 160 --- .../Quantities/PorousMediumPermeability.g.cs | 208 ---- .../GeneratedCode/Quantities/Power.g.cs | 469 -------- .../Quantities/PowerDensity.g.cs | 673 ----------- .../GeneratedCode/Quantities/PowerRatio.g.cs | 169 --- .../GeneratedCode/Quantities/Pressure.g.cs | 745 ------------ .../Quantities/PressureChangeRate.g.cs | 361 ------ .../Quantities/RadiationEquivalentDose.g.cs | 217 ---- .../RadiationEquivalentDoseRate.g.cs | 265 ----- .../Quantities/RadiationExposure.g.cs | 241 ---- .../Quantities/Radioactivity.g.cs | 493 -------- .../GeneratedCode/Quantities/Ratio.g.cs | 217 ---- .../Quantities/RatioChangeRate.g.cs | 169 --- .../Quantities/ReciprocalArea.g.cs | 280 ----- .../Quantities/ReciprocalLength.g.cs | 268 ----- .../Quantities/RelativeHumidity.g.cs | 157 --- .../Quantities/RotationalAcceleration.g.cs | 193 --- .../Quantities/RotationalSpeed.g.cs | 301 ----- .../Quantities/RotationalStiffness.g.cs | 553 --------- .../RotationalStiffnessPerLength.g.cs | 205 ---- .../GeneratedCode/Quantities/Scalar.g.cs | 157 --- .../GeneratedCode/Quantities/SolidAngle.g.cs | 160 --- .../Quantities/SpecificEnergy.g.cs | 508 -------- .../Quantities/SpecificEntropy.g.cs | 253 ---- .../Quantities/SpecificFuelConsumption.g.cs | 196 ---- .../Quantities/SpecificVolume.g.cs | 181 --- .../Quantities/SpecificWeight.g.cs | 352 ------ .../GeneratedCode/Quantities/Speed.g.cs | 541 --------- .../Quantities/StandardVolumeFlow.g.cs | 253 ---- .../GeneratedCode/Quantities/Temperature.g.cs | 265 ----- .../Quantities/TemperatureChangeRate.g.cs | 349 ------ .../Quantities/TemperatureDelta.g.cs | 253 ---- .../Quantities/TemperatureGradient.g.cs | 193 --- .../Quantities/ThermalConductivity.g.cs | 172 --- .../Quantities/ThermalInsulance.g.cs | 229 ---- .../Quantities/ThermalResistance.g.cs | 169 --- .../GeneratedCode/Quantities/Torque.g.cs | 445 ------- .../GeneratedCode/Quantities/Turbidity.g.cs | 160 --- .../GeneratedCode/Quantities/VitaminA.g.cs | 157 --- .../GeneratedCode/Quantities/Volume.g.cs | 805 ------------- .../Quantities/VolumeConcentration.g.cs | 388 ------ .../GeneratedCode/Quantities/VolumeFlow.g.cs | 1045 ----------------- .../Quantities/VolumeFlowPerArea.g.cs | 169 --- .../Quantities/VolumePerLength.g.cs | 253 ---- .../Quantities/VolumetricHeatCapacity.g.cs | 256 ---- .../Quantities/WarpingMomentOfInertia.g.cs | 217 ---- .../RadiationEquivalentDose.nfproj | 42 - ...noFramework.RadiationEquivalentDose.nuspec | 26 - .../RadiationEquivalentDose/packages.config | 4 - .../RadiationEquivalentDoseRate.nfproj | 42 - ...amework.RadiationEquivalentDoseRate.nuspec | 26 - .../packages.config | 4 - .../RadiationExposure.nfproj | 42 - ...Net.NanoFramework.RadiationExposure.nuspec | 26 - .../RadiationExposure/packages.config | 4 - .../Radioactivity/Radioactivity.nfproj | 42 - ...nitsNet.NanoFramework.Radioactivity.nuspec | 26 - .../Radioactivity/packages.config | 4 - .../GeneratedCode/Ratio/Ratio.nfproj | 42 - .../Ratio/UnitsNet.NanoFramework.Ratio.nuspec | 26 - .../GeneratedCode/Ratio/packages.config | 4 - .../RatioChangeRate/RatioChangeRate.nfproj | 42 - ...tsNet.NanoFramework.RatioChangeRate.nuspec | 26 - .../RatioChangeRate/packages.config | 4 - .../ReciprocalArea/ReciprocalArea.nfproj | 42 - ...itsNet.NanoFramework.ReciprocalArea.nuspec | 26 - .../ReciprocalArea/packages.config | 4 - .../ReciprocalLength/ReciprocalLength.nfproj | 42 - ...sNet.NanoFramework.ReciprocalLength.nuspec | 26 - .../ReciprocalLength/packages.config | 4 - .../RelativeHumidity/RelativeHumidity.nfproj | 42 - ...sNet.NanoFramework.RelativeHumidity.nuspec | 26 - .../RelativeHumidity/packages.config | 4 - .../RotationalAcceleration.nfproj | 42 - ...anoFramework.RotationalAcceleration.nuspec | 26 - .../RotationalAcceleration/packages.config | 4 - .../RotationalSpeed/RotationalSpeed.nfproj | 42 - ...tsNet.NanoFramework.RotationalSpeed.nuspec | 26 - .../RotationalSpeed/packages.config | 4 - .../RotationalStiffness.nfproj | 42 - ...t.NanoFramework.RotationalStiffness.nuspec | 26 - .../RotationalStiffness/packages.config | 4 - .../RotationalStiffnessPerLength.nfproj | 42 - ...mework.RotationalStiffnessPerLength.nuspec | 26 - .../packages.config | 4 - .../GeneratedCode/Scalar/Scalar.nfproj | 42 - .../UnitsNet.NanoFramework.Scalar.nuspec | 26 - .../GeneratedCode/Scalar/packages.config | 4 - .../SolidAngle/SolidAngle.nfproj | 42 - .../UnitsNet.NanoFramework.SolidAngle.nuspec | 26 - .../GeneratedCode/SolidAngle/packages.config | 4 - .../SpecificEnergy/SpecificEnergy.nfproj | 42 - ...itsNet.NanoFramework.SpecificEnergy.nuspec | 26 - .../SpecificEnergy/packages.config | 4 - .../SpecificEntropy/SpecificEntropy.nfproj | 42 - ...tsNet.NanoFramework.SpecificEntropy.nuspec | 26 - .../SpecificEntropy/packages.config | 4 - .../SpecificFuelConsumption.nfproj | 42 - ...noFramework.SpecificFuelConsumption.nuspec | 26 - .../SpecificFuelConsumption/packages.config | 4 - .../SpecificVolume/SpecificVolume.nfproj | 42 - ...itsNet.NanoFramework.SpecificVolume.nuspec | 26 - .../SpecificVolume/packages.config | 4 - .../SpecificWeight/SpecificWeight.nfproj | 42 - ...itsNet.NanoFramework.SpecificWeight.nuspec | 26 - .../SpecificWeight/packages.config | 4 - .../GeneratedCode/Speed/Speed.nfproj | 42 - .../Speed/UnitsNet.NanoFramework.Speed.nuspec | 26 - .../GeneratedCode/Speed/packages.config | 4 - .../StandardVolumeFlow.nfproj | 42 - ...et.NanoFramework.StandardVolumeFlow.nuspec | 26 - .../StandardVolumeFlow/packages.config | 4 - .../Temperature/Temperature.nfproj | 42 - .../UnitsNet.NanoFramework.Temperature.nuspec | 26 - .../GeneratedCode/Temperature/packages.config | 4 - .../TemperatureChangeRate.nfproj | 42 - ...NanoFramework.TemperatureChangeRate.nuspec | 26 - .../TemperatureChangeRate/packages.config | 4 - .../TemperatureDelta/TemperatureDelta.nfproj | 42 - ...sNet.NanoFramework.TemperatureDelta.nuspec | 26 - .../TemperatureDelta/packages.config | 4 - .../TemperatureGradient.nfproj | 42 - ...t.NanoFramework.TemperatureGradient.nuspec | 26 - .../TemperatureGradient/packages.config | 4 - .../ThermalConductivity.nfproj | 42 - ...t.NanoFramework.ThermalConductivity.nuspec | 26 - .../ThermalConductivity/packages.config | 4 - .../ThermalInsulance/ThermalInsulance.nfproj | 42 - ...sNet.NanoFramework.ThermalInsulance.nuspec | 26 - .../ThermalInsulance/packages.config | 4 - .../ThermalResistance.nfproj | 42 - ...Net.NanoFramework.ThermalResistance.nuspec | 26 - .../ThermalResistance/packages.config | 4 - .../GeneratedCode/Torque/Torque.nfproj | 42 - .../UnitsNet.NanoFramework.Torque.nuspec | 26 - .../GeneratedCode/Torque/packages.config | 4 - .../GeneratedCode/Turbidity/Turbidity.nfproj | 47 - .../UnitsNet.NanoFramework.Turbidity.nuspec | 27 - .../GeneratedCode/Turbidity/packages.config | 5 - .../AbsorbedDoseOfIonizingRadiationUnit.g.cs | 58 - .../GeneratedCode/Units/AccelerationUnit.g.cs | 55 - .../Units/AmountOfSubstanceUnit.g.cs | 48 - .../Units/AmplitudeRatioUnit.g.cs | 35 - .../GeneratedCode/Units/AngleUnit.g.cs | 46 - .../GeneratedCode/Units/AreaDensityUnit.g.cs | 39 - .../Units/AreaMomentOfInertiaUnit.g.cs | 37 - .../GeneratedCode/Units/AreaUnit.g.cs | 65 - .../GeneratedCode/Units/BitRateUnit.g.cs | 70 -- .../BrakeSpecificFuelConsumptionUnit.g.cs | 38 - .../CoefficientOfThermalExpansionUnit.g.cs | 37 - .../Units/CompressibilityUnit.g.cs | 38 - .../GeneratedCode/Units/DensityUnit.g.cs | 91 -- .../Units/DoseAreaProductUnit.g.cs | 56 - .../GeneratedCode/Units/DurationUnit.g.cs | 44 - .../Units/DynamicViscosityUnit.g.cs | 41 - .../Units/ElectricAdmittanceUnit.g.cs | 47 - .../Units/ElectricApparentEnergyUnit.g.cs | 34 - .../Units/ElectricApparentPowerUnit.g.cs | 37 - .../Units/ElectricCapacitanceUnit.g.cs | 38 - .../Units/ElectricChargeDensityUnit.g.cs | 32 - .../Units/ElectricChargeUnit.g.cs | 42 - .../Units/ElectricConductanceUnit.g.cs | 47 - .../Units/ElectricConductivityUnit.g.cs | 37 - .../Units/ElectricCurrentDensityUnit.g.cs | 34 - .../Units/ElectricCurrentGradientUnit.g.cs | 38 - .../Units/ElectricCurrentUnit.g.cs | 40 - .../Units/ElectricFieldUnit.g.cs | 32 - .../Units/ElectricImpedanceUnit.g.cs | 39 - .../Units/ElectricInductanceUnit.g.cs | 36 - .../ElectricPotentialChangeRateUnit.g.cs | 51 - .../Units/ElectricPotentialUnit.g.cs | 37 - .../Units/ElectricReactanceUnit.g.cs | 39 - .../Units/ElectricReactiveEnergyUnit.g.cs | 34 - .../Units/ElectricReactivePowerUnit.g.cs | 35 - .../Units/ElectricResistanceUnit.g.cs | 39 - .../Units/ElectricResistivityUnit.g.cs | 45 - .../ElectricSurfaceChargeDensityUnit.g.cs | 34 - .../Units/ElectricSusceptanceUnit.g.cs | 47 - .../Units/EnergyDensityUnit.g.cs | 43 - .../GeneratedCode/Units/EnergyUnit.g.cs | 106 -- .../GeneratedCode/Units/EntropyUnit.g.cs | 38 - .../Units/FluidResistanceUnit.g.cs | 52 - .../Units/ForceChangeRateUnit.g.cs | 46 - .../Units/ForcePerLengthUnit.g.cs | 69 -- .../GeneratedCode/Units/ForceUnit.g.cs | 97 -- .../GeneratedCode/Units/FrequencyUnit.g.cs | 48 - .../Units/FuelEfficiencyUnit.g.cs | 35 - .../GeneratedCode/Units/HeatFluxUnit.g.cs | 53 - .../Units/HeatTransferCoefficientUnit.g.cs | 36 - .../GeneratedCode/Units/IlluminanceUnit.g.cs | 35 - .../GeneratedCode/Units/ImpulseUnit.g.cs | 44 - .../GeneratedCode/Units/InformationUnit.g.cs | 70 -- .../GeneratedCode/Units/IrradianceUnit.g.cs | 45 - .../GeneratedCode/Units/IrradiationUnit.g.cs | 40 - .../GeneratedCode/Units/JerkUnit.g.cs | 42 - .../Units/KinematicViscosityUnit.g.cs | 40 - .../GeneratedCode/Units/LeakRateUnit.g.cs | 35 - .../GeneratedCode/Units/LengthUnit.g.cs | 163 --- .../GeneratedCode/Units/LevelUnit.g.cs | 33 - .../Units/LinearDensityUnit.g.cs | 49 - .../Units/LinearPowerDensityUnit.g.cs | 56 - .../GeneratedCode/Units/LuminanceUnit.g.cs | 42 - .../GeneratedCode/Units/LuminosityUnit.g.cs | 50 - .../GeneratedCode/Units/LuminousFluxUnit.g.cs | 32 - .../Units/LuminousIntensityUnit.g.cs | 32 - .../Units/MagneticFieldUnit.g.cs | 37 - .../GeneratedCode/Units/MagneticFluxUnit.g.cs | 32 - .../Units/MagnetizationUnit.g.cs | 32 - .../Units/MassConcentrationUnit.g.cs | 80 -- .../GeneratedCode/Units/MassFlowUnit.g.cs | 64 - .../GeneratedCode/Units/MassFluxUnit.g.cs | 43 - .../GeneratedCode/Units/MassFractionUnit.g.cs | 55 - .../Units/MassMomentOfInertiaUnit.g.cs | 59 - .../GeneratedCode/Units/MassUnit.g.cs | 127 -- .../GeneratedCode/Units/MolalityUnit.g.cs | 34 - .../GeneratedCode/Units/MolarEnergyUnit.g.cs | 34 - .../GeneratedCode/Units/MolarEntropyUnit.g.cs | 34 - .../GeneratedCode/Units/MolarFlowUnit.g.cs | 40 - .../GeneratedCode/Units/MolarMassUnit.g.cs | 44 - .../GeneratedCode/Units/MolarityUnit.g.cs | 42 - .../GeneratedCode/Units/PermeabilityUnit.g.cs | 32 - .../GeneratedCode/Units/PermittivityUnit.g.cs | 32 - .../Units/PorousMediumPermeabilityUnit.g.cs | 41 - .../GeneratedCode/Units/PowerDensityUnit.g.cs | 75 -- .../GeneratedCode/Units/PowerRatioUnit.g.cs | 33 - .../GeneratedCode/Units/PowerUnit.g.cs | 84 -- .../Units/PressureChangeRateUnit.g.cs | 49 - .../GeneratedCode/Units/PressureUnit.g.cs | 126 -- .../RadiationEquivalentDoseRateUnit.g.cs | 41 - .../Units/RadiationEquivalentDoseUnit.g.cs | 42 - .../Units/RadiationExposureUnit.g.cs | 39 - .../Units/RadioactivityUnit.g.cs | 68 -- .../Units/RatioChangeRateUnit.g.cs | 33 - .../GeneratedCode/Units/RatioUnit.g.cs | 37 - .../Units/ReciprocalAreaUnit.g.cs | 42 - .../Units/ReciprocalLengthUnit.g.cs | 41 - .../Units/RelativeHumidityUnit.g.cs | 32 - .../Units/RotationalAccelerationUnit.g.cs | 35 - .../Units/RotationalSpeedUnit.g.cs | 44 - .../RotationalStiffnessPerLengthUnit.g.cs | 36 - .../Units/RotationalStiffnessUnit.g.cs | 65 - .../GeneratedCode/Units/ScalarUnit.g.cs | 32 - .../GeneratedCode/Units/SolidAngleUnit.g.cs | 32 - .../Units/SpecificEnergyUnit.g.cs | 61 - .../Units/SpecificEntropyUnit.g.cs | 40 - .../Units/SpecificFuelConsumptionUnit.g.cs | 35 - .../Units/SpecificVolumeUnit.g.cs | 34 - .../Units/SpecificWeightUnit.g.cs | 48 - .../GeneratedCode/Units/SpeedUnit.g.cs | 69 -- .../Units/StandardVolumeFlowUnit.g.cs | 40 - .../Units/TemperatureChangeRateUnit.g.cs | 48 - .../Units/TemperatureDeltaUnit.g.cs | 40 - .../Units/TemperatureGradientUnit.g.cs | 35 - .../GeneratedCode/Units/TemperatureUnit.g.cs | 41 - .../Units/ThermalConductivityUnit.g.cs | 33 - .../Units/ThermalInsulanceUnit.g.cs | 38 - .../Units/ThermalResistanceUnit.g.cs | 33 - .../GeneratedCode/Units/TorqueUnit.g.cs | 56 - .../GeneratedCode/Units/TurbidityUnit.g.cs | 32 - .../GeneratedCode/Units/VitaminAUnit.g.cs | 32 - .../Units/VolumeConcentrationUnit.g.cs | 51 - .../Units/VolumeFlowPerAreaUnit.g.cs | 33 - .../GeneratedCode/Units/VolumeFlowUnit.g.cs | 106 -- .../Units/VolumePerLengthUnit.g.cs | 40 - .../GeneratedCode/Units/VolumeUnit.g.cs | 216 ---- .../Units/VolumetricHeatCapacityUnit.g.cs | 41 - .../Units/WarpingMomentOfInertiaUnit.g.cs | 37 - .../GeneratedCode/UnitsNet.nanoFramework.sln | 1044 ---------------- .../UnitsNet.NanoFramework.VitaminA.nuspec | 26 - .../GeneratedCode/VitaminA/VitaminA.nfproj | 42 - .../GeneratedCode/VitaminA/packages.config | 4 - .../UnitsNet.NanoFramework.Volume.nuspec | 26 - .../GeneratedCode/Volume/Volume.nfproj | 42 - .../GeneratedCode/Volume/packages.config | 4 - ...t.NanoFramework.VolumeConcentration.nuspec | 26 - .../VolumeConcentration.nfproj | 42 - .../VolumeConcentration/packages.config | 4 - .../UnitsNet.NanoFramework.VolumeFlow.nuspec | 26 - .../VolumeFlow/VolumeFlow.nfproj | 42 - .../GeneratedCode/VolumeFlow/packages.config | 4 - ...Net.NanoFramework.VolumeFlowPerArea.nuspec | 26 - .../VolumeFlowPerArea.nfproj | 42 - .../VolumeFlowPerArea/packages.config | 4 - ...tsNet.NanoFramework.VolumePerLength.nuspec | 26 - .../VolumePerLength/VolumePerLength.nfproj | 42 - .../VolumePerLength/packages.config | 4 - ...anoFramework.VolumetricHeatCapacity.nuspec | 26 - .../VolumetricHeatCapacity.nfproj | 42 - .../VolumetricHeatCapacity/packages.config | 4 - ...anoFramework.WarpingMomentOfInertia.nuspec | 27 - .../WarpingMomentOfInertia.nfproj | 47 - .../WarpingMomentOfInertia/packages.config | 5 - UnitsNet.sln.DotSettings | 2 - UnitsNet.slnx | 2 - azure-pipelines-pr.yml | 6 +- azure-pipelines.yml | 4 - build-all-targets.bat | 2 - cSpell.json | 1 - upgrade-nanoframework.sh | 5 - 674 files changed, 8 insertions(+), 57072 deletions(-) delete mode 100644 Build/build-pack-nano-nugets.psm1 delete mode 100644 CodeGen/Generators/NanoFrameworkGen/NuspecGenerator.cs delete mode 100644 CodeGen/Generators/NanoFrameworkGen/ProjectGenerator.cs delete mode 100644 CodeGen/Generators/NanoFrameworkGen/PropertyGenerator.cs delete mode 100644 CodeGen/Generators/NanoFrameworkGen/QuantityGenerator.cs delete mode 100644 CodeGen/Generators/NanoFrameworkGen/SolutionGenerator.cs delete mode 100644 CodeGen/Generators/NanoFrameworkGen/UnitTypeGenerator.cs delete mode 100644 CodeGen/Generators/NanoFrameworkGenerator.cs delete mode 100644 CodeGen/Generators/NanoFrameworkVersions.cs delete mode 100644 Docs/nanoframework.md delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/AbsorbedDoseOfIonizingRadiation.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/UnitsNet.NanoFramework.AbsorbedDoseOfIonizingRadiation.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Acceleration/Acceleration.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Acceleration/UnitsNet.NanoFramework.Acceleration.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Acceleration/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/AmountOfSubstance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/UnitsNet.NanoFramework.AmountOfSubstance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/AmplitudeRatio.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/UnitsNet.NanoFramework.AmplitudeRatio.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Angle/Angle.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Angle/UnitsNet.NanoFramework.Angle.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Angle/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Area/Area.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Area/UnitsNet.NanoFramework.Area.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Area/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AreaDensity/AreaDensity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AreaDensity/UnitsNet.NanoFramework.AreaDensity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AreaDensity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/AreaMomentOfInertia.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/UnitsNet.NanoFramework.AreaMomentOfInertia.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/BitRate/BitRate.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/BitRate/UnitsNet.NanoFramework.BitRate.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/BitRate/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/BrakeSpecificFuelConsumption.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/UnitsNet.NanoFramework.BrakeSpecificFuelConsumption.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/CoefficientOfThermalExpansion.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/UnitsNet.NanoFramework.CoefficientOfThermalExpansion.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Compressibility/Compressibility.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Compressibility/UnitsNet.NanoFramework.Compressibility.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Compressibility/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Density/Density.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Density/UnitsNet.NanoFramework.Density.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Density/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/DoseAreaProduct.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/UnitsNet.NanoFramework.DoseAreaProduct.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Duration/Duration.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Duration/UnitsNet.NanoFramework.Duration.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Duration/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/DynamicViscosity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/UnitsNet.NanoFramework.DynamicViscosity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/ElectricAdmittance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/UnitsNet.NanoFramework.ElectricAdmittance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/ElectricApparentEnergy.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/UnitsNet.NanoFramework.ElectricApparentEnergy.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/ElectricApparentPower.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/UnitsNet.NanoFramework.ElectricApparentPower.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/ElectricCapacitance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/UnitsNet.NanoFramework.ElectricCapacitance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/ElectricCharge.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/UnitsNet.NanoFramework.ElectricCharge.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/ElectricChargeDensity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/UnitsNet.NanoFramework.ElectricChargeDensity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/ElectricConductance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/UnitsNet.NanoFramework.ElectricConductance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/ElectricConductivity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/UnitsNet.NanoFramework.ElectricConductivity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/ElectricCurrent.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/UnitsNet.NanoFramework.ElectricCurrent.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/ElectricCurrentDensity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/UnitsNet.NanoFramework.ElectricCurrentDensity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/ElectricCurrentGradient.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/UnitsNet.NanoFramework.ElectricCurrentGradient.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricField/ElectricField.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricField/UnitsNet.NanoFramework.ElectricField.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricField/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/ElectricImpedance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/UnitsNet.NanoFramework.ElectricImpedance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/ElectricInductance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/UnitsNet.NanoFramework.ElectricInductance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/ElectricPotential.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/UnitsNet.NanoFramework.ElectricPotential.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/ElectricPotentialChangeRate.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/UnitsNet.NanoFramework.ElectricPotentialChangeRate.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/ElectricReactance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/UnitsNet.NanoFramework.ElectricReactance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/ElectricReactiveEnergy.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/UnitsNet.NanoFramework.ElectricReactiveEnergy.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/ElectricReactivePower.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/UnitsNet.NanoFramework.ElectricReactivePower.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/ElectricResistance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/UnitsNet.NanoFramework.ElectricResistance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/ElectricResistivity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/UnitsNet.NanoFramework.ElectricResistivity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/ElectricSurfaceChargeDensity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/UnitsNet.NanoFramework.ElectricSurfaceChargeDensity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/ElectricSusceptance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/UnitsNet.NanoFramework.ElectricSusceptance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Energy/Energy.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Energy/UnitsNet.NanoFramework.Energy.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Energy/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/EnergyDensity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/UnitsNet.NanoFramework.EnergyDensity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Entropy/Entropy.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Entropy/UnitsNet.NanoFramework.Entropy.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Entropy/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/FluidResistance/FluidResistance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/FluidResistance/UnitsNet.NanoFramework.FluidResistance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/FluidResistance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Force/Force.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Force/UnitsNet.NanoFramework.Force.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Force/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/ForceChangeRate.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/UnitsNet.NanoFramework.ForceChangeRate.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/ForcePerLength.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/UnitsNet.NanoFramework.ForcePerLength.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Frequency/Frequency.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Frequency/UnitsNet.NanoFramework.Frequency.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Frequency/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/FuelEfficiency.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/UnitsNet.NanoFramework.FuelEfficiency.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/HeatFlux/HeatFlux.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/HeatFlux/UnitsNet.NanoFramework.HeatFlux.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/HeatFlux/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/HeatTransferCoefficient.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/UnitsNet.NanoFramework.HeatTransferCoefficient.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Illuminance/Illuminance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Illuminance/UnitsNet.NanoFramework.Illuminance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Illuminance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Impulse/Impulse.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Impulse/UnitsNet.NanoFramework.Impulse.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Impulse/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Information/Information.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Information/UnitsNet.NanoFramework.Information.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Information/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Irradiance/Irradiance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Irradiance/UnitsNet.NanoFramework.Irradiance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Irradiance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Irradiation/Irradiation.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Irradiation/UnitsNet.NanoFramework.Irradiation.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Irradiation/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Jerk/Jerk.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Jerk/UnitsNet.NanoFramework.Jerk.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Jerk/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/KinematicViscosity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/UnitsNet.NanoFramework.KinematicViscosity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LeakRate/LeakRate.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LeakRate/UnitsNet.NanoFramework.LeakRate.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LeakRate/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Length/Length.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Length/UnitsNet.NanoFramework.Length.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Length/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Level/Level.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Level/UnitsNet.NanoFramework.Level.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Level/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LinearDensity/LinearDensity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LinearDensity/UnitsNet.NanoFramework.LinearDensity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LinearDensity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/LinearPowerDensity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/UnitsNet.NanoFramework.LinearPowerDensity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Luminance/Luminance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Luminance/UnitsNet.NanoFramework.Luminance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Luminance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Luminosity/Luminosity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Luminosity/UnitsNet.NanoFramework.Luminosity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Luminosity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/LuminousFlux.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/UnitsNet.NanoFramework.LuminousFlux.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/LuminousIntensity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/UnitsNet.NanoFramework.LuminousIntensity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MagneticField/MagneticField.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MagneticField/UnitsNet.NanoFramework.MagneticField.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MagneticField/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/MagneticFlux.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/UnitsNet.NanoFramework.MagneticFlux.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Magnetization/Magnetization.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Magnetization/UnitsNet.NanoFramework.Magnetization.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Magnetization/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Mass/Mass.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Mass/UnitsNet.NanoFramework.Mass.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Mass/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassConcentration/MassConcentration.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassConcentration/UnitsNet.NanoFramework.MassConcentration.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassConcentration/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassFlow/MassFlow.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassFlow/UnitsNet.NanoFramework.MassFlow.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassFlow/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassFlux/MassFlux.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassFlux/UnitsNet.NanoFramework.MassFlux.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassFlux/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassFraction/MassFraction.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassFraction/UnitsNet.NanoFramework.MassFraction.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassFraction/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/MassMomentOfInertia.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/UnitsNet.NanoFramework.MassMomentOfInertia.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Molality/Molality.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Molality/UnitsNet.NanoFramework.Molality.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Molality/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/MolarEnergy.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/UnitsNet.NanoFramework.MolarEnergy.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/MolarEntropy.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/UnitsNet.NanoFramework.MolarEntropy.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarFlow/MolarFlow.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarFlow/UnitsNet.NanoFramework.MolarFlow.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarFlow/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarMass/MolarMass.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarMass/UnitsNet.NanoFramework.MolarMass.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/MolarMass/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Molarity/Molarity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Molarity/UnitsNet.NanoFramework.Molarity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Molarity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Permeability/Permeability.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Permeability/UnitsNet.NanoFramework.Permeability.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Permeability/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Permittivity/Permittivity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Permittivity/UnitsNet.NanoFramework.Permittivity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Permittivity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/PorousMediumPermeability.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/UnitsNet.NanoFramework.PorousMediumPermeability.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Power/Power.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Power/UnitsNet.NanoFramework.Power.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Power/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PowerDensity/PowerDensity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PowerDensity/UnitsNet.NanoFramework.PowerDensity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PowerDensity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PowerRatio/PowerRatio.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PowerRatio/UnitsNet.NanoFramework.PowerRatio.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PowerRatio/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Pressure/Pressure.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Pressure/UnitsNet.NanoFramework.Pressure.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Pressure/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/PressureChangeRate.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/UnitsNet.NanoFramework.PressureChangeRate.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Properties/AssemblyInfo.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/AmountOfSubstance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/AmplitudeRatio.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Angle.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Area.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/AreaDensity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/BitRate.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Compressibility.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Density.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/DoseAreaProduct.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Duration.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/DynamicViscosity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricAdmittance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricApparentPower.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCapacitance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCharge.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricChargeDensity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductivity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrent.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricField.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricImpedance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricInductance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotential.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactivePower.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricResistance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricResistivity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSusceptance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Energy.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/EnergyDensity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Entropy.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/FluidResistance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Force.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ForceChangeRate.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ForcePerLength.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Frequency.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/FuelEfficiency.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatFlux.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Illuminance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Impulse.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Information.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiation.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Jerk.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/KinematicViscosity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/LeakRate.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Length.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Level.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearDensity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearPowerDensity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminosity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/LuminousFlux.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/LuminousIntensity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MagneticField.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MagneticFlux.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Magnetization.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Mass.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MassConcentration.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlow.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlux.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFraction.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Molality.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarEnergy.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarEntropy.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarFlow.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarMass.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Molarity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Permeability.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Permittivity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/PorousMediumPermeability.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Power.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerRatio.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Pressure.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/PressureChangeRate.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationExposure.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Radioactivity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Ratio.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/RatioChangeRate.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalArea.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalLength.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/RelativeHumidity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalAcceleration.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalSpeed.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffness.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Scalar.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/SolidAngle.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEnergy.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEntropy.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificVolume.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificWeight.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Speed.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/StandardVolumeFlow.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Temperature.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureChangeRate.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureDelta.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureGradient.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalInsulance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalResistance.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Torque.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Turbidity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/VitaminA.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/Volume.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeConcentration.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumePerLength.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/RadiationEquivalentDose.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/UnitsNet.NanoFramework.RadiationEquivalentDose.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/RadiationEquivalentDoseRate.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/UnitsNet.NanoFramework.RadiationEquivalentDoseRate.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/RadiationExposure.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/UnitsNet.NanoFramework.RadiationExposure.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Radioactivity/Radioactivity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Radioactivity/UnitsNet.NanoFramework.Radioactivity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Radioactivity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Ratio/Ratio.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Ratio/UnitsNet.NanoFramework.Ratio.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Ratio/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/RatioChangeRate.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/UnitsNet.NanoFramework.RatioChangeRate.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/ReciprocalArea.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/UnitsNet.NanoFramework.ReciprocalArea.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/ReciprocalLength.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/UnitsNet.NanoFramework.ReciprocalLength.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/RelativeHumidity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/UnitsNet.NanoFramework.RelativeHumidity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/RotationalAcceleration.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/UnitsNet.NanoFramework.RotationalAcceleration.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/RotationalSpeed.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/UnitsNet.NanoFramework.RotationalSpeed.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/RotationalStiffness.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/UnitsNet.NanoFramework.RotationalStiffness.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/RotationalStiffnessPerLength.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/UnitsNet.NanoFramework.RotationalStiffnessPerLength.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Scalar/Scalar.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Scalar/UnitsNet.NanoFramework.Scalar.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Scalar/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SolidAngle/SolidAngle.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SolidAngle/UnitsNet.NanoFramework.SolidAngle.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SolidAngle/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/SpecificEnergy.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/UnitsNet.NanoFramework.SpecificEnergy.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/SpecificEntropy.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/UnitsNet.NanoFramework.SpecificEntropy.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/SpecificFuelConsumption.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/UnitsNet.NanoFramework.SpecificFuelConsumption.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/SpecificVolume.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/UnitsNet.NanoFramework.SpecificVolume.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/SpecificWeight.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/UnitsNet.NanoFramework.SpecificWeight.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Speed/Speed.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Speed/UnitsNet.NanoFramework.Speed.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Speed/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/StandardVolumeFlow.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/UnitsNet.NanoFramework.StandardVolumeFlow.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Temperature/Temperature.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Temperature/UnitsNet.NanoFramework.Temperature.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Temperature/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/TemperatureChangeRate.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/UnitsNet.NanoFramework.TemperatureChangeRate.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/TemperatureDelta.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/UnitsNet.NanoFramework.TemperatureDelta.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/TemperatureGradient.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/UnitsNet.NanoFramework.TemperatureGradient.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/ThermalConductivity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/UnitsNet.NanoFramework.ThermalConductivity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/ThermalInsulance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/UnitsNet.NanoFramework.ThermalInsulance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/ThermalResistance.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/UnitsNet.NanoFramework.ThermalResistance.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Torque/Torque.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Torque/UnitsNet.NanoFramework.Torque.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Torque/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Turbidity/Turbidity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Turbidity/UnitsNet.NanoFramework.Turbidity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Turbidity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/AbsorbedDoseOfIonizingRadiationUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/AccelerationUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/AmountOfSubstanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/AmplitudeRatioUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/AngleUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/AreaDensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/AreaMomentOfInertiaUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/AreaUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/BitRateUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/BrakeSpecificFuelConsumptionUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/CoefficientOfThermalExpansionUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/CompressibilityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/DensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/DoseAreaProductUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/DurationUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/DynamicViscosityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricAdmittanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricApparentEnergyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricApparentPowerUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCapacitanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricChargeDensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricChargeUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricConductanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricConductivityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentDensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentGradientUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricFieldUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricImpedanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricInductanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialChangeRateUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactiveEnergyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactivePowerUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricResistanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricResistivityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricSurfaceChargeDensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ElectricSusceptanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/EnergyDensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/EnergyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/EntropyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/FluidResistanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ForceChangeRateUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ForcePerLengthUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ForceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/FrequencyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/FuelEfficiencyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/HeatFluxUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/HeatTransferCoefficientUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/IlluminanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ImpulseUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/InformationUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/IrradianceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/IrradiationUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/JerkUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/KinematicViscosityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/LeakRateUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/LengthUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/LevelUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/LinearDensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/LinearPowerDensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/LuminanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/LuminosityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/LuminousFluxUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/LuminousIntensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MagneticFieldUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MagneticFluxUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MagnetizationUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MassConcentrationUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MassFlowUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MassFluxUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MassFractionUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MassUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MolalityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MolarEnergyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MolarEntropyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MolarFlowUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MolarMassUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/MolarityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/PermeabilityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/PermittivityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/PowerDensityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/PowerRatioUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/PowerUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/PressureChangeRateUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/PressureUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseRateUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RadiationExposureUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RadioactivityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RatioChangeRateUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RatioUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ReciprocalAreaUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ReciprocalLengthUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RelativeHumidityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RotationalAccelerationUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RotationalSpeedUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RotationalStiffnessPerLengthUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/RotationalStiffnessUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ScalarUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/SolidAngleUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/SpecificEnergyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/SpecificEntropyUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/SpecificFuelConsumptionUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/SpecificVolumeUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/SpecificWeightUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/SpeedUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/StandardVolumeFlowUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureChangeRateUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureDeltaUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureGradientUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ThermalConductivityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ThermalInsulanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/ThermalResistanceUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/TorqueUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/TurbidityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/VitaminAUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/VolumeConcentrationUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowPerAreaUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/VolumePerLengthUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/VolumeUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/VolumetricHeatCapacityUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Units/WarpingMomentOfInertiaUnit.g.cs delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/UnitsNet.nanoFramework.sln delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VitaminA/UnitsNet.NanoFramework.VitaminA.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VitaminA/VitaminA.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VitaminA/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Volume/UnitsNet.NanoFramework.Volume.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Volume/Volume.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/Volume/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/UnitsNet.NanoFramework.VolumeConcentration.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/VolumeConcentration.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/UnitsNet.NanoFramework.VolumeFlow.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/VolumeFlow.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/UnitsNet.NanoFramework.VolumeFlowPerArea.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/VolumeFlowPerArea.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/UnitsNet.NanoFramework.VolumePerLength.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/VolumePerLength.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/UnitsNet.NanoFramework.VolumetricHeatCapacity.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/VolumetricHeatCapacity.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/packages.config delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/UnitsNet.NanoFramework.WarpingMomentOfInertia.nuspec delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/WarpingMomentOfInertia.nfproj delete mode 100644 UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/packages.config delete mode 100644 build-all-targets.bat delete mode 100644 upgrade-nanoframework.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5feb563ec4..cdf176af3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,15 +34,10 @@ jobs: 6.0.x 8.0.x - - name: Setup .NET nanoFramework build components - uses: nanoframework/nanobuild@v1 - with: - workload: 'nanoFramework' - - name: Build, Test and Pack shell: pwsh run: | - ./Build/build.ps1 -IncludeNanoFramework + ./Build/build.ps1 working-directory: ${{ github.workspace }} - name: Upload to codecov.io diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b619c7ae0f..fc2347bd29 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -34,15 +34,10 @@ jobs: 6.0.x 8.0.x - - name: Setup .NET nanoFramework build components - uses: nanoframework/nanobuild@v1 - with: - workload: 'nanoFramework' - - name: Build, Test and Pack shell: pwsh run: | - ./Build/build.ps1 -IncludeNanoFramework + ./Build/build.ps1 working-directory: ${{ github.workspace }} - name: Upload Test Results diff --git a/AGENTS.md b/AGENTS.md index 7e4b981459..28ff7390e7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,7 +10,6 @@ UnitsNet is a .NET library that provides strongly-typed physical units and quant ### Build and Test - **Build project**: `build.bat` or `dotnet build UnitsNet.slnx` -- **Build all targets** (including nanoFramework): `build-all-targets.bat` - **Run tests**: `test.bat` or `dotnet test UnitsNet.slnx` - **Run single test**: `dotnet test UnitsNet.Tests --filter "FullyQualifiedName~TestClassName.TestMethodName"` - **Clean artifacts**: `clean.bat` @@ -37,7 +36,6 @@ UnitsNet is a .NET library that provides strongly-typed physical units and quant - **Common/UnitDefinitions/**: 131 JSON files defining physical quantities - **UnitsNet.NumberExtensions/**: Extension methods for numeric types - **UnitsNet.Serialization.*/**: JSON.NET and System.Text.Json serialization support -- **UnitsNet.NanoFramework/**: Support for embedded .NET nanoFramework ### Code Generation Process The project uses a sophisticated code generation system: @@ -87,11 +85,6 @@ The project uses a sophisticated code generation system: ## Special Considerations -### .NET nanoFramework Support -- Separate projects for nanoFramework compatibility -- Use `build-all-targets.bat` to include nanoFramework builds -- Limited feature set compared to full .NET - ### Performance - Conversion functions are compiled to delegates for performance - All conversions go through base units (potential for small errors) diff --git a/Build/build-functions.psm1 b/Build/build-functions.psm1 index 66bd3e1c4d..6a16c34aaf 100644 --- a/Build/build-functions.psm1 +++ b/Build/build-functions.psm1 @@ -6,23 +6,6 @@ $testReportDir = "$artifactsDir\TestResults" $testCoverageDir = "$artifactsDir\Coverage" $toolsDir = "$root\.tools" -$nuget = "$toolsDir\NuGet.exe" -$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" - -# Check if Visual Studio is installed before trying to find MSBuild -if (Test-Path $vswhere) { - $msbuildPath = & $vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath 2>$null - - if ($msbuildPath) { - $msbuildx64 = join-path $msbuildPath 'MSBuild\Current\Bin\amd64\MSBuild.exe' - } -} else { - $msbuildPath = $null - $msbuildx64 = $null -} - -import-module $PSScriptRoot\build-pack-nano-nugets.psm1 - function Remove-ArtifactsDir { if (Test-Path $artifactsDir) { write-host -foreground blue "Clean up...`n" @@ -48,44 +31,6 @@ function Start-Build { write-host -foreground blue "Start-Build...END`n" } -function Start-BuildNanoFramework { - write-host -foreground blue "Start-BuildNanoFramework (MSBuild)...`n---" - - # Check prerequisites - if (-not $msbuildx64 -or -not (Test-Path $msbuildx64)) { - write-host -foreground red "ERROR: Cannot build .NET nanoFramework - MSBuild not found." - write-host -foreground yellow "Install Visual Studio with .NET desktop development workload to build NanoFramework projects." - exit 1 - } - - if (-not (Test-Path $nuget)) { - write-host -foreground red "ERROR: NuGet.exe not found at $nuget" - write-host -foreground yellow "Run init.ps1 to download required tools." - exit 1 - } - - write-host -foreground green "Building .NET nanoFramework projects..." - $fileLoggerArg = "/logger:FileLogger,Microsoft.Build;logfile=$logsDir\UnitsNet.NanoFramework.msbuild.log" - - # msbuild does not auto-restore nugets for this project type - write-host "Restoring NuGet packages for NanoFramework..." - & "$nuget" restore "$root\UnitsNet.NanoFramework\GeneratedCode\UnitsNet.nanoFramework.sln" - if ($lastexitcode -ne 0) { - write-host -foreground red "Failed to restore NuGet packages for NanoFramework" - exit 1 - } - - # Build with MSBuild - write-host "Building NanoFramework solution..." - & "$msbuildx64" "$root\UnitsNet.NanoFramework\GeneratedCode\UnitsNet.nanoFramework.sln" /verbosity:minimal /p:Configuration=Release /p:Platform="Any CPU" /p:ContinuousIntegrationBuild=true $fileLoggerArg - if ($lastexitcode -ne 0) { - write-host -foreground red "Failed to build NanoFramework solution" - exit 1 - } - - write-host -foreground blue "Start-BuildNanoFramework...END`n" -} - function Start-Tests { $projectPaths = @( "UnitsNet.Tests\UnitsNet.Tests.csproj", @@ -148,22 +93,6 @@ function Start-PackNugets { write-host -foreground blue "Pack nugets...END`n" } -function Start-PackNugetsNanoFramework { - write-host -foreground blue "Pack NanoFramework nugets (NuGet.exe)...`n---" - - # Check prerequisites - if (-not (Test-Path $nuget)) { - write-host -foreground red "ERROR: NuGet.exe not found at $nuget" - write-host -foreground yellow "Run init.ps1 to download required tools." - exit 1 - } - - write-host -foreground yellow "nanoFramework project not yet supported by dotnet CLI, using nuget.exe instead" - Invoke-BuildNanoNugets - - write-host -foreground blue "Pack NanoFramework nugets...END`n" -} - function Compress-ArtifactsAsZip { write-host -foreground blue "Zip artifacts...`n---" @@ -184,4 +113,4 @@ function Compress-ArtifactsAsZip { write-host -foreground blue "Zip artifacts...END`n" } -export-modulemember -function Remove-ArtifactsDir, Update-GeneratedCode, Start-Build, Start-BuildNanoFramework, Start-Tests, Start-PackNugets, Start-PackNugetsNanoFramework, Compress-ArtifactsAsZip +export-modulemember -function Remove-ArtifactsDir, Update-GeneratedCode, Start-Build, Start-Tests, Start-PackNugets, Compress-ArtifactsAsZip diff --git a/Build/build-pack-nano-nugets.psm1 b/Build/build-pack-nano-nugets.psm1 deleted file mode 100644 index b2ed5c3e79..0000000000 --- a/Build/build-pack-nano-nugets.psm1 +++ /dev/null @@ -1,14 +0,0 @@ -$root = (Resolve-Path "$PSScriptRoot\..").Path -$nugetOutDir = "$root\Artifacts\NuGet" -$toolsDir = "$root\.tools" -$nuget = "$toolsDir\NuGet.exe" -$nugetsToProcess = (Get-ChildItem -Path "$root\UnitsNet.NanoFramework\GeneratedCode\" -Filter *.nuspec -r | % { echo $_.FullName }); - -function Invoke-BuildNanoNugets { -Foreach ($nuspecFile in $nugetsToProcess) - { - & $nuget pack "$nuspecFile" -Verbosity detailed -OutputDirectory "$nugetOutDir" - } -} - -export-modulemember -function Invoke-BuildNanoNugets diff --git a/Build/build.ps1 b/Build/build.ps1 index 44185aac0c..c26791e634 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -9,16 +9,13 @@ on the master branch. .EXAMPLE powershell ./build.ps1 - powershell ./build.ps1 -IncludeNanoFramework .NOTES Author: Andreas Gullberg Larsen Last modified: Jan 21, 2018 #> [CmdletBinding()] -Param( - [switch] $IncludeNanoFramework - ) +Param() remove-module build-functions -ErrorAction SilentlyContinue import-module $PSScriptRoot\build-functions.psm1 @@ -34,16 +31,6 @@ try { Start-Tests Start-PackNugets - # Build NanoFramework if requested (Windows-only, requires Visual Studio) - if ($IncludeNanoFramework) { - write-host -foreground cyan "`n===== Building NanoFramework projects (requires Visual Studio) =====`n" - Start-BuildNanoFramework - Start-PackNugetsNanoFramework - } - else { - write-host -foreground yellow "`nSkipping NanoFramework build. Use -IncludeNanoFramework flag to build NanoFramework projects.`n" - } - Compress-ArtifactsAsZip } catch { diff --git a/Build/init.ps1 b/Build/init.ps1 index e96fffffc9..77ffb2084a 100644 --- a/Build/init.ps1 +++ b/Build/init.ps1 @@ -2,14 +2,9 @@ Set-Strictmode -version latest $root = (Resolve-Path "$PSScriptRoot\..").Path -$nugetPath = "$root/.tools/NuGet.exe" Write-Host -Foreground Blue "Initializing..." -# Ensure temp dir exists -$tempDir = "$root/.tools/temp_init" -[system.io.Directory]::CreateDirectory($tempDir) | out-null - # Report generator for unit test coverage reports. if (-not (Test-Path "$root/.tools/reportgenerator.exe")) { Write-Host -Foreground Blue "Install dotnet-reportgenerator-globaltool..." @@ -17,107 +12,9 @@ if (-not (Test-Path "$root/.tools/reportgenerator.exe")) { Write-Host -Foreground Green "✅ Installed dotnet-reportgenerator-globaltool" } -# NuGet.exe for non-SDK style projects, like UnitsNet.nanoFramework. -if (-not (Test-Path "$nugetPath")) { - Write-Host -Foreground Blue "Downloading NuGet.exe..." - Invoke-WebRequest -Uri https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile $nugetPath - Write-Host -Foreground Green "✅ Downloaded NuGet.exe: $nugetPath" -} - -################################################### -## TODO: OK to remove after moving to AZDO pipeline -$VsWherePath = "${env:PROGRAMFILES(X86)}\Microsoft Visual Studio\Installer\vswhere.exe" - -# Check if Visual Studio is installed -if (Test-Path $VsWherePath) { - $VsPath = $(&$VsWherePath -latest -property installationPath 2>$null) - if ($VsPath) { - $msbuildPath = Join-Path -Path $VsPath -ChildPath "\MSBuild" - Write-Host -Foreground Green "Visual Studio found at: $VsPath" - } else { - Write-Host -Foreground Yellow "Visual Studio not found via vswhere, NanoFramework builds will be skipped" - $VsPath = $null - $msbuildPath = $null - } -} else { - Write-Host -Foreground Yellow "Visual Studio not installed - NanoFramework builds will be skipped" - $VsPath = $null - $msbuildPath = $null -} - # Install dotnet CLI tools declared in /.config/dotnet-tools.json pushd $root dotnet tool restore popd -# Install .NET nanoFramework build components -if ($msbuildPath -and !(Test-Path "$msbuildPath/nanoFramework")) { - Write-Host "Installing .NET nanoFramework VS extension..." - - [System.Net.WebClient]$webClient = New-Object System.Net.WebClient - $webClient.Headers.Add("User-Agent", "request") - $webClient.Headers.Add("Accept", "application/vnd.github.v3+json") - - $releaseList = $webClient.DownloadString('https://api.github.com/repos/nanoframework/nf-Visual-Studio-extension/releases?per_page=100') - - if($releaseList -match '\"(?v2022\.\d+\.\d+\.\d+)\"') - { - $vs2022Tag = $Matches.VS2022_version - } - - if($releaseList -match '\"(?v2019\.\d+\.\d+\.\d+)\"') - { - $vs2019Tag = $Matches.VS2019_version - } - - # Find which VS version is installed - $VsWherePath = "${env:PROGRAMFILES(X86)}\Microsoft Visual Studio\Installer\vswhere.exe" - - Write-Output "VsWherePath is: $VsWherePath" - - $VsInstance = $(&$VSWherePath -latest -property displayName 2>$null) - - Write-Output "Latest VS is: $VsInstance" - - # Get extension details according to VS version, starting from VS2022 down to VS2019 - # TODO check if the extension for VS2022 is compatible it VS2026 - if($vsInstance.Contains('2026') -or $vsInstance.Contains('2022')) - { - $extensionUrl = "https://github.com/nanoframework/nf-Visual-Studio-extension/releases/download/$vs2022Tag/nanoFramework.Tools.VS2022.Extension.vsix" - $vsixPath = Join-Path $tempDir "nanoFramework.Tools.VS2022.Extension.zip" - $extensionVersion = $vs2022Tag - } - elseif($vsInstance.Contains('2019')) - { - $extensionUrl = "https://github.com/nanoframework/nf-Visual-Studio-extension/releases/download/$vs2019Tag/nanoFramework.Tools.VS2019.Extension.vsix" - $vsixPath = Join-Path $tempDir "nanoFramework.Tools.VS2019.Extension.zip" - $extensionVersion = $vs2019Tag - } - - Write-Output "Downloading visx..." - - # download VS extension - Write-Host "Download VSIX file from $extensionUrl to $vsixPath" - $webClient.DownloadFile($extensionUrl, $vsixPath) - - $outputPath = "$tempDir\nf-extension" - - $vsixPath = Join-Path -Path $tempDir -ChildPath "nf-extension.zip" - $webClient.DownloadFile($extensionUrl, $vsixPath) - - Write-Host "Extract VSIX file to $outputPath" - Expand-Archive -LiteralPath $vsixPath -DestinationPath $outputPath -Force | Write-Host - - $copyFrom = "$outputPath\`$MSBuild\nanoFramework" - - Write-Host "Copy from $copyFrom to $msbuildPath" - Copy-Item -Path "$copyFrom" -Destination $msbuildPath -Recurse - - Write-Host "Installed VS extension $extensionVersion" -} -################################################### - -# Cleanup -[system.io.Directory]::Delete($tempDir, $true) | out-null - Write-Host -Foreground Green "Initialized." diff --git a/Build/set-version-UnitsNet.ps1 b/Build/set-version-UnitsNet.ps1 index b4c0e10f65..19176f98ef 100644 --- a/Build/set-version-UnitsNet.ps1 +++ b/Build/set-version-UnitsNet.ps1 @@ -53,8 +53,6 @@ $root = Resolve-Path "$PSScriptRoot\.." $paramSet = $PsCmdlet.ParameterSetName $projFile = "$root\UnitsNet\UnitsNet.csproj" $numberExtensionsProjFile = "$root\UnitsNet.NumberExtensions\UnitsNet.NumberExtensions.csproj" -$nanoFrameworkNuspecGeneratorFile = "$root\CodeGen\Generators\NanoFrameworkGen\NuspecGenerator.cs" -$nanoFrameworkAssemblyInfoFile = "$root\UnitsNet.NanoFramework\GeneratedCode\Properties\AssemblyInfo.cs" # Use UnitsNet.Common.props version as base if bumping major/minor/patch $newVersion = Get-NewProjectVersion $projFile $paramSet $setVersion $bumpVersion @@ -66,17 +64,6 @@ $didStash = Invoke-StashPush Set-ProjectVersion $projFile $newVersion Set-ProjectVersion $numberExtensionsProjFile $newVersion -# Update AssemblyInfo.cs file for .NET nanoFramework -Set-AssemblyInfoVersion $nanoFrameworkAssemblyInfoFile $newVersion - -# Update codegen and .nuspec files for nanoFramework -Set-NuspecVersion $nanoFrameworkNuspecGeneratorFile $newVersion -Get-ChildItem -Path "$root\UnitsNet.NanoFramework\GeneratedCode" -Include '*.nuspec' -Recurse | - Foreach-object { - Set-NuspecVersion $_.FullName $newVersion - $versionFiles += $_.FullName - } - # Git commit and tag Invoke-CommitVersionBump @("UnitsNet") $newVersion Invoke-TagVersionBump "UnitsNet" $newVersion diff --git a/CodeGen/Generators/NanoFrameworkGen/NuspecGenerator.cs b/CodeGen/Generators/NanoFrameworkGen/NuspecGenerator.cs deleted file mode 100644 index c5fbe836a0..0000000000 --- a/CodeGen/Generators/NanoFrameworkGen/NuspecGenerator.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using CodeGen.JsonTypes; - -namespace CodeGen.Generators.NanoFrameworkGen -{ - class NuspecGenerator : GeneratorBase - { - private readonly Quantity _quantity; - private readonly string _mscorlibNuGetVersion; - private readonly string _mathNuGetVersion; - - public NuspecGenerator( - Quantity quantity, - string mscorlibNuGetVersion, - string mathNuGetVersion) - { - _quantity = quantity ?? throw new ArgumentNullException(nameof(quantity)); - _mscorlibNuGetVersion = mscorlibNuGetVersion; - _mathNuGetVersion = mathNuGetVersion; - } - - public string Generate() - { - Writer.WL($@" - - - UnitsNet.nanoFramework.{_quantity.Name} - 6.0.0-pre019 - Units.NET {_quantity.Name} - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds {_quantity.Name} units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework {_quantity.Name.ToLower()} unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - "); - - if (NanoFrameworkGenerator.ProjectsRequiringMath.Contains(_quantity.Name)) - { - Writer.WL($@" - "); - } - - Writer.WL($@" - - - - - -"); - - return Writer.ToString(); - } - } -} diff --git a/CodeGen/Generators/NanoFrameworkGen/ProjectGenerator.cs b/CodeGen/Generators/NanoFrameworkGen/ProjectGenerator.cs deleted file mode 100644 index f07787513d..0000000000 --- a/CodeGen/Generators/NanoFrameworkGen/ProjectGenerator.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using CodeGen.Helpers; -using CodeGen.JsonTypes; - -namespace CodeGen.Generators.NanoFrameworkGen -{ - class ProjectGenerator: GeneratorBase - { - private readonly Quantity _quantity; - private readonly NanoFrameworkVersions _versions; - - public ProjectGenerator(Quantity quantity, NanoFrameworkVersions versions) - { - _quantity = quantity ?? throw new ArgumentNullException(nameof(quantity)); - _versions = versions; - } - - public string Generate() - { - Writer.WL($@" - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {{11A8DD76-328B-46DF-9F39-F559912D0360}};{{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}} - {HashGuid.ToHashGuid(_quantity.Name):B} - Library - Properties - 512 - UnitsNet - UnitsNet.{_quantity.Name} - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.{_versions.MscorlibNugetVersion}\lib\mscorlib.dll - True - True - "); - - if (NanoFrameworkGenerator.ProjectsRequiringMath.Contains(_quantity.Name)) - { - Writer.WL($@" - - ..\packages\nanoFramework.System.Math.{_versions.MathNugetVersion}\lib\System.Math.dll - True - True - "); - } - - Writer.WL(@" - - - - - - - - - - -"); - - return Writer.ToString(); - } - } -} diff --git a/CodeGen/Generators/NanoFrameworkGen/PropertyGenerator.cs b/CodeGen/Generators/NanoFrameworkGen/PropertyGenerator.cs deleted file mode 100644 index 6973936633..0000000000 --- a/CodeGen/Generators/NanoFrameworkGen/PropertyGenerator.cs +++ /dev/null @@ -1,56 +0,0 @@ -namespace CodeGen.Generators.NanoFrameworkGen -{ - class PropertyGenerator : GeneratorBase - { - private readonly string _version; - - public PropertyGenerator(string version) - { - _version = version; - } - - public string Generate() - { - Writer.WL(GeneratedFileHeader); - Writer.W($@"using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle(""UnitsNet"")] -[assembly: AssemblyDescription(""Get all the common units of measurement and the conversions between them. It is light-weight and thoroughly tested."")] -[assembly: AssemblyConfiguration("""")] -[assembly: AssemblyCompany(""Andreas Gullberg Larsen"")] -[assembly: AssemblyProduct(""nanoFramework UnitsNet"")] -[assembly: AssemblyCopyright(""Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com)."")] -[assembly: AssemblyTrademark("""")] -[assembly: AssemblyCulture("""")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -[assembly: AssemblyVersion(""{_version}"")] -[assembly: AssemblyFileVersion(""{_version}"")] - -////////////////////////////////////////////////// -// This assembly doens't require native support // -[assembly: AssemblyNativeVersion(""0.0.0.0"")] -////////////////////////////////////////////////// -"); - return Writer.ToString(); - } - } -} diff --git a/CodeGen/Generators/NanoFrameworkGen/QuantityGenerator.cs b/CodeGen/Generators/NanoFrameworkGen/QuantityGenerator.cs deleted file mode 100644 index 04d8acad5f..0000000000 --- a/CodeGen/Generators/NanoFrameworkGen/QuantityGenerator.cs +++ /dev/null @@ -1,248 +0,0 @@ -using System; -using CodeGen.Helpers; -using CodeGen.JsonTypes; - -namespace CodeGen.Generators.NanoFrameworkGen -{ - internal class QuantityGenerator : GeneratorBase - { - private readonly Quantity _quantity; - private readonly string _unitEnumName; - - public QuantityGenerator(Quantity quantity) - { - _quantity = quantity ?? throw new ArgumentNullException(nameof(quantity)); - _unitEnumName = $"{quantity.Name}Unit"; - } - - public string Generate() - { - // Auto generated header - Writer.WL(GeneratedFileHeader); - // Usings, properties - Writer.WL($@"using System; -using UnitsNet.Units; - -namespace UnitsNet -{{"); - Writer.WL($@" - /// - /// - /// {_quantity.XmlDocSummary} - /// "); - - Writer.WLCondition(_quantity.XmlDocRemarks.HasText(), $@" - /// - /// {_quantity.XmlDocRemarks} - /// "); - Writer.WLIfText(1, GetObsoleteAttributeOrNull(_quantity)); - - Writer.WL($@" - public struct {_quantity.Name} - {{ - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly {_unitEnumName} _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public {_unitEnumName} Unit => _unit; -"); - - // Constructor and static properties - Writer.WL($@" /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public {_quantity.Name}(double value, {_unitEnumName} unit) - {{ - _value = value; - _unit = unit; - }} - - /// - /// The base unit of {_quantity.Name}, which is Second. All conversions go via this value. - /// - public static {_unitEnumName} BaseUnit {{ get; }} = {_unitEnumName}.{_quantity.BaseUnit}; - - /// - /// Represents the largest possible value of {_quantity.Name}. - /// - public static {_quantity.Name} MaxValue {{ get; }} = new {_quantity.Name}(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of {_quantity.Name}. - /// - public static {_quantity.Name} MinValue {{ get; }} = new {_quantity.Name}(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static {_quantity.Name} Zero {{ get; }} = new {_quantity.Name}(0, BaseUnit);"); - - GenerateConversionProperties(); - GenerateStaticFactoryMethods(); - GenerateConversionMethods(); - - Writer.WL(@" - } -} -"); - - return Writer.ToString(); - } - - private void GenerateConversionProperties() - { - Writer.WL(@" - #region Conversion Properties -"); - foreach (Unit unit in _quantity.Units) - { - if (unit.SkipConversionGeneration) continue; - - Writer.WL($@" - /// - /// Gets a value of this quantity converted into - /// "); - Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit)); - Writer.WL($@" - public double {unit.PluralName} => As({_unitEnumName}.{unit.SingularName}); -"); - } - - Writer.WL(@" - - #endregion -"); - } - - private void GenerateStaticFactoryMethods() - { - Writer.WL(@" - #region Static Factory Methods -"); - foreach (Unit unit in _quantity.Units) - { - if (unit.SkipConversionGeneration) continue; - - var valueParamName = unit.PluralName.ToLowerInvariant(); - Writer.WL($@" - /// - /// Creates a from . - /// "); - Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit)); - Writer.WL($@" - public static {_quantity.Name} From{unit.PluralName}(double {valueParamName}) => new {_quantity.Name}({valueParamName}, {_unitEnumName}.{unit.SingularName}); -"); - } - - Writer.WL($@" - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// {_quantity.Name} unit value. - public static {_quantity.Name} From(double value, {_unitEnumName} fromUnit) - {{ - return new {_quantity.Name}(value, fromUnit); - }} - - #endregion -"); - } - - private void GenerateConversionMethods() - { - Writer.WL($@" - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As({_unitEnumName} unit) => GetValueAs(unit); - - /// - /// Converts this {_quantity.Name} to another {_quantity.Name} with the unit representation . - /// - /// A {_quantity.Name} with the specified unit. - public {_quantity.Name} ToUnit({_unitEnumName} unit) - {{ - var convertedValue = GetValueAs(unit); - return new {_quantity.Name}(convertedValue, unit); - }} - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - {{ - return Unit switch - {{"); - foreach (Unit unit in _quantity.Units) - { - var func = unit.FromUnitToBaseFunc.Replace("{x}", "_value"); - Writer.WL($@" - {_unitEnumName}.{unit.SingularName} => {func},"); - } - - Writer.WL($@" - _ => throw new NotImplementedException($""Can't convert {{Unit}} to base units."") - }}; - }} - - private double GetValueAs({_unitEnumName} unit) - {{ - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - {{"); - foreach (Unit unit in _quantity.Units) - { - var func = unit.FromBaseToUnitFunc.Replace("{x}", "baseUnitValue"); - Writer.WL($@" - {_unitEnumName}.{unit.SingularName} => {func},"); - } - - Writer.WL(@" - _ => throw new NotImplementedException($""Can't convert {Unit} to {unit}."") - }; - } - - #endregion"); - } - - /// - private static string? GetObsoleteAttributeOrNull(Quantity quantity) => GetObsoleteAttributeOrNull(quantity.ObsoleteText); - - /// - private static string? GetObsoleteAttributeOrNull(Unit unit) => GetObsoleteAttributeOrNull(unit.ObsoleteText); - - /// - /// Returns the Obsolete attribute if ObsoleteText has been defined on the JSON input - otherwise returns empty string - /// It is up to the consumer to wrap any padding/new lines in order to keep to correct indentation formats - /// - private static string? GetObsoleteAttributeOrNull(string? obsoleteText) => string.IsNullOrWhiteSpace(obsoleteText) - ? null - : $"[Obsolete(\"{obsoleteText}\")]"; - - } -} diff --git a/CodeGen/Generators/NanoFrameworkGen/SolutionGenerator.cs b/CodeGen/Generators/NanoFrameworkGen/SolutionGenerator.cs deleted file mode 100644 index ac919c0574..0000000000 --- a/CodeGen/Generators/NanoFrameworkGen/SolutionGenerator.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Text; -using CodeGen.Helpers; -using CodeGen.JsonTypes; - -namespace CodeGen.Generators.NanoFrameworkGen -{ - class SolutionGenerator:GeneratorBase - { - private readonly Quantity[] _quantities; - private readonly Guid _globalGuid = new("d608a2b1-6ead-4383-a205-ad1ce69d9ef7"); // Randomly generated guids. - private readonly Guid _solutionGuid = new("43971d92-3663-4f28-82ac-e63ce06ba1a3"); - - public SolutionGenerator(Quantity[] quantities) - { - _quantities = quantities; - } - - public string Generate() - { - StringBuilder sb = new(); - Writer.WL($@"Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30413.136 -MinimumVisualStudioVersion = 10.0.40219.1"); - - foreach (var quantity in _quantities) - { - var projectGuid = HashGuid.ToHashGuid(quantity.Name); - Writer.WL($@" -Project(""{_globalGuid:B}"") = ""{quantity.Name}"", ""{quantity.Name}\{quantity.Name}.nfproj"", ""{projectGuid:B}"" -EndProject"); - sb.Append($"{{{projectGuid}}}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r\n"); - sb.Append($"{{{projectGuid}}}.Debug|Any CPU.Build.0 = Debug|Any CPU\r\n"); - sb.Append($"{{{projectGuid}}}.Debug|Any CPU.Deploy.0 = Debug|Any CPU\r\n"); - sb.Append($"{{{projectGuid}}}.Release|Any CPU.ActiveCfg = Release|Any CPU\r\n"); - sb.Append($"{{{projectGuid}}}.Release|Any CPU.Build.0 = Release|Any CPU\r\n"); - sb.Append($"{{{projectGuid}}}.Release|Any CPU.Deploy.0 = Release|Any CPU\r\n"); - } - - Writer.WL(@"Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution"); - - Writer.WL(sb.ToString()); - - Writer.WL($@" EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {_solutionGuid:B} - EndGlobalSection -EndGlobal -"); - return Writer.ToString(); - } - } -} diff --git a/CodeGen/Generators/NanoFrameworkGen/UnitTypeGenerator.cs b/CodeGen/Generators/NanoFrameworkGen/UnitTypeGenerator.cs deleted file mode 100644 index 5e485b9cda..0000000000 --- a/CodeGen/Generators/NanoFrameworkGen/UnitTypeGenerator.cs +++ /dev/null @@ -1,67 +0,0 @@ -using CodeGen.Helpers; -using CodeGen.Helpers.UnitEnumValueAllocation; -using CodeGen.JsonTypes; - -namespace CodeGen.Generators.NanoFrameworkGen -{ - internal class UnitTypeGenerator : GeneratorBase - { - private readonly Quantity _quantity; - private readonly UnitEnumNameToValue _unitEnumNameToValue; - private readonly string _unitEnumName; - - public UnitTypeGenerator(Quantity quantity, UnitEnumNameToValue unitEnumNameToValue) - { - _quantity = quantity; - _unitEnumNameToValue = unitEnumNameToValue; - _unitEnumName = $"{quantity.Name}Unit"; - } - - public string Generate() - { - Writer.WL(GeneratedFileHeader); - Writer.WL($@" -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum {_unitEnumName} - {{"); - foreach (Unit unit in _quantity.Units) - { - if (unit.XmlDocSummary.HasText()) - { - Writer.WL(); - Writer.WL($@" - /// - /// {unit.XmlDocSummary} - /// "); - } - - if (unit.XmlDocRemarks.HasText()) - { - Writer.WL($@" - /// {unit.XmlDocRemarks}"); - } - - Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit.ObsoleteText)); - Writer.WL($@" - {unit.SingularName} = {_unitEnumNameToValue[unit.SingularName]},"); - } - - Writer.WL($@" - }} - - #pragma warning restore 1591 -}}"); - return Writer.ToString(); - } - - private static string? GetObsoleteAttributeOrNull(string? obsoleteText) => - string.IsNullOrWhiteSpace(obsoleteText) ? - null : - $"[System.Obsolete(\"{obsoleteText}\")]"; - } -} diff --git a/CodeGen/Generators/NanoFrameworkGenerator.cs b/CodeGen/Generators/NanoFrameworkGenerator.cs deleted file mode 100644 index 19d8cab43c..0000000000 --- a/CodeGen/Generators/NanoFrameworkGenerator.cs +++ /dev/null @@ -1,394 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Text.RegularExpressions; -using CodeGen.Generators.NanoFrameworkGen; -using CodeGen.Helpers; -using CodeGen.Helpers.UnitEnumValueAllocation; -using CodeGen.JsonTypes; -using NuGet.Common; -using Serilog; -using ILogger = NuGet.Common.ILogger; - -namespace CodeGen.Generators -{ - /// - /// Code generator for nanoFramework - /// Will generate 1 nanoFramework project per unit, a common property folder and a common package file - /// - internal static class NanoFrameworkGenerator - { - /// - /// These projects require inclusion of Math NuGet package. - /// - internal static readonly List ProjectsRequiringMath = new() - { - "Angle", - "Frequency", - "Pressure", - "Turbidity", - "WarpingMomentOfInertia" - }; - - /// - /// Create the root folder NanoFramework - /// Create all the quantities unit and quantities file - /// Create all individual nanoFramework projects - /// Create common package file - /// Create common properties file - /// - /// The root directory - /// The quantities to create - /// - public static void Generate(string rootDir, Quantity[] quantities, QuantityNameToUnitEnumValues quantityNameToUnitEnumValues) - { - // get latest version of .NET nanoFramework mscorlib - ILogger logger = NullLogger.Instance; - - NanoFrameworkVersions versions = ParseCurrentNanoFrameworkVersions(rootDir); - - logger.LogInformation($"Referencing nanoFramework.CoreLibrary {versions.MscorlibNugetVersion}"); - logger.LogInformation($"Referencing nanoFramework.System.Math {versions.MathNugetVersion}"); - - var outputDir = Path.Combine(rootDir, "UnitsNet.NanoFramework", "GeneratedCode"); - var outputQuantities = Path.Combine(outputDir, "Quantities"); - var outputUnits = Path.Combine(outputDir, "Units"); - var outputProperties = Path.Combine(outputDir, "Properties"); - - // Ensure output directories exist - Directory.CreateDirectory(outputQuantities); - Directory.CreateDirectory(outputUnits); - Directory.CreateDirectory(outputProperties); - - var lengthNuspecFile = Path.Combine(outputDir, "Length", "UnitsNet.NanoFramework.Length.nuspec"); - var projectVersion = ParseVersion(File.ReadAllText(lengthNuspecFile), - new Regex(@"(?[\d.]+)(?-[a-z\d]+)?<\/version>", RegexOptions.IgnoreCase), - "projectVersion"); - - foreach (Quantity quantity in quantities) - { - var projectPath = Path.Combine(outputDir, quantity.Name); - Directory.CreateDirectory(projectPath); - - GeneratePackageConfig( - projectPath, - quantity.Name, - versions.MscorlibNugetVersion, - versions.MathNugetVersion); - - GenerateNuspec( - projectPath, - quantity, - versions.MscorlibNugetVersion, - versions.MathNugetVersion); - - UnitEnumNameToValue unitEnumValues = quantityNameToUnitEnumValues[quantity.Name]; - - GenerateUnitType(quantity, Path.Combine(outputUnits, $"{quantity.Name}Unit.g.cs"), unitEnumValues); - GenerateQuantity(quantity, Path.Combine(outputQuantities, $"{quantity.Name}.g.cs")); - GenerateProject(quantity, Path.Combine(projectPath, $"{quantity.Name}.nfproj"), versions); - - Log.Information("✅ {Quantity} (nanoFramework)", quantity.Name); - } - Log.Information(""); - - GenerateProperties(Path.Combine(outputProperties, "AssemblyInfo.cs"), projectVersion); - GenerateSolution(quantities, outputDir); - - var unitCount = quantities.SelectMany(q => q.Units).Count(); - Log.Information(""); - Log.Information("Total of {UnitCount} units and {QuantityCount} quantities (nanoFramework)", unitCount, quantities.Length); - Log.Information(""); - } - - /// - /// Updates existing nanoFramework projects and nuspec files with the latest versions. - /// - /// The root directory - /// The quantities to update nuspec files - public static bool UpdateNanoFrameworkDependencies( - string rootDir, - Quantity[] quantities) - { - // working path - var path = Path.Combine(rootDir, "UnitsNet.NanoFramework\\GeneratedCode"); - - Log.Information(""); - Log.Information("Restoring .NET nanoFramework projects"); - - // run nuget CLI - using var nugetRestore = new Process - { - StartInfo = new ProcessStartInfo - { - FileName = Path.Combine(rootDir, ".tools/nuget.exe"), - Arguments = $"restore {path}\\UnitsNet.nanoFramework.sln", - UseShellExecute = false, - CreateNoWindow = true, - RedirectStandardError = true - } - }; - - // start nuget CLI and wait for exit - if (!nugetRestore.Start()) - { - Log.Information(""); - Log.Information("Failed to start nuget CLI to restore .NET nanoFramework projects"); - Log.Information(""); - } - else - { - // wait for exit, within 2 minutes - if (!nugetRestore.WaitForExit((int)TimeSpan.FromMinutes(2).TotalMilliseconds)) - { - Log.Information(""); - Log.Information("Failed to complete execution of nuget CLI to restore .NET nanoFramework projects"); - Log.Information(""); - } - else - { - if (nugetRestore.ExitCode == 0) - { - Log.Information("Done!"); - Log.Information(""); - } - else - { - Log.Information(""); - Log.Information("nuget CLI executed with {ExitCode} exit code", nugetRestore.ExitCode); - - Log.Information("{StandardError}", nugetRestore.StandardError.ReadToEnd()); - - return false; - } - } - } - - Log.Information(""); - Log.Information("Updating .NET nanoFramework references using nuget CLI"); - - // run nuget CLI to perform update - using var nugetUpdate = new Process - { - StartInfo = new ProcessStartInfo - { - FileName = Path.Combine(rootDir, ".tools/NuGet.exe"), - Arguments = $"update {path}\\UnitsNet.nanoFramework.sln -PreRelease", - UseShellExecute = false, - CreateNoWindow = true, - RedirectStandardError = true - } - }; - - // start nuget CLI and wait for exit - if (!nugetUpdate.Start()) - { - Log.Information(""); - Log.Information("Failed to start nuget CLI to update .NET nanoFramework projects"); - Log.Information(""); - } - else - { - // wait for exit, within 2 minutes - if (!nugetUpdate.WaitForExit((int)TimeSpan.FromMinutes(2).TotalMilliseconds)) - { - Log.Information(""); - Log.Information("Failed to complete execution of nuget CLI to update .NET nanoFramework projects"); - Log.Information(""); - } - else - { - if (nugetUpdate.ExitCode == 0) - { - Log.Information("Done!"); - Log.Information(""); - - Log.Information("Updating .NET nanoFramework nuspec files"); - Log.Information(""); - - foreach (Quantity quantity in quantities) - { - var projectPath = Path.Combine(path, quantity.Name); - - // read packages.config content - var packagesConfig = Path.Combine(projectPath, "packages.config"); - var packagesConfigText = File.ReadAllText(packagesConfig); - - var mscorlibVersion = ParseVersion(packagesConfigText, - new Regex("CoreLibrary\\\" version=\\\"(?.+)\\\" targetFramework", RegexOptions.IgnoreCase), - "projectVersion"); - - // don't throw on failure because not all packages have System.Math - var mathVersion = ParseVersion(packagesConfigText, - new Regex("Math\\\" version=\\\"(?.+)\\\" targetFramework", RegexOptions.IgnoreCase), - "projectVersion", - false); - - // update nuspec - GenerateNuspec( - projectPath, - quantity, - mscorlibVersion, - mathVersion); - - Log.Information("✅ {Quantity} (nanoFramework)", quantity.Name); - } - } - else - { - Log.Information(""); - Log.Information("nuget CLI executed with {ExitCode} exit code", nugetUpdate.ExitCode); - - Log.Information("{StandardError}", nugetUpdate.StandardError.ReadToEnd()); - - return false; - } - } - - } - - Log.Information(""); - - return true; - } - - private static NanoFrameworkVersions ParseCurrentNanoFrameworkVersions(string rootDir) - { - // Angle has both mscorlib and System.Math dependency - var generatedCodePath = Path.Combine(rootDir, "UnitsNet.NanoFramework", "GeneratedCode"); - var angleProjectFile = Path.Combine(generatedCodePath, "Angle", "Angle.nfproj"); - var projectFileContent = File.ReadAllText(angleProjectFile); - - // - var mscorlibVersion = ParseVersion(projectFileContent, - new Regex(@"[\d\.]+),.*"">", RegexOptions.IgnoreCase), - "mscorlib assembly version"); - - // ..\packages\nanoFramework.CoreLibrary.1.10.5-preview.18\lib\mscorlib.dll - var mscorlibNuGetVersion = ParseVersion(projectFileContent, - new Regex(@".*[\\\/]nanoFramework\.CoreLibrary\.(?.*?)[\\\/]lib[\\\/]mscorlib.dll<", RegexOptions.IgnoreCase), - "nanoFramework.CoreLibrary nuget version"); - - // - var mathVersion = ParseVersion(projectFileContent, - new Regex(@"[\d\.]+),.*"">", RegexOptions.IgnoreCase), - "System.Math assembly version"); - - // ..\packages\nanoFramework.System.Math.1.4.1-preview.7\lib\System.Math.dll - var mathNuGetVersion = ParseVersion(projectFileContent, - new Regex(@".*[\\\/]nanoFramework\.System\.Math\.(?.*?)[\\\/]lib[\\\/]System.Math.dll<", RegexOptions.IgnoreCase), - "nanoFramework.System.Math nuget version"); - - return new NanoFrameworkVersions(mscorlibVersion, mscorlibNuGetVersion, mathVersion, mathNuGetVersion); - } - - private static string ParseVersion( - string projectFileContent, - Regex versionRegex, - string descriptiveName, - bool throwOnFailure = true) - { - Match match = versionRegex.Match(projectFileContent); - - if (!match.Success && throwOnFailure) - { - throw new InvalidOperationException($"Unable to parse version {descriptiveName} from project file."); - } - - return match.Groups["version"].Value; - } - - private static void GeneratePackageConfig( - string projectPath, - string quantityName, - string mscorlibNuGetVersion, - string mathNuGetVersion) - { - var filePath = Path.Combine(projectPath, "packages.config"); - var content = GeneratePackageConfigFile(quantityName, mscorlibNuGetVersion, mathNuGetVersion); - - File.WriteAllText(filePath, content); - } - - private static void GenerateNuspec( - string projectPath, - Quantity quantity, - string mscorlibNuGetVersion, - string mathNuGetVersion) - { - var filePath = Path.Combine(projectPath, $"UnitsNet.NanoFramework.{quantity.Name}.nuspec"); - - var content = new NuspecGenerator( - quantity, - mscorlibNuGetVersion, - mathNuGetVersion).Generate(); - - File.WriteAllText(filePath, content); - } - - private static void GenerateProperties(string filePath, string version) - { - var content = new PropertyGenerator(version).Generate(); - File.WriteAllText(filePath, content); - Log.Information("✅ AssemblyInfo.cs (nanoFramework)"); - } - - private static void GenerateUnitType(Quantity quantity, string filePath, UnitEnumNameToValue unitEnumValues) - { - var content = new UnitTypeGenerator(quantity, unitEnumValues).Generate(); - File.WriteAllText(filePath, content); - } - - private static void GenerateQuantity(Quantity quantity, string filePath) - { - var content = new QuantityGenerator(quantity).Generate(); - // Replace any Math.PI by the real number 3.1415926535897931 - content = content.Replace("Math.PI", "3.1415926535897931"); - // Replace Math.Pow(0.3048, 4) by 0.0086309748412416 - content = content.Replace("Math.Pow(0.3048, 4)", "0.0086309748412416"); - // Replace Math.Pow(2.54e-2, 4) by 0.0000004162314256 - content = content.Replace("Math.Pow(2.54e-2, 4)", "0.0000004162314256"); - File.WriteAllText(filePath, content); - } - - private static void GenerateProject(Quantity quantity, string filePath, NanoFrameworkVersions versions) - { - var content = new ProjectGenerator(quantity, versions).Generate(); - File.WriteAllText(filePath, content); - } - - private static void GenerateSolution(Quantity[] quantities, string outputDir) - { - var content = new SolutionGenerator(quantities).Generate(); - var filePath = Path.Combine(outputDir, "UnitsNet.nanoFramework.sln"); - - File.WriteAllText(filePath, content); - Log.Information("✅ UnitsNet.nanoFramework.sln (nanoFramework)"); - } - - private static string GeneratePackageConfigFile( - string quantityName, - string mscorlibNuGetVersion, - string mathNuGetVersion) - { - MyTextWriter writer = new(); - - writer.WL($@" - - - "); - - if (ProjectsRequiringMath.Contains(quantityName)) - { - writer.WL($@" - "); - } - - writer.WL($@""); - - return writer.ToString(); - } - } -} diff --git a/CodeGen/Generators/NanoFrameworkVersions.cs b/CodeGen/Generators/NanoFrameworkVersions.cs deleted file mode 100644 index c9da440cf1..0000000000 --- a/CodeGen/Generators/NanoFrameworkVersions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -namespace CodeGen.Generators -{ - /// - /// NanoFramework dependency versions. - /// - /// mscorlib assembly version in nanoFramework.CoreLibrary nuget. - /// Nuget version of nanoFramework.CoreLibrary. - /// System.Math assembly version in nanoFramework.System.Math nuget. - /// Nuget version of nanoFramework.System.Math. - public record NanoFrameworkVersions(string MscorlibVersion, string MscorlibNugetVersion, string MathVersion, string MathNugetVersion); -} diff --git a/CodeGen/Generators/QuantityJsonFilesParser.cs b/CodeGen/Generators/QuantityJsonFilesParser.cs index e1d50871a7..ff26b0c0cd 100644 --- a/CodeGen/Generators/QuantityJsonFilesParser.cs +++ b/CodeGen/Generators/QuantityJsonFilesParser.cs @@ -16,7 +16,7 @@ namespace CodeGen.Generators; /// /// Parses JSON files that define quantities and their units. /// This will later be used to generate source code and can be reused for different targets such as .NET framework, -/// .NET Core, .NET nanoFramework and even other programming languages. +/// .NET Core and even other programming languages. /// internal static class QuantityJsonFilesParser { diff --git a/CodeGen/Helpers/FileInfoExtensions.cs b/CodeGen/Helpers/FileInfoExtensions.cs index a1eeeff9cd..a7dccb4ead 100644 --- a/CodeGen/Helpers/FileInfoExtensions.cs +++ b/CodeGen/Helpers/FileInfoExtensions.cs @@ -40,8 +40,6 @@ public static void EditFile( } // Make sure all line endings on Windows are CRLF. - // This is important for opening .nfproj flies in Visual Studio, - // and maybe for some other files too. line = line.Replace("\r", "").Replace("\n", Environment.NewLine); output.WriteLine(line); diff --git a/CodeGen/Program.cs b/CodeGen/Program.cs index 31038895de..7ff240ff7e 100644 --- a/CodeGen/Program.cs +++ b/CodeGen/Program.cs @@ -43,9 +43,7 @@ public class Program /// /// Verbose output? Defaults to false. /// The repository root directory, defaults to searching parent directories for UnitsNet.sln. - /// Skip generate nanoFramework Units? Defaults to false - /// Update nanoFramework nuget dependencies? Defaults to false. - public static int Main(bool verbose = false, DirectoryInfo? repositoryRoot = null, bool skipNanoFramework = false, bool updateNanoFrameworkDependencies = false) + public static int Main(bool verbose = false, DirectoryInfo? repositoryRoot = null) { Log.Logger = new LoggerConfiguration() .WriteTo @@ -73,22 +71,6 @@ public static int Main(bool verbose = false, DirectoryInfo? repositoryRoot = nul UnitsNetGenerator.Generate(rootDir, quantities, quantityNameToUnitEnumValues); - if (updateNanoFrameworkDependencies) - { - if (!NanoFrameworkGenerator.UpdateNanoFrameworkDependencies( - rootDir, - quantities)) - { - return 1; - } - } - - if (!skipNanoFramework) - { - Log.Information("Generate nanoFramework projects\n---"); - NanoFrameworkGenerator.Generate(rootDir, quantities, quantityNameToUnitEnumValues); - } - Log.Information("Completed in {ElapsedMs} ms!", sw.ElapsedMilliseconds); return 0; } diff --git a/CodeGen/README.md b/CodeGen/README.md index ae011f55af..2e25af4925 100644 --- a/CodeGen/README.md +++ b/CodeGen/README.md @@ -34,11 +34,3 @@ CodeGen.exe --ver Hit TAB and it should now suggest `--version` and `--verbose` parameters. This should work with any .exe that is compiled with Dragonfruit's app model. - -## nanoFramework - -.NET [nanoFramework](https://github.com/nanoframework/Home) goal is to be a platform that enables the writing of managed code applications for constrained embedded devices. Developers can harness the familiar IDE Visual Studio and their .NET (C#) knowledge to quickly write applications without having to worry about the low level hardware intricacies of a micro-controller. Examples of supported micro controllers are ESP32, STM32F429I, ST Nuclea64, TI CC3220SF and more! The pleasure of .NET where everyone is usually writing in C/C++. - -By default, the code generator will as well generate automatically 1 project per Quantity. - -You can load all the projects at once using the automatically generated solution ```UnitsNet.nanoFramework.sln``` diff --git a/Directory.Build.props b/Directory.Build.props index d8f549a773..a2b8154662 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -3,9 +3,6 @@ $(MSBuildThisFileDirectory)Artifacts/$(MSBuildProjectName) - - $(MSBuildThisFileDirectory)Artifacts/UnitsNet.NanoFramework/$(MSBuildProjectName) - diff --git a/Docs/README.md b/Docs/README.md index 06b0314dde..083b33eed9 100644 --- a/Docs/README.md +++ b/Docs/README.md @@ -15,7 +15,6 @@ ## Platform Support -- [.NET nanoFramework](nanoframework.md) — embedded device support - [Experimental: Generic Math](experimental-generic-math.md) — .NET 7+ generic math interfaces ## Upgrade Guides diff --git a/Docs/nanoframework.md b/Docs/nanoframework.md deleted file mode 100644 index d1aca78d8b..0000000000 --- a/Docs/nanoframework.md +++ /dev/null @@ -1,19 +0,0 @@ -# .NET nanoFramework - -.NET nanoFramework is a free and open-source platform that enables the writing of managed code applications for constrained embedded devices. It is suitable for many types of projects including IoT sensors, wearables, academic proof of concept, robotics, hobbyist/makers creations or even complex industrial equipment. - -https://www.nanoframework.net/ - -## Update nanoFramework dependencies - -Units.NET publishes quantities as individual nuget packages, which means there is a large number of projects to maintain. -To overcome this, the CodeGen project generates the solution file, project files and .nuspec files - in addition to source code. - -The dependencies are hard coded in the code generator, so in order to update the dependencies you must specify an extra flag. - -```sh -cd CodeGen -dotnet run --update-nano-framework-dependencies -``` - -As of this writing, `mscorlib` and `System.Math` are the two nuget dependencies to update. diff --git a/GITHUB_ACTIONS_MIGRATION_README.md b/GITHUB_ACTIONS_MIGRATION_README.md index 9d19216a7a..8bc08b6f9f 100644 --- a/GITHUB_ACTIONS_MIGRATION_README.md +++ b/GITHUB_ACTIONS_MIGRATION_README.md @@ -13,7 +13,6 @@ Due to GitHub App permission restrictions, the workflow files are created in the ### CI Workflow (ci.yml) - Triggers on pushes to master, release/*, and maintenance/* branches -- Builds with .NET nanoFramework support using `nanoframework/nanobuild@v1` action - Runs tests and uploads coverage to codecov.io - Publishes NuGet packages to nuget.org (only on master branch) - Uses Windows runner to match Azure Pipelines configuration @@ -25,13 +24,9 @@ Due to GitHub App permission restrictions, the workflow files are created in the - Uploads test coverage to codecov.io - No NuGet publishing for PRs -## .NET nanoFramework Support - -The key challenge mentioned in the issue was .NET nanoFramework support. This is handled using the `nanoframework/nanobuild@v1` GitHub Action, which is the official GitHub Actions equivalent of the Azure Pipelines `InstallNanoMSBuildComponents@1` task. - ## Migration Notes -- Both workflows use the existing PowerShell build script (`Build/build.ps1`) with the `-IncludeNanoFramework` flag +- Both workflows use the existing PowerShell build script (`Build/build.ps1`) - Secrets needed: `CODECOV_TOKEN` and `NUGET_ORG_APIKEY` (should already be configured) - The workflows are designed to run alongside Azure Pipelines for comparison - Azure Pipelines configuration files remain unchanged as requested diff --git a/README.md b/README.md index ba3deae87d..848da04e66 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,6 @@ or go to [NuGet Gallery | UnitsNet](https://www.nuget.org/packages/UnitsNet) for * .NET 8.0 (LTS) * .NET 9.0 (latest stable) * .NET 10.0 (preview) -* [.NET nanoFramework](https://www.nanoframework.net/) ### Extension Packages diff --git a/UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/AbsorbedDoseOfIonizingRadiation.nfproj b/UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/AbsorbedDoseOfIonizingRadiation.nfproj deleted file mode 100644 index f6a4dcd7bb..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/AbsorbedDoseOfIonizingRadiation.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {3d39134e-c97d-cba4-a559-fdb3a0da5e54} - Library - Properties - 512 - UnitsNet - UnitsNet.AbsorbedDoseOfIonizingRadiation - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/UnitsNet.NanoFramework.AbsorbedDoseOfIonizingRadiation.nuspec b/UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/UnitsNet.NanoFramework.AbsorbedDoseOfIonizingRadiation.nuspec deleted file mode 100644 index 7bc494fd95..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/UnitsNet.NanoFramework.AbsorbedDoseOfIonizingRadiation.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.AbsorbedDoseOfIonizingRadiation - 6.0.0-pre019 - Units.NET AbsorbedDoseOfIonizingRadiation - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds AbsorbedDoseOfIonizingRadiation units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework absorbeddoseofionizingradiation unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/packages.config b/UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AbsorbedDoseOfIonizingRadiation/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/Acceleration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Acceleration/Acceleration.nfproj deleted file mode 100644 index df1a10492d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/Acceleration.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {8e3a6691-a05f-d71c-f12a-f537c0807f85} - Library - Properties - 512 - UnitsNet - UnitsNet.Acceleration - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/UnitsNet.NanoFramework.Acceleration.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Acceleration/UnitsNet.NanoFramework.Acceleration.nuspec deleted file mode 100644 index c247ea9e1c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/UnitsNet.NanoFramework.Acceleration.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Acceleration - 6.0.0-pre019 - Units.NET Acceleration - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Acceleration units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework acceleration unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Acceleration/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Acceleration/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/AmountOfSubstance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/AmountOfSubstance.nfproj deleted file mode 100644 index c0f1b2fbf2..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/AmountOfSubstance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {1cd282f3-3bdc-bc00-a63a-03a11a9b5c4d} - Library - Properties - 512 - UnitsNet - UnitsNet.AmountOfSubstance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/UnitsNet.NanoFramework.AmountOfSubstance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/UnitsNet.NanoFramework.AmountOfSubstance.nuspec deleted file mode 100644 index d0daa4760d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/UnitsNet.NanoFramework.AmountOfSubstance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.AmountOfSubstance - 6.0.0-pre019 - Units.NET AmountOfSubstance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds AmountOfSubstance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework amountofsubstance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AmountOfSubstance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/AmplitudeRatio.nfproj b/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/AmplitudeRatio.nfproj deleted file mode 100644 index e22c293100..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/AmplitudeRatio.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {59c09a1b-eff0-e367-6372-d16c4c984916} - Library - Properties - 512 - UnitsNet - UnitsNet.AmplitudeRatio - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/UnitsNet.NanoFramework.AmplitudeRatio.nuspec b/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/UnitsNet.NanoFramework.AmplitudeRatio.nuspec deleted file mode 100644 index bf937ac6d5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/UnitsNet.NanoFramework.AmplitudeRatio.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.AmplitudeRatio - 6.0.0-pre019 - Units.NET AmplitudeRatio - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds AmplitudeRatio units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework amplituderatio unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/packages.config b/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AmplitudeRatio/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Angle/Angle.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Angle/Angle.nfproj deleted file mode 100644 index 23e17a96b4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Angle/Angle.nfproj +++ /dev/null @@ -1,47 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {4b036819-f813-0c4d-3e44-1fcc8b5f3ec7} - Library - Properties - 512 - UnitsNet - UnitsNet.Angle - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - ..\packages\nanoFramework.System.Math.1.5.43\lib\System.Math.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Angle/UnitsNet.NanoFramework.Angle.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Angle/UnitsNet.NanoFramework.Angle.nuspec deleted file mode 100644 index 2c47c4cc7e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Angle/UnitsNet.NanoFramework.Angle.nuspec +++ /dev/null @@ -1,27 +0,0 @@ - - - - UnitsNet.nanoFramework.Angle - 6.0.0-pre019 - Units.NET Angle - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Angle units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework angle unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Angle/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Angle/packages.config deleted file mode 100644 index ac11548cd6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Angle/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Area/Area.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Area/Area.nfproj deleted file mode 100644 index a5635a4a6e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Area/Area.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {04c24d02-bad7-a877-ff9b-a36a886c9633} - Library - Properties - 512 - UnitsNet - UnitsNet.Area - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Area/UnitsNet.NanoFramework.Area.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Area/UnitsNet.NanoFramework.Area.nuspec deleted file mode 100644 index 0180e3fd6f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Area/UnitsNet.NanoFramework.Area.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Area - 6.0.0-pre019 - Units.NET Area - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Area units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework area unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Area/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Area/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Area/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/AreaDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/AreaDensity.nfproj deleted file mode 100644 index 37a1fe8e9d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/AreaDensity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {92ff1332-bf34-943e-a58d-8a76746d879e} - Library - Properties - 512 - UnitsNet - UnitsNet.AreaDensity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/UnitsNet.NanoFramework.AreaDensity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/UnitsNet.NanoFramework.AreaDensity.nuspec deleted file mode 100644 index da7d247c1b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/UnitsNet.NanoFramework.AreaDensity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.AreaDensity - 6.0.0-pre019 - Units.NET AreaDensity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds AreaDensity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework areadensity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AreaDensity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/AreaMomentOfInertia.nfproj b/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/AreaMomentOfInertia.nfproj deleted file mode 100644 index 1ca5b17bd1..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/AreaMomentOfInertia.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {566ef13c-0d17-e465-d35f-1bd9c65559bf} - Library - Properties - 512 - UnitsNet - UnitsNet.AreaMomentOfInertia - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/UnitsNet.NanoFramework.AreaMomentOfInertia.nuspec b/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/UnitsNet.NanoFramework.AreaMomentOfInertia.nuspec deleted file mode 100644 index 99302a9e59..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/UnitsNet.NanoFramework.AreaMomentOfInertia.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.AreaMomentOfInertia - 6.0.0-pre019 - Units.NET AreaMomentOfInertia - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds AreaMomentOfInertia units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework areamomentofinertia unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/packages.config b/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/AreaMomentOfInertia/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/BitRate/BitRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/BitRate/BitRate.nfproj deleted file mode 100644 index e7649658be..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/BitRate/BitRate.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {b5fdf997-829f-5281-e624-ee4eee5aa26c} - Library - Properties - 512 - UnitsNet - UnitsNet.BitRate - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/BitRate/UnitsNet.NanoFramework.BitRate.nuspec b/UnitsNet.NanoFramework/GeneratedCode/BitRate/UnitsNet.NanoFramework.BitRate.nuspec deleted file mode 100644 index f4bff46143..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/BitRate/UnitsNet.NanoFramework.BitRate.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.BitRate - 6.0.0-pre019 - Units.NET BitRate - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds BitRate units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework bitrate unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/BitRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/BitRate/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/BitRate/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/BrakeSpecificFuelConsumption.nfproj b/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/BrakeSpecificFuelConsumption.nfproj deleted file mode 100644 index 5fa730a735..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/BrakeSpecificFuelConsumption.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {085145f2-2b8f-4d09-5290-c14cdcd452bf} - Library - Properties - 512 - UnitsNet - UnitsNet.BrakeSpecificFuelConsumption - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/UnitsNet.NanoFramework.BrakeSpecificFuelConsumption.nuspec b/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/UnitsNet.NanoFramework.BrakeSpecificFuelConsumption.nuspec deleted file mode 100644 index 864aa62a3d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/UnitsNet.NanoFramework.BrakeSpecificFuelConsumption.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.BrakeSpecificFuelConsumption - 6.0.0-pre019 - Units.NET BrakeSpecificFuelConsumption - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds BrakeSpecificFuelConsumption units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework brakespecificfuelconsumption unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/packages.config b/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/BrakeSpecificFuelConsumption/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/CoefficientOfThermalExpansion.nfproj b/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/CoefficientOfThermalExpansion.nfproj deleted file mode 100644 index 79a008978a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/CoefficientOfThermalExpansion.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {a9514ce6-d4e7-88ca-051e-e9e53610c519} - Library - Properties - 512 - UnitsNet - UnitsNet.CoefficientOfThermalExpansion - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/UnitsNet.NanoFramework.CoefficientOfThermalExpansion.nuspec b/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/UnitsNet.NanoFramework.CoefficientOfThermalExpansion.nuspec deleted file mode 100644 index fd5669364e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/UnitsNet.NanoFramework.CoefficientOfThermalExpansion.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.CoefficientOfThermalExpansion - 6.0.0-pre019 - Units.NET CoefficientOfThermalExpansion - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds CoefficientOfThermalExpansion units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework coefficientofthermalexpansion unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/packages.config b/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/CoefficientOfThermalExpansion/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Compressibility/Compressibility.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Compressibility/Compressibility.nfproj deleted file mode 100644 index ebb1c5d80a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Compressibility/Compressibility.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {daf647be-be87-88b9-ee92-dece21fe0dff} - Library - Properties - 512 - UnitsNet - UnitsNet.Compressibility - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Compressibility/UnitsNet.NanoFramework.Compressibility.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Compressibility/UnitsNet.NanoFramework.Compressibility.nuspec deleted file mode 100644 index 2b4bcfac77..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Compressibility/UnitsNet.NanoFramework.Compressibility.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Compressibility - 6.0.0-pre019 - Units.NET Compressibility - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Compressibility units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework compressibility unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Compressibility/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Compressibility/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Compressibility/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Density/Density.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Density/Density.nfproj deleted file mode 100644 index 6504ae163a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Density/Density.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {d683a277-5892-aec2-985d-c2343725d0af} - Library - Properties - 512 - UnitsNet - UnitsNet.Density - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Density/UnitsNet.NanoFramework.Density.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Density/UnitsNet.NanoFramework.Density.nuspec deleted file mode 100644 index 7bd03fdc9b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Density/UnitsNet.NanoFramework.Density.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Density - 6.0.0-pre019 - Units.NET Density - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Density units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework density unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Density/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Density/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Density/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/DoseAreaProduct.nfproj b/UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/DoseAreaProduct.nfproj deleted file mode 100644 index a7fc062361..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/DoseAreaProduct.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {e074adae-f19a-6b69-67b0-b4fb425b39ce} - Library - Properties - 512 - UnitsNet - UnitsNet.DoseAreaProduct - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/UnitsNet.NanoFramework.DoseAreaProduct.nuspec b/UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/UnitsNet.NanoFramework.DoseAreaProduct.nuspec deleted file mode 100644 index 34d1d619bf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/UnitsNet.NanoFramework.DoseAreaProduct.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.DoseAreaProduct - 6.0.0-pre019 - Units.NET DoseAreaProduct - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds DoseAreaProduct units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework doseareaproduct unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/packages.config b/UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/DoseAreaProduct/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Duration/Duration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Duration/Duration.nfproj deleted file mode 100644 index 136d72670a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Duration/Duration.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {3c2ac54f-554c-518b-7c46-3b22d86d0e3b} - Library - Properties - 512 - UnitsNet - UnitsNet.Duration - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Duration/UnitsNet.NanoFramework.Duration.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Duration/UnitsNet.NanoFramework.Duration.nuspec deleted file mode 100644 index 5dba751301..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Duration/UnitsNet.NanoFramework.Duration.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Duration - 6.0.0-pre019 - Units.NET Duration - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Duration units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework duration unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Duration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Duration/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Duration/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/DynamicViscosity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/DynamicViscosity.nfproj deleted file mode 100644 index 53a2b83c1a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/DynamicViscosity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {5dde57f4-3f98-c4b7-47e5-65229faf1f0f} - Library - Properties - 512 - UnitsNet - UnitsNet.DynamicViscosity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/UnitsNet.NanoFramework.DynamicViscosity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/UnitsNet.NanoFramework.DynamicViscosity.nuspec deleted file mode 100644 index 7c2c62cac3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/UnitsNet.NanoFramework.DynamicViscosity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.DynamicViscosity - 6.0.0-pre019 - Units.NET DynamicViscosity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds DynamicViscosity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework dynamicviscosity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/DynamicViscosity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/ElectricAdmittance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/ElectricAdmittance.nfproj deleted file mode 100644 index 40a40885d9..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/ElectricAdmittance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {2ee55c63-d077-25dd-f076-857adfe08080} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricAdmittance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/UnitsNet.NanoFramework.ElectricAdmittance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/UnitsNet.NanoFramework.ElectricAdmittance.nuspec deleted file mode 100644 index 479273643c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/UnitsNet.NanoFramework.ElectricAdmittance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricAdmittance - 6.0.0-pre019 - Units.NET ElectricAdmittance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricAdmittance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricadmittance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricAdmittance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/ElectricApparentEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/ElectricApparentEnergy.nfproj deleted file mode 100644 index ea49fc048a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/ElectricApparentEnergy.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {f22b7bcc-5a8d-3a02-d81c-caf6c9c44d61} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricApparentEnergy - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/UnitsNet.NanoFramework.ElectricApparentEnergy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/UnitsNet.NanoFramework.ElectricApparentEnergy.nuspec deleted file mode 100644 index 48ea050094..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/UnitsNet.NanoFramework.ElectricApparentEnergy.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricApparentEnergy - 6.0.0-pre019 - Units.NET ElectricApparentEnergy - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricApparentEnergy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricapparentenergy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentEnergy/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/ElectricApparentPower.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/ElectricApparentPower.nfproj deleted file mode 100644 index fef4baa953..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/ElectricApparentPower.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {b7a9eb2a-4b0e-548c-2370-a33ee63b21cc} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricApparentPower - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/UnitsNet.NanoFramework.ElectricApparentPower.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/UnitsNet.NanoFramework.ElectricApparentPower.nuspec deleted file mode 100644 index 9c32b2704a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/UnitsNet.NanoFramework.ElectricApparentPower.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricApparentPower - 6.0.0-pre019 - Units.NET ElectricApparentPower - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricApparentPower units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricapparentpower unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricApparentPower/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/ElectricCapacitance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/ElectricCapacitance.nfproj deleted file mode 100644 index 61417e0504..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/ElectricCapacitance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {10e8cf6b-7fec-911f-770d-e3641296ac89} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricCapacitance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/UnitsNet.NanoFramework.ElectricCapacitance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/UnitsNet.NanoFramework.ElectricCapacitance.nuspec deleted file mode 100644 index 4da82bf776..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/UnitsNet.NanoFramework.ElectricCapacitance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricCapacitance - 6.0.0-pre019 - Units.NET ElectricCapacitance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricCapacitance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electriccapacitance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCapacitance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/ElectricCharge.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/ElectricCharge.nfproj deleted file mode 100644 index bd0c8832b0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/ElectricCharge.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {f4286cfc-484b-8466-8efa-1111696babb9} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricCharge - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/UnitsNet.NanoFramework.ElectricCharge.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/UnitsNet.NanoFramework.ElectricCharge.nuspec deleted file mode 100644 index e0d66da5f1..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/UnitsNet.NanoFramework.ElectricCharge.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricCharge - 6.0.0-pre019 - Units.NET ElectricCharge - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricCharge units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electriccharge unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCharge/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/ElectricChargeDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/ElectricChargeDensity.nfproj deleted file mode 100644 index 71ce0c440a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/ElectricChargeDensity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {b1567c85-ad77-c283-9165-777ad0e9a2eb} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricChargeDensity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/UnitsNet.NanoFramework.ElectricChargeDensity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/UnitsNet.NanoFramework.ElectricChargeDensity.nuspec deleted file mode 100644 index ff3ad6713e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/UnitsNet.NanoFramework.ElectricChargeDensity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricChargeDensity - 6.0.0-pre019 - Units.NET ElectricChargeDensity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricChargeDensity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricchargedensity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricChargeDensity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/ElectricConductance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/ElectricConductance.nfproj deleted file mode 100644 index cbfbd2043d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/ElectricConductance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {fcd3dfb2-9ee2-ad22-0e1f-4cddd575792a} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricConductance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/UnitsNet.NanoFramework.ElectricConductance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/UnitsNet.NanoFramework.ElectricConductance.nuspec deleted file mode 100644 index 9d2136ac79..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/UnitsNet.NanoFramework.ElectricConductance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricConductance - 6.0.0-pre019 - Units.NET ElectricConductance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricConductance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricconductance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/ElectricConductivity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/ElectricConductivity.nfproj deleted file mode 100644 index 6587be2ba4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/ElectricConductivity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {f420eccc-b12d-72e4-2ad2-f93054eeec30} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricConductivity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/UnitsNet.NanoFramework.ElectricConductivity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/UnitsNet.NanoFramework.ElectricConductivity.nuspec deleted file mode 100644 index 90de95922b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/UnitsNet.NanoFramework.ElectricConductivity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricConductivity - 6.0.0-pre019 - Units.NET ElectricConductivity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricConductivity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricconductivity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricConductivity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/ElectricCurrent.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/ElectricCurrent.nfproj deleted file mode 100644 index d1f437921d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/ElectricCurrent.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {55160a70-69b2-4144-b974-b64d78bd50e0} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricCurrent - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/UnitsNet.NanoFramework.ElectricCurrent.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/UnitsNet.NanoFramework.ElectricCurrent.nuspec deleted file mode 100644 index f1dd30ef96..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/UnitsNet.NanoFramework.ElectricCurrent.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricCurrent - 6.0.0-pre019 - Units.NET ElectricCurrent - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricCurrent units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electriccurrent unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrent/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/ElectricCurrentDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/ElectricCurrentDensity.nfproj deleted file mode 100644 index 6a9d434df8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/ElectricCurrentDensity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {8beda85e-3d20-5926-c060-f92913f1192e} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricCurrentDensity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/UnitsNet.NanoFramework.ElectricCurrentDensity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/UnitsNet.NanoFramework.ElectricCurrentDensity.nuspec deleted file mode 100644 index fc7d8c8aeb..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/UnitsNet.NanoFramework.ElectricCurrentDensity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricCurrentDensity - 6.0.0-pre019 - Units.NET ElectricCurrentDensity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricCurrentDensity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electriccurrentdensity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentDensity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/ElectricCurrentGradient.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/ElectricCurrentGradient.nfproj deleted file mode 100644 index eb6cce87c4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/ElectricCurrentGradient.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {29df066c-c160-cd60-b10f-23a0c3bb8457} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricCurrentGradient - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/UnitsNet.NanoFramework.ElectricCurrentGradient.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/UnitsNet.NanoFramework.ElectricCurrentGradient.nuspec deleted file mode 100644 index 2b1196bfe1..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/UnitsNet.NanoFramework.ElectricCurrentGradient.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricCurrentGradient - 6.0.0-pre019 - Units.NET ElectricCurrentGradient - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricCurrentGradient units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electriccurrentgradient unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricCurrentGradient/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/ElectricField.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricField/ElectricField.nfproj deleted file mode 100644 index 1c29c5ce03..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/ElectricField.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {635581a6-f954-d0e4-9c68-02c1725e49d2} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricField - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/UnitsNet.NanoFramework.ElectricField.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricField/UnitsNet.NanoFramework.ElectricField.nuspec deleted file mode 100644 index 0a6fab1b8b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/UnitsNet.NanoFramework.ElectricField.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricField - 6.0.0-pre019 - Units.NET ElectricField - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricField units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricfield unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricField/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricField/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/ElectricImpedance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/ElectricImpedance.nfproj deleted file mode 100644 index e2416e308f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/ElectricImpedance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {23a79010-5c1a-9120-0992-a69c8dd80015} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricImpedance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/UnitsNet.NanoFramework.ElectricImpedance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/UnitsNet.NanoFramework.ElectricImpedance.nuspec deleted file mode 100644 index fd2c7df483..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/UnitsNet.NanoFramework.ElectricImpedance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricImpedance - 6.0.0-pre019 - Units.NET ElectricImpedance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricImpedance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricimpedance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricImpedance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/ElectricInductance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/ElectricInductance.nfproj deleted file mode 100644 index c6619bfc35..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/ElectricInductance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {76bf8a97-e573-a5b5-286f-04ca7e00f8e9} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricInductance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/UnitsNet.NanoFramework.ElectricInductance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/UnitsNet.NanoFramework.ElectricInductance.nuspec deleted file mode 100644 index 0179c50409..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/UnitsNet.NanoFramework.ElectricInductance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricInductance - 6.0.0-pre019 - Units.NET ElectricInductance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricInductance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricinductance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricInductance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/ElectricPotential.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/ElectricPotential.nfproj deleted file mode 100644 index 5589dc359d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/ElectricPotential.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {66c94dc2-e546-9737-a45b-4bc60fe0e536} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricPotential - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/UnitsNet.NanoFramework.ElectricPotential.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/UnitsNet.NanoFramework.ElectricPotential.nuspec deleted file mode 100644 index b9787881d9..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/UnitsNet.NanoFramework.ElectricPotential.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricPotential - 6.0.0-pre019 - Units.NET ElectricPotential - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricPotential units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricpotential unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotential/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/ElectricPotentialChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/ElectricPotentialChangeRate.nfproj deleted file mode 100644 index 7cf75a41be..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/ElectricPotentialChangeRate.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {679517ca-9d0b-0ec2-35ae-95230281cfba} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricPotentialChangeRate - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/UnitsNet.NanoFramework.ElectricPotentialChangeRate.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/UnitsNet.NanoFramework.ElectricPotentialChangeRate.nuspec deleted file mode 100644 index 5c5dd4b3f8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/UnitsNet.NanoFramework.ElectricPotentialChangeRate.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricPotentialChangeRate - 6.0.0-pre019 - Units.NET ElectricPotentialChangeRate - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricPotentialChangeRate units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricpotentialchangerate unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricPotentialChangeRate/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/ElectricReactance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/ElectricReactance.nfproj deleted file mode 100644 index 137639125f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/ElectricReactance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {e3d3c1e3-aaa3-5d40-472e-ae837457cf73} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricReactance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/UnitsNet.NanoFramework.ElectricReactance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/UnitsNet.NanoFramework.ElectricReactance.nuspec deleted file mode 100644 index 7fea99f11f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/UnitsNet.NanoFramework.ElectricReactance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricReactance - 6.0.0-pre019 - Units.NET ElectricReactance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricReactance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricreactance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/ElectricReactiveEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/ElectricReactiveEnergy.nfproj deleted file mode 100644 index c159133d3b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/ElectricReactiveEnergy.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {9f892c4e-26c2-1420-a73c-08138c8f6ca2} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricReactiveEnergy - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/UnitsNet.NanoFramework.ElectricReactiveEnergy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/UnitsNet.NanoFramework.ElectricReactiveEnergy.nuspec deleted file mode 100644 index 15f4e17249..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/UnitsNet.NanoFramework.ElectricReactiveEnergy.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricReactiveEnergy - 6.0.0-pre019 - Units.NET ElectricReactiveEnergy - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricReactiveEnergy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricreactiveenergy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactiveEnergy/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/ElectricReactivePower.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/ElectricReactivePower.nfproj deleted file mode 100644 index f8385b3418..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/ElectricReactivePower.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {6e5b2ba2-7712-0f4f-d2bf-2624bb877dbe} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricReactivePower - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/UnitsNet.NanoFramework.ElectricReactivePower.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/UnitsNet.NanoFramework.ElectricReactivePower.nuspec deleted file mode 100644 index f326d52c70..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/UnitsNet.NanoFramework.ElectricReactivePower.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricReactivePower - 6.0.0-pre019 - Units.NET ElectricReactivePower - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricReactivePower units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricreactivepower unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricReactivePower/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/ElectricResistance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/ElectricResistance.nfproj deleted file mode 100644 index 76f6a402bb..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/ElectricResistance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {78d59e90-3339-54d6-3803-f68623b72eff} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricResistance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/UnitsNet.NanoFramework.ElectricResistance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/UnitsNet.NanoFramework.ElectricResistance.nuspec deleted file mode 100644 index 66cd833352..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/UnitsNet.NanoFramework.ElectricResistance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricResistance - 6.0.0-pre019 - Units.NET ElectricResistance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricResistance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricresistance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/ElectricResistivity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/ElectricResistivity.nfproj deleted file mode 100644 index cd32dec60c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/ElectricResistivity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {6a4a0f45-c2b4-6be4-e44a-e78d3282359f} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricResistivity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/UnitsNet.NanoFramework.ElectricResistivity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/UnitsNet.NanoFramework.ElectricResistivity.nuspec deleted file mode 100644 index 832ac0689d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/UnitsNet.NanoFramework.ElectricResistivity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricResistivity - 6.0.0-pre019 - Units.NET ElectricResistivity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricResistivity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricresistivity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricResistivity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/ElectricSurfaceChargeDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/ElectricSurfaceChargeDensity.nfproj deleted file mode 100644 index 3c92cdc31d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/ElectricSurfaceChargeDensity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {006e161d-aae1-2dd1-5b94-ebd45d31f50a} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricSurfaceChargeDensity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/UnitsNet.NanoFramework.ElectricSurfaceChargeDensity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/UnitsNet.NanoFramework.ElectricSurfaceChargeDensity.nuspec deleted file mode 100644 index 8c5f699bde..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/UnitsNet.NanoFramework.ElectricSurfaceChargeDensity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricSurfaceChargeDensity - 6.0.0-pre019 - Units.NET ElectricSurfaceChargeDensity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricSurfaceChargeDensity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricsurfacechargedensity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricSurfaceChargeDensity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/ElectricSusceptance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/ElectricSusceptance.nfproj deleted file mode 100644 index 09618e3e01..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/ElectricSusceptance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {544c006b-f7de-21a9-a1b4-8df710e184c8} - Library - Properties - 512 - UnitsNet - UnitsNet.ElectricSusceptance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/UnitsNet.NanoFramework.ElectricSusceptance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/UnitsNet.NanoFramework.ElectricSusceptance.nuspec deleted file mode 100644 index fdc65ddcf1..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/UnitsNet.NanoFramework.ElectricSusceptance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ElectricSusceptance - 6.0.0-pre019 - Units.NET ElectricSusceptance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ElectricSusceptance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework electricsusceptance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ElectricSusceptance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Energy/Energy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Energy/Energy.nfproj deleted file mode 100644 index e69dea0a99..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Energy/Energy.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {f7d3fcf2-cadc-19dd-4c4c-5a54a5102c95} - Library - Properties - 512 - UnitsNet - UnitsNet.Energy - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Energy/UnitsNet.NanoFramework.Energy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Energy/UnitsNet.NanoFramework.Energy.nuspec deleted file mode 100644 index 975243134e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Energy/UnitsNet.NanoFramework.Energy.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Energy - 6.0.0-pre019 - Units.NET Energy - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Energy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework energy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Energy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Energy/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Energy/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/EnergyDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/EnergyDensity.nfproj deleted file mode 100644 index b3cd35bc0f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/EnergyDensity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {c5025916-5039-97c2-b450-af1420f5fb08} - Library - Properties - 512 - UnitsNet - UnitsNet.EnergyDensity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/UnitsNet.NanoFramework.EnergyDensity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/UnitsNet.NanoFramework.EnergyDensity.nuspec deleted file mode 100644 index f7d9aaa2d3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/UnitsNet.NanoFramework.EnergyDensity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.EnergyDensity - 6.0.0-pre019 - Units.NET EnergyDensity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds EnergyDensity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework energydensity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/EnergyDensity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Entropy/Entropy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Entropy/Entropy.nfproj deleted file mode 100644 index 56edc687f8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Entropy/Entropy.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {816884bb-a5f6-5c07-967b-bb8f21d724b7} - Library - Properties - 512 - UnitsNet - UnitsNet.Entropy - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Entropy/UnitsNet.NanoFramework.Entropy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Entropy/UnitsNet.NanoFramework.Entropy.nuspec deleted file mode 100644 index 139de8f0c3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Entropy/UnitsNet.NanoFramework.Entropy.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Entropy - 6.0.0-pre019 - Units.NET Entropy - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Entropy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework entropy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Entropy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Entropy/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Entropy/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/FluidResistance/FluidResistance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/FluidResistance/FluidResistance.nfproj deleted file mode 100644 index 6fae96c9b0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/FluidResistance/FluidResistance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {d19281dc-72f6-62a9-18d5-b845d6fd8d99} - Library - Properties - 512 - UnitsNet - UnitsNet.FluidResistance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/FluidResistance/UnitsNet.NanoFramework.FluidResistance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/FluidResistance/UnitsNet.NanoFramework.FluidResistance.nuspec deleted file mode 100644 index 3ef997b15a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/FluidResistance/UnitsNet.NanoFramework.FluidResistance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.FluidResistance - 6.0.0-pre019 - Units.NET FluidResistance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds FluidResistance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework fluidresistance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/FluidResistance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/FluidResistance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/FluidResistance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Force/Force.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Force/Force.nfproj deleted file mode 100644 index c946bc8867..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Force/Force.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {5517dacf-b1ff-6515-e5b6-b5081f92f407} - Library - Properties - 512 - UnitsNet - UnitsNet.Force - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Force/UnitsNet.NanoFramework.Force.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Force/UnitsNet.NanoFramework.Force.nuspec deleted file mode 100644 index f6e61e2283..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Force/UnitsNet.NanoFramework.Force.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Force - 6.0.0-pre019 - Units.NET Force - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Force units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework force unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Force/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Force/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Force/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/ForceChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/ForceChangeRate.nfproj deleted file mode 100644 index 77415e3855..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/ForceChangeRate.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {97ad732d-4ce5-2027-aabc-844002d29c23} - Library - Properties - 512 - UnitsNet - UnitsNet.ForceChangeRate - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/UnitsNet.NanoFramework.ForceChangeRate.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/UnitsNet.NanoFramework.ForceChangeRate.nuspec deleted file mode 100644 index 34b35116c4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/UnitsNet.NanoFramework.ForceChangeRate.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ForceChangeRate - 6.0.0-pre019 - Units.NET ForceChangeRate - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ForceChangeRate units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework forcechangerate unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ForceChangeRate/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/ForcePerLength.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/ForcePerLength.nfproj deleted file mode 100644 index cfff78dff5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/ForcePerLength.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {6b975d30-c5dd-f1fd-9d0c-4d56ecdf9b25} - Library - Properties - 512 - UnitsNet - UnitsNet.ForcePerLength - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/UnitsNet.NanoFramework.ForcePerLength.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/UnitsNet.NanoFramework.ForcePerLength.nuspec deleted file mode 100644 index c2f0ff0c08..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/UnitsNet.NanoFramework.ForcePerLength.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ForcePerLength - 6.0.0-pre019 - Units.NET ForcePerLength - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ForcePerLength units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework forceperlength unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ForcePerLength/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Frequency/Frequency.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Frequency/Frequency.nfproj deleted file mode 100644 index 7bcf739711..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Frequency/Frequency.nfproj +++ /dev/null @@ -1,47 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {8d66b616-3198-b8a1-d2d0-03496db6a62b} - Library - Properties - 512 - UnitsNet - UnitsNet.Frequency - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - ..\packages\nanoFramework.System.Math.1.5.43\lib\System.Math.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Frequency/UnitsNet.NanoFramework.Frequency.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Frequency/UnitsNet.NanoFramework.Frequency.nuspec deleted file mode 100644 index 4e1191a636..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Frequency/UnitsNet.NanoFramework.Frequency.nuspec +++ /dev/null @@ -1,27 +0,0 @@ - - - - UnitsNet.nanoFramework.Frequency - 6.0.0-pre019 - Units.NET Frequency - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Frequency units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework frequency unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Frequency/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Frequency/packages.config deleted file mode 100644 index ac11548cd6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Frequency/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/FuelEfficiency.nfproj b/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/FuelEfficiency.nfproj deleted file mode 100644 index c40c99e01c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/FuelEfficiency.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {6e68ff9b-3947-d706-3ad7-f9237a67c874} - Library - Properties - 512 - UnitsNet - UnitsNet.FuelEfficiency - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/UnitsNet.NanoFramework.FuelEfficiency.nuspec b/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/UnitsNet.NanoFramework.FuelEfficiency.nuspec deleted file mode 100644 index f1775076bb..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/UnitsNet.NanoFramework.FuelEfficiency.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.FuelEfficiency - 6.0.0-pre019 - Units.NET FuelEfficiency - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds FuelEfficiency units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework fuelefficiency unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/packages.config b/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/FuelEfficiency/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/HeatFlux.nfproj b/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/HeatFlux.nfproj deleted file mode 100644 index a0bedc7a33..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/HeatFlux.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {2b132458-96e5-72bf-673f-dda4a7fd514b} - Library - Properties - 512 - UnitsNet - UnitsNet.HeatFlux - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/UnitsNet.NanoFramework.HeatFlux.nuspec b/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/UnitsNet.NanoFramework.HeatFlux.nuspec deleted file mode 100644 index 7741a47c62..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/UnitsNet.NanoFramework.HeatFlux.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.HeatFlux - 6.0.0-pre019 - Units.NET HeatFlux - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds HeatFlux units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework heatflux unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/packages.config b/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/HeatFlux/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/HeatTransferCoefficient.nfproj b/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/HeatTransferCoefficient.nfproj deleted file mode 100644 index 845c91293c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/HeatTransferCoefficient.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {3ede821e-ee76-967e-94d7-5b1d1239c8dd} - Library - Properties - 512 - UnitsNet - UnitsNet.HeatTransferCoefficient - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/UnitsNet.NanoFramework.HeatTransferCoefficient.nuspec b/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/UnitsNet.NanoFramework.HeatTransferCoefficient.nuspec deleted file mode 100644 index 969a889436..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/UnitsNet.NanoFramework.HeatTransferCoefficient.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.HeatTransferCoefficient - 6.0.0-pre019 - Units.NET HeatTransferCoefficient - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds HeatTransferCoefficient units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework heattransfercoefficient unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/packages.config b/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/HeatTransferCoefficient/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/Illuminance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Illuminance/Illuminance.nfproj deleted file mode 100644 index f0a6385fdd..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/Illuminance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {d846582b-8ae3-9779-01ea-7210b5330cfd} - Library - Properties - 512 - UnitsNet - UnitsNet.Illuminance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/UnitsNet.NanoFramework.Illuminance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Illuminance/UnitsNet.NanoFramework.Illuminance.nuspec deleted file mode 100644 index fb5e461167..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/UnitsNet.NanoFramework.Illuminance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Illuminance - 6.0.0-pre019 - Units.NET Illuminance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Illuminance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework illuminance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Illuminance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Illuminance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Impulse/Impulse.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Impulse/Impulse.nfproj deleted file mode 100644 index d07e0a0535..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Impulse/Impulse.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {d8d4e4e8-1dc8-0170-5e3c-18610853bd87} - Library - Properties - 512 - UnitsNet - UnitsNet.Impulse - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Impulse/UnitsNet.NanoFramework.Impulse.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Impulse/UnitsNet.NanoFramework.Impulse.nuspec deleted file mode 100644 index 2587bf34f6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Impulse/UnitsNet.NanoFramework.Impulse.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Impulse - 6.0.0-pre019 - Units.NET Impulse - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Impulse units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework impulse unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Impulse/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Impulse/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Impulse/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Information/Information.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Information/Information.nfproj deleted file mode 100644 index 78af2c9fed..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Information/Information.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {12bab01c-845f-82c9-b00b-a3639cdfb2ce} - Library - Properties - 512 - UnitsNet - UnitsNet.Information - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Information/UnitsNet.NanoFramework.Information.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Information/UnitsNet.NanoFramework.Information.nuspec deleted file mode 100644 index 20094bcc3b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Information/UnitsNet.NanoFramework.Information.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Information - 6.0.0-pre019 - Units.NET Information - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Information units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework information unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Information/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Information/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Information/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/Irradiance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Irradiance/Irradiance.nfproj deleted file mode 100644 index ce02ea1bbf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/Irradiance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {5f9c09c7-9e32-8927-7a5d-90001ceffc69} - Library - Properties - 512 - UnitsNet - UnitsNet.Irradiance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/UnitsNet.NanoFramework.Irradiance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Irradiance/UnitsNet.NanoFramework.Irradiance.nuspec deleted file mode 100644 index dff4ecf0c0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/UnitsNet.NanoFramework.Irradiance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Irradiance - 6.0.0-pre019 - Units.NET Irradiance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Irradiance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework irradiance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Irradiance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Irradiance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/Irradiation.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Irradiation/Irradiation.nfproj deleted file mode 100644 index 117c66f673..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/Irradiation.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {b545726f-7a83-3c78-2b55-6a709c5a6d00} - Library - Properties - 512 - UnitsNet - UnitsNet.Irradiation - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/UnitsNet.NanoFramework.Irradiation.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Irradiation/UnitsNet.NanoFramework.Irradiation.nuspec deleted file mode 100644 index f37f0e8cb5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/UnitsNet.NanoFramework.Irradiation.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Irradiation - 6.0.0-pre019 - Units.NET Irradiation - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Irradiation units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework irradiation unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Irradiation/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Irradiation/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Jerk/Jerk.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Jerk/Jerk.nfproj deleted file mode 100644 index ea42f6f028..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Jerk/Jerk.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {8540cfb1-fe4a-dcc3-a70e-840262803cfc} - Library - Properties - 512 - UnitsNet - UnitsNet.Jerk - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Jerk/UnitsNet.NanoFramework.Jerk.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Jerk/UnitsNet.NanoFramework.Jerk.nuspec deleted file mode 100644 index 25cdda13da..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Jerk/UnitsNet.NanoFramework.Jerk.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Jerk - 6.0.0-pre019 - Units.NET Jerk - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Jerk units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework jerk unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Jerk/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Jerk/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Jerk/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/KinematicViscosity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/KinematicViscosity.nfproj deleted file mode 100644 index 35fa23bf26..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/KinematicViscosity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {733e533d-9ff2-4c72-3da9-200f758dc6e3} - Library - Properties - 512 - UnitsNet - UnitsNet.KinematicViscosity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/UnitsNet.NanoFramework.KinematicViscosity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/UnitsNet.NanoFramework.KinematicViscosity.nuspec deleted file mode 100644 index d93a1dc4a7..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/UnitsNet.NanoFramework.KinematicViscosity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.KinematicViscosity - 6.0.0-pre019 - Units.NET KinematicViscosity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds KinematicViscosity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework kinematicviscosity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/KinematicViscosity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LeakRate/LeakRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LeakRate/LeakRate.nfproj deleted file mode 100644 index 08304711aa..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LeakRate/LeakRate.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {ff162d83-3229-2000-71ed-08999160dca3} - Library - Properties - 512 - UnitsNet - UnitsNet.LeakRate - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LeakRate/UnitsNet.NanoFramework.LeakRate.nuspec b/UnitsNet.NanoFramework/GeneratedCode/LeakRate/UnitsNet.NanoFramework.LeakRate.nuspec deleted file mode 100644 index 14f6ac3dfd..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LeakRate/UnitsNet.NanoFramework.LeakRate.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.LeakRate - 6.0.0-pre019 - Units.NET LeakRate - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds LeakRate units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework leakrate unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LeakRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LeakRate/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LeakRate/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Length/Length.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Length/Length.nfproj deleted file mode 100644 index 6c8cc1f31e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Length/Length.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {0556c9ad-b3a1-730c-959f-baf21e60f972} - Library - Properties - 512 - UnitsNet - UnitsNet.Length - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Length/UnitsNet.NanoFramework.Length.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Length/UnitsNet.NanoFramework.Length.nuspec deleted file mode 100644 index a476fcd6e3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Length/UnitsNet.NanoFramework.Length.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Length - 6.0.0-pre019 - Units.NET Length - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Length units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework length unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Length/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Length/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Length/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Level/Level.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Level/Level.nfproj deleted file mode 100644 index 8dde41ee0e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Level/Level.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {5c300917-a99f-d166-4f56-f0da3c3614bb} - Library - Properties - 512 - UnitsNet - UnitsNet.Level - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Level/UnitsNet.NanoFramework.Level.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Level/UnitsNet.NanoFramework.Level.nuspec deleted file mode 100644 index 09ebf33d17..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Level/UnitsNet.NanoFramework.Level.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Level - 6.0.0-pre019 - Units.NET Level - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Level units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework level unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Level/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Level/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Level/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/LinearDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/LinearDensity.nfproj deleted file mode 100644 index ee9ffc2cf3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/LinearDensity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {ab414094-9582-3357-d0e9-20b153a1b54c} - Library - Properties - 512 - UnitsNet - UnitsNet.LinearDensity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/UnitsNet.NanoFramework.LinearDensity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/UnitsNet.NanoFramework.LinearDensity.nuspec deleted file mode 100644 index 3405e3d049..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/UnitsNet.NanoFramework.LinearDensity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.LinearDensity - 6.0.0-pre019 - Units.NET LinearDensity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds LinearDensity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework lineardensity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LinearDensity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/LinearPowerDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/LinearPowerDensity.nfproj deleted file mode 100644 index 78306a5cd9..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/LinearPowerDensity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {8823a9ee-673a-e7d4-3c0a-bae61a262388} - Library - Properties - 512 - UnitsNet - UnitsNet.LinearPowerDensity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/UnitsNet.NanoFramework.LinearPowerDensity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/UnitsNet.NanoFramework.LinearPowerDensity.nuspec deleted file mode 100644 index 8f5a29c692..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/UnitsNet.NanoFramework.LinearPowerDensity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.LinearPowerDensity - 6.0.0-pre019 - Units.NET LinearPowerDensity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds LinearPowerDensity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework linearpowerdensity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LinearPowerDensity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Luminance/Luminance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Luminance/Luminance.nfproj deleted file mode 100644 index 8c9e3eb890..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Luminance/Luminance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {cbded274-6b9b-a113-d56f-00b38006cc84} - Library - Properties - 512 - UnitsNet - UnitsNet.Luminance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Luminance/UnitsNet.NanoFramework.Luminance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Luminance/UnitsNet.NanoFramework.Luminance.nuspec deleted file mode 100644 index f8056b97fe..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Luminance/UnitsNet.NanoFramework.Luminance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Luminance - 6.0.0-pre019 - Units.NET Luminance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Luminance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework luminance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Luminance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Luminance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Luminance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/Luminosity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Luminosity/Luminosity.nfproj deleted file mode 100644 index bb88ca9e48..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/Luminosity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {fe30ed04-094f-5005-b0aa-1b3623db60b2} - Library - Properties - 512 - UnitsNet - UnitsNet.Luminosity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/UnitsNet.NanoFramework.Luminosity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Luminosity/UnitsNet.NanoFramework.Luminosity.nuspec deleted file mode 100644 index 8057f8b4c4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/UnitsNet.NanoFramework.Luminosity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Luminosity - 6.0.0-pre019 - Units.NET Luminosity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Luminosity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework luminosity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Luminosity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Luminosity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/LuminousFlux.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/LuminousFlux.nfproj deleted file mode 100644 index 09471e380f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/LuminousFlux.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {a38e4da2-f05f-aa6f-82f1-56cd2e062d96} - Library - Properties - 512 - UnitsNet - UnitsNet.LuminousFlux - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/UnitsNet.NanoFramework.LuminousFlux.nuspec b/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/UnitsNet.NanoFramework.LuminousFlux.nuspec deleted file mode 100644 index 1fa68db612..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/UnitsNet.NanoFramework.LuminousFlux.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.LuminousFlux - 6.0.0-pre019 - Units.NET LuminousFlux - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds LuminousFlux units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework luminousflux unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LuminousFlux/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/LuminousIntensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/LuminousIntensity.nfproj deleted file mode 100644 index c154d235b2..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/LuminousIntensity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {733f9598-101b-936b-b081-2805dd793091} - Library - Properties - 512 - UnitsNet - UnitsNet.LuminousIntensity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/UnitsNet.NanoFramework.LuminousIntensity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/UnitsNet.NanoFramework.LuminousIntensity.nuspec deleted file mode 100644 index f1ccd5e7a5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/UnitsNet.NanoFramework.LuminousIntensity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.LuminousIntensity - 6.0.0-pre019 - Units.NET LuminousIntensity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds LuminousIntensity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework luminousintensity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/LuminousIntensity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/MagneticField.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MagneticField/MagneticField.nfproj deleted file mode 100644 index afa5742359..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/MagneticField.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {809c4afa-d014-471b-518b-4fd01cb7c808} - Library - Properties - 512 - UnitsNet - UnitsNet.MagneticField - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/UnitsNet.NanoFramework.MagneticField.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MagneticField/UnitsNet.NanoFramework.MagneticField.nuspec deleted file mode 100644 index cfbb4fccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/UnitsNet.NanoFramework.MagneticField.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MagneticField - 6.0.0-pre019 - Units.NET MagneticField - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MagneticField units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework magneticfield unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MagneticField/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MagneticField/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/MagneticFlux.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/MagneticFlux.nfproj deleted file mode 100644 index df2191383d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/MagneticFlux.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {f0c5342b-fb95-48a4-029f-7aa631ce06f1} - Library - Properties - 512 - UnitsNet - UnitsNet.MagneticFlux - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/UnitsNet.NanoFramework.MagneticFlux.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/UnitsNet.NanoFramework.MagneticFlux.nuspec deleted file mode 100644 index 4efcb0c206..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/UnitsNet.NanoFramework.MagneticFlux.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MagneticFlux - 6.0.0-pre019 - Units.NET MagneticFlux - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MagneticFlux units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework magneticflux unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MagneticFlux/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/Magnetization.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Magnetization/Magnetization.nfproj deleted file mode 100644 index 8d43ca4a84..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/Magnetization.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {3ea3301e-d3de-6979-f1d7-58352998951c} - Library - Properties - 512 - UnitsNet - UnitsNet.Magnetization - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/UnitsNet.NanoFramework.Magnetization.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Magnetization/UnitsNet.NanoFramework.Magnetization.nuspec deleted file mode 100644 index 97a30315ad..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/UnitsNet.NanoFramework.Magnetization.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Magnetization - 6.0.0-pre019 - Units.NET Magnetization - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Magnetization units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework magnetization unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Magnetization/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Magnetization/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Mass/Mass.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Mass/Mass.nfproj deleted file mode 100644 index 48eee658c6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Mass/Mass.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {f8c5a010-c353-31da-cadc-b56186be374f} - Library - Properties - 512 - UnitsNet - UnitsNet.Mass - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Mass/UnitsNet.NanoFramework.Mass.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Mass/UnitsNet.NanoFramework.Mass.nuspec deleted file mode 100644 index e70607658f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Mass/UnitsNet.NanoFramework.Mass.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Mass - 6.0.0-pre019 - Units.NET Mass - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Mass units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework mass unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Mass/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Mass/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Mass/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/MassConcentration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/MassConcentration.nfproj deleted file mode 100644 index dc87caea11..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/MassConcentration.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {0b1482c2-a3b1-6207-b73f-a07f46718b65} - Library - Properties - 512 - UnitsNet - UnitsNet.MassConcentration - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/UnitsNet.NanoFramework.MassConcentration.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/UnitsNet.NanoFramework.MassConcentration.nuspec deleted file mode 100644 index ff25c23b61..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/UnitsNet.NanoFramework.MassConcentration.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MassConcentration - 6.0.0-pre019 - Units.NET MassConcentration - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MassConcentration units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework massconcentration unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassConcentration/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/MassFlow.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassFlow/MassFlow.nfproj deleted file mode 100644 index 7c7373e41a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/MassFlow.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {a0821347-be46-c587-b61d-5152c578048d} - Library - Properties - 512 - UnitsNet - UnitsNet.MassFlow - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/UnitsNet.NanoFramework.MassFlow.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MassFlow/UnitsNet.NanoFramework.MassFlow.nuspec deleted file mode 100644 index 0802b96cb3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/UnitsNet.NanoFramework.MassFlow.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MassFlow - 6.0.0-pre019 - Units.NET MassFlow - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MassFlow units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework massflow unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassFlow/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassFlow/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/MassFlux.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassFlux/MassFlux.nfproj deleted file mode 100644 index d957a14c66..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/MassFlux.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {15622f39-b4c5-7e66-57bc-31900b6065c8} - Library - Properties - 512 - UnitsNet - UnitsNet.MassFlux - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/UnitsNet.NanoFramework.MassFlux.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MassFlux/UnitsNet.NanoFramework.MassFlux.nuspec deleted file mode 100644 index 666819f5d4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/UnitsNet.NanoFramework.MassFlux.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MassFlux - 6.0.0-pre019 - Units.NET MassFlux - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MassFlux units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework massflux unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassFlux/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassFlux/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/MassFraction.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassFraction/MassFraction.nfproj deleted file mode 100644 index 400e772446..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/MassFraction.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {db140d08-4769-dc51-8809-a9222b830ef4} - Library - Properties - 512 - UnitsNet - UnitsNet.MassFraction - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/UnitsNet.NanoFramework.MassFraction.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MassFraction/UnitsNet.NanoFramework.MassFraction.nuspec deleted file mode 100644 index 396693476f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/UnitsNet.NanoFramework.MassFraction.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MassFraction - 6.0.0-pre019 - Units.NET MassFraction - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MassFraction units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework massfraction unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassFraction/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassFraction/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/MassMomentOfInertia.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/MassMomentOfInertia.nfproj deleted file mode 100644 index acc7dab6b2..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/MassMomentOfInertia.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {6218c061-3905-79b2-d3bc-bb7b8fc77a69} - Library - Properties - 512 - UnitsNet - UnitsNet.MassMomentOfInertia - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/UnitsNet.NanoFramework.MassMomentOfInertia.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/UnitsNet.NanoFramework.MassMomentOfInertia.nuspec deleted file mode 100644 index 5a5a038833..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/UnitsNet.NanoFramework.MassMomentOfInertia.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MassMomentOfInertia - 6.0.0-pre019 - Units.NET MassMomentOfInertia - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MassMomentOfInertia units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework massmomentofinertia unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MassMomentOfInertia/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Molality/Molality.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Molality/Molality.nfproj deleted file mode 100644 index 0a503cfec7..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Molality/Molality.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {589b202c-e638-5c93-fefe-e1e3bab4a493} - Library - Properties - 512 - UnitsNet - UnitsNet.Molality - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Molality/UnitsNet.NanoFramework.Molality.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Molality/UnitsNet.NanoFramework.Molality.nuspec deleted file mode 100644 index f188c19926..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Molality/UnitsNet.NanoFramework.Molality.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Molality - 6.0.0-pre019 - Units.NET Molality - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Molality units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework molality unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Molality/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Molality/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Molality/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/MolarEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/MolarEnergy.nfproj deleted file mode 100644 index 232a3e819b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/MolarEnergy.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {9b77d4e0-863d-4a74-c30a-56f7b2bb7cb7} - Library - Properties - 512 - UnitsNet - UnitsNet.MolarEnergy - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/UnitsNet.NanoFramework.MolarEnergy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/UnitsNet.NanoFramework.MolarEnergy.nuspec deleted file mode 100644 index ca9950505a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/UnitsNet.NanoFramework.MolarEnergy.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MolarEnergy - 6.0.0-pre019 - Units.NET MolarEnergy - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MolarEnergy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework molarenergy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarEnergy/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/MolarEntropy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/MolarEntropy.nfproj deleted file mode 100644 index 19cd8579e3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/MolarEntropy.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {2053731b-90f5-5141-d15e-8d7be8c2662f} - Library - Properties - 512 - UnitsNet - UnitsNet.MolarEntropy - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/UnitsNet.NanoFramework.MolarEntropy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/UnitsNet.NanoFramework.MolarEntropy.nuspec deleted file mode 100644 index ea963d6178..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/UnitsNet.NanoFramework.MolarEntropy.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MolarEntropy - 6.0.0-pre019 - Units.NET MolarEntropy - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MolarEntropy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework molarentropy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarEntropy/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarFlow/MolarFlow.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MolarFlow/MolarFlow.nfproj deleted file mode 100644 index fad8c7ab6e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarFlow/MolarFlow.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {49cc942b-d836-a48b-0429-25bf95247759} - Library - Properties - 512 - UnitsNet - UnitsNet.MolarFlow - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarFlow/UnitsNet.NanoFramework.MolarFlow.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MolarFlow/UnitsNet.NanoFramework.MolarFlow.nuspec deleted file mode 100644 index c5e2a69338..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarFlow/UnitsNet.NanoFramework.MolarFlow.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MolarFlow - 6.0.0-pre019 - Units.NET MolarFlow - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MolarFlow units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework molarflow unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarFlow/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MolarFlow/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarFlow/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/MolarMass.nfproj b/UnitsNet.NanoFramework/GeneratedCode/MolarMass/MolarMass.nfproj deleted file mode 100644 index e00ae77df6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/MolarMass.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {fe51bbda-2039-23fd-f29a-39c14adcb1f6} - Library - Properties - 512 - UnitsNet - UnitsNet.MolarMass - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/UnitsNet.NanoFramework.MolarMass.nuspec b/UnitsNet.NanoFramework/GeneratedCode/MolarMass/UnitsNet.NanoFramework.MolarMass.nuspec deleted file mode 100644 index 14efbfe624..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/UnitsNet.NanoFramework.MolarMass.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.MolarMass - 6.0.0-pre019 - Units.NET MolarMass - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds MolarMass units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework molarmass unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/packages.config b/UnitsNet.NanoFramework/GeneratedCode/MolarMass/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/MolarMass/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Molarity/Molarity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Molarity/Molarity.nfproj deleted file mode 100644 index 66cfe427b2..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Molarity/Molarity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {0d21f127-8c25-9b3a-9612-ce2eea6e7ac1} - Library - Properties - 512 - UnitsNet - UnitsNet.Molarity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Molarity/UnitsNet.NanoFramework.Molarity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Molarity/UnitsNet.NanoFramework.Molarity.nuspec deleted file mode 100644 index 699d3418fd..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Molarity/UnitsNet.NanoFramework.Molarity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Molarity - 6.0.0-pre019 - Units.NET Molarity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Molarity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework molarity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Molarity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Molarity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Molarity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permeability/Permeability.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Permeability/Permeability.nfproj deleted file mode 100644 index b8b4752e0a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Permeability/Permeability.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {34a31e0b-15ec-829c-6f0b-74f5acfd97e2} - Library - Properties - 512 - UnitsNet - UnitsNet.Permeability - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permeability/UnitsNet.NanoFramework.Permeability.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Permeability/UnitsNet.NanoFramework.Permeability.nuspec deleted file mode 100644 index 2a9f4c3339..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Permeability/UnitsNet.NanoFramework.Permeability.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Permeability - 6.0.0-pre019 - Units.NET Permeability - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Permeability units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework permeability unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permeability/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Permeability/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Permeability/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/Permittivity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Permittivity/Permittivity.nfproj deleted file mode 100644 index 9ab3a135b8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/Permittivity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {9b381685-8129-acba-66f0-7068fe43a6c3} - Library - Properties - 512 - UnitsNet - UnitsNet.Permittivity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/UnitsNet.NanoFramework.Permittivity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Permittivity/UnitsNet.NanoFramework.Permittivity.nuspec deleted file mode 100644 index 3271ff4fae..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/UnitsNet.NanoFramework.Permittivity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Permittivity - 6.0.0-pre019 - Units.NET Permittivity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Permittivity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework permittivity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Permittivity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Permittivity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/PorousMediumPermeability.nfproj b/UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/PorousMediumPermeability.nfproj deleted file mode 100644 index 3cadb26e91..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/PorousMediumPermeability.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {493d1e8e-51c6-da82-9289-25bd26fab4a4} - Library - Properties - 512 - UnitsNet - UnitsNet.PorousMediumPermeability - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/UnitsNet.NanoFramework.PorousMediumPermeability.nuspec b/UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/UnitsNet.NanoFramework.PorousMediumPermeability.nuspec deleted file mode 100644 index f2f4d9cc4d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/UnitsNet.NanoFramework.PorousMediumPermeability.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.PorousMediumPermeability - 6.0.0-pre019 - Units.NET PorousMediumPermeability - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds PorousMediumPermeability units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework porousmediumpermeability unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/packages.config b/UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PorousMediumPermeability/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Power/Power.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Power/Power.nfproj deleted file mode 100644 index 026113ba1d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Power/Power.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {56968e84-6b7d-d548-4c0b-53017bd6123c} - Library - Properties - 512 - UnitsNet - UnitsNet.Power - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Power/UnitsNet.NanoFramework.Power.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Power/UnitsNet.NanoFramework.Power.nuspec deleted file mode 100644 index ad193494ca..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Power/UnitsNet.NanoFramework.Power.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Power - 6.0.0-pre019 - Units.NET Power - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Power units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework power unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Power/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Power/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Power/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/PowerDensity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/PowerDensity.nfproj deleted file mode 100644 index 3a77007078..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/PowerDensity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {5e741dd9-690a-de16-e7a1-85e6239aa70d} - Library - Properties - 512 - UnitsNet - UnitsNet.PowerDensity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/UnitsNet.NanoFramework.PowerDensity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/UnitsNet.NanoFramework.PowerDensity.nuspec deleted file mode 100644 index c427282ab7..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/UnitsNet.NanoFramework.PowerDensity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.PowerDensity - 6.0.0-pre019 - Units.NET PowerDensity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds PowerDensity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework powerdensity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PowerDensity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/PowerRatio.nfproj b/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/PowerRatio.nfproj deleted file mode 100644 index 1b10b7e724..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/PowerRatio.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {94317d9a-d614-b098-6175-76ee84262c05} - Library - Properties - 512 - UnitsNet - UnitsNet.PowerRatio - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/UnitsNet.NanoFramework.PowerRatio.nuspec b/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/UnitsNet.NanoFramework.PowerRatio.nuspec deleted file mode 100644 index 0e223cbb32..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/UnitsNet.NanoFramework.PowerRatio.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.PowerRatio - 6.0.0-pre019 - Units.NET PowerRatio - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds PowerRatio units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework powerratio unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/packages.config b/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PowerRatio/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Pressure/Pressure.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Pressure/Pressure.nfproj deleted file mode 100644 index fd6578c3cd..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Pressure/Pressure.nfproj +++ /dev/null @@ -1,47 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {f907841f-b1ee-9b12-580e-cfe2324bed03} - Library - Properties - 512 - UnitsNet - UnitsNet.Pressure - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - ..\packages\nanoFramework.System.Math.1.5.43\lib\System.Math.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Pressure/UnitsNet.NanoFramework.Pressure.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Pressure/UnitsNet.NanoFramework.Pressure.nuspec deleted file mode 100644 index a1592a677f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Pressure/UnitsNet.NanoFramework.Pressure.nuspec +++ /dev/null @@ -1,27 +0,0 @@ - - - - UnitsNet.nanoFramework.Pressure - 6.0.0-pre019 - Units.NET Pressure - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Pressure units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework pressure unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Pressure/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Pressure/packages.config deleted file mode 100644 index ac11548cd6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Pressure/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/PressureChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/PressureChangeRate.nfproj deleted file mode 100644 index 33bd6a8461..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/PressureChangeRate.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {c9e4cfa9-c5d3-5e9d-243c-106ba4b6a447} - Library - Properties - 512 - UnitsNet - UnitsNet.PressureChangeRate - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/UnitsNet.NanoFramework.PressureChangeRate.nuspec b/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/UnitsNet.NanoFramework.PressureChangeRate.nuspec deleted file mode 100644 index b3eeaaadae..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/UnitsNet.NanoFramework.PressureChangeRate.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.PressureChangeRate - 6.0.0-pre019 - Units.NET PressureChangeRate - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds PressureChangeRate units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework pressurechangerate unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/PressureChangeRate/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Properties/AssemblyInfo.cs b/UnitsNet.NanoFramework/GeneratedCode/Properties/AssemblyInfo.cs deleted file mode 100644 index afb97626fd..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,56 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT 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.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("UnitsNet")] -[assembly: AssemblyDescription("Get all the common units of measurement and the conversions between them. It is light-weight and thoroughly tested.")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Andreas Gullberg Larsen")] -[assembly: AssemblyProduct("nanoFramework UnitsNet")] -[assembly: AssemblyCopyright("Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -[assembly: AssemblyVersion("6.0.0")] -[assembly: AssemblyFileVersion("6.0.0")] - -////////////////////////////////////////////////// -// This assembly doens't require native support // -[assembly: AssemblyNativeVersion("0.0.0.0")] -////////////////////////////////////////////////// diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs deleted file mode 100644 index a4d71717ff..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs +++ /dev/null @@ -1,352 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Absorbed dose is a dose quantity which is the measure of the energy deposited in matter by ionizing radiation per unit mass. - /// - /// - /// https://en.wikipedia.org/wiki/Absorbed_dose - /// - public struct AbsorbedDoseOfIonizingRadiation - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly AbsorbedDoseOfIonizingRadiationUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public AbsorbedDoseOfIonizingRadiationUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public AbsorbedDoseOfIonizingRadiation(double value, AbsorbedDoseOfIonizingRadiationUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of AbsorbedDoseOfIonizingRadiation, which is Second. All conversions go via this value. - /// - public static AbsorbedDoseOfIonizingRadiationUnit BaseUnit { get; } = AbsorbedDoseOfIonizingRadiationUnit.Gray; - - /// - /// Represents the largest possible value of AbsorbedDoseOfIonizingRadiation. - /// - public static AbsorbedDoseOfIonizingRadiation MaxValue { get; } = new AbsorbedDoseOfIonizingRadiation(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of AbsorbedDoseOfIonizingRadiation. - /// - public static AbsorbedDoseOfIonizingRadiation MinValue { get; } = new AbsorbedDoseOfIonizingRadiation(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static AbsorbedDoseOfIonizingRadiation Zero { get; } = new AbsorbedDoseOfIonizingRadiation(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Centigrays => As(AbsorbedDoseOfIonizingRadiationUnit.Centigray); - - /// - /// Gets a value of this quantity converted into - /// - public double Decigrays => As(AbsorbedDoseOfIonizingRadiationUnit.Decigray); - - /// - /// Gets a value of this quantity converted into - /// - public double Femtograys => As(AbsorbedDoseOfIonizingRadiationUnit.Femtogray); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigagrays => As(AbsorbedDoseOfIonizingRadiationUnit.Gigagray); - - /// - /// Gets a value of this quantity converted into - /// - public double Grays => As(AbsorbedDoseOfIonizingRadiationUnit.Gray); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilograys => As(AbsorbedDoseOfIonizingRadiationUnit.Kilogray); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilorads => As(AbsorbedDoseOfIonizingRadiationUnit.Kilorad); - - /// - /// Gets a value of this quantity converted into - /// - public double Megagrays => As(AbsorbedDoseOfIonizingRadiationUnit.Megagray); - - /// - /// Gets a value of this quantity converted into - /// - public double Megarads => As(AbsorbedDoseOfIonizingRadiationUnit.Megarad); - - /// - /// Gets a value of this quantity converted into - /// - public double Micrograys => As(AbsorbedDoseOfIonizingRadiationUnit.Microgray); - - /// - /// Gets a value of this quantity converted into - /// - public double Milligrays => As(AbsorbedDoseOfIonizingRadiationUnit.Milligray); - - /// - /// Gets a value of this quantity converted into - /// - public double Millirads => As(AbsorbedDoseOfIonizingRadiationUnit.Millirad); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanograys => As(AbsorbedDoseOfIonizingRadiationUnit.Nanogray); - - /// - /// Gets a value of this quantity converted into - /// - public double Petagrays => As(AbsorbedDoseOfIonizingRadiationUnit.Petagray); - - /// - /// Gets a value of this quantity converted into - /// - public double Picograys => As(AbsorbedDoseOfIonizingRadiationUnit.Picogray); - - /// - /// Gets a value of this quantity converted into - /// - public double Rads => As(AbsorbedDoseOfIonizingRadiationUnit.Rad); - - /// - /// Gets a value of this quantity converted into - /// - public double Teragrays => As(AbsorbedDoseOfIonizingRadiationUnit.Teragray); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromCentigrays(double centigrays) => new AbsorbedDoseOfIonizingRadiation(centigrays, AbsorbedDoseOfIonizingRadiationUnit.Centigray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromDecigrays(double decigrays) => new AbsorbedDoseOfIonizingRadiation(decigrays, AbsorbedDoseOfIonizingRadiationUnit.Decigray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromFemtograys(double femtograys) => new AbsorbedDoseOfIonizingRadiation(femtograys, AbsorbedDoseOfIonizingRadiationUnit.Femtogray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromGigagrays(double gigagrays) => new AbsorbedDoseOfIonizingRadiation(gigagrays, AbsorbedDoseOfIonizingRadiationUnit.Gigagray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromGrays(double grays) => new AbsorbedDoseOfIonizingRadiation(grays, AbsorbedDoseOfIonizingRadiationUnit.Gray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromKilograys(double kilograys) => new AbsorbedDoseOfIonizingRadiation(kilograys, AbsorbedDoseOfIonizingRadiationUnit.Kilogray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromKilorads(double kilorads) => new AbsorbedDoseOfIonizingRadiation(kilorads, AbsorbedDoseOfIonizingRadiationUnit.Kilorad); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromMegagrays(double megagrays) => new AbsorbedDoseOfIonizingRadiation(megagrays, AbsorbedDoseOfIonizingRadiationUnit.Megagray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromMegarads(double megarads) => new AbsorbedDoseOfIonizingRadiation(megarads, AbsorbedDoseOfIonizingRadiationUnit.Megarad); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromMicrograys(double micrograys) => new AbsorbedDoseOfIonizingRadiation(micrograys, AbsorbedDoseOfIonizingRadiationUnit.Microgray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromMilligrays(double milligrays) => new AbsorbedDoseOfIonizingRadiation(milligrays, AbsorbedDoseOfIonizingRadiationUnit.Milligray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromMillirads(double millirads) => new AbsorbedDoseOfIonizingRadiation(millirads, AbsorbedDoseOfIonizingRadiationUnit.Millirad); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromNanograys(double nanograys) => new AbsorbedDoseOfIonizingRadiation(nanograys, AbsorbedDoseOfIonizingRadiationUnit.Nanogray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromPetagrays(double petagrays) => new AbsorbedDoseOfIonizingRadiation(petagrays, AbsorbedDoseOfIonizingRadiationUnit.Petagray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromPicograys(double picograys) => new AbsorbedDoseOfIonizingRadiation(picograys, AbsorbedDoseOfIonizingRadiationUnit.Picogray); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromRads(double rads) => new AbsorbedDoseOfIonizingRadiation(rads, AbsorbedDoseOfIonizingRadiationUnit.Rad); - - /// - /// Creates a from . - /// - public static AbsorbedDoseOfIonizingRadiation FromTeragrays(double teragrays) => new AbsorbedDoseOfIonizingRadiation(teragrays, AbsorbedDoseOfIonizingRadiationUnit.Teragray); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// AbsorbedDoseOfIonizingRadiation unit value. - public static AbsorbedDoseOfIonizingRadiation From(double value, AbsorbedDoseOfIonizingRadiationUnit fromUnit) - { - return new AbsorbedDoseOfIonizingRadiation(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(AbsorbedDoseOfIonizingRadiationUnit unit) => GetValueAs(unit); - - /// - /// Converts this AbsorbedDoseOfIonizingRadiation to another AbsorbedDoseOfIonizingRadiation with the unit representation . - /// - /// A AbsorbedDoseOfIonizingRadiation with the specified unit. - public AbsorbedDoseOfIonizingRadiation ToUnit(AbsorbedDoseOfIonizingRadiationUnit unit) - { - var convertedValue = GetValueAs(unit); - return new AbsorbedDoseOfIonizingRadiation(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - AbsorbedDoseOfIonizingRadiationUnit.Centigray => (_value) * 1e-2d, - AbsorbedDoseOfIonizingRadiationUnit.Decigray => (_value) * 1e-1d, - AbsorbedDoseOfIonizingRadiationUnit.Femtogray => (_value) * 1e-15d, - AbsorbedDoseOfIonizingRadiationUnit.Gigagray => (_value) * 1e9d, - AbsorbedDoseOfIonizingRadiationUnit.Gray => _value, - AbsorbedDoseOfIonizingRadiationUnit.Kilogray => (_value) * 1e3d, - AbsorbedDoseOfIonizingRadiationUnit.Kilorad => (_value / 100) * 1e3d, - AbsorbedDoseOfIonizingRadiationUnit.Megagray => (_value) * 1e6d, - AbsorbedDoseOfIonizingRadiationUnit.Megarad => (_value / 100) * 1e6d, - AbsorbedDoseOfIonizingRadiationUnit.Microgray => (_value) * 1e-6d, - AbsorbedDoseOfIonizingRadiationUnit.Milligray => (_value) * 1e-3d, - AbsorbedDoseOfIonizingRadiationUnit.Millirad => (_value / 100) * 1e-3d, - AbsorbedDoseOfIonizingRadiationUnit.Nanogray => (_value) * 1e-9d, - AbsorbedDoseOfIonizingRadiationUnit.Petagray => (_value) * 1e15d, - AbsorbedDoseOfIonizingRadiationUnit.Picogray => (_value) * 1e-12d, - AbsorbedDoseOfIonizingRadiationUnit.Rad => _value / 100, - AbsorbedDoseOfIonizingRadiationUnit.Teragray => (_value) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(AbsorbedDoseOfIonizingRadiationUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - AbsorbedDoseOfIonizingRadiationUnit.Centigray => (baseUnitValue) / 1e-2d, - AbsorbedDoseOfIonizingRadiationUnit.Decigray => (baseUnitValue) / 1e-1d, - AbsorbedDoseOfIonizingRadiationUnit.Femtogray => (baseUnitValue) / 1e-15d, - AbsorbedDoseOfIonizingRadiationUnit.Gigagray => (baseUnitValue) / 1e9d, - AbsorbedDoseOfIonizingRadiationUnit.Gray => baseUnitValue, - AbsorbedDoseOfIonizingRadiationUnit.Kilogray => (baseUnitValue) / 1e3d, - AbsorbedDoseOfIonizingRadiationUnit.Kilorad => (baseUnitValue * 100) / 1e3d, - AbsorbedDoseOfIonizingRadiationUnit.Megagray => (baseUnitValue) / 1e6d, - AbsorbedDoseOfIonizingRadiationUnit.Megarad => (baseUnitValue * 100) / 1e6d, - AbsorbedDoseOfIonizingRadiationUnit.Microgray => (baseUnitValue) / 1e-6d, - AbsorbedDoseOfIonizingRadiationUnit.Milligray => (baseUnitValue) / 1e-3d, - AbsorbedDoseOfIonizingRadiationUnit.Millirad => (baseUnitValue * 100) / 1e-3d, - AbsorbedDoseOfIonizingRadiationUnit.Nanogray => (baseUnitValue) / 1e-9d, - AbsorbedDoseOfIonizingRadiationUnit.Petagray => (baseUnitValue) / 1e15d, - AbsorbedDoseOfIonizingRadiationUnit.Picogray => (baseUnitValue) / 1e-12d, - AbsorbedDoseOfIonizingRadiationUnit.Rad => baseUnitValue * 100, - AbsorbedDoseOfIonizingRadiationUnit.Teragray => (baseUnitValue) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs deleted file mode 100644 index 6554701aea..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs +++ /dev/null @@ -1,313 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Acceleration, in physics, is the rate at which the velocity of an object changes over time. An object's acceleration is the net result of any and all forces acting on the object, as described by Newton's Second Law. The SI unit for acceleration is the Meter per second squared (m/s²). Accelerations are vector quantities (they have magnitude and direction) and add according to the parallelogram law. As a vector, the calculated net force is equal to the product of the object's mass (a scalar quantity) and the acceleration. - /// - public struct Acceleration - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly AccelerationUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public AccelerationUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Acceleration(double value, AccelerationUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Acceleration, which is Second. All conversions go via this value. - /// - public static AccelerationUnit BaseUnit { get; } = AccelerationUnit.MeterPerSecondSquared; - - /// - /// Represents the largest possible value of Acceleration. - /// - public static Acceleration MaxValue { get; } = new Acceleration(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Acceleration. - /// - public static Acceleration MinValue { get; } = new Acceleration(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Acceleration Zero { get; } = new Acceleration(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentimetersPerSecondSquared => As(AccelerationUnit.CentimeterPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double DecimetersPerSecondSquared => As(AccelerationUnit.DecimeterPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double FeetPerSecondSquared => As(AccelerationUnit.FootPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double InchesPerSecondSquared => As(AccelerationUnit.InchPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double KilometersPerSecondSquared => As(AccelerationUnit.KilometerPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double KnotsPerHour => As(AccelerationUnit.KnotPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KnotsPerMinute => As(AccelerationUnit.KnotPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KnotsPerSecond => As(AccelerationUnit.KnotPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MetersPerSecondSquared => As(AccelerationUnit.MeterPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrometersPerSecondSquared => As(AccelerationUnit.MicrometerPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersPerSecondSquared => As(AccelerationUnit.MillimeterPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double MillistandardGravity => As(AccelerationUnit.MillistandardGravity); - - /// - /// Gets a value of this quantity converted into - /// - public double NanometersPerSecondSquared => As(AccelerationUnit.NanometerPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardGravity => As(AccelerationUnit.StandardGravity); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Acceleration FromCentimetersPerSecondSquared(double centimeterspersecondsquared) => new Acceleration(centimeterspersecondsquared, AccelerationUnit.CentimeterPerSecondSquared); - - /// - /// Creates a from . - /// - public static Acceleration FromDecimetersPerSecondSquared(double decimeterspersecondsquared) => new Acceleration(decimeterspersecondsquared, AccelerationUnit.DecimeterPerSecondSquared); - - /// - /// Creates a from . - /// - public static Acceleration FromFeetPerSecondSquared(double feetpersecondsquared) => new Acceleration(feetpersecondsquared, AccelerationUnit.FootPerSecondSquared); - - /// - /// Creates a from . - /// - public static Acceleration FromInchesPerSecondSquared(double inchespersecondsquared) => new Acceleration(inchespersecondsquared, AccelerationUnit.InchPerSecondSquared); - - /// - /// Creates a from . - /// - public static Acceleration FromKilometersPerSecondSquared(double kilometerspersecondsquared) => new Acceleration(kilometerspersecondsquared, AccelerationUnit.KilometerPerSecondSquared); - - /// - /// Creates a from . - /// - public static Acceleration FromKnotsPerHour(double knotsperhour) => new Acceleration(knotsperhour, AccelerationUnit.KnotPerHour); - - /// - /// Creates a from . - /// - public static Acceleration FromKnotsPerMinute(double knotsperminute) => new Acceleration(knotsperminute, AccelerationUnit.KnotPerMinute); - - /// - /// Creates a from . - /// - public static Acceleration FromKnotsPerSecond(double knotspersecond) => new Acceleration(knotspersecond, AccelerationUnit.KnotPerSecond); - - /// - /// Creates a from . - /// - public static Acceleration FromMetersPerSecondSquared(double meterspersecondsquared) => new Acceleration(meterspersecondsquared, AccelerationUnit.MeterPerSecondSquared); - - /// - /// Creates a from . - /// - public static Acceleration FromMicrometersPerSecondSquared(double micrometerspersecondsquared) => new Acceleration(micrometerspersecondsquared, AccelerationUnit.MicrometerPerSecondSquared); - - /// - /// Creates a from . - /// - public static Acceleration FromMillimetersPerSecondSquared(double millimeterspersecondsquared) => new Acceleration(millimeterspersecondsquared, AccelerationUnit.MillimeterPerSecondSquared); - - /// - /// Creates a from . - /// - public static Acceleration FromMillistandardGravity(double millistandardgravity) => new Acceleration(millistandardgravity, AccelerationUnit.MillistandardGravity); - - /// - /// Creates a from . - /// - public static Acceleration FromNanometersPerSecondSquared(double nanometerspersecondsquared) => new Acceleration(nanometerspersecondsquared, AccelerationUnit.NanometerPerSecondSquared); - - /// - /// Creates a from . - /// - public static Acceleration FromStandardGravity(double standardgravity) => new Acceleration(standardgravity, AccelerationUnit.StandardGravity); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Acceleration unit value. - public static Acceleration From(double value, AccelerationUnit fromUnit) - { - return new Acceleration(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(AccelerationUnit unit) => GetValueAs(unit); - - /// - /// Converts this Acceleration to another Acceleration with the unit representation . - /// - /// A Acceleration with the specified unit. - public Acceleration ToUnit(AccelerationUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Acceleration(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - AccelerationUnit.CentimeterPerSecondSquared => (_value) * 1e-2d, - AccelerationUnit.DecimeterPerSecondSquared => (_value) * 1e-1d, - AccelerationUnit.FootPerSecondSquared => _value * 0.304800, - AccelerationUnit.InchPerSecondSquared => _value * 0.0254, - AccelerationUnit.KilometerPerSecondSquared => (_value) * 1e3d, - AccelerationUnit.KnotPerHour => _value * (1852.0 / 3600.0) / 3600, - AccelerationUnit.KnotPerMinute => _value * (1852.0 / 3600.0) / 60, - AccelerationUnit.KnotPerSecond => _value * (1852.0 / 3600.0), - AccelerationUnit.MeterPerSecondSquared => _value, - AccelerationUnit.MicrometerPerSecondSquared => (_value) * 1e-6d, - AccelerationUnit.MillimeterPerSecondSquared => (_value) * 1e-3d, - AccelerationUnit.MillistandardGravity => (_value * 9.80665) * 1e-3d, - AccelerationUnit.NanometerPerSecondSquared => (_value) * 1e-9d, - AccelerationUnit.StandardGravity => _value * 9.80665, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(AccelerationUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - AccelerationUnit.CentimeterPerSecondSquared => (baseUnitValue) / 1e-2d, - AccelerationUnit.DecimeterPerSecondSquared => (baseUnitValue) / 1e-1d, - AccelerationUnit.FootPerSecondSquared => baseUnitValue / 0.304800, - AccelerationUnit.InchPerSecondSquared => baseUnitValue / 0.0254, - AccelerationUnit.KilometerPerSecondSquared => (baseUnitValue) / 1e3d, - AccelerationUnit.KnotPerHour => baseUnitValue * 3600 / (1852.0 / 3600.0), - AccelerationUnit.KnotPerMinute => baseUnitValue * 60 / (1852.0 / 3600.0), - AccelerationUnit.KnotPerSecond => baseUnitValue / (1852.0 / 3600.0), - AccelerationUnit.MeterPerSecondSquared => baseUnitValue, - AccelerationUnit.MicrometerPerSecondSquared => (baseUnitValue) / 1e-6d, - AccelerationUnit.MillimeterPerSecondSquared => (baseUnitValue) / 1e-3d, - AccelerationUnit.MillistandardGravity => (baseUnitValue / 9.80665) / 1e-3d, - AccelerationUnit.NanometerPerSecondSquared => (baseUnitValue) / 1e-9d, - AccelerationUnit.StandardGravity => baseUnitValue / 9.80665, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AmountOfSubstance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/AmountOfSubstance.g.cs deleted file mode 100644 index 938727458b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AmountOfSubstance.g.cs +++ /dev/null @@ -1,349 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Mole is the amount of substance containing Avagadro's Number (6.02 x 10 ^ 23) of real particles such as molecules,atoms, ions or radicals. - /// - public struct AmountOfSubstance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly AmountOfSubstanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public AmountOfSubstanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public AmountOfSubstance(double value, AmountOfSubstanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of AmountOfSubstance, which is Second. All conversions go via this value. - /// - public static AmountOfSubstanceUnit BaseUnit { get; } = AmountOfSubstanceUnit.Mole; - - /// - /// Represents the largest possible value of AmountOfSubstance. - /// - public static AmountOfSubstance MaxValue { get; } = new AmountOfSubstance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of AmountOfSubstance. - /// - public static AmountOfSubstance MinValue { get; } = new AmountOfSubstance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static AmountOfSubstance Zero { get; } = new AmountOfSubstance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Centimoles => As(AmountOfSubstanceUnit.Centimole); - - /// - /// Gets a value of this quantity converted into - /// - public double CentipoundMoles => As(AmountOfSubstanceUnit.CentipoundMole); - - /// - /// Gets a value of this quantity converted into - /// - public double Decimoles => As(AmountOfSubstanceUnit.Decimole); - - /// - /// Gets a value of this quantity converted into - /// - public double DecipoundMoles => As(AmountOfSubstanceUnit.DecipoundMole); - - /// - /// Gets a value of this quantity converted into - /// - public double Femtomoles => As(AmountOfSubstanceUnit.Femtomole); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilomoles => As(AmountOfSubstanceUnit.Kilomole); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundMoles => As(AmountOfSubstanceUnit.KilopoundMole); - - /// - /// Gets a value of this quantity converted into - /// - public double Megamoles => As(AmountOfSubstanceUnit.Megamole); - - /// - /// Gets a value of this quantity converted into - /// - public double Micromoles => As(AmountOfSubstanceUnit.Micromole); - - /// - /// Gets a value of this quantity converted into - /// - public double MicropoundMoles => As(AmountOfSubstanceUnit.MicropoundMole); - - /// - /// Gets a value of this quantity converted into - /// - public double Millimoles => As(AmountOfSubstanceUnit.Millimole); - - /// - /// Gets a value of this quantity converted into - /// - public double MillipoundMoles => As(AmountOfSubstanceUnit.MillipoundMole); - - /// - /// Gets a value of this quantity converted into - /// - public double Moles => As(AmountOfSubstanceUnit.Mole); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanomoles => As(AmountOfSubstanceUnit.Nanomole); - - /// - /// Gets a value of this quantity converted into - /// - public double NanopoundMoles => As(AmountOfSubstanceUnit.NanopoundMole); - - /// - /// Gets a value of this quantity converted into - /// - public double Picomoles => As(AmountOfSubstanceUnit.Picomole); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundMoles => As(AmountOfSubstanceUnit.PoundMole); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromCentimoles(double centimoles) => new AmountOfSubstance(centimoles, AmountOfSubstanceUnit.Centimole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromCentipoundMoles(double centipoundmoles) => new AmountOfSubstance(centipoundmoles, AmountOfSubstanceUnit.CentipoundMole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromDecimoles(double decimoles) => new AmountOfSubstance(decimoles, AmountOfSubstanceUnit.Decimole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromDecipoundMoles(double decipoundmoles) => new AmountOfSubstance(decipoundmoles, AmountOfSubstanceUnit.DecipoundMole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromFemtomoles(double femtomoles) => new AmountOfSubstance(femtomoles, AmountOfSubstanceUnit.Femtomole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromKilomoles(double kilomoles) => new AmountOfSubstance(kilomoles, AmountOfSubstanceUnit.Kilomole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromKilopoundMoles(double kilopoundmoles) => new AmountOfSubstance(kilopoundmoles, AmountOfSubstanceUnit.KilopoundMole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromMegamoles(double megamoles) => new AmountOfSubstance(megamoles, AmountOfSubstanceUnit.Megamole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromMicromoles(double micromoles) => new AmountOfSubstance(micromoles, AmountOfSubstanceUnit.Micromole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromMicropoundMoles(double micropoundmoles) => new AmountOfSubstance(micropoundmoles, AmountOfSubstanceUnit.MicropoundMole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromMillimoles(double millimoles) => new AmountOfSubstance(millimoles, AmountOfSubstanceUnit.Millimole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromMillipoundMoles(double millipoundmoles) => new AmountOfSubstance(millipoundmoles, AmountOfSubstanceUnit.MillipoundMole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromMoles(double moles) => new AmountOfSubstance(moles, AmountOfSubstanceUnit.Mole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromNanomoles(double nanomoles) => new AmountOfSubstance(nanomoles, AmountOfSubstanceUnit.Nanomole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromNanopoundMoles(double nanopoundmoles) => new AmountOfSubstance(nanopoundmoles, AmountOfSubstanceUnit.NanopoundMole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromPicomoles(double picomoles) => new AmountOfSubstance(picomoles, AmountOfSubstanceUnit.Picomole); - - /// - /// Creates a from . - /// - public static AmountOfSubstance FromPoundMoles(double poundmoles) => new AmountOfSubstance(poundmoles, AmountOfSubstanceUnit.PoundMole); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// AmountOfSubstance unit value. - public static AmountOfSubstance From(double value, AmountOfSubstanceUnit fromUnit) - { - return new AmountOfSubstance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(AmountOfSubstanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this AmountOfSubstance to another AmountOfSubstance with the unit representation . - /// - /// A AmountOfSubstance with the specified unit. - public AmountOfSubstance ToUnit(AmountOfSubstanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new AmountOfSubstance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - AmountOfSubstanceUnit.Centimole => (_value) * 1e-2d, - AmountOfSubstanceUnit.CentipoundMole => (_value * 453.59237) * 1e-2d, - AmountOfSubstanceUnit.Decimole => (_value) * 1e-1d, - AmountOfSubstanceUnit.DecipoundMole => (_value * 453.59237) * 1e-1d, - AmountOfSubstanceUnit.Femtomole => (_value) * 1e-15d, - AmountOfSubstanceUnit.Kilomole => (_value) * 1e3d, - AmountOfSubstanceUnit.KilopoundMole => (_value * 453.59237) * 1e3d, - AmountOfSubstanceUnit.Megamole => (_value) * 1e6d, - AmountOfSubstanceUnit.Micromole => (_value) * 1e-6d, - AmountOfSubstanceUnit.MicropoundMole => (_value * 453.59237) * 1e-6d, - AmountOfSubstanceUnit.Millimole => (_value) * 1e-3d, - AmountOfSubstanceUnit.MillipoundMole => (_value * 453.59237) * 1e-3d, - AmountOfSubstanceUnit.Mole => _value, - AmountOfSubstanceUnit.Nanomole => (_value) * 1e-9d, - AmountOfSubstanceUnit.NanopoundMole => (_value * 453.59237) * 1e-9d, - AmountOfSubstanceUnit.Picomole => (_value) * 1e-12d, - AmountOfSubstanceUnit.PoundMole => _value * 453.59237, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(AmountOfSubstanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - AmountOfSubstanceUnit.Centimole => (baseUnitValue) / 1e-2d, - AmountOfSubstanceUnit.CentipoundMole => (baseUnitValue / 453.59237) / 1e-2d, - AmountOfSubstanceUnit.Decimole => (baseUnitValue) / 1e-1d, - AmountOfSubstanceUnit.DecipoundMole => (baseUnitValue / 453.59237) / 1e-1d, - AmountOfSubstanceUnit.Femtomole => (baseUnitValue) / 1e-15d, - AmountOfSubstanceUnit.Kilomole => (baseUnitValue) / 1e3d, - AmountOfSubstanceUnit.KilopoundMole => (baseUnitValue / 453.59237) / 1e3d, - AmountOfSubstanceUnit.Megamole => (baseUnitValue) / 1e6d, - AmountOfSubstanceUnit.Micromole => (baseUnitValue) / 1e-6d, - AmountOfSubstanceUnit.MicropoundMole => (baseUnitValue / 453.59237) / 1e-6d, - AmountOfSubstanceUnit.Millimole => (baseUnitValue) / 1e-3d, - AmountOfSubstanceUnit.MillipoundMole => (baseUnitValue / 453.59237) / 1e-3d, - AmountOfSubstanceUnit.Mole => baseUnitValue, - AmountOfSubstanceUnit.Nanomole => (baseUnitValue) / 1e-9d, - AmountOfSubstanceUnit.NanopoundMole => (baseUnitValue / 453.59237) / 1e-9d, - AmountOfSubstanceUnit.Picomole => (baseUnitValue) / 1e-12d, - AmountOfSubstanceUnit.PoundMole => baseUnitValue / 453.59237, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AmplitudeRatio.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/AmplitudeRatio.g.cs deleted file mode 100644 index ed64c7755c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AmplitudeRatio.g.cs +++ /dev/null @@ -1,193 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The strength of a signal expressed in decibels (dB) relative to one volt RMS. - /// - public struct AmplitudeRatio - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly AmplitudeRatioUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public AmplitudeRatioUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public AmplitudeRatio(double value, AmplitudeRatioUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of AmplitudeRatio, which is Second. All conversions go via this value. - /// - public static AmplitudeRatioUnit BaseUnit { get; } = AmplitudeRatioUnit.DecibelVolt; - - /// - /// Represents the largest possible value of AmplitudeRatio. - /// - public static AmplitudeRatio MaxValue { get; } = new AmplitudeRatio(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of AmplitudeRatio. - /// - public static AmplitudeRatio MinValue { get; } = new AmplitudeRatio(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static AmplitudeRatio Zero { get; } = new AmplitudeRatio(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DecibelMicrovolts => As(AmplitudeRatioUnit.DecibelMicrovolt); - - /// - /// Gets a value of this quantity converted into - /// - public double DecibelMillivolts => As(AmplitudeRatioUnit.DecibelMillivolt); - - /// - /// Gets a value of this quantity converted into - /// - public double DecibelsUnloaded => As(AmplitudeRatioUnit.DecibelUnloaded); - - /// - /// Gets a value of this quantity converted into - /// - public double DecibelVolts => As(AmplitudeRatioUnit.DecibelVolt); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static AmplitudeRatio FromDecibelMicrovolts(double decibelmicrovolts) => new AmplitudeRatio(decibelmicrovolts, AmplitudeRatioUnit.DecibelMicrovolt); - - /// - /// Creates a from . - /// - public static AmplitudeRatio FromDecibelMillivolts(double decibelmillivolts) => new AmplitudeRatio(decibelmillivolts, AmplitudeRatioUnit.DecibelMillivolt); - - /// - /// Creates a from . - /// - public static AmplitudeRatio FromDecibelsUnloaded(double decibelsunloaded) => new AmplitudeRatio(decibelsunloaded, AmplitudeRatioUnit.DecibelUnloaded); - - /// - /// Creates a from . - /// - public static AmplitudeRatio FromDecibelVolts(double decibelvolts) => new AmplitudeRatio(decibelvolts, AmplitudeRatioUnit.DecibelVolt); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// AmplitudeRatio unit value. - public static AmplitudeRatio From(double value, AmplitudeRatioUnit fromUnit) - { - return new AmplitudeRatio(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(AmplitudeRatioUnit unit) => GetValueAs(unit); - - /// - /// Converts this AmplitudeRatio to another AmplitudeRatio with the unit representation . - /// - /// A AmplitudeRatio with the specified unit. - public AmplitudeRatio ToUnit(AmplitudeRatioUnit unit) - { - var convertedValue = GetValueAs(unit); - return new AmplitudeRatio(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - AmplitudeRatioUnit.DecibelMicrovolt => _value - 120, - AmplitudeRatioUnit.DecibelMillivolt => _value - 60, - AmplitudeRatioUnit.DecibelUnloaded => _value - 2.218487499, - AmplitudeRatioUnit.DecibelVolt => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(AmplitudeRatioUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - AmplitudeRatioUnit.DecibelMicrovolt => baseUnitValue + 120, - AmplitudeRatioUnit.DecibelMillivolt => baseUnitValue + 60, - AmplitudeRatioUnit.DecibelUnloaded => baseUnitValue + 2.218487499, - AmplitudeRatioUnit.DecibelVolt => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Angle.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Angle.g.cs deleted file mode 100644 index dbe2db2d93..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Angle.g.cs +++ /dev/null @@ -1,325 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In geometry, an angle is the figure formed by two rays, called the sides of the angle, sharing a common endpoint, called the vertex of the angle. - /// - public struct Angle - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly AngleUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public AngleUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Angle(double value, AngleUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Angle, which is Second. All conversions go via this value. - /// - public static AngleUnit BaseUnit { get; } = AngleUnit.Radian; - - /// - /// Represents the largest possible value of Angle. - /// - public static Angle MaxValue { get; } = new Angle(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Angle. - /// - public static Angle MinValue { get; } = new Angle(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Angle Zero { get; } = new Angle(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Arcminutes => As(AngleUnit.Arcminute); - - /// - /// Gets a value of this quantity converted into - /// - public double Arcseconds => As(AngleUnit.Arcsecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Centiradians => As(AngleUnit.Centiradian); - - /// - /// Gets a value of this quantity converted into - /// - public double Deciradians => As(AngleUnit.Deciradian); - - /// - /// Gets a value of this quantity converted into - /// - public double Degrees => As(AngleUnit.Degree); - - /// - /// Gets a value of this quantity converted into - /// - public double Gradians => As(AngleUnit.Gradian); - - /// - /// Gets a value of this quantity converted into - /// - public double Microdegrees => As(AngleUnit.Microdegree); - - /// - /// Gets a value of this quantity converted into - /// - public double Microradians => As(AngleUnit.Microradian); - - /// - /// Gets a value of this quantity converted into - /// - public double Millidegrees => As(AngleUnit.Millidegree); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliradians => As(AngleUnit.Milliradian); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanodegrees => As(AngleUnit.Nanodegree); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanoradians => As(AngleUnit.Nanoradian); - - /// - /// Gets a value of this quantity converted into - /// - public double NatoMils => As(AngleUnit.NatoMil); - - /// - /// Gets a value of this quantity converted into - /// - public double Radians => As(AngleUnit.Radian); - - /// - /// Gets a value of this quantity converted into - /// - public double Revolutions => As(AngleUnit.Revolution); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Angle FromArcminutes(double arcminutes) => new Angle(arcminutes, AngleUnit.Arcminute); - - /// - /// Creates a from . - /// - public static Angle FromArcseconds(double arcseconds) => new Angle(arcseconds, AngleUnit.Arcsecond); - - /// - /// Creates a from . - /// - public static Angle FromCentiradians(double centiradians) => new Angle(centiradians, AngleUnit.Centiradian); - - /// - /// Creates a from . - /// - public static Angle FromDeciradians(double deciradians) => new Angle(deciradians, AngleUnit.Deciradian); - - /// - /// Creates a from . - /// - public static Angle FromDegrees(double degrees) => new Angle(degrees, AngleUnit.Degree); - - /// - /// Creates a from . - /// - public static Angle FromGradians(double gradians) => new Angle(gradians, AngleUnit.Gradian); - - /// - /// Creates a from . - /// - public static Angle FromMicrodegrees(double microdegrees) => new Angle(microdegrees, AngleUnit.Microdegree); - - /// - /// Creates a from . - /// - public static Angle FromMicroradians(double microradians) => new Angle(microradians, AngleUnit.Microradian); - - /// - /// Creates a from . - /// - public static Angle FromMillidegrees(double millidegrees) => new Angle(millidegrees, AngleUnit.Millidegree); - - /// - /// Creates a from . - /// - public static Angle FromMilliradians(double milliradians) => new Angle(milliradians, AngleUnit.Milliradian); - - /// - /// Creates a from . - /// - public static Angle FromNanodegrees(double nanodegrees) => new Angle(nanodegrees, AngleUnit.Nanodegree); - - /// - /// Creates a from . - /// - public static Angle FromNanoradians(double nanoradians) => new Angle(nanoradians, AngleUnit.Nanoradian); - - /// - /// Creates a from . - /// - public static Angle FromNatoMils(double natomils) => new Angle(natomils, AngleUnit.NatoMil); - - /// - /// Creates a from . - /// - public static Angle FromRadians(double radians) => new Angle(radians, AngleUnit.Radian); - - /// - /// Creates a from . - /// - public static Angle FromRevolutions(double revolutions) => new Angle(revolutions, AngleUnit.Revolution); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Angle unit value. - public static Angle From(double value, AngleUnit fromUnit) - { - return new Angle(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(AngleUnit unit) => GetValueAs(unit); - - /// - /// Converts this Angle to another Angle with the unit representation . - /// - /// A Angle with the specified unit. - public Angle ToUnit(AngleUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Angle(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - AngleUnit.Arcminute => _value * 3.1415926535897931 / (60 * 180), - AngleUnit.Arcsecond => _value * 3.1415926535897931 / (3600 * 180), - AngleUnit.Centiradian => (_value) * 1e-2d, - AngleUnit.Deciradian => (_value) * 1e-1d, - AngleUnit.Degree => _value * 3.1415926535897931 / 180, - AngleUnit.Gradian => _value * 3.1415926535897931 / 200, - AngleUnit.Microdegree => (_value * 3.1415926535897931 / 180) * 1e-6d, - AngleUnit.Microradian => (_value) * 1e-6d, - AngleUnit.Millidegree => (_value * 3.1415926535897931 / 180) * 1e-3d, - AngleUnit.Milliradian => (_value) * 1e-3d, - AngleUnit.Nanodegree => (_value * 3.1415926535897931 / 180) * 1e-9d, - AngleUnit.Nanoradian => (_value) * 1e-9d, - AngleUnit.NatoMil => _value * 3.1415926535897931 / 3200, - AngleUnit.Radian => _value, - AngleUnit.Revolution => _value * 2 * 3.1415926535897931, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(AngleUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - AngleUnit.Arcminute => baseUnitValue * 60 * 180 / 3.1415926535897931, - AngleUnit.Arcsecond => baseUnitValue * 3600 * 180 / 3.1415926535897931, - AngleUnit.Centiradian => (baseUnitValue) / 1e-2d, - AngleUnit.Deciradian => (baseUnitValue) / 1e-1d, - AngleUnit.Degree => baseUnitValue * 180 / 3.1415926535897931, - AngleUnit.Gradian => baseUnitValue * 200 / 3.1415926535897931, - AngleUnit.Microdegree => (baseUnitValue * 180 / 3.1415926535897931) / 1e-6d, - AngleUnit.Microradian => (baseUnitValue) / 1e-6d, - AngleUnit.Millidegree => (baseUnitValue * 180 / 3.1415926535897931) / 1e-3d, - AngleUnit.Milliradian => (baseUnitValue) / 1e-3d, - AngleUnit.Nanodegree => (baseUnitValue * 180 / 3.1415926535897931) / 1e-9d, - AngleUnit.Nanoradian => (baseUnitValue) / 1e-9d, - AngleUnit.NatoMil => baseUnitValue * 3200 / 3.1415926535897931, - AngleUnit.Radian => baseUnitValue, - AngleUnit.Revolution => baseUnitValue / (2 * 3.1415926535897931), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Area.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Area.g.cs deleted file mode 100644 index 36d759bc12..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Area.g.cs +++ /dev/null @@ -1,313 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Area is a quantity that expresses the extent of a two-dimensional surface or shape, or planar lamina, in the plane. Area can be understood as the amount of material with a given thickness that would be necessary to fashion a model of the shape, or the amount of paint necessary to cover the surface with a single coat.[1] It is the two-dimensional analog of the length of a curve (a one-dimensional concept) or the volume of a solid (a three-dimensional concept). - /// - public struct Area - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly AreaUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public AreaUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Area(double value, AreaUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Area, which is Second. All conversions go via this value. - /// - public static AreaUnit BaseUnit { get; } = AreaUnit.SquareMeter; - - /// - /// Represents the largest possible value of Area. - /// - public static Area MaxValue { get; } = new Area(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Area. - /// - public static Area MinValue { get; } = new Area(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Area Zero { get; } = new Area(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Acres => As(AreaUnit.Acre); - - /// - /// Gets a value of this quantity converted into - /// - public double Hectares => As(AreaUnit.Hectare); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareCentimeters => As(AreaUnit.SquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareDecimeters => As(AreaUnit.SquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareFeet => As(AreaUnit.SquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareInches => As(AreaUnit.SquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareKilometers => As(AreaUnit.SquareKilometer); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMeters => As(AreaUnit.SquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMicrometers => As(AreaUnit.SquareMicrometer); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMiles => As(AreaUnit.SquareMile); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMillimeters => As(AreaUnit.SquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareNauticalMiles => As(AreaUnit.SquareNauticalMile); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareYards => As(AreaUnit.SquareYard); - - /// - /// Gets a value of this quantity converted into - /// - public double UsSurveySquareFeet => As(AreaUnit.UsSurveySquareFoot); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Area FromAcres(double acres) => new Area(acres, AreaUnit.Acre); - - /// - /// Creates a from . - /// - public static Area FromHectares(double hectares) => new Area(hectares, AreaUnit.Hectare); - - /// - /// Creates a from . - /// - public static Area FromSquareCentimeters(double squarecentimeters) => new Area(squarecentimeters, AreaUnit.SquareCentimeter); - - /// - /// Creates a from . - /// - public static Area FromSquareDecimeters(double squaredecimeters) => new Area(squaredecimeters, AreaUnit.SquareDecimeter); - - /// - /// Creates a from . - /// - public static Area FromSquareFeet(double squarefeet) => new Area(squarefeet, AreaUnit.SquareFoot); - - /// - /// Creates a from . - /// - public static Area FromSquareInches(double squareinches) => new Area(squareinches, AreaUnit.SquareInch); - - /// - /// Creates a from . - /// - public static Area FromSquareKilometers(double squarekilometers) => new Area(squarekilometers, AreaUnit.SquareKilometer); - - /// - /// Creates a from . - /// - public static Area FromSquareMeters(double squaremeters) => new Area(squaremeters, AreaUnit.SquareMeter); - - /// - /// Creates a from . - /// - public static Area FromSquareMicrometers(double squaremicrometers) => new Area(squaremicrometers, AreaUnit.SquareMicrometer); - - /// - /// Creates a from . - /// - public static Area FromSquareMiles(double squaremiles) => new Area(squaremiles, AreaUnit.SquareMile); - - /// - /// Creates a from . - /// - public static Area FromSquareMillimeters(double squaremillimeters) => new Area(squaremillimeters, AreaUnit.SquareMillimeter); - - /// - /// Creates a from . - /// - public static Area FromSquareNauticalMiles(double squarenauticalmiles) => new Area(squarenauticalmiles, AreaUnit.SquareNauticalMile); - - /// - /// Creates a from . - /// - public static Area FromSquareYards(double squareyards) => new Area(squareyards, AreaUnit.SquareYard); - - /// - /// Creates a from . - /// - public static Area FromUsSurveySquareFeet(double ussurveysquarefeet) => new Area(ussurveysquarefeet, AreaUnit.UsSurveySquareFoot); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Area unit value. - public static Area From(double value, AreaUnit fromUnit) - { - return new Area(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(AreaUnit unit) => GetValueAs(unit); - - /// - /// Converts this Area to another Area with the unit representation . - /// - /// A Area with the specified unit. - public Area ToUnit(AreaUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Area(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - AreaUnit.Acre => _value * 4046.8564224, - AreaUnit.Hectare => _value * 1e4, - AreaUnit.SquareCentimeter => _value * 1e-4, - AreaUnit.SquareDecimeter => _value * 1e-2, - AreaUnit.SquareFoot => _value * 9.290304e-2, - AreaUnit.SquareInch => _value * 0.00064516, - AreaUnit.SquareKilometer => _value * 1e6, - AreaUnit.SquareMeter => _value, - AreaUnit.SquareMicrometer => _value * 1e-12, - AreaUnit.SquareMile => _value * 1609.344 * 1609.344, - AreaUnit.SquareMillimeter => _value * 1e-6, - AreaUnit.SquareNauticalMile => _value * 3429904, - AreaUnit.SquareYard => _value * 0.9144 * 0.9144, - AreaUnit.UsSurveySquareFoot => _value * (1200.0 / 3937.0) * (1200.0 / 3937.0), - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(AreaUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - AreaUnit.Acre => baseUnitValue / 4046.8564224, - AreaUnit.Hectare => baseUnitValue / 1e4, - AreaUnit.SquareCentimeter => baseUnitValue / 1e-4, - AreaUnit.SquareDecimeter => baseUnitValue / 1e-2, - AreaUnit.SquareFoot => baseUnitValue / 9.290304e-2, - AreaUnit.SquareInch => baseUnitValue / 0.00064516, - AreaUnit.SquareKilometer => baseUnitValue / 1e6, - AreaUnit.SquareMeter => baseUnitValue, - AreaUnit.SquareMicrometer => baseUnitValue / 1e-12, - AreaUnit.SquareMile => baseUnitValue / 1609.344 / 1609.344, - AreaUnit.SquareMillimeter => baseUnitValue / 1e-6, - AreaUnit.SquareNauticalMile => baseUnitValue / 3429904, - AreaUnit.SquareYard => baseUnitValue / 0.9144 / 0.9144, - AreaUnit.UsSurveySquareFoot => baseUnitValue / (1200.0 / 3937.0) / (1200.0 / 3937.0), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AreaDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/AreaDensity.g.cs deleted file mode 100644 index 5ba01d91a1..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AreaDensity.g.cs +++ /dev/null @@ -1,181 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The area density of a two-dimensional object is calculated as the mass per unit area. For paper this is also called grammage. - /// - public struct AreaDensity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly AreaDensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public AreaDensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public AreaDensity(double value, AreaDensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of AreaDensity, which is Second. All conversions go via this value. - /// - public static AreaDensityUnit BaseUnit { get; } = AreaDensityUnit.KilogramPerSquareMeter; - - /// - /// Represents the largest possible value of AreaDensity. - /// - public static AreaDensity MaxValue { get; } = new AreaDensity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of AreaDensity. - /// - public static AreaDensity MinValue { get; } = new AreaDensity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static AreaDensity Zero { get; } = new AreaDensity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerSquareMeter => As(AreaDensityUnit.GramPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerSquareMeter => As(AreaDensityUnit.KilogramPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerSquareMeter => As(AreaDensityUnit.MilligramPerSquareMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static AreaDensity FromGramsPerSquareMeter(double gramspersquaremeter) => new AreaDensity(gramspersquaremeter, AreaDensityUnit.GramPerSquareMeter); - - /// - /// Creates a from . - /// - public static AreaDensity FromKilogramsPerSquareMeter(double kilogramspersquaremeter) => new AreaDensity(kilogramspersquaremeter, AreaDensityUnit.KilogramPerSquareMeter); - - /// - /// Creates a from . - /// - public static AreaDensity FromMilligramsPerSquareMeter(double milligramspersquaremeter) => new AreaDensity(milligramspersquaremeter, AreaDensityUnit.MilligramPerSquareMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// AreaDensity unit value. - public static AreaDensity From(double value, AreaDensityUnit fromUnit) - { - return new AreaDensity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(AreaDensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this AreaDensity to another AreaDensity with the unit representation . - /// - /// A AreaDensity with the specified unit. - public AreaDensity ToUnit(AreaDensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new AreaDensity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - AreaDensityUnit.GramPerSquareMeter => _value / 1000, - AreaDensityUnit.KilogramPerSquareMeter => _value, - AreaDensityUnit.MilligramPerSquareMeter => _value / 1000000, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(AreaDensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - AreaDensityUnit.GramPerSquareMeter => baseUnitValue * 1000, - AreaDensityUnit.KilogramPerSquareMeter => baseUnitValue, - AreaDensityUnit.MilligramPerSquareMeter => baseUnitValue * 1000000, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs deleted file mode 100644 index 6ab4662f32..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs +++ /dev/null @@ -1,217 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A geometric property of an area that reflects how its points are distributed with regard to an axis. - /// - public struct AreaMomentOfInertia - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly AreaMomentOfInertiaUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public AreaMomentOfInertiaUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public AreaMomentOfInertia(double value, AreaMomentOfInertiaUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of AreaMomentOfInertia, which is Second. All conversions go via this value. - /// - public static AreaMomentOfInertiaUnit BaseUnit { get; } = AreaMomentOfInertiaUnit.MeterToTheFourth; - - /// - /// Represents the largest possible value of AreaMomentOfInertia. - /// - public static AreaMomentOfInertia MaxValue { get; } = new AreaMomentOfInertia(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of AreaMomentOfInertia. - /// - public static AreaMomentOfInertia MinValue { get; } = new AreaMomentOfInertia(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static AreaMomentOfInertia Zero { get; } = new AreaMomentOfInertia(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentimetersToTheFourth => As(AreaMomentOfInertiaUnit.CentimeterToTheFourth); - - /// - /// Gets a value of this quantity converted into - /// - public double DecimetersToTheFourth => As(AreaMomentOfInertiaUnit.DecimeterToTheFourth); - - /// - /// Gets a value of this quantity converted into - /// - public double FeetToTheFourth => As(AreaMomentOfInertiaUnit.FootToTheFourth); - - /// - /// Gets a value of this quantity converted into - /// - public double InchesToTheFourth => As(AreaMomentOfInertiaUnit.InchToTheFourth); - - /// - /// Gets a value of this quantity converted into - /// - public double MetersToTheFourth => As(AreaMomentOfInertiaUnit.MeterToTheFourth); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersToTheFourth => As(AreaMomentOfInertiaUnit.MillimeterToTheFourth); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static AreaMomentOfInertia FromCentimetersToTheFourth(double centimeterstothefourth) => new AreaMomentOfInertia(centimeterstothefourth, AreaMomentOfInertiaUnit.CentimeterToTheFourth); - - /// - /// Creates a from . - /// - public static AreaMomentOfInertia FromDecimetersToTheFourth(double decimeterstothefourth) => new AreaMomentOfInertia(decimeterstothefourth, AreaMomentOfInertiaUnit.DecimeterToTheFourth); - - /// - /// Creates a from . - /// - public static AreaMomentOfInertia FromFeetToTheFourth(double feettothefourth) => new AreaMomentOfInertia(feettothefourth, AreaMomentOfInertiaUnit.FootToTheFourth); - - /// - /// Creates a from . - /// - public static AreaMomentOfInertia FromInchesToTheFourth(double inchestothefourth) => new AreaMomentOfInertia(inchestothefourth, AreaMomentOfInertiaUnit.InchToTheFourth); - - /// - /// Creates a from . - /// - public static AreaMomentOfInertia FromMetersToTheFourth(double meterstothefourth) => new AreaMomentOfInertia(meterstothefourth, AreaMomentOfInertiaUnit.MeterToTheFourth); - - /// - /// Creates a from . - /// - public static AreaMomentOfInertia FromMillimetersToTheFourth(double millimeterstothefourth) => new AreaMomentOfInertia(millimeterstothefourth, AreaMomentOfInertiaUnit.MillimeterToTheFourth); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// AreaMomentOfInertia unit value. - public static AreaMomentOfInertia From(double value, AreaMomentOfInertiaUnit fromUnit) - { - return new AreaMomentOfInertia(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(AreaMomentOfInertiaUnit unit) => GetValueAs(unit); - - /// - /// Converts this AreaMomentOfInertia to another AreaMomentOfInertia with the unit representation . - /// - /// A AreaMomentOfInertia with the specified unit. - public AreaMomentOfInertia ToUnit(AreaMomentOfInertiaUnit unit) - { - var convertedValue = GetValueAs(unit); - return new AreaMomentOfInertia(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - AreaMomentOfInertiaUnit.CentimeterToTheFourth => _value / 1e8, - AreaMomentOfInertiaUnit.DecimeterToTheFourth => _value / 1e4, - AreaMomentOfInertiaUnit.FootToTheFourth => _value * 0.0086309748412416, - AreaMomentOfInertiaUnit.InchToTheFourth => _value * 0.0000004162314256, - AreaMomentOfInertiaUnit.MeterToTheFourth => _value, - AreaMomentOfInertiaUnit.MillimeterToTheFourth => _value / 1e12, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(AreaMomentOfInertiaUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - AreaMomentOfInertiaUnit.CentimeterToTheFourth => baseUnitValue * 1e8, - AreaMomentOfInertiaUnit.DecimeterToTheFourth => baseUnitValue * 1e4, - AreaMomentOfInertiaUnit.FootToTheFourth => baseUnitValue / 0.0086309748412416, - AreaMomentOfInertiaUnit.InchToTheFourth => baseUnitValue / 0.0000004162314256, - AreaMomentOfInertiaUnit.MeterToTheFourth => baseUnitValue, - AreaMomentOfInertiaUnit.MillimeterToTheFourth => baseUnitValue * 1e12, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/BitRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/BitRate.g.cs deleted file mode 100644 index 1e0227f51f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/BitRate.g.cs +++ /dev/null @@ -1,616 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In telecommunications and computing, bit rate is the number of bits that are conveyed or processed per unit of time. - /// - /// - /// https://en.wikipedia.org/wiki/Bit_rate - /// - public struct BitRate - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly BitRateUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public BitRateUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public BitRate(double value, BitRateUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of BitRate, which is Second. All conversions go via this value. - /// - public static BitRateUnit BaseUnit { get; } = BitRateUnit.BitPerSecond; - - /// - /// Represents the largest possible value of BitRate. - /// - public static BitRate MaxValue { get; } = new BitRate(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of BitRate. - /// - public static BitRate MinValue { get; } = new BitRate(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static BitRate Zero { get; } = new BitRate(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BitsPerSecond => As(BitRateUnit.BitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double BytesPerSecond => As(BitRateUnit.BytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double ExabitsPerSecond => As(BitRateUnit.ExabitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double ExabytesPerSecond => As(BitRateUnit.ExabytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double ExaoctetsPerSecond => As(BitRateUnit.ExaoctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double ExbibitsPerSecond => As(BitRateUnit.ExbibitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double ExbibytesPerSecond => As(BitRateUnit.ExbibytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double ExbioctetsPerSecond => As(BitRateUnit.ExbioctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double GibibitsPerSecond => As(BitRateUnit.GibibitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double GibibytesPerSecond => As(BitRateUnit.GibibytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double GibioctetsPerSecond => As(BitRateUnit.GibioctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double GigabitsPerSecond => As(BitRateUnit.GigabitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double GigabytesPerSecond => As(BitRateUnit.GigabytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double GigaoctetsPerSecond => As(BitRateUnit.GigaoctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KibibitsPerSecond => As(BitRateUnit.KibibitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KibibytesPerSecond => As(BitRateUnit.KibibytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KibioctetsPerSecond => As(BitRateUnit.KibioctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilobitsPerSecond => As(BitRateUnit.KilobitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilobytesPerSecond => As(BitRateUnit.KilobytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilooctetsPerSecond => As(BitRateUnit.KilooctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MebibitsPerSecond => As(BitRateUnit.MebibitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MebibytesPerSecond => As(BitRateUnit.MebibytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MebioctetsPerSecond => As(BitRateUnit.MebioctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegabitsPerSecond => As(BitRateUnit.MegabitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegabytesPerSecond => As(BitRateUnit.MegabytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegaoctetsPerSecond => As(BitRateUnit.MegaoctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double OctetsPerSecond => As(BitRateUnit.OctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PebibitsPerSecond => As(BitRateUnit.PebibitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PebibytesPerSecond => As(BitRateUnit.PebibytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PebioctetsPerSecond => As(BitRateUnit.PebioctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PetabitsPerSecond => As(BitRateUnit.PetabitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PetabytesPerSecond => As(BitRateUnit.PetabytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PetaoctetsPerSecond => As(BitRateUnit.PetaoctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double TebibitsPerSecond => As(BitRateUnit.TebibitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double TebibytesPerSecond => As(BitRateUnit.TebibytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double TebioctetsPerSecond => As(BitRateUnit.TebioctetPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double TerabitsPerSecond => As(BitRateUnit.TerabitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double TerabytesPerSecond => As(BitRateUnit.TerabytePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double TeraoctetsPerSecond => As(BitRateUnit.TeraoctetPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static BitRate FromBitsPerSecond(double bitspersecond) => new BitRate(bitspersecond, BitRateUnit.BitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromBytesPerSecond(double bytespersecond) => new BitRate(bytespersecond, BitRateUnit.BytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromExabitsPerSecond(double exabitspersecond) => new BitRate(exabitspersecond, BitRateUnit.ExabitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromExabytesPerSecond(double exabytespersecond) => new BitRate(exabytespersecond, BitRateUnit.ExabytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromExaoctetsPerSecond(double exaoctetspersecond) => new BitRate(exaoctetspersecond, BitRateUnit.ExaoctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromExbibitsPerSecond(double exbibitspersecond) => new BitRate(exbibitspersecond, BitRateUnit.ExbibitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromExbibytesPerSecond(double exbibytespersecond) => new BitRate(exbibytespersecond, BitRateUnit.ExbibytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromExbioctetsPerSecond(double exbioctetspersecond) => new BitRate(exbioctetspersecond, BitRateUnit.ExbioctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromGibibitsPerSecond(double gibibitspersecond) => new BitRate(gibibitspersecond, BitRateUnit.GibibitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromGibibytesPerSecond(double gibibytespersecond) => new BitRate(gibibytespersecond, BitRateUnit.GibibytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromGibioctetsPerSecond(double gibioctetspersecond) => new BitRate(gibioctetspersecond, BitRateUnit.GibioctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromGigabitsPerSecond(double gigabitspersecond) => new BitRate(gigabitspersecond, BitRateUnit.GigabitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromGigabytesPerSecond(double gigabytespersecond) => new BitRate(gigabytespersecond, BitRateUnit.GigabytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromGigaoctetsPerSecond(double gigaoctetspersecond) => new BitRate(gigaoctetspersecond, BitRateUnit.GigaoctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromKibibitsPerSecond(double kibibitspersecond) => new BitRate(kibibitspersecond, BitRateUnit.KibibitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromKibibytesPerSecond(double kibibytespersecond) => new BitRate(kibibytespersecond, BitRateUnit.KibibytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromKibioctetsPerSecond(double kibioctetspersecond) => new BitRate(kibioctetspersecond, BitRateUnit.KibioctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromKilobitsPerSecond(double kilobitspersecond) => new BitRate(kilobitspersecond, BitRateUnit.KilobitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromKilobytesPerSecond(double kilobytespersecond) => new BitRate(kilobytespersecond, BitRateUnit.KilobytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromKilooctetsPerSecond(double kilooctetspersecond) => new BitRate(kilooctetspersecond, BitRateUnit.KilooctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromMebibitsPerSecond(double mebibitspersecond) => new BitRate(mebibitspersecond, BitRateUnit.MebibitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromMebibytesPerSecond(double mebibytespersecond) => new BitRate(mebibytespersecond, BitRateUnit.MebibytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromMebioctetsPerSecond(double mebioctetspersecond) => new BitRate(mebioctetspersecond, BitRateUnit.MebioctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromMegabitsPerSecond(double megabitspersecond) => new BitRate(megabitspersecond, BitRateUnit.MegabitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromMegabytesPerSecond(double megabytespersecond) => new BitRate(megabytespersecond, BitRateUnit.MegabytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromMegaoctetsPerSecond(double megaoctetspersecond) => new BitRate(megaoctetspersecond, BitRateUnit.MegaoctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromOctetsPerSecond(double octetspersecond) => new BitRate(octetspersecond, BitRateUnit.OctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromPebibitsPerSecond(double pebibitspersecond) => new BitRate(pebibitspersecond, BitRateUnit.PebibitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromPebibytesPerSecond(double pebibytespersecond) => new BitRate(pebibytespersecond, BitRateUnit.PebibytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromPebioctetsPerSecond(double pebioctetspersecond) => new BitRate(pebioctetspersecond, BitRateUnit.PebioctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromPetabitsPerSecond(double petabitspersecond) => new BitRate(petabitspersecond, BitRateUnit.PetabitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromPetabytesPerSecond(double petabytespersecond) => new BitRate(petabytespersecond, BitRateUnit.PetabytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromPetaoctetsPerSecond(double petaoctetspersecond) => new BitRate(petaoctetspersecond, BitRateUnit.PetaoctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromTebibitsPerSecond(double tebibitspersecond) => new BitRate(tebibitspersecond, BitRateUnit.TebibitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromTebibytesPerSecond(double tebibytespersecond) => new BitRate(tebibytespersecond, BitRateUnit.TebibytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromTebioctetsPerSecond(double tebioctetspersecond) => new BitRate(tebioctetspersecond, BitRateUnit.TebioctetPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromTerabitsPerSecond(double terabitspersecond) => new BitRate(terabitspersecond, BitRateUnit.TerabitPerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromTerabytesPerSecond(double terabytespersecond) => new BitRate(terabytespersecond, BitRateUnit.TerabytePerSecond); - - /// - /// Creates a from . - /// - public static BitRate FromTeraoctetsPerSecond(double teraoctetspersecond) => new BitRate(teraoctetspersecond, BitRateUnit.TeraoctetPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// BitRate unit value. - public static BitRate From(double value, BitRateUnit fromUnit) - { - return new BitRate(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(BitRateUnit unit) => GetValueAs(unit); - - /// - /// Converts this BitRate to another BitRate with the unit representation . - /// - /// A BitRate with the specified unit. - public BitRate ToUnit(BitRateUnit unit) - { - var convertedValue = GetValueAs(unit); - return new BitRate(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - BitRateUnit.BitPerSecond => _value, - BitRateUnit.BytePerSecond => _value * 8, - BitRateUnit.ExabitPerSecond => (_value) * 1e18d, - BitRateUnit.ExabytePerSecond => (_value * 8) * 1e18d, - BitRateUnit.ExaoctetPerSecond => (_value * 8) * 1e18d, - BitRateUnit.ExbibitPerSecond => (_value) * (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - BitRateUnit.ExbibytePerSecond => (_value * 8) * (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - BitRateUnit.ExbioctetPerSecond => (_value * 8) * (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - BitRateUnit.GibibitPerSecond => (_value) * (1024d * 1024 * 1024), - BitRateUnit.GibibytePerSecond => (_value * 8) * (1024d * 1024 * 1024), - BitRateUnit.GibioctetPerSecond => (_value * 8) * (1024d * 1024 * 1024), - BitRateUnit.GigabitPerSecond => (_value) * 1e9d, - BitRateUnit.GigabytePerSecond => (_value * 8) * 1e9d, - BitRateUnit.GigaoctetPerSecond => (_value * 8) * 1e9d, - BitRateUnit.KibibitPerSecond => (_value) * 1024d, - BitRateUnit.KibibytePerSecond => (_value * 8) * 1024d, - BitRateUnit.KibioctetPerSecond => (_value * 8) * 1024d, - BitRateUnit.KilobitPerSecond => (_value) * 1e3d, - BitRateUnit.KilobytePerSecond => (_value * 8) * 1e3d, - BitRateUnit.KilooctetPerSecond => (_value * 8) * 1e3d, - BitRateUnit.MebibitPerSecond => (_value) * (1024d * 1024), - BitRateUnit.MebibytePerSecond => (_value * 8) * (1024d * 1024), - BitRateUnit.MebioctetPerSecond => (_value * 8) * (1024d * 1024), - BitRateUnit.MegabitPerSecond => (_value) * 1e6d, - BitRateUnit.MegabytePerSecond => (_value * 8) * 1e6d, - BitRateUnit.MegaoctetPerSecond => (_value * 8) * 1e6d, - BitRateUnit.OctetPerSecond => _value * 8, - BitRateUnit.PebibitPerSecond => (_value) * (1024d * 1024 * 1024 * 1024 * 1024), - BitRateUnit.PebibytePerSecond => (_value * 8) * (1024d * 1024 * 1024 * 1024 * 1024), - BitRateUnit.PebioctetPerSecond => (_value * 8) * (1024d * 1024 * 1024 * 1024 * 1024), - BitRateUnit.PetabitPerSecond => (_value) * 1e15d, - BitRateUnit.PetabytePerSecond => (_value * 8) * 1e15d, - BitRateUnit.PetaoctetPerSecond => (_value * 8) * 1e15d, - BitRateUnit.TebibitPerSecond => (_value) * (1024d * 1024 * 1024 * 1024), - BitRateUnit.TebibytePerSecond => (_value * 8) * (1024d * 1024 * 1024 * 1024), - BitRateUnit.TebioctetPerSecond => (_value * 8) * (1024d * 1024 * 1024 * 1024), - BitRateUnit.TerabitPerSecond => (_value) * 1e12d, - BitRateUnit.TerabytePerSecond => (_value * 8) * 1e12d, - BitRateUnit.TeraoctetPerSecond => (_value * 8) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(BitRateUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - BitRateUnit.BitPerSecond => baseUnitValue, - BitRateUnit.BytePerSecond => baseUnitValue / 8, - BitRateUnit.ExabitPerSecond => (baseUnitValue) / 1e18d, - BitRateUnit.ExabytePerSecond => (baseUnitValue / 8) / 1e18d, - BitRateUnit.ExaoctetPerSecond => (baseUnitValue / 8) / 1e18d, - BitRateUnit.ExbibitPerSecond => (baseUnitValue) / (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - BitRateUnit.ExbibytePerSecond => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - BitRateUnit.ExbioctetPerSecond => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - BitRateUnit.GibibitPerSecond => (baseUnitValue) / (1024d * 1024 * 1024), - BitRateUnit.GibibytePerSecond => (baseUnitValue / 8) / (1024d * 1024 * 1024), - BitRateUnit.GibioctetPerSecond => (baseUnitValue / 8) / (1024d * 1024 * 1024), - BitRateUnit.GigabitPerSecond => (baseUnitValue) / 1e9d, - BitRateUnit.GigabytePerSecond => (baseUnitValue / 8) / 1e9d, - BitRateUnit.GigaoctetPerSecond => (baseUnitValue / 8) / 1e9d, - BitRateUnit.KibibitPerSecond => (baseUnitValue) / 1024d, - BitRateUnit.KibibytePerSecond => (baseUnitValue / 8) / 1024d, - BitRateUnit.KibioctetPerSecond => (baseUnitValue / 8) / 1024d, - BitRateUnit.KilobitPerSecond => (baseUnitValue) / 1e3d, - BitRateUnit.KilobytePerSecond => (baseUnitValue / 8) / 1e3d, - BitRateUnit.KilooctetPerSecond => (baseUnitValue / 8) / 1e3d, - BitRateUnit.MebibitPerSecond => (baseUnitValue) / (1024d * 1024), - BitRateUnit.MebibytePerSecond => (baseUnitValue / 8) / (1024d * 1024), - BitRateUnit.MebioctetPerSecond => (baseUnitValue / 8) / (1024d * 1024), - BitRateUnit.MegabitPerSecond => (baseUnitValue) / 1e6d, - BitRateUnit.MegabytePerSecond => (baseUnitValue / 8) / 1e6d, - BitRateUnit.MegaoctetPerSecond => (baseUnitValue / 8) / 1e6d, - BitRateUnit.OctetPerSecond => baseUnitValue / 8, - BitRateUnit.PebibitPerSecond => (baseUnitValue) / (1024d * 1024 * 1024 * 1024 * 1024), - BitRateUnit.PebibytePerSecond => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024 * 1024), - BitRateUnit.PebioctetPerSecond => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024 * 1024), - BitRateUnit.PetabitPerSecond => (baseUnitValue) / 1e15d, - BitRateUnit.PetabytePerSecond => (baseUnitValue / 8) / 1e15d, - BitRateUnit.PetaoctetPerSecond => (baseUnitValue / 8) / 1e15d, - BitRateUnit.TebibitPerSecond => (baseUnitValue) / (1024d * 1024 * 1024 * 1024), - BitRateUnit.TebibytePerSecond => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024), - BitRateUnit.TebioctetPerSecond => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024), - BitRateUnit.TerabitPerSecond => (baseUnitValue) / 1e12d, - BitRateUnit.TerabytePerSecond => (baseUnitValue / 8) / 1e12d, - BitRateUnit.TeraoctetPerSecond => (baseUnitValue / 8) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs deleted file mode 100644 index 8b57427c8d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs +++ /dev/null @@ -1,181 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Brake specific fuel consumption (BSFC) is a measure of the fuel efficiency of any prime mover that burns fuel and produces rotational, or shaft, power. It is typically used for comparing the efficiency of internal combustion engines with a shaft output. - /// - public struct BrakeSpecificFuelConsumption - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly BrakeSpecificFuelConsumptionUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public BrakeSpecificFuelConsumptionUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public BrakeSpecificFuelConsumption(double value, BrakeSpecificFuelConsumptionUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of BrakeSpecificFuelConsumption, which is Second. All conversions go via this value. - /// - public static BrakeSpecificFuelConsumptionUnit BaseUnit { get; } = BrakeSpecificFuelConsumptionUnit.KilogramPerJoule; - - /// - /// Represents the largest possible value of BrakeSpecificFuelConsumption. - /// - public static BrakeSpecificFuelConsumption MaxValue { get; } = new BrakeSpecificFuelConsumption(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of BrakeSpecificFuelConsumption. - /// - public static BrakeSpecificFuelConsumption MinValue { get; } = new BrakeSpecificFuelConsumption(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static BrakeSpecificFuelConsumption Zero { get; } = new BrakeSpecificFuelConsumption(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerKiloWattHour => As(BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerJoule => As(BrakeSpecificFuelConsumptionUnit.KilogramPerJoule); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerMechanicalHorsepowerHour => As(BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static BrakeSpecificFuelConsumption FromGramsPerKiloWattHour(double gramsperkilowatthour) => new BrakeSpecificFuelConsumption(gramsperkilowatthour, BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour); - - /// - /// Creates a from . - /// - public static BrakeSpecificFuelConsumption FromKilogramsPerJoule(double kilogramsperjoule) => new BrakeSpecificFuelConsumption(kilogramsperjoule, BrakeSpecificFuelConsumptionUnit.KilogramPerJoule); - - /// - /// Creates a from . - /// - public static BrakeSpecificFuelConsumption FromPoundsPerMechanicalHorsepowerHour(double poundspermechanicalhorsepowerhour) => new BrakeSpecificFuelConsumption(poundspermechanicalhorsepowerhour, BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// BrakeSpecificFuelConsumption unit value. - public static BrakeSpecificFuelConsumption From(double value, BrakeSpecificFuelConsumptionUnit fromUnit) - { - return new BrakeSpecificFuelConsumption(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(BrakeSpecificFuelConsumptionUnit unit) => GetValueAs(unit); - - /// - /// Converts this BrakeSpecificFuelConsumption to another BrakeSpecificFuelConsumption with the unit representation . - /// - /// A BrakeSpecificFuelConsumption with the specified unit. - public BrakeSpecificFuelConsumption ToUnit(BrakeSpecificFuelConsumptionUnit unit) - { - var convertedValue = GetValueAs(unit); - return new BrakeSpecificFuelConsumption(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour => _value / 3.6e9, - BrakeSpecificFuelConsumptionUnit.KilogramPerJoule => _value, - BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour => _value * (0.45359237 / (76.0402249 * 9.80665))/3600, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(BrakeSpecificFuelConsumptionUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour => baseUnitValue * 3.6e9, - BrakeSpecificFuelConsumptionUnit.KilogramPerJoule => baseUnitValue, - BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour => baseUnitValue * 3600 / (0.45359237 / (76.0402249 * 9.80665)), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs deleted file mode 100644 index 473f9bf1cd..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs +++ /dev/null @@ -1,217 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A unit that represents a fractional change in size in response to a change in temperature. - /// - public struct CoefficientOfThermalExpansion - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly CoefficientOfThermalExpansionUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public CoefficientOfThermalExpansionUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public CoefficientOfThermalExpansion(double value, CoefficientOfThermalExpansionUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of CoefficientOfThermalExpansion, which is Second. All conversions go via this value. - /// - public static CoefficientOfThermalExpansionUnit BaseUnit { get; } = CoefficientOfThermalExpansionUnit.PerKelvin; - - /// - /// Represents the largest possible value of CoefficientOfThermalExpansion. - /// - public static CoefficientOfThermalExpansion MaxValue { get; } = new CoefficientOfThermalExpansion(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of CoefficientOfThermalExpansion. - /// - public static CoefficientOfThermalExpansion MinValue { get; } = new CoefficientOfThermalExpansion(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static CoefficientOfThermalExpansion Zero { get; } = new CoefficientOfThermalExpansion(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double PerDegreeCelsius => As(CoefficientOfThermalExpansionUnit.PerDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double PerDegreeFahrenheit => As(CoefficientOfThermalExpansionUnit.PerDegreeFahrenheit); - - /// - /// Gets a value of this quantity converted into - /// - public double PerKelvin => As(CoefficientOfThermalExpansionUnit.PerKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double PpmPerDegreeCelsius => As(CoefficientOfThermalExpansionUnit.PpmPerDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double PpmPerDegreeFahrenheit => As(CoefficientOfThermalExpansionUnit.PpmPerDegreeFahrenheit); - - /// - /// Gets a value of this quantity converted into - /// - public double PpmPerKelvin => As(CoefficientOfThermalExpansionUnit.PpmPerKelvin); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static CoefficientOfThermalExpansion FromPerDegreeCelsius(double perdegreecelsius) => new CoefficientOfThermalExpansion(perdegreecelsius, CoefficientOfThermalExpansionUnit.PerDegreeCelsius); - - /// - /// Creates a from . - /// - public static CoefficientOfThermalExpansion FromPerDegreeFahrenheit(double perdegreefahrenheit) => new CoefficientOfThermalExpansion(perdegreefahrenheit, CoefficientOfThermalExpansionUnit.PerDegreeFahrenheit); - - /// - /// Creates a from . - /// - public static CoefficientOfThermalExpansion FromPerKelvin(double perkelvin) => new CoefficientOfThermalExpansion(perkelvin, CoefficientOfThermalExpansionUnit.PerKelvin); - - /// - /// Creates a from . - /// - public static CoefficientOfThermalExpansion FromPpmPerDegreeCelsius(double ppmperdegreecelsius) => new CoefficientOfThermalExpansion(ppmperdegreecelsius, CoefficientOfThermalExpansionUnit.PpmPerDegreeCelsius); - - /// - /// Creates a from . - /// - public static CoefficientOfThermalExpansion FromPpmPerDegreeFahrenheit(double ppmperdegreefahrenheit) => new CoefficientOfThermalExpansion(ppmperdegreefahrenheit, CoefficientOfThermalExpansionUnit.PpmPerDegreeFahrenheit); - - /// - /// Creates a from . - /// - public static CoefficientOfThermalExpansion FromPpmPerKelvin(double ppmperkelvin) => new CoefficientOfThermalExpansion(ppmperkelvin, CoefficientOfThermalExpansionUnit.PpmPerKelvin); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// CoefficientOfThermalExpansion unit value. - public static CoefficientOfThermalExpansion From(double value, CoefficientOfThermalExpansionUnit fromUnit) - { - return new CoefficientOfThermalExpansion(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(CoefficientOfThermalExpansionUnit unit) => GetValueAs(unit); - - /// - /// Converts this CoefficientOfThermalExpansion to another CoefficientOfThermalExpansion with the unit representation . - /// - /// A CoefficientOfThermalExpansion with the specified unit. - public CoefficientOfThermalExpansion ToUnit(CoefficientOfThermalExpansionUnit unit) - { - var convertedValue = GetValueAs(unit); - return new CoefficientOfThermalExpansion(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - CoefficientOfThermalExpansionUnit.PerDegreeCelsius => _value, - CoefficientOfThermalExpansionUnit.PerDegreeFahrenheit => _value * 9 / 5, - CoefficientOfThermalExpansionUnit.PerKelvin => _value, - CoefficientOfThermalExpansionUnit.PpmPerDegreeCelsius => _value / 1e6, - CoefficientOfThermalExpansionUnit.PpmPerDegreeFahrenheit => _value * 9 / 5e6, - CoefficientOfThermalExpansionUnit.PpmPerKelvin => _value / 1e6, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(CoefficientOfThermalExpansionUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - CoefficientOfThermalExpansionUnit.PerDegreeCelsius => baseUnitValue, - CoefficientOfThermalExpansionUnit.PerDegreeFahrenheit => baseUnitValue * 5 / 9, - CoefficientOfThermalExpansionUnit.PerKelvin => baseUnitValue, - CoefficientOfThermalExpansionUnit.PpmPerDegreeCelsius => baseUnitValue * 1e6, - CoefficientOfThermalExpansionUnit.PpmPerDegreeFahrenheit => baseUnitValue * 5e6 / 9, - CoefficientOfThermalExpansionUnit.PpmPerKelvin => baseUnitValue * 1e6, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Compressibility.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Compressibility.g.cs deleted file mode 100644 index 03298e9331..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Compressibility.g.cs +++ /dev/null @@ -1,229 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// - /// - public struct Compressibility - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly CompressibilityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public CompressibilityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Compressibility(double value, CompressibilityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Compressibility, which is Second. All conversions go via this value. - /// - public static CompressibilityUnit BaseUnit { get; } = CompressibilityUnit.InversePascal; - - /// - /// Represents the largest possible value of Compressibility. - /// - public static Compressibility MaxValue { get; } = new Compressibility(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Compressibility. - /// - public static Compressibility MinValue { get; } = new Compressibility(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Compressibility Zero { get; } = new Compressibility(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double InverseAtmospheres => As(CompressibilityUnit.InverseAtmosphere); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseBars => As(CompressibilityUnit.InverseBar); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseKilopascals => As(CompressibilityUnit.InverseKilopascal); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseMegapascals => As(CompressibilityUnit.InverseMegapascal); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseMillibars => As(CompressibilityUnit.InverseMillibar); - - /// - /// Gets a value of this quantity converted into - /// - public double InversePascals => As(CompressibilityUnit.InversePascal); - - /// - /// Gets a value of this quantity converted into - /// - public double InversePoundsForcePerSquareInch => As(CompressibilityUnit.InversePoundForcePerSquareInch); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Compressibility FromInverseAtmospheres(double inverseatmospheres) => new Compressibility(inverseatmospheres, CompressibilityUnit.InverseAtmosphere); - - /// - /// Creates a from . - /// - public static Compressibility FromInverseBars(double inversebars) => new Compressibility(inversebars, CompressibilityUnit.InverseBar); - - /// - /// Creates a from . - /// - public static Compressibility FromInverseKilopascals(double inversekilopascals) => new Compressibility(inversekilopascals, CompressibilityUnit.InverseKilopascal); - - /// - /// Creates a from . - /// - public static Compressibility FromInverseMegapascals(double inversemegapascals) => new Compressibility(inversemegapascals, CompressibilityUnit.InverseMegapascal); - - /// - /// Creates a from . - /// - public static Compressibility FromInverseMillibars(double inversemillibars) => new Compressibility(inversemillibars, CompressibilityUnit.InverseMillibar); - - /// - /// Creates a from . - /// - public static Compressibility FromInversePascals(double inversepascals) => new Compressibility(inversepascals, CompressibilityUnit.InversePascal); - - /// - /// Creates a from . - /// - public static Compressibility FromInversePoundsForcePerSquareInch(double inversepoundsforcepersquareinch) => new Compressibility(inversepoundsforcepersquareinch, CompressibilityUnit.InversePoundForcePerSquareInch); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Compressibility unit value. - public static Compressibility From(double value, CompressibilityUnit fromUnit) - { - return new Compressibility(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(CompressibilityUnit unit) => GetValueAs(unit); - - /// - /// Converts this Compressibility to another Compressibility with the unit representation . - /// - /// A Compressibility with the specified unit. - public Compressibility ToUnit(CompressibilityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Compressibility(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - CompressibilityUnit.InverseAtmosphere => _value * 101325, - CompressibilityUnit.InverseBar => _value * 1e5, - CompressibilityUnit.InverseKilopascal => _value * 1e3, - CompressibilityUnit.InverseMegapascal => _value * 1e6, - CompressibilityUnit.InverseMillibar => _value * 100, - CompressibilityUnit.InversePascal => _value, - CompressibilityUnit.InversePoundForcePerSquareInch => _value * 6.894757293168361e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(CompressibilityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - CompressibilityUnit.InverseAtmosphere => baseUnitValue / 101325, - CompressibilityUnit.InverseBar => baseUnitValue / 1e5, - CompressibilityUnit.InverseKilopascal => baseUnitValue / 1e3, - CompressibilityUnit.InverseMegapascal => baseUnitValue / 1e6, - CompressibilityUnit.InverseMillibar => baseUnitValue / 100, - CompressibilityUnit.InversePascal => baseUnitValue, - CompressibilityUnit.InversePoundForcePerSquareInch => baseUnitValue / 6.894757293168361e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Density.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Density.g.cs deleted file mode 100644 index 069b1d250f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Density.g.cs +++ /dev/null @@ -1,820 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The density, or more precisely, the volumetric mass density, of a substance is its mass per unit volume. - /// - /// - /// http://en.wikipedia.org/wiki/Density - /// - public struct Density - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly DensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public DensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Density(double value, DensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Density, which is Second. All conversions go via this value. - /// - public static DensityUnit BaseUnit { get; } = DensityUnit.KilogramPerCubicMeter; - - /// - /// Represents the largest possible value of Density. - /// - public static Density MaxValue { get; } = new Density(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Density. - /// - public static Density MinValue { get; } = new Density(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Density Zero { get; } = new Density(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerDeciliter => As(DensityUnit.CentigramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerLiter => As(DensityUnit.CentigramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerMilliliter => As(DensityUnit.CentigramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerDeciliter => As(DensityUnit.DecigramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerLiter => As(DensityUnit.DecigramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerMilliliter => As(DensityUnit.DecigramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double FemtogramsPerDeciliter => As(DensityUnit.FemtogramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double FemtogramsPerLiter => As(DensityUnit.FemtogramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double FemtogramsPerMilliliter => As(DensityUnit.FemtogramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerCubicCentimeter => As(DensityUnit.GramPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerCubicFoot => As(DensityUnit.GramPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerCubicInch => As(DensityUnit.GramPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerCubicMeter => As(DensityUnit.GramPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerCubicMillimeter => As(DensityUnit.GramPerCubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerDeciliter => As(DensityUnit.GramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerLiter => As(DensityUnit.GramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerMilliliter => As(DensityUnit.GramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerCubicCentimeter => As(DensityUnit.KilogramPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerCubicMeter => As(DensityUnit.KilogramPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerCubicMillimeter => As(DensityUnit.KilogramPerCubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerLiter => As(DensityUnit.KilogramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsPerCubicFoot => As(DensityUnit.KilopoundPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsPerCubicInch => As(DensityUnit.KilopoundPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsPerCubicYard => As(DensityUnit.KilopoundPerCubicYard); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerCubicMeter => As(DensityUnit.MicrogramPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerDeciliter => As(DensityUnit.MicrogramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerLiter => As(DensityUnit.MicrogramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerMilliliter => As(DensityUnit.MicrogramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerCubicMeter => As(DensityUnit.MilligramPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerDeciliter => As(DensityUnit.MilligramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerLiter => As(DensityUnit.MilligramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerMilliliter => As(DensityUnit.MilligramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerDeciliter => As(DensityUnit.NanogramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerLiter => As(DensityUnit.NanogramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerMilliliter => As(DensityUnit.NanogramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicogramsPerDeciliter => As(DensityUnit.PicogramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicogramsPerLiter => As(DensityUnit.PicogramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicogramsPerMilliliter => As(DensityUnit.PicogramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerCubicCentimeter => As(DensityUnit.PoundPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerCubicFoot => As(DensityUnit.PoundPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerCubicInch => As(DensityUnit.PoundPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerCubicMeter => As(DensityUnit.PoundPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerCubicMillimeter => As(DensityUnit.PoundPerCubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerCubicYard => As(DensityUnit.PoundPerCubicYard); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerImperialGallon => As(DensityUnit.PoundPerImperialGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerUSGallon => As(DensityUnit.PoundPerUSGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double SlugsPerCubicCentimeter => As(DensityUnit.SlugPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double SlugsPerCubicFoot => As(DensityUnit.SlugPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double SlugsPerCubicInch => As(DensityUnit.SlugPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double SlugsPerCubicMeter => As(DensityUnit.SlugPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double SlugsPerCubicMillimeter => As(DensityUnit.SlugPerCubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerCubicCentimeter => As(DensityUnit.TonnePerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerCubicFoot => As(DensityUnit.TonnePerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerCubicInch => As(DensityUnit.TonnePerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerCubicMeter => As(DensityUnit.TonnePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerCubicMillimeter => As(DensityUnit.TonnePerCubicMillimeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Density FromCentigramsPerDeciliter(double centigramsperdeciliter) => new Density(centigramsperdeciliter, DensityUnit.CentigramPerDeciliter); - - /// - /// Creates a from . - /// - public static Density FromCentigramsPerLiter(double centigramsperliter) => new Density(centigramsperliter, DensityUnit.CentigramPerLiter); - - /// - /// Creates a from . - /// - public static Density FromCentigramsPerMilliliter(double centigramspermilliliter) => new Density(centigramspermilliliter, DensityUnit.CentigramPerMilliliter); - - /// - /// Creates a from . - /// - public static Density FromDecigramsPerDeciliter(double decigramsperdeciliter) => new Density(decigramsperdeciliter, DensityUnit.DecigramPerDeciliter); - - /// - /// Creates a from . - /// - public static Density FromDecigramsPerLiter(double decigramsperliter) => new Density(decigramsperliter, DensityUnit.DecigramPerLiter); - - /// - /// Creates a from . - /// - public static Density FromDecigramsPerMilliliter(double decigramspermilliliter) => new Density(decigramspermilliliter, DensityUnit.DecigramPerMilliliter); - - /// - /// Creates a from . - /// - public static Density FromFemtogramsPerDeciliter(double femtogramsperdeciliter) => new Density(femtogramsperdeciliter, DensityUnit.FemtogramPerDeciliter); - - /// - /// Creates a from . - /// - public static Density FromFemtogramsPerLiter(double femtogramsperliter) => new Density(femtogramsperliter, DensityUnit.FemtogramPerLiter); - - /// - /// Creates a from . - /// - public static Density FromFemtogramsPerMilliliter(double femtogramspermilliliter) => new Density(femtogramspermilliliter, DensityUnit.FemtogramPerMilliliter); - - /// - /// Creates a from . - /// - public static Density FromGramsPerCubicCentimeter(double gramspercubiccentimeter) => new Density(gramspercubiccentimeter, DensityUnit.GramPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static Density FromGramsPerCubicFoot(double gramspercubicfoot) => new Density(gramspercubicfoot, DensityUnit.GramPerCubicFoot); - - /// - /// Creates a from . - /// - public static Density FromGramsPerCubicInch(double gramspercubicinch) => new Density(gramspercubicinch, DensityUnit.GramPerCubicInch); - - /// - /// Creates a from . - /// - public static Density FromGramsPerCubicMeter(double gramspercubicmeter) => new Density(gramspercubicmeter, DensityUnit.GramPerCubicMeter); - - /// - /// Creates a from . - /// - public static Density FromGramsPerCubicMillimeter(double gramspercubicmillimeter) => new Density(gramspercubicmillimeter, DensityUnit.GramPerCubicMillimeter); - - /// - /// Creates a from . - /// - public static Density FromGramsPerDeciliter(double gramsperdeciliter) => new Density(gramsperdeciliter, DensityUnit.GramPerDeciliter); - - /// - /// Creates a from . - /// - public static Density FromGramsPerLiter(double gramsperliter) => new Density(gramsperliter, DensityUnit.GramPerLiter); - - /// - /// Creates a from . - /// - public static Density FromGramsPerMilliliter(double gramspermilliliter) => new Density(gramspermilliliter, DensityUnit.GramPerMilliliter); - - /// - /// Creates a from . - /// - public static Density FromKilogramsPerCubicCentimeter(double kilogramspercubiccentimeter) => new Density(kilogramspercubiccentimeter, DensityUnit.KilogramPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static Density FromKilogramsPerCubicMeter(double kilogramspercubicmeter) => new Density(kilogramspercubicmeter, DensityUnit.KilogramPerCubicMeter); - - /// - /// Creates a from . - /// - public static Density FromKilogramsPerCubicMillimeter(double kilogramspercubicmillimeter) => new Density(kilogramspercubicmillimeter, DensityUnit.KilogramPerCubicMillimeter); - - /// - /// Creates a from . - /// - public static Density FromKilogramsPerLiter(double kilogramsperliter) => new Density(kilogramsperliter, DensityUnit.KilogramPerLiter); - - /// - /// Creates a from . - /// - public static Density FromKilopoundsPerCubicFoot(double kilopoundspercubicfoot) => new Density(kilopoundspercubicfoot, DensityUnit.KilopoundPerCubicFoot); - - /// - /// Creates a from . - /// - public static Density FromKilopoundsPerCubicInch(double kilopoundspercubicinch) => new Density(kilopoundspercubicinch, DensityUnit.KilopoundPerCubicInch); - - /// - /// Creates a from . - /// - public static Density FromKilopoundsPerCubicYard(double kilopoundspercubicyard) => new Density(kilopoundspercubicyard, DensityUnit.KilopoundPerCubicYard); - - /// - /// Creates a from . - /// - public static Density FromMicrogramsPerCubicMeter(double microgramspercubicmeter) => new Density(microgramspercubicmeter, DensityUnit.MicrogramPerCubicMeter); - - /// - /// Creates a from . - /// - public static Density FromMicrogramsPerDeciliter(double microgramsperdeciliter) => new Density(microgramsperdeciliter, DensityUnit.MicrogramPerDeciliter); - - /// - /// Creates a from . - /// - public static Density FromMicrogramsPerLiter(double microgramsperliter) => new Density(microgramsperliter, DensityUnit.MicrogramPerLiter); - - /// - /// Creates a from . - /// - public static Density FromMicrogramsPerMilliliter(double microgramspermilliliter) => new Density(microgramspermilliliter, DensityUnit.MicrogramPerMilliliter); - - /// - /// Creates a from . - /// - public static Density FromMilligramsPerCubicMeter(double milligramspercubicmeter) => new Density(milligramspercubicmeter, DensityUnit.MilligramPerCubicMeter); - - /// - /// Creates a from . - /// - public static Density FromMilligramsPerDeciliter(double milligramsperdeciliter) => new Density(milligramsperdeciliter, DensityUnit.MilligramPerDeciliter); - - /// - /// Creates a from . - /// - public static Density FromMilligramsPerLiter(double milligramsperliter) => new Density(milligramsperliter, DensityUnit.MilligramPerLiter); - - /// - /// Creates a from . - /// - public static Density FromMilligramsPerMilliliter(double milligramspermilliliter) => new Density(milligramspermilliliter, DensityUnit.MilligramPerMilliliter); - - /// - /// Creates a from . - /// - public static Density FromNanogramsPerDeciliter(double nanogramsperdeciliter) => new Density(nanogramsperdeciliter, DensityUnit.NanogramPerDeciliter); - - /// - /// Creates a from . - /// - public static Density FromNanogramsPerLiter(double nanogramsperliter) => new Density(nanogramsperliter, DensityUnit.NanogramPerLiter); - - /// - /// Creates a from . - /// - public static Density FromNanogramsPerMilliliter(double nanogramspermilliliter) => new Density(nanogramspermilliliter, DensityUnit.NanogramPerMilliliter); - - /// - /// Creates a from . - /// - public static Density FromPicogramsPerDeciliter(double picogramsperdeciliter) => new Density(picogramsperdeciliter, DensityUnit.PicogramPerDeciliter); - - /// - /// Creates a from . - /// - public static Density FromPicogramsPerLiter(double picogramsperliter) => new Density(picogramsperliter, DensityUnit.PicogramPerLiter); - - /// - /// Creates a from . - /// - public static Density FromPicogramsPerMilliliter(double picogramspermilliliter) => new Density(picogramspermilliliter, DensityUnit.PicogramPerMilliliter); - - /// - /// Creates a from . - /// - public static Density FromPoundsPerCubicCentimeter(double poundspercubiccentimeter) => new Density(poundspercubiccentimeter, DensityUnit.PoundPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static Density FromPoundsPerCubicFoot(double poundspercubicfoot) => new Density(poundspercubicfoot, DensityUnit.PoundPerCubicFoot); - - /// - /// Creates a from . - /// - public static Density FromPoundsPerCubicInch(double poundspercubicinch) => new Density(poundspercubicinch, DensityUnit.PoundPerCubicInch); - - /// - /// Creates a from . - /// - public static Density FromPoundsPerCubicMeter(double poundspercubicmeter) => new Density(poundspercubicmeter, DensityUnit.PoundPerCubicMeter); - - /// - /// Creates a from . - /// - public static Density FromPoundsPerCubicMillimeter(double poundspercubicmillimeter) => new Density(poundspercubicmillimeter, DensityUnit.PoundPerCubicMillimeter); - - /// - /// Creates a from . - /// - public static Density FromPoundsPerCubicYard(double poundspercubicyard) => new Density(poundspercubicyard, DensityUnit.PoundPerCubicYard); - - /// - /// Creates a from . - /// - public static Density FromPoundsPerImperialGallon(double poundsperimperialgallon) => new Density(poundsperimperialgallon, DensityUnit.PoundPerImperialGallon); - - /// - /// Creates a from . - /// - public static Density FromPoundsPerUSGallon(double poundsperusgallon) => new Density(poundsperusgallon, DensityUnit.PoundPerUSGallon); - - /// - /// Creates a from . - /// - public static Density FromSlugsPerCubicCentimeter(double slugspercubiccentimeter) => new Density(slugspercubiccentimeter, DensityUnit.SlugPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static Density FromSlugsPerCubicFoot(double slugspercubicfoot) => new Density(slugspercubicfoot, DensityUnit.SlugPerCubicFoot); - - /// - /// Creates a from . - /// - public static Density FromSlugsPerCubicInch(double slugspercubicinch) => new Density(slugspercubicinch, DensityUnit.SlugPerCubicInch); - - /// - /// Creates a from . - /// - public static Density FromSlugsPerCubicMeter(double slugspercubicmeter) => new Density(slugspercubicmeter, DensityUnit.SlugPerCubicMeter); - - /// - /// Creates a from . - /// - public static Density FromSlugsPerCubicMillimeter(double slugspercubicmillimeter) => new Density(slugspercubicmillimeter, DensityUnit.SlugPerCubicMillimeter); - - /// - /// Creates a from . - /// - public static Density FromTonnesPerCubicCentimeter(double tonnespercubiccentimeter) => new Density(tonnespercubiccentimeter, DensityUnit.TonnePerCubicCentimeter); - - /// - /// Creates a from . - /// - public static Density FromTonnesPerCubicFoot(double tonnespercubicfoot) => new Density(tonnespercubicfoot, DensityUnit.TonnePerCubicFoot); - - /// - /// Creates a from . - /// - public static Density FromTonnesPerCubicInch(double tonnespercubicinch) => new Density(tonnespercubicinch, DensityUnit.TonnePerCubicInch); - - /// - /// Creates a from . - /// - public static Density FromTonnesPerCubicMeter(double tonnespercubicmeter) => new Density(tonnespercubicmeter, DensityUnit.TonnePerCubicMeter); - - /// - /// Creates a from . - /// - public static Density FromTonnesPerCubicMillimeter(double tonnespercubicmillimeter) => new Density(tonnespercubicmillimeter, DensityUnit.TonnePerCubicMillimeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Density unit value. - public static Density From(double value, DensityUnit fromUnit) - { - return new Density(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(DensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this Density to another Density with the unit representation . - /// - /// A Density with the specified unit. - public Density ToUnit(DensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Density(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - DensityUnit.CentigramPerDeciliter => (_value / 1e-1) * 1e-2d, - DensityUnit.CentigramPerLiter => (_value / 1) * 1e-2d, - DensityUnit.CentigramPerMilliliter => (_value / 1e-3) * 1e-2d, - DensityUnit.DecigramPerDeciliter => (_value / 1e-1) * 1e-1d, - DensityUnit.DecigramPerLiter => (_value / 1) * 1e-1d, - DensityUnit.DecigramPerMilliliter => (_value / 1e-3) * 1e-1d, - DensityUnit.FemtogramPerDeciliter => (_value / 1e-1) * 1e-15d, - DensityUnit.FemtogramPerLiter => (_value / 1) * 1e-15d, - DensityUnit.FemtogramPerMilliliter => (_value / 1e-3) * 1e-15d, - DensityUnit.GramPerCubicCentimeter => _value / 1e-3, - DensityUnit.GramPerCubicFoot => _value * 0.001 / 0.028316846592, - DensityUnit.GramPerCubicInch => _value * 0.001 / 1.6387064e-5, - DensityUnit.GramPerCubicMeter => _value / 1e3, - DensityUnit.GramPerCubicMillimeter => _value / 1e-6, - DensityUnit.GramPerDeciliter => _value / 1e-1, - DensityUnit.GramPerLiter => _value / 1, - DensityUnit.GramPerMilliliter => _value / 1e-3, - DensityUnit.KilogramPerCubicCentimeter => (_value / 1e-3) * 1e3d, - DensityUnit.KilogramPerCubicMeter => (_value / 1e3) * 1e3d, - DensityUnit.KilogramPerCubicMillimeter => (_value / 1e-6) * 1e3d, - DensityUnit.KilogramPerLiter => _value * 1e3, - DensityUnit.KilopoundPerCubicFoot => (_value * 0.45359237 / 0.028316846592) * 1e3d, - DensityUnit.KilopoundPerCubicInch => (_value * 0.45359237 / 1.6387064e-5) * 1e3d, - DensityUnit.KilopoundPerCubicYard => (_value * 0.45359237 / 0.764554857984) * 1e3d, - DensityUnit.MicrogramPerCubicMeter => (_value / 1e3) * 1e-6d, - DensityUnit.MicrogramPerDeciliter => (_value / 1e-1) * 1e-6d, - DensityUnit.MicrogramPerLiter => (_value / 1) * 1e-6d, - DensityUnit.MicrogramPerMilliliter => (_value / 1e-3) * 1e-6d, - DensityUnit.MilligramPerCubicMeter => (_value / 1e3) * 1e-3d, - DensityUnit.MilligramPerDeciliter => (_value / 1e-1) * 1e-3d, - DensityUnit.MilligramPerLiter => (_value / 1) * 1e-3d, - DensityUnit.MilligramPerMilliliter => (_value / 1e-3) * 1e-3d, - DensityUnit.NanogramPerDeciliter => (_value / 1e-1) * 1e-9d, - DensityUnit.NanogramPerLiter => (_value / 1) * 1e-9d, - DensityUnit.NanogramPerMilliliter => (_value / 1e-3) * 1e-9d, - DensityUnit.PicogramPerDeciliter => (_value / 1e-1) * 1e-12d, - DensityUnit.PicogramPerLiter => (_value / 1) * 1e-12d, - DensityUnit.PicogramPerMilliliter => (_value / 1e-3) * 1e-12d, - DensityUnit.PoundPerCubicCentimeter => _value * 0.45359237e6, - DensityUnit.PoundPerCubicFoot => _value * 0.45359237 / 0.028316846592, - DensityUnit.PoundPerCubicInch => _value * 0.45359237 / 1.6387064e-5, - DensityUnit.PoundPerCubicMeter => _value * 0.45359237, - DensityUnit.PoundPerCubicMillimeter => _value * 0.45359237e9, - DensityUnit.PoundPerCubicYard => _value * 0.45359237 / 0.764554857984, - DensityUnit.PoundPerImperialGallon => _value * 0.45359237 / 0.00454609, - DensityUnit.PoundPerUSGallon => _value * 0.45359237 / 0.003785411784, - DensityUnit.SlugPerCubicCentimeter => _value * 0.45359237e6 * 9.80665 / 0.3048, - DensityUnit.SlugPerCubicFoot => _value * (0.45359237 * 9.80665) / (0.3048 * 0.028316846592), - DensityUnit.SlugPerCubicInch => _value * (0.45359237 * 9.80665) / (0.3048 * 1.6387064e-5), - DensityUnit.SlugPerCubicMeter => _value * 0.45359237 * 9.80665 / 0.3048, - DensityUnit.SlugPerCubicMillimeter => _value * 0.45359237e9 * 9.80665 / 0.3048, - DensityUnit.TonnePerCubicCentimeter => _value / 1e-9, - DensityUnit.TonnePerCubicFoot => _value * 1000 / 0.028316846592, - DensityUnit.TonnePerCubicInch => _value * 1000 / 1.6387064e-5, - DensityUnit.TonnePerCubicMeter => _value / 0.001, - DensityUnit.TonnePerCubicMillimeter => _value / 1e-12, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(DensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - DensityUnit.CentigramPerDeciliter => (baseUnitValue * 1e-1) / 1e-2d, - DensityUnit.CentigramPerLiter => (baseUnitValue * 1) / 1e-2d, - DensityUnit.CentigramPerMilliliter => (baseUnitValue * 1e-3) / 1e-2d, - DensityUnit.DecigramPerDeciliter => (baseUnitValue * 1e-1) / 1e-1d, - DensityUnit.DecigramPerLiter => (baseUnitValue * 1) / 1e-1d, - DensityUnit.DecigramPerMilliliter => (baseUnitValue * 1e-3) / 1e-1d, - DensityUnit.FemtogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-15d, - DensityUnit.FemtogramPerLiter => (baseUnitValue * 1) / 1e-15d, - DensityUnit.FemtogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-15d, - DensityUnit.GramPerCubicCentimeter => baseUnitValue * 1e-3, - DensityUnit.GramPerCubicFoot => baseUnitValue * 0.028316846592 / 0.001, - DensityUnit.GramPerCubicInch => baseUnitValue * 1.6387064e-5 / 0.001, - DensityUnit.GramPerCubicMeter => baseUnitValue * 1e3, - DensityUnit.GramPerCubicMillimeter => baseUnitValue * 1e-6, - DensityUnit.GramPerDeciliter => baseUnitValue * 1e-1, - DensityUnit.GramPerLiter => baseUnitValue * 1, - DensityUnit.GramPerMilliliter => baseUnitValue * 1e-3, - DensityUnit.KilogramPerCubicCentimeter => (baseUnitValue * 1e-3) / 1e3d, - DensityUnit.KilogramPerCubicMeter => (baseUnitValue * 1e3) / 1e3d, - DensityUnit.KilogramPerCubicMillimeter => (baseUnitValue * 1e-6) / 1e3d, - DensityUnit.KilogramPerLiter => baseUnitValue / 1e3, - DensityUnit.KilopoundPerCubicFoot => (baseUnitValue * 0.028316846592 / 0.45359237) / 1e3d, - DensityUnit.KilopoundPerCubicInch => (baseUnitValue * 1.6387064e-5 / 0.45359237) / 1e3d, - DensityUnit.KilopoundPerCubicYard => (baseUnitValue * 0.764554857984 / 0.45359237) / 1e3d, - DensityUnit.MicrogramPerCubicMeter => (baseUnitValue * 1e3) / 1e-6d, - DensityUnit.MicrogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-6d, - DensityUnit.MicrogramPerLiter => (baseUnitValue * 1) / 1e-6d, - DensityUnit.MicrogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-6d, - DensityUnit.MilligramPerCubicMeter => (baseUnitValue * 1e3) / 1e-3d, - DensityUnit.MilligramPerDeciliter => (baseUnitValue * 1e-1) / 1e-3d, - DensityUnit.MilligramPerLiter => (baseUnitValue * 1) / 1e-3d, - DensityUnit.MilligramPerMilliliter => (baseUnitValue * 1e-3) / 1e-3d, - DensityUnit.NanogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-9d, - DensityUnit.NanogramPerLiter => (baseUnitValue * 1) / 1e-9d, - DensityUnit.NanogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-9d, - DensityUnit.PicogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-12d, - DensityUnit.PicogramPerLiter => (baseUnitValue * 1) / 1e-12d, - DensityUnit.PicogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-12d, - DensityUnit.PoundPerCubicCentimeter => baseUnitValue / 0.45359237e6, - DensityUnit.PoundPerCubicFoot => baseUnitValue * 0.028316846592 / 0.45359237, - DensityUnit.PoundPerCubicInch => baseUnitValue * 1.6387064e-5 / 0.45359237, - DensityUnit.PoundPerCubicMeter => baseUnitValue / 0.45359237, - DensityUnit.PoundPerCubicMillimeter => baseUnitValue / 0.45359237e9, - DensityUnit.PoundPerCubicYard => baseUnitValue * 0.764554857984 / 0.45359237, - DensityUnit.PoundPerImperialGallon => baseUnitValue * 0.00454609 / 0.45359237, - DensityUnit.PoundPerUSGallon => baseUnitValue * 0.003785411784 / 0.45359237, - DensityUnit.SlugPerCubicCentimeter => baseUnitValue * 0.3048 / (0.45359237e6 * 9.80665), - DensityUnit.SlugPerCubicFoot => baseUnitValue * (0.3048 * 0.028316846592) / (0.45359237 * 9.80665), - DensityUnit.SlugPerCubicInch => baseUnitValue * (0.3048 * 1.6387064e-5) / (0.45359237 * 9.80665), - DensityUnit.SlugPerCubicMeter => baseUnitValue * 0.3048 / (0.45359237 * 9.80665), - DensityUnit.SlugPerCubicMillimeter => baseUnitValue * 0.3048 / (0.45359237e9 * 9.80665), - DensityUnit.TonnePerCubicCentimeter => baseUnitValue * 1e-9, - DensityUnit.TonnePerCubicFoot => baseUnitValue * 0.028316846592 / 1000, - DensityUnit.TonnePerCubicInch => baseUnitValue * 1.6387064e-5 / 1000, - DensityUnit.TonnePerCubicMeter => baseUnitValue * 0.001, - DensityUnit.TonnePerCubicMillimeter => baseUnitValue * 1e-12, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/DoseAreaProduct.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/DoseAreaProduct.g.cs deleted file mode 100644 index 60ad5a2b80..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/DoseAreaProduct.g.cs +++ /dev/null @@ -1,448 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// It is defined as the absorbed dose multiplied by the area irradiated. - /// - /// - /// https://en.wikipedia.org/wiki/Dose_area_product - /// - public struct DoseAreaProduct - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly DoseAreaProductUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public DoseAreaProductUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public DoseAreaProduct(double value, DoseAreaProductUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of DoseAreaProduct, which is Second. All conversions go via this value. - /// - public static DoseAreaProductUnit BaseUnit { get; } = DoseAreaProductUnit.GraySquareMeter; - - /// - /// Represents the largest possible value of DoseAreaProduct. - /// - public static DoseAreaProduct MaxValue { get; } = new DoseAreaProduct(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of DoseAreaProduct. - /// - public static DoseAreaProduct MinValue { get; } = new DoseAreaProduct(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static DoseAreaProduct Zero { get; } = new DoseAreaProduct(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentigraySquareCentimeters => As(DoseAreaProductUnit.CentigraySquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigraySquareDecimeters => As(DoseAreaProductUnit.CentigraySquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigraySquareMeters => As(DoseAreaProductUnit.CentigraySquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigraySquareMicrometers => As(DoseAreaProductUnit.CentigraySquareMicrometer); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigraySquareMillimeters => As(DoseAreaProductUnit.CentigraySquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigraySquareCentimeters => As(DoseAreaProductUnit.DecigraySquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigraySquareDecimeters => As(DoseAreaProductUnit.DecigraySquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigraySquareMeters => As(DoseAreaProductUnit.DecigraySquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigraySquareMicrometers => As(DoseAreaProductUnit.DecigraySquareMicrometer); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigraySquareMillimeters => As(DoseAreaProductUnit.DecigraySquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GraySquareCentimeters => As(DoseAreaProductUnit.GraySquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GraySquareDecimeters => As(DoseAreaProductUnit.GraySquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GraySquareMeters => As(DoseAreaProductUnit.GraySquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GraySquareMicrometers => As(DoseAreaProductUnit.GraySquareMicrometer); - - /// - /// Gets a value of this quantity converted into - /// - public double GraySquareMillimeters => As(DoseAreaProductUnit.GraySquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrograySquareCentimeters => As(DoseAreaProductUnit.MicrograySquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrograySquareDecimeters => As(DoseAreaProductUnit.MicrograySquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrograySquareMeters => As(DoseAreaProductUnit.MicrograySquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrograySquareMicrometers => As(DoseAreaProductUnit.MicrograySquareMicrometer); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrograySquareMillimeters => As(DoseAreaProductUnit.MicrograySquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligraySquareCentimeters => As(DoseAreaProductUnit.MilligraySquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligraySquareDecimeters => As(DoseAreaProductUnit.MilligraySquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligraySquareMeters => As(DoseAreaProductUnit.MilligraySquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligraySquareMicrometers => As(DoseAreaProductUnit.MilligraySquareMicrometer); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligraySquareMillimeters => As(DoseAreaProductUnit.MilligraySquareMillimeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromCentigraySquareCentimeters(double centigraysquarecentimeters) => new DoseAreaProduct(centigraysquarecentimeters, DoseAreaProductUnit.CentigraySquareCentimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromCentigraySquareDecimeters(double centigraysquaredecimeters) => new DoseAreaProduct(centigraysquaredecimeters, DoseAreaProductUnit.CentigraySquareDecimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromCentigraySquareMeters(double centigraysquaremeters) => new DoseAreaProduct(centigraysquaremeters, DoseAreaProductUnit.CentigraySquareMeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromCentigraySquareMicrometers(double centigraysquaremicrometers) => new DoseAreaProduct(centigraysquaremicrometers, DoseAreaProductUnit.CentigraySquareMicrometer); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromCentigraySquareMillimeters(double centigraysquaremillimeters) => new DoseAreaProduct(centigraysquaremillimeters, DoseAreaProductUnit.CentigraySquareMillimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromDecigraySquareCentimeters(double decigraysquarecentimeters) => new DoseAreaProduct(decigraysquarecentimeters, DoseAreaProductUnit.DecigraySquareCentimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromDecigraySquareDecimeters(double decigraysquaredecimeters) => new DoseAreaProduct(decigraysquaredecimeters, DoseAreaProductUnit.DecigraySquareDecimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromDecigraySquareMeters(double decigraysquaremeters) => new DoseAreaProduct(decigraysquaremeters, DoseAreaProductUnit.DecigraySquareMeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromDecigraySquareMicrometers(double decigraysquaremicrometers) => new DoseAreaProduct(decigraysquaremicrometers, DoseAreaProductUnit.DecigraySquareMicrometer); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromDecigraySquareMillimeters(double decigraysquaremillimeters) => new DoseAreaProduct(decigraysquaremillimeters, DoseAreaProductUnit.DecigraySquareMillimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromGraySquareCentimeters(double graysquarecentimeters) => new DoseAreaProduct(graysquarecentimeters, DoseAreaProductUnit.GraySquareCentimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromGraySquareDecimeters(double graysquaredecimeters) => new DoseAreaProduct(graysquaredecimeters, DoseAreaProductUnit.GraySquareDecimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromGraySquareMeters(double graysquaremeters) => new DoseAreaProduct(graysquaremeters, DoseAreaProductUnit.GraySquareMeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromGraySquareMicrometers(double graysquaremicrometers) => new DoseAreaProduct(graysquaremicrometers, DoseAreaProductUnit.GraySquareMicrometer); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromGraySquareMillimeters(double graysquaremillimeters) => new DoseAreaProduct(graysquaremillimeters, DoseAreaProductUnit.GraySquareMillimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMicrograySquareCentimeters(double micrograysquarecentimeters) => new DoseAreaProduct(micrograysquarecentimeters, DoseAreaProductUnit.MicrograySquareCentimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMicrograySquareDecimeters(double micrograysquaredecimeters) => new DoseAreaProduct(micrograysquaredecimeters, DoseAreaProductUnit.MicrograySquareDecimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMicrograySquareMeters(double micrograysquaremeters) => new DoseAreaProduct(micrograysquaremeters, DoseAreaProductUnit.MicrograySquareMeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMicrograySquareMicrometers(double micrograysquaremicrometers) => new DoseAreaProduct(micrograysquaremicrometers, DoseAreaProductUnit.MicrograySquareMicrometer); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMicrograySquareMillimeters(double micrograysquaremillimeters) => new DoseAreaProduct(micrograysquaremillimeters, DoseAreaProductUnit.MicrograySquareMillimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMilligraySquareCentimeters(double milligraysquarecentimeters) => new DoseAreaProduct(milligraysquarecentimeters, DoseAreaProductUnit.MilligraySquareCentimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMilligraySquareDecimeters(double milligraysquaredecimeters) => new DoseAreaProduct(milligraysquaredecimeters, DoseAreaProductUnit.MilligraySquareDecimeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMilligraySquareMeters(double milligraysquaremeters) => new DoseAreaProduct(milligraysquaremeters, DoseAreaProductUnit.MilligraySquareMeter); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMilligraySquareMicrometers(double milligraysquaremicrometers) => new DoseAreaProduct(milligraysquaremicrometers, DoseAreaProductUnit.MilligraySquareMicrometer); - - /// - /// Creates a from . - /// - public static DoseAreaProduct FromMilligraySquareMillimeters(double milligraysquaremillimeters) => new DoseAreaProduct(milligraysquaremillimeters, DoseAreaProductUnit.MilligraySquareMillimeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// DoseAreaProduct unit value. - public static DoseAreaProduct From(double value, DoseAreaProductUnit fromUnit) - { - return new DoseAreaProduct(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(DoseAreaProductUnit unit) => GetValueAs(unit); - - /// - /// Converts this DoseAreaProduct to another DoseAreaProduct with the unit representation . - /// - /// A DoseAreaProduct with the specified unit. - public DoseAreaProduct ToUnit(DoseAreaProductUnit unit) - { - var convertedValue = GetValueAs(unit); - return new DoseAreaProduct(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - DoseAreaProductUnit.CentigraySquareCentimeter => (_value / 10000) * 1e-2d, - DoseAreaProductUnit.CentigraySquareDecimeter => (_value / 100) * 1e-2d, - DoseAreaProductUnit.CentigraySquareMeter => (_value) * 1e-2d, - DoseAreaProductUnit.CentigraySquareMicrometer => (_value / 1000000000000) * 1e-2d, - DoseAreaProductUnit.CentigraySquareMillimeter => (_value / 1000000) * 1e-2d, - DoseAreaProductUnit.DecigraySquareCentimeter => (_value / 10000) * 1e-1d, - DoseAreaProductUnit.DecigraySquareDecimeter => (_value / 100) * 1e-1d, - DoseAreaProductUnit.DecigraySquareMeter => (_value) * 1e-1d, - DoseAreaProductUnit.DecigraySquareMicrometer => (_value / 1000000000000) * 1e-1d, - DoseAreaProductUnit.DecigraySquareMillimeter => (_value / 1000000) * 1e-1d, - DoseAreaProductUnit.GraySquareCentimeter => _value / 10000, - DoseAreaProductUnit.GraySquareDecimeter => _value / 100, - DoseAreaProductUnit.GraySquareMeter => _value, - DoseAreaProductUnit.GraySquareMicrometer => _value / 1000000000000, - DoseAreaProductUnit.GraySquareMillimeter => _value / 1000000, - DoseAreaProductUnit.MicrograySquareCentimeter => (_value / 10000) * 1e-6d, - DoseAreaProductUnit.MicrograySquareDecimeter => (_value / 100) * 1e-6d, - DoseAreaProductUnit.MicrograySquareMeter => (_value) * 1e-6d, - DoseAreaProductUnit.MicrograySquareMicrometer => (_value / 1000000000000) * 1e-6d, - DoseAreaProductUnit.MicrograySquareMillimeter => (_value / 1000000) * 1e-6d, - DoseAreaProductUnit.MilligraySquareCentimeter => (_value / 10000) * 1e-3d, - DoseAreaProductUnit.MilligraySquareDecimeter => (_value / 100) * 1e-3d, - DoseAreaProductUnit.MilligraySquareMeter => (_value) * 1e-3d, - DoseAreaProductUnit.MilligraySquareMicrometer => (_value / 1000000000000) * 1e-3d, - DoseAreaProductUnit.MilligraySquareMillimeter => (_value / 1000000) * 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(DoseAreaProductUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - DoseAreaProductUnit.CentigraySquareCentimeter => (baseUnitValue * 10000) / 1e-2d, - DoseAreaProductUnit.CentigraySquareDecimeter => (baseUnitValue * 100) / 1e-2d, - DoseAreaProductUnit.CentigraySquareMeter => (baseUnitValue) / 1e-2d, - DoseAreaProductUnit.CentigraySquareMicrometer => (baseUnitValue * 1000000000000) / 1e-2d, - DoseAreaProductUnit.CentigraySquareMillimeter => (baseUnitValue * 1000000) / 1e-2d, - DoseAreaProductUnit.DecigraySquareCentimeter => (baseUnitValue * 10000) / 1e-1d, - DoseAreaProductUnit.DecigraySquareDecimeter => (baseUnitValue * 100) / 1e-1d, - DoseAreaProductUnit.DecigraySquareMeter => (baseUnitValue) / 1e-1d, - DoseAreaProductUnit.DecigraySquareMicrometer => (baseUnitValue * 1000000000000) / 1e-1d, - DoseAreaProductUnit.DecigraySquareMillimeter => (baseUnitValue * 1000000) / 1e-1d, - DoseAreaProductUnit.GraySquareCentimeter => baseUnitValue * 10000, - DoseAreaProductUnit.GraySquareDecimeter => baseUnitValue * 100, - DoseAreaProductUnit.GraySquareMeter => baseUnitValue, - DoseAreaProductUnit.GraySquareMicrometer => baseUnitValue * 1000000000000, - DoseAreaProductUnit.GraySquareMillimeter => baseUnitValue * 1000000, - DoseAreaProductUnit.MicrograySquareCentimeter => (baseUnitValue * 10000) / 1e-6d, - DoseAreaProductUnit.MicrograySquareDecimeter => (baseUnitValue * 100) / 1e-6d, - DoseAreaProductUnit.MicrograySquareMeter => (baseUnitValue) / 1e-6d, - DoseAreaProductUnit.MicrograySquareMicrometer => (baseUnitValue * 1000000000000) / 1e-6d, - DoseAreaProductUnit.MicrograySquareMillimeter => (baseUnitValue * 1000000) / 1e-6d, - DoseAreaProductUnit.MilligraySquareCentimeter => (baseUnitValue * 10000) / 1e-3d, - DoseAreaProductUnit.MilligraySquareDecimeter => (baseUnitValue * 100) / 1e-3d, - DoseAreaProductUnit.MilligraySquareMeter => (baseUnitValue) / 1e-3d, - DoseAreaProductUnit.MilligraySquareMicrometer => (baseUnitValue * 1000000000000) / 1e-3d, - DoseAreaProductUnit.MilligraySquareMillimeter => (baseUnitValue * 1000000) / 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Duration.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Duration.g.cs deleted file mode 100644 index c67c4749af..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Duration.g.cs +++ /dev/null @@ -1,301 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Time is a dimension in which events can be ordered from the past through the present into the future, and also the measure of durations of events and the intervals between them. - /// - public struct Duration - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly DurationUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public DurationUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Duration(double value, DurationUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Duration, which is Second. All conversions go via this value. - /// - public static DurationUnit BaseUnit { get; } = DurationUnit.Second; - - /// - /// Represents the largest possible value of Duration. - /// - public static Duration MaxValue { get; } = new Duration(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Duration. - /// - public static Duration MinValue { get; } = new Duration(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Duration Zero { get; } = new Duration(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Days => As(DurationUnit.Day); - - /// - /// Gets a value of this quantity converted into - /// - public double Hours => As(DurationUnit.Hour); - - /// - /// Gets a value of this quantity converted into - /// - public double JulianYears => As(DurationUnit.JulianYear); - - /// - /// Gets a value of this quantity converted into - /// - public double Microseconds => As(DurationUnit.Microsecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliseconds => As(DurationUnit.Millisecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Minutes => As(DurationUnit.Minute); - - /// - /// Gets a value of this quantity converted into - /// - public double Months30 => As(DurationUnit.Month30); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanoseconds => As(DurationUnit.Nanosecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Picoseconds => As(DurationUnit.Picosecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Seconds => As(DurationUnit.Second); - - /// - /// Gets a value of this quantity converted into - /// - public double Sols => As(DurationUnit.Sol); - - /// - /// Gets a value of this quantity converted into - /// - public double Weeks => As(DurationUnit.Week); - - /// - /// Gets a value of this quantity converted into - /// - public double Years365 => As(DurationUnit.Year365); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Duration FromDays(double days) => new Duration(days, DurationUnit.Day); - - /// - /// Creates a from . - /// - public static Duration FromHours(double hours) => new Duration(hours, DurationUnit.Hour); - - /// - /// Creates a from . - /// - public static Duration FromJulianYears(double julianyears) => new Duration(julianyears, DurationUnit.JulianYear); - - /// - /// Creates a from . - /// - public static Duration FromMicroseconds(double microseconds) => new Duration(microseconds, DurationUnit.Microsecond); - - /// - /// Creates a from . - /// - public static Duration FromMilliseconds(double milliseconds) => new Duration(milliseconds, DurationUnit.Millisecond); - - /// - /// Creates a from . - /// - public static Duration FromMinutes(double minutes) => new Duration(minutes, DurationUnit.Minute); - - /// - /// Creates a from . - /// - public static Duration FromMonths30(double months30) => new Duration(months30, DurationUnit.Month30); - - /// - /// Creates a from . - /// - public static Duration FromNanoseconds(double nanoseconds) => new Duration(nanoseconds, DurationUnit.Nanosecond); - - /// - /// Creates a from . - /// - public static Duration FromPicoseconds(double picoseconds) => new Duration(picoseconds, DurationUnit.Picosecond); - - /// - /// Creates a from . - /// - public static Duration FromSeconds(double seconds) => new Duration(seconds, DurationUnit.Second); - - /// - /// Creates a from . - /// - public static Duration FromSols(double sols) => new Duration(sols, DurationUnit.Sol); - - /// - /// Creates a from . - /// - public static Duration FromWeeks(double weeks) => new Duration(weeks, DurationUnit.Week); - - /// - /// Creates a from . - /// - public static Duration FromYears365(double years365) => new Duration(years365, DurationUnit.Year365); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Duration unit value. - public static Duration From(double value, DurationUnit fromUnit) - { - return new Duration(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(DurationUnit unit) => GetValueAs(unit); - - /// - /// Converts this Duration to another Duration with the unit representation . - /// - /// A Duration with the specified unit. - public Duration ToUnit(DurationUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Duration(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - DurationUnit.Day => _value * 24 * 3600, - DurationUnit.Hour => _value * 3600, - DurationUnit.JulianYear => _value * 365.25 * 24 * 3600, - DurationUnit.Microsecond => (_value) * 1e-6d, - DurationUnit.Millisecond => (_value) * 1e-3d, - DurationUnit.Minute => _value * 60, - DurationUnit.Month30 => _value * 30 * 24 * 3600, - DurationUnit.Nanosecond => (_value) * 1e-9d, - DurationUnit.Picosecond => (_value) * 1e-12d, - DurationUnit.Second => _value, - DurationUnit.Sol => _value * 88775.244, - DurationUnit.Week => _value * 7 * 24 * 3600, - DurationUnit.Year365 => _value * 365 * 24 * 3600, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(DurationUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - DurationUnit.Day => baseUnitValue / (24 * 3600), - DurationUnit.Hour => baseUnitValue / 3600, - DurationUnit.JulianYear => baseUnitValue / (365.25 * 24 * 3600), - DurationUnit.Microsecond => (baseUnitValue) / 1e-6d, - DurationUnit.Millisecond => (baseUnitValue) / 1e-3d, - DurationUnit.Minute => baseUnitValue / 60, - DurationUnit.Month30 => baseUnitValue / (30 * 24 * 3600), - DurationUnit.Nanosecond => (baseUnitValue) / 1e-9d, - DurationUnit.Picosecond => (baseUnitValue) / 1e-12d, - DurationUnit.Second => baseUnitValue, - DurationUnit.Sol => baseUnitValue / 88775.244, - DurationUnit.Week => baseUnitValue / (7 * 24 * 3600), - DurationUnit.Year365 => baseUnitValue / (365 * 24 * 3600), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/DynamicViscosity.g.cs deleted file mode 100644 index 20f3f8abda..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/DynamicViscosity.g.cs +++ /dev/null @@ -1,268 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The dynamic (shear) viscosity of a fluid expresses its resistance to shearing flows, where adjacent layers move parallel to each other with different speeds - /// - /// - /// https://en.wikipedia.org/wiki/Viscosity#Dynamic_.28shear.29_viscosity - /// - public struct DynamicViscosity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly DynamicViscosityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public DynamicViscosityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public DynamicViscosity(double value, DynamicViscosityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of DynamicViscosity, which is Second. All conversions go via this value. - /// - public static DynamicViscosityUnit BaseUnit { get; } = DynamicViscosityUnit.NewtonSecondPerMeterSquared; - - /// - /// Represents the largest possible value of DynamicViscosity. - /// - public static DynamicViscosity MaxValue { get; } = new DynamicViscosity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of DynamicViscosity. - /// - public static DynamicViscosity MinValue { get; } = new DynamicViscosity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static DynamicViscosity Zero { get; } = new DynamicViscosity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Centipoise => As(DynamicViscosityUnit.Centipoise); - - /// - /// Gets a value of this quantity converted into - /// - public double MicropascalSeconds => As(DynamicViscosityUnit.MicropascalSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillipascalSeconds => As(DynamicViscosityUnit.MillipascalSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonSecondsPerMeterSquared => As(DynamicViscosityUnit.NewtonSecondPerMeterSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalSeconds => As(DynamicViscosityUnit.PascalSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Poise => As(DynamicViscosityUnit.Poise); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForceSecondPerSquareFoot => As(DynamicViscosityUnit.PoundForceSecondPerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForceSecondPerSquareInch => As(DynamicViscosityUnit.PoundForceSecondPerSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerFootSecond => As(DynamicViscosityUnit.PoundPerFootSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Reyns => As(DynamicViscosityUnit.Reyn); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static DynamicViscosity FromCentipoise(double centipoise) => new DynamicViscosity(centipoise, DynamicViscosityUnit.Centipoise); - - /// - /// Creates a from . - /// - public static DynamicViscosity FromMicropascalSeconds(double micropascalseconds) => new DynamicViscosity(micropascalseconds, DynamicViscosityUnit.MicropascalSecond); - - /// - /// Creates a from . - /// - public static DynamicViscosity FromMillipascalSeconds(double millipascalseconds) => new DynamicViscosity(millipascalseconds, DynamicViscosityUnit.MillipascalSecond); - - /// - /// Creates a from . - /// - public static DynamicViscosity FromNewtonSecondsPerMeterSquared(double newtonsecondspermetersquared) => new DynamicViscosity(newtonsecondspermetersquared, DynamicViscosityUnit.NewtonSecondPerMeterSquared); - - /// - /// Creates a from . - /// - public static DynamicViscosity FromPascalSeconds(double pascalseconds) => new DynamicViscosity(pascalseconds, DynamicViscosityUnit.PascalSecond); - - /// - /// Creates a from . - /// - public static DynamicViscosity FromPoise(double poise) => new DynamicViscosity(poise, DynamicViscosityUnit.Poise); - - /// - /// Creates a from . - /// - public static DynamicViscosity FromPoundsForceSecondPerSquareFoot(double poundsforcesecondpersquarefoot) => new DynamicViscosity(poundsforcesecondpersquarefoot, DynamicViscosityUnit.PoundForceSecondPerSquareFoot); - - /// - /// Creates a from . - /// - public static DynamicViscosity FromPoundsForceSecondPerSquareInch(double poundsforcesecondpersquareinch) => new DynamicViscosity(poundsforcesecondpersquareinch, DynamicViscosityUnit.PoundForceSecondPerSquareInch); - - /// - /// Creates a from . - /// - public static DynamicViscosity FromPoundsPerFootSecond(double poundsperfootsecond) => new DynamicViscosity(poundsperfootsecond, DynamicViscosityUnit.PoundPerFootSecond); - - /// - /// Creates a from . - /// - public static DynamicViscosity FromReyns(double reyns) => new DynamicViscosity(reyns, DynamicViscosityUnit.Reyn); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// DynamicViscosity unit value. - public static DynamicViscosity From(double value, DynamicViscosityUnit fromUnit) - { - return new DynamicViscosity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(DynamicViscosityUnit unit) => GetValueAs(unit); - - /// - /// Converts this DynamicViscosity to another DynamicViscosity with the unit representation . - /// - /// A DynamicViscosity with the specified unit. - public DynamicViscosity ToUnit(DynamicViscosityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new DynamicViscosity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - DynamicViscosityUnit.Centipoise => (_value / 10) * 1e-2d, - DynamicViscosityUnit.MicropascalSecond => (_value) * 1e-6d, - DynamicViscosityUnit.MillipascalSecond => (_value) * 1e-3d, - DynamicViscosityUnit.NewtonSecondPerMeterSquared => _value, - DynamicViscosityUnit.PascalSecond => _value, - DynamicViscosityUnit.Poise => _value / 10, - DynamicViscosityUnit.PoundForceSecondPerSquareFoot => _value * 4.4482216152605 / 9.290304e-2, - DynamicViscosityUnit.PoundForceSecondPerSquareInch => _value * 4.4482216152605 / 0.00064516, - DynamicViscosityUnit.PoundPerFootSecond => _value * 0.45359237 / 0.3048, - DynamicViscosityUnit.Reyn => _value * 4.4482216152605 / 0.00064516, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(DynamicViscosityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - DynamicViscosityUnit.Centipoise => (baseUnitValue * 10) / 1e-2d, - DynamicViscosityUnit.MicropascalSecond => (baseUnitValue) / 1e-6d, - DynamicViscosityUnit.MillipascalSecond => (baseUnitValue) / 1e-3d, - DynamicViscosityUnit.NewtonSecondPerMeterSquared => baseUnitValue, - DynamicViscosityUnit.PascalSecond => baseUnitValue, - DynamicViscosityUnit.Poise => baseUnitValue * 10, - DynamicViscosityUnit.PoundForceSecondPerSquareFoot => baseUnitValue * 9.290304e-2 / 4.4482216152605, - DynamicViscosityUnit.PoundForceSecondPerSquareInch => baseUnitValue * 0.00064516 / 4.4482216152605, - DynamicViscosityUnit.PoundPerFootSecond => baseUnitValue * 0.3048 / 0.45359237, - DynamicViscosityUnit.Reyn => baseUnitValue * 0.00064516 / 4.4482216152605, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricAdmittance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricAdmittance.g.cs deleted file mode 100644 index b943463a95..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricAdmittance.g.cs +++ /dev/null @@ -1,341 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Electric admittance is a measure of how easily a circuit or device will allow a current to flow by the combined effect of conductance and susceptance in a circuit. It is defined as the inverse of impedance. The SI unit of admittance is the siemens (symbol S). - /// - /// - /// https://en.wikipedia.org/wiki/Electrical_admittance - /// - [Obsolete("Admittance is a complex number, which is not currently supported by UnitsNet. Please use either ElectricConductance or ElectricSusceptance instead.")] - public struct ElectricAdmittance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricAdmittanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricAdmittanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricAdmittance(double value, ElectricAdmittanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricAdmittance, which is Second. All conversions go via this value. - /// - public static ElectricAdmittanceUnit BaseUnit { get; } = ElectricAdmittanceUnit.Siemens; - - /// - /// Represents the largest possible value of ElectricAdmittance. - /// - public static ElectricAdmittance MaxValue { get; } = new ElectricAdmittance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricAdmittance. - /// - public static ElectricAdmittance MinValue { get; } = new ElectricAdmittance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricAdmittance Zero { get; } = new ElectricAdmittance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Gigamhos => As(ElectricAdmittanceUnit.Gigamho); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigasiemens => As(ElectricAdmittanceUnit.Gigasiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilomhos => As(ElectricAdmittanceUnit.Kilomho); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilosiemens => As(ElectricAdmittanceUnit.Kilosiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Megamhos => As(ElectricAdmittanceUnit.Megamho); - - /// - /// Gets a value of this quantity converted into - /// - public double Megasiemens => As(ElectricAdmittanceUnit.Megasiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Mhos => As(ElectricAdmittanceUnit.Mho); - - /// - /// Gets a value of this quantity converted into - /// - public double Micromhos => As(ElectricAdmittanceUnit.Micromho); - - /// - /// Gets a value of this quantity converted into - /// - public double Microsiemens => As(ElectricAdmittanceUnit.Microsiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Millimhos => As(ElectricAdmittanceUnit.Millimho); - - /// - /// Gets a value of this quantity converted into - /// - public double Millisiemens => As(ElectricAdmittanceUnit.Millisiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanomhos => As(ElectricAdmittanceUnit.Nanomho); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanosiemens => As(ElectricAdmittanceUnit.Nanosiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Siemens => As(ElectricAdmittanceUnit.Siemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Teramhos => As(ElectricAdmittanceUnit.Teramho); - - /// - /// Gets a value of this quantity converted into - /// - public double Terasiemens => As(ElectricAdmittanceUnit.Terasiemens); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromGigamhos(double gigamhos) => new ElectricAdmittance(gigamhos, ElectricAdmittanceUnit.Gigamho); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromGigasiemens(double gigasiemens) => new ElectricAdmittance(gigasiemens, ElectricAdmittanceUnit.Gigasiemens); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromKilomhos(double kilomhos) => new ElectricAdmittance(kilomhos, ElectricAdmittanceUnit.Kilomho); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromKilosiemens(double kilosiemens) => new ElectricAdmittance(kilosiemens, ElectricAdmittanceUnit.Kilosiemens); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromMegamhos(double megamhos) => new ElectricAdmittance(megamhos, ElectricAdmittanceUnit.Megamho); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromMegasiemens(double megasiemens) => new ElectricAdmittance(megasiemens, ElectricAdmittanceUnit.Megasiemens); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromMhos(double mhos) => new ElectricAdmittance(mhos, ElectricAdmittanceUnit.Mho); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromMicromhos(double micromhos) => new ElectricAdmittance(micromhos, ElectricAdmittanceUnit.Micromho); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromMicrosiemens(double microsiemens) => new ElectricAdmittance(microsiemens, ElectricAdmittanceUnit.Microsiemens); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromMillimhos(double millimhos) => new ElectricAdmittance(millimhos, ElectricAdmittanceUnit.Millimho); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromMillisiemens(double millisiemens) => new ElectricAdmittance(millisiemens, ElectricAdmittanceUnit.Millisiemens); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromNanomhos(double nanomhos) => new ElectricAdmittance(nanomhos, ElectricAdmittanceUnit.Nanomho); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromNanosiemens(double nanosiemens) => new ElectricAdmittance(nanosiemens, ElectricAdmittanceUnit.Nanosiemens); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromSiemens(double siemens) => new ElectricAdmittance(siemens, ElectricAdmittanceUnit.Siemens); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromTeramhos(double teramhos) => new ElectricAdmittance(teramhos, ElectricAdmittanceUnit.Teramho); - - /// - /// Creates a from . - /// - public static ElectricAdmittance FromTerasiemens(double terasiemens) => new ElectricAdmittance(terasiemens, ElectricAdmittanceUnit.Terasiemens); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricAdmittance unit value. - public static ElectricAdmittance From(double value, ElectricAdmittanceUnit fromUnit) - { - return new ElectricAdmittance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricAdmittanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricAdmittance to another ElectricAdmittance with the unit representation . - /// - /// A ElectricAdmittance with the specified unit. - public ElectricAdmittance ToUnit(ElectricAdmittanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricAdmittance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricAdmittanceUnit.Gigamho => (_value) * 1e9d, - ElectricAdmittanceUnit.Gigasiemens => (_value) * 1e9d, - ElectricAdmittanceUnit.Kilomho => (_value) * 1e3d, - ElectricAdmittanceUnit.Kilosiemens => (_value) * 1e3d, - ElectricAdmittanceUnit.Megamho => (_value) * 1e6d, - ElectricAdmittanceUnit.Megasiemens => (_value) * 1e6d, - ElectricAdmittanceUnit.Mho => _value, - ElectricAdmittanceUnit.Micromho => (_value) * 1e-6d, - ElectricAdmittanceUnit.Microsiemens => (_value) * 1e-6d, - ElectricAdmittanceUnit.Millimho => (_value) * 1e-3d, - ElectricAdmittanceUnit.Millisiemens => (_value) * 1e-3d, - ElectricAdmittanceUnit.Nanomho => (_value) * 1e-9d, - ElectricAdmittanceUnit.Nanosiemens => (_value) * 1e-9d, - ElectricAdmittanceUnit.Siemens => _value, - ElectricAdmittanceUnit.Teramho => (_value) * 1e12d, - ElectricAdmittanceUnit.Terasiemens => (_value) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricAdmittanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricAdmittanceUnit.Gigamho => (baseUnitValue) / 1e9d, - ElectricAdmittanceUnit.Gigasiemens => (baseUnitValue) / 1e9d, - ElectricAdmittanceUnit.Kilomho => (baseUnitValue) / 1e3d, - ElectricAdmittanceUnit.Kilosiemens => (baseUnitValue) / 1e3d, - ElectricAdmittanceUnit.Megamho => (baseUnitValue) / 1e6d, - ElectricAdmittanceUnit.Megasiemens => (baseUnitValue) / 1e6d, - ElectricAdmittanceUnit.Mho => baseUnitValue, - ElectricAdmittanceUnit.Micromho => (baseUnitValue) / 1e-6d, - ElectricAdmittanceUnit.Microsiemens => (baseUnitValue) / 1e-6d, - ElectricAdmittanceUnit.Millimho => (baseUnitValue) / 1e-3d, - ElectricAdmittanceUnit.Millisiemens => (baseUnitValue) / 1e-3d, - ElectricAdmittanceUnit.Nanomho => (baseUnitValue) / 1e-9d, - ElectricAdmittanceUnit.Nanosiemens => (baseUnitValue) / 1e-9d, - ElectricAdmittanceUnit.Siemens => baseUnitValue, - ElectricAdmittanceUnit.Teramho => (baseUnitValue) / 1e12d, - ElectricAdmittanceUnit.Terasiemens => (baseUnitValue) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs deleted file mode 100644 index d6aaee81c4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricApparentEnergy.g.cs +++ /dev/null @@ -1,181 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A unit for expressing the integral of apparent power over time, equal to the product of 1 volt-ampere and 1 hour, or to 3600 joules. - /// - public struct ElectricApparentEnergy - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricApparentEnergyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricApparentEnergyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricApparentEnergy(double value, ElectricApparentEnergyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricApparentEnergy, which is Second. All conversions go via this value. - /// - public static ElectricApparentEnergyUnit BaseUnit { get; } = ElectricApparentEnergyUnit.VoltampereHour; - - /// - /// Represents the largest possible value of ElectricApparentEnergy. - /// - public static ElectricApparentEnergy MaxValue { get; } = new ElectricApparentEnergy(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricApparentEnergy. - /// - public static ElectricApparentEnergy MinValue { get; } = new ElectricApparentEnergy(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricApparentEnergy Zero { get; } = new ElectricApparentEnergy(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double KilovoltampereHours => As(ElectricApparentEnergyUnit.KilovoltampereHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MegavoltampereHours => As(ElectricApparentEnergyUnit.MegavoltampereHour); - - /// - /// Gets a value of this quantity converted into - /// - public double VoltampereHours => As(ElectricApparentEnergyUnit.VoltampereHour); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricApparentEnergy FromKilovoltampereHours(double kilovoltamperehours) => new ElectricApparentEnergy(kilovoltamperehours, ElectricApparentEnergyUnit.KilovoltampereHour); - - /// - /// Creates a from . - /// - public static ElectricApparentEnergy FromMegavoltampereHours(double megavoltamperehours) => new ElectricApparentEnergy(megavoltamperehours, ElectricApparentEnergyUnit.MegavoltampereHour); - - /// - /// Creates a from . - /// - public static ElectricApparentEnergy FromVoltampereHours(double voltamperehours) => new ElectricApparentEnergy(voltamperehours, ElectricApparentEnergyUnit.VoltampereHour); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricApparentEnergy unit value. - public static ElectricApparentEnergy From(double value, ElectricApparentEnergyUnit fromUnit) - { - return new ElectricApparentEnergy(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricApparentEnergyUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricApparentEnergy to another ElectricApparentEnergy with the unit representation . - /// - /// A ElectricApparentEnergy with the specified unit. - public ElectricApparentEnergy ToUnit(ElectricApparentEnergyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricApparentEnergy(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricApparentEnergyUnit.KilovoltampereHour => (_value) * 1e3d, - ElectricApparentEnergyUnit.MegavoltampereHour => (_value) * 1e6d, - ElectricApparentEnergyUnit.VoltampereHour => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricApparentEnergyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricApparentEnergyUnit.KilovoltampereHour => (baseUnitValue) / 1e3d, - ElectricApparentEnergyUnit.MegavoltampereHour => (baseUnitValue) / 1e6d, - ElectricApparentEnergyUnit.VoltampereHour => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricApparentPower.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricApparentPower.g.cs deleted file mode 100644 index 664e6e2d5f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricApparentPower.g.cs +++ /dev/null @@ -1,220 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Power engineers measure apparent power as the magnitude of the vector sum of active and reactive power. It is the product of the root mean square voltage (in volts) and the root mean square current (in amperes). - /// - /// - /// https://en.wikipedia.org/wiki/AC_power#Active,_reactive,_apparent,_and_complex_power_in_sinusoidal_steady-state - /// - public struct ElectricApparentPower - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricApparentPowerUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricApparentPowerUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricApparentPower(double value, ElectricApparentPowerUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricApparentPower, which is Second. All conversions go via this value. - /// - public static ElectricApparentPowerUnit BaseUnit { get; } = ElectricApparentPowerUnit.Voltampere; - - /// - /// Represents the largest possible value of ElectricApparentPower. - /// - public static ElectricApparentPower MaxValue { get; } = new ElectricApparentPower(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricApparentPower. - /// - public static ElectricApparentPower MinValue { get; } = new ElectricApparentPower(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricApparentPower Zero { get; } = new ElectricApparentPower(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Gigavoltamperes => As(ElectricApparentPowerUnit.Gigavoltampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilovoltamperes => As(ElectricApparentPowerUnit.Kilovoltampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Megavoltamperes => As(ElectricApparentPowerUnit.Megavoltampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Microvoltamperes => As(ElectricApparentPowerUnit.Microvoltampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Millivoltamperes => As(ElectricApparentPowerUnit.Millivoltampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Voltamperes => As(ElectricApparentPowerUnit.Voltampere); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricApparentPower FromGigavoltamperes(double gigavoltamperes) => new ElectricApparentPower(gigavoltamperes, ElectricApparentPowerUnit.Gigavoltampere); - - /// - /// Creates a from . - /// - public static ElectricApparentPower FromKilovoltamperes(double kilovoltamperes) => new ElectricApparentPower(kilovoltamperes, ElectricApparentPowerUnit.Kilovoltampere); - - /// - /// Creates a from . - /// - public static ElectricApparentPower FromMegavoltamperes(double megavoltamperes) => new ElectricApparentPower(megavoltamperes, ElectricApparentPowerUnit.Megavoltampere); - - /// - /// Creates a from . - /// - public static ElectricApparentPower FromMicrovoltamperes(double microvoltamperes) => new ElectricApparentPower(microvoltamperes, ElectricApparentPowerUnit.Microvoltampere); - - /// - /// Creates a from . - /// - public static ElectricApparentPower FromMillivoltamperes(double millivoltamperes) => new ElectricApparentPower(millivoltamperes, ElectricApparentPowerUnit.Millivoltampere); - - /// - /// Creates a from . - /// - public static ElectricApparentPower FromVoltamperes(double voltamperes) => new ElectricApparentPower(voltamperes, ElectricApparentPowerUnit.Voltampere); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricApparentPower unit value. - public static ElectricApparentPower From(double value, ElectricApparentPowerUnit fromUnit) - { - return new ElectricApparentPower(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricApparentPowerUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricApparentPower to another ElectricApparentPower with the unit representation . - /// - /// A ElectricApparentPower with the specified unit. - public ElectricApparentPower ToUnit(ElectricApparentPowerUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricApparentPower(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricApparentPowerUnit.Gigavoltampere => (_value) * 1e9d, - ElectricApparentPowerUnit.Kilovoltampere => (_value) * 1e3d, - ElectricApparentPowerUnit.Megavoltampere => (_value) * 1e6d, - ElectricApparentPowerUnit.Microvoltampere => (_value) * 1e-6d, - ElectricApparentPowerUnit.Millivoltampere => (_value) * 1e-3d, - ElectricApparentPowerUnit.Voltampere => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricApparentPowerUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricApparentPowerUnit.Gigavoltampere => (baseUnitValue) / 1e9d, - ElectricApparentPowerUnit.Kilovoltampere => (baseUnitValue) / 1e3d, - ElectricApparentPowerUnit.Megavoltampere => (baseUnitValue) / 1e6d, - ElectricApparentPowerUnit.Microvoltampere => (baseUnitValue) / 1e-6d, - ElectricApparentPowerUnit.Millivoltampere => (baseUnitValue) / 1e-3d, - ElectricApparentPowerUnit.Voltampere => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCapacitance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCapacitance.g.cs deleted file mode 100644 index 0baa8898bf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCapacitance.g.cs +++ /dev/null @@ -1,232 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Capacitance is the capacity of a material object or device to store electric charge. - /// - /// - /// https://en.wikipedia.org/wiki/Capacitance - /// - public struct ElectricCapacitance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricCapacitanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricCapacitanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricCapacitance(double value, ElectricCapacitanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricCapacitance, which is Second. All conversions go via this value. - /// - public static ElectricCapacitanceUnit BaseUnit { get; } = ElectricCapacitanceUnit.Farad; - - /// - /// Represents the largest possible value of ElectricCapacitance. - /// - public static ElectricCapacitance MaxValue { get; } = new ElectricCapacitance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricCapacitance. - /// - public static ElectricCapacitance MinValue { get; } = new ElectricCapacitance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricCapacitance Zero { get; } = new ElectricCapacitance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Farads => As(ElectricCapacitanceUnit.Farad); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilofarads => As(ElectricCapacitanceUnit.Kilofarad); - - /// - /// Gets a value of this quantity converted into - /// - public double Megafarads => As(ElectricCapacitanceUnit.Megafarad); - - /// - /// Gets a value of this quantity converted into - /// - public double Microfarads => As(ElectricCapacitanceUnit.Microfarad); - - /// - /// Gets a value of this quantity converted into - /// - public double Millifarads => As(ElectricCapacitanceUnit.Millifarad); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanofarads => As(ElectricCapacitanceUnit.Nanofarad); - - /// - /// Gets a value of this quantity converted into - /// - public double Picofarads => As(ElectricCapacitanceUnit.Picofarad); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricCapacitance FromFarads(double farads) => new ElectricCapacitance(farads, ElectricCapacitanceUnit.Farad); - - /// - /// Creates a from . - /// - public static ElectricCapacitance FromKilofarads(double kilofarads) => new ElectricCapacitance(kilofarads, ElectricCapacitanceUnit.Kilofarad); - - /// - /// Creates a from . - /// - public static ElectricCapacitance FromMegafarads(double megafarads) => new ElectricCapacitance(megafarads, ElectricCapacitanceUnit.Megafarad); - - /// - /// Creates a from . - /// - public static ElectricCapacitance FromMicrofarads(double microfarads) => new ElectricCapacitance(microfarads, ElectricCapacitanceUnit.Microfarad); - - /// - /// Creates a from . - /// - public static ElectricCapacitance FromMillifarads(double millifarads) => new ElectricCapacitance(millifarads, ElectricCapacitanceUnit.Millifarad); - - /// - /// Creates a from . - /// - public static ElectricCapacitance FromNanofarads(double nanofarads) => new ElectricCapacitance(nanofarads, ElectricCapacitanceUnit.Nanofarad); - - /// - /// Creates a from . - /// - public static ElectricCapacitance FromPicofarads(double picofarads) => new ElectricCapacitance(picofarads, ElectricCapacitanceUnit.Picofarad); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricCapacitance unit value. - public static ElectricCapacitance From(double value, ElectricCapacitanceUnit fromUnit) - { - return new ElectricCapacitance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricCapacitanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricCapacitance to another ElectricCapacitance with the unit representation . - /// - /// A ElectricCapacitance with the specified unit. - public ElectricCapacitance ToUnit(ElectricCapacitanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricCapacitance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricCapacitanceUnit.Farad => _value, - ElectricCapacitanceUnit.Kilofarad => (_value) * 1e3d, - ElectricCapacitanceUnit.Megafarad => (_value) * 1e6d, - ElectricCapacitanceUnit.Microfarad => (_value) * 1e-6d, - ElectricCapacitanceUnit.Millifarad => (_value) * 1e-3d, - ElectricCapacitanceUnit.Nanofarad => (_value) * 1e-9d, - ElectricCapacitanceUnit.Picofarad => (_value) * 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricCapacitanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricCapacitanceUnit.Farad => baseUnitValue, - ElectricCapacitanceUnit.Kilofarad => (baseUnitValue) / 1e3d, - ElectricCapacitanceUnit.Megafarad => (baseUnitValue) / 1e6d, - ElectricCapacitanceUnit.Microfarad => (baseUnitValue) / 1e-6d, - ElectricCapacitanceUnit.Millifarad => (baseUnitValue) / 1e-3d, - ElectricCapacitanceUnit.Nanofarad => (baseUnitValue) / 1e-9d, - ElectricCapacitanceUnit.Picofarad => (baseUnitValue) / 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCharge.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCharge.g.cs deleted file mode 100644 index 0945446f39..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCharge.g.cs +++ /dev/null @@ -1,280 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Electric charge is the physical property of matter that causes it to experience a force when placed in an electromagnetic field. - /// - /// - /// https://en.wikipedia.org/wiki/Electric_charge - /// - public struct ElectricCharge - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricChargeUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricChargeUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricCharge(double value, ElectricChargeUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricCharge, which is Second. All conversions go via this value. - /// - public static ElectricChargeUnit BaseUnit { get; } = ElectricChargeUnit.Coulomb; - - /// - /// Represents the largest possible value of ElectricCharge. - /// - public static ElectricCharge MaxValue { get; } = new ElectricCharge(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricCharge. - /// - public static ElectricCharge MinValue { get; } = new ElectricCharge(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricCharge Zero { get; } = new ElectricCharge(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double AmpereHours => As(ElectricChargeUnit.AmpereHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Coulombs => As(ElectricChargeUnit.Coulomb); - - /// - /// Gets a value of this quantity converted into - /// - public double KiloampereHours => As(ElectricChargeUnit.KiloampereHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilocoulombs => As(ElectricChargeUnit.Kilocoulomb); - - /// - /// Gets a value of this quantity converted into - /// - public double MegaampereHours => As(ElectricChargeUnit.MegaampereHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Megacoulombs => As(ElectricChargeUnit.Megacoulomb); - - /// - /// Gets a value of this quantity converted into - /// - public double Microcoulombs => As(ElectricChargeUnit.Microcoulomb); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliampereHours => As(ElectricChargeUnit.MilliampereHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Millicoulombs => As(ElectricChargeUnit.Millicoulomb); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanocoulombs => As(ElectricChargeUnit.Nanocoulomb); - - /// - /// Gets a value of this quantity converted into - /// - public double Picocoulombs => As(ElectricChargeUnit.Picocoulomb); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricCharge FromAmpereHours(double amperehours) => new ElectricCharge(amperehours, ElectricChargeUnit.AmpereHour); - - /// - /// Creates a from . - /// - public static ElectricCharge FromCoulombs(double coulombs) => new ElectricCharge(coulombs, ElectricChargeUnit.Coulomb); - - /// - /// Creates a from . - /// - public static ElectricCharge FromKiloampereHours(double kiloamperehours) => new ElectricCharge(kiloamperehours, ElectricChargeUnit.KiloampereHour); - - /// - /// Creates a from . - /// - public static ElectricCharge FromKilocoulombs(double kilocoulombs) => new ElectricCharge(kilocoulombs, ElectricChargeUnit.Kilocoulomb); - - /// - /// Creates a from . - /// - public static ElectricCharge FromMegaampereHours(double megaamperehours) => new ElectricCharge(megaamperehours, ElectricChargeUnit.MegaampereHour); - - /// - /// Creates a from . - /// - public static ElectricCharge FromMegacoulombs(double megacoulombs) => new ElectricCharge(megacoulombs, ElectricChargeUnit.Megacoulomb); - - /// - /// Creates a from . - /// - public static ElectricCharge FromMicrocoulombs(double microcoulombs) => new ElectricCharge(microcoulombs, ElectricChargeUnit.Microcoulomb); - - /// - /// Creates a from . - /// - public static ElectricCharge FromMilliampereHours(double milliamperehours) => new ElectricCharge(milliamperehours, ElectricChargeUnit.MilliampereHour); - - /// - /// Creates a from . - /// - public static ElectricCharge FromMillicoulombs(double millicoulombs) => new ElectricCharge(millicoulombs, ElectricChargeUnit.Millicoulomb); - - /// - /// Creates a from . - /// - public static ElectricCharge FromNanocoulombs(double nanocoulombs) => new ElectricCharge(nanocoulombs, ElectricChargeUnit.Nanocoulomb); - - /// - /// Creates a from . - /// - public static ElectricCharge FromPicocoulombs(double picocoulombs) => new ElectricCharge(picocoulombs, ElectricChargeUnit.Picocoulomb); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricCharge unit value. - public static ElectricCharge From(double value, ElectricChargeUnit fromUnit) - { - return new ElectricCharge(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricChargeUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricCharge to another ElectricCharge with the unit representation . - /// - /// A ElectricCharge with the specified unit. - public ElectricCharge ToUnit(ElectricChargeUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricCharge(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricChargeUnit.AmpereHour => _value * 3600, - ElectricChargeUnit.Coulomb => _value, - ElectricChargeUnit.KiloampereHour => (_value * 3600) * 1e3d, - ElectricChargeUnit.Kilocoulomb => (_value) * 1e3d, - ElectricChargeUnit.MegaampereHour => (_value * 3600) * 1e6d, - ElectricChargeUnit.Megacoulomb => (_value) * 1e6d, - ElectricChargeUnit.Microcoulomb => (_value) * 1e-6d, - ElectricChargeUnit.MilliampereHour => (_value * 3600) * 1e-3d, - ElectricChargeUnit.Millicoulomb => (_value) * 1e-3d, - ElectricChargeUnit.Nanocoulomb => (_value) * 1e-9d, - ElectricChargeUnit.Picocoulomb => (_value) * 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricChargeUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricChargeUnit.AmpereHour => baseUnitValue / 3600, - ElectricChargeUnit.Coulomb => baseUnitValue, - ElectricChargeUnit.KiloampereHour => (baseUnitValue / 3600) / 1e3d, - ElectricChargeUnit.Kilocoulomb => (baseUnitValue) / 1e3d, - ElectricChargeUnit.MegaampereHour => (baseUnitValue / 3600) / 1e6d, - ElectricChargeUnit.Megacoulomb => (baseUnitValue) / 1e6d, - ElectricChargeUnit.Microcoulomb => (baseUnitValue) / 1e-6d, - ElectricChargeUnit.MilliampereHour => (baseUnitValue / 3600) / 1e-3d, - ElectricChargeUnit.Millicoulomb => (baseUnitValue) / 1e-3d, - ElectricChargeUnit.Nanocoulomb => (baseUnitValue) / 1e-9d, - ElectricChargeUnit.Picocoulomb => (baseUnitValue) / 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricChargeDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricChargeDensity.g.cs deleted file mode 100644 index d6756615c0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricChargeDensity.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In electromagnetism, charge density is a measure of the amount of electric charge per volume. - /// - /// - /// https://en.wikipedia.org/wiki/Charge_density - /// - public struct ElectricChargeDensity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricChargeDensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricChargeDensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricChargeDensity(double value, ElectricChargeDensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricChargeDensity, which is Second. All conversions go via this value. - /// - public static ElectricChargeDensityUnit BaseUnit { get; } = ElectricChargeDensityUnit.CoulombPerCubicMeter; - - /// - /// Represents the largest possible value of ElectricChargeDensity. - /// - public static ElectricChargeDensity MaxValue { get; } = new ElectricChargeDensity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricChargeDensity. - /// - public static ElectricChargeDensity MinValue { get; } = new ElectricChargeDensity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricChargeDensity Zero { get; } = new ElectricChargeDensity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CoulombsPerCubicMeter => As(ElectricChargeDensityUnit.CoulombPerCubicMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricChargeDensity FromCoulombsPerCubicMeter(double coulombspercubicmeter) => new ElectricChargeDensity(coulombspercubicmeter, ElectricChargeDensityUnit.CoulombPerCubicMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricChargeDensity unit value. - public static ElectricChargeDensity From(double value, ElectricChargeDensityUnit fromUnit) - { - return new ElectricChargeDensity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricChargeDensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricChargeDensity to another ElectricChargeDensity with the unit representation . - /// - /// A ElectricChargeDensity with the specified unit. - public ElectricChargeDensity ToUnit(ElectricChargeDensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricChargeDensity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricChargeDensityUnit.CoulombPerCubicMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricChargeDensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricChargeDensityUnit.CoulombPerCubicMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductance.g.cs deleted file mode 100644 index ba5038103d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductance.g.cs +++ /dev/null @@ -1,340 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The electrical conductance of an object is a measure of the ease with which an electric current passes. Along with susceptance, it is one of two elements of admittance. Its reciprocal quantity is electrical resistance. - /// - /// - /// https://en.wikipedia.org/wiki/Electrical_resistance_and_conductance - /// - public struct ElectricConductance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricConductanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricConductanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricConductance(double value, ElectricConductanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricConductance, which is Second. All conversions go via this value. - /// - public static ElectricConductanceUnit BaseUnit { get; } = ElectricConductanceUnit.Siemens; - - /// - /// Represents the largest possible value of ElectricConductance. - /// - public static ElectricConductance MaxValue { get; } = new ElectricConductance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricConductance. - /// - public static ElectricConductance MinValue { get; } = new ElectricConductance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricConductance Zero { get; } = new ElectricConductance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Gigamhos => As(ElectricConductanceUnit.Gigamho); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigasiemens => As(ElectricConductanceUnit.Gigasiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilomhos => As(ElectricConductanceUnit.Kilomho); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilosiemens => As(ElectricConductanceUnit.Kilosiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Megamhos => As(ElectricConductanceUnit.Megamho); - - /// - /// Gets a value of this quantity converted into - /// - public double Megasiemens => As(ElectricConductanceUnit.Megasiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Mhos => As(ElectricConductanceUnit.Mho); - - /// - /// Gets a value of this quantity converted into - /// - public double Micromhos => As(ElectricConductanceUnit.Micromho); - - /// - /// Gets a value of this quantity converted into - /// - public double Microsiemens => As(ElectricConductanceUnit.Microsiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Millimhos => As(ElectricConductanceUnit.Millimho); - - /// - /// Gets a value of this quantity converted into - /// - public double Millisiemens => As(ElectricConductanceUnit.Millisiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanomhos => As(ElectricConductanceUnit.Nanomho); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanosiemens => As(ElectricConductanceUnit.Nanosiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Siemens => As(ElectricConductanceUnit.Siemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Teramhos => As(ElectricConductanceUnit.Teramho); - - /// - /// Gets a value of this quantity converted into - /// - public double Terasiemens => As(ElectricConductanceUnit.Terasiemens); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricConductance FromGigamhos(double gigamhos) => new ElectricConductance(gigamhos, ElectricConductanceUnit.Gigamho); - - /// - /// Creates a from . - /// - public static ElectricConductance FromGigasiemens(double gigasiemens) => new ElectricConductance(gigasiemens, ElectricConductanceUnit.Gigasiemens); - - /// - /// Creates a from . - /// - public static ElectricConductance FromKilomhos(double kilomhos) => new ElectricConductance(kilomhos, ElectricConductanceUnit.Kilomho); - - /// - /// Creates a from . - /// - public static ElectricConductance FromKilosiemens(double kilosiemens) => new ElectricConductance(kilosiemens, ElectricConductanceUnit.Kilosiemens); - - /// - /// Creates a from . - /// - public static ElectricConductance FromMegamhos(double megamhos) => new ElectricConductance(megamhos, ElectricConductanceUnit.Megamho); - - /// - /// Creates a from . - /// - public static ElectricConductance FromMegasiemens(double megasiemens) => new ElectricConductance(megasiemens, ElectricConductanceUnit.Megasiemens); - - /// - /// Creates a from . - /// - public static ElectricConductance FromMhos(double mhos) => new ElectricConductance(mhos, ElectricConductanceUnit.Mho); - - /// - /// Creates a from . - /// - public static ElectricConductance FromMicromhos(double micromhos) => new ElectricConductance(micromhos, ElectricConductanceUnit.Micromho); - - /// - /// Creates a from . - /// - public static ElectricConductance FromMicrosiemens(double microsiemens) => new ElectricConductance(microsiemens, ElectricConductanceUnit.Microsiemens); - - /// - /// Creates a from . - /// - public static ElectricConductance FromMillimhos(double millimhos) => new ElectricConductance(millimhos, ElectricConductanceUnit.Millimho); - - /// - /// Creates a from . - /// - public static ElectricConductance FromMillisiemens(double millisiemens) => new ElectricConductance(millisiemens, ElectricConductanceUnit.Millisiemens); - - /// - /// Creates a from . - /// - public static ElectricConductance FromNanomhos(double nanomhos) => new ElectricConductance(nanomhos, ElectricConductanceUnit.Nanomho); - - /// - /// Creates a from . - /// - public static ElectricConductance FromNanosiemens(double nanosiemens) => new ElectricConductance(nanosiemens, ElectricConductanceUnit.Nanosiemens); - - /// - /// Creates a from . - /// - public static ElectricConductance FromSiemens(double siemens) => new ElectricConductance(siemens, ElectricConductanceUnit.Siemens); - - /// - /// Creates a from . - /// - public static ElectricConductance FromTeramhos(double teramhos) => new ElectricConductance(teramhos, ElectricConductanceUnit.Teramho); - - /// - /// Creates a from . - /// - public static ElectricConductance FromTerasiemens(double terasiemens) => new ElectricConductance(terasiemens, ElectricConductanceUnit.Terasiemens); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricConductance unit value. - public static ElectricConductance From(double value, ElectricConductanceUnit fromUnit) - { - return new ElectricConductance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricConductanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricConductance to another ElectricConductance with the unit representation . - /// - /// A ElectricConductance with the specified unit. - public ElectricConductance ToUnit(ElectricConductanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricConductance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricConductanceUnit.Gigamho => (_value) * 1e9d, - ElectricConductanceUnit.Gigasiemens => (_value) * 1e9d, - ElectricConductanceUnit.Kilomho => (_value) * 1e3d, - ElectricConductanceUnit.Kilosiemens => (_value) * 1e3d, - ElectricConductanceUnit.Megamho => (_value) * 1e6d, - ElectricConductanceUnit.Megasiemens => (_value) * 1e6d, - ElectricConductanceUnit.Mho => _value, - ElectricConductanceUnit.Micromho => (_value) * 1e-6d, - ElectricConductanceUnit.Microsiemens => (_value) * 1e-6d, - ElectricConductanceUnit.Millimho => (_value) * 1e-3d, - ElectricConductanceUnit.Millisiemens => (_value) * 1e-3d, - ElectricConductanceUnit.Nanomho => (_value) * 1e-9d, - ElectricConductanceUnit.Nanosiemens => (_value) * 1e-9d, - ElectricConductanceUnit.Siemens => _value, - ElectricConductanceUnit.Teramho => (_value) * 1e12d, - ElectricConductanceUnit.Terasiemens => (_value) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricConductanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricConductanceUnit.Gigamho => (baseUnitValue) / 1e9d, - ElectricConductanceUnit.Gigasiemens => (baseUnitValue) / 1e9d, - ElectricConductanceUnit.Kilomho => (baseUnitValue) / 1e3d, - ElectricConductanceUnit.Kilosiemens => (baseUnitValue) / 1e3d, - ElectricConductanceUnit.Megamho => (baseUnitValue) / 1e6d, - ElectricConductanceUnit.Megasiemens => (baseUnitValue) / 1e6d, - ElectricConductanceUnit.Mho => baseUnitValue, - ElectricConductanceUnit.Micromho => (baseUnitValue) / 1e-6d, - ElectricConductanceUnit.Microsiemens => (baseUnitValue) / 1e-6d, - ElectricConductanceUnit.Millimho => (baseUnitValue) / 1e-3d, - ElectricConductanceUnit.Millisiemens => (baseUnitValue) / 1e-3d, - ElectricConductanceUnit.Nanomho => (baseUnitValue) / 1e-9d, - ElectricConductanceUnit.Nanosiemens => (baseUnitValue) / 1e-9d, - ElectricConductanceUnit.Siemens => baseUnitValue, - ElectricConductanceUnit.Teramho => (baseUnitValue) / 1e12d, - ElectricConductanceUnit.Terasiemens => (baseUnitValue) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductivity.g.cs deleted file mode 100644 index dcc2d1a6ef..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductivity.g.cs +++ /dev/null @@ -1,220 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Electrical conductivity or specific conductance is the reciprocal of electrical resistivity, and measures a material's ability to conduct an electric current. - /// - /// - /// https://en.wikipedia.org/wiki/Electrical_resistivity_and_conductivity - /// - public struct ElectricConductivity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricConductivityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricConductivityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricConductivity(double value, ElectricConductivityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricConductivity, which is Second. All conversions go via this value. - /// - public static ElectricConductivityUnit BaseUnit { get; } = ElectricConductivityUnit.SiemensPerMeter; - - /// - /// Represents the largest possible value of ElectricConductivity. - /// - public static ElectricConductivity MaxValue { get; } = new ElectricConductivity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricConductivity. - /// - public static ElectricConductivity MinValue { get; } = new ElectricConductivity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricConductivity Zero { get; } = new ElectricConductivity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double MicrosiemensPerCentimeter => As(ElectricConductivityUnit.MicrosiemensPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillisiemensPerCentimeter => As(ElectricConductivityUnit.MillisiemensPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double SiemensPerCentimeter => As(ElectricConductivityUnit.SiemensPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double SiemensPerFoot => As(ElectricConductivityUnit.SiemensPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double SiemensPerInch => As(ElectricConductivityUnit.SiemensPerInch); - - /// - /// Gets a value of this quantity converted into - /// - public double SiemensPerMeter => As(ElectricConductivityUnit.SiemensPerMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricConductivity FromMicrosiemensPerCentimeter(double microsiemenspercentimeter) => new ElectricConductivity(microsiemenspercentimeter, ElectricConductivityUnit.MicrosiemensPerCentimeter); - - /// - /// Creates a from . - /// - public static ElectricConductivity FromMillisiemensPerCentimeter(double millisiemenspercentimeter) => new ElectricConductivity(millisiemenspercentimeter, ElectricConductivityUnit.MillisiemensPerCentimeter); - - /// - /// Creates a from . - /// - public static ElectricConductivity FromSiemensPerCentimeter(double siemenspercentimeter) => new ElectricConductivity(siemenspercentimeter, ElectricConductivityUnit.SiemensPerCentimeter); - - /// - /// Creates a from . - /// - public static ElectricConductivity FromSiemensPerFoot(double siemensperfoot) => new ElectricConductivity(siemensperfoot, ElectricConductivityUnit.SiemensPerFoot); - - /// - /// Creates a from . - /// - public static ElectricConductivity FromSiemensPerInch(double siemensperinch) => new ElectricConductivity(siemensperinch, ElectricConductivityUnit.SiemensPerInch); - - /// - /// Creates a from . - /// - public static ElectricConductivity FromSiemensPerMeter(double siemenspermeter) => new ElectricConductivity(siemenspermeter, ElectricConductivityUnit.SiemensPerMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricConductivity unit value. - public static ElectricConductivity From(double value, ElectricConductivityUnit fromUnit) - { - return new ElectricConductivity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricConductivityUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricConductivity to another ElectricConductivity with the unit representation . - /// - /// A ElectricConductivity with the specified unit. - public ElectricConductivity ToUnit(ElectricConductivityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricConductivity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricConductivityUnit.MicrosiemensPerCentimeter => (_value * 1e2) * 1e-6d, - ElectricConductivityUnit.MillisiemensPerCentimeter => (_value * 1e2) * 1e-3d, - ElectricConductivityUnit.SiemensPerCentimeter => _value * 1e2, - ElectricConductivityUnit.SiemensPerFoot => _value / 0.3048, - ElectricConductivityUnit.SiemensPerInch => _value / 2.54e-2, - ElectricConductivityUnit.SiemensPerMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricConductivityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricConductivityUnit.MicrosiemensPerCentimeter => (baseUnitValue / 1e2) / 1e-6d, - ElectricConductivityUnit.MillisiemensPerCentimeter => (baseUnitValue / 1e2) / 1e-3d, - ElectricConductivityUnit.SiemensPerCentimeter => baseUnitValue / 1e2, - ElectricConductivityUnit.SiemensPerFoot => baseUnitValue * 0.3048, - ElectricConductivityUnit.SiemensPerInch => baseUnitValue * 2.54e-2, - ElectricConductivityUnit.SiemensPerMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrent.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrent.g.cs deleted file mode 100644 index b72fdf8595..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrent.g.cs +++ /dev/null @@ -1,256 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// An electric current is a flow of electric charge. In electric circuits this charge is often carried by moving electrons in a wire. It can also be carried by ions in an electrolyte, or by both ions and electrons such as in a plasma. - /// - /// - /// If you want to map more parameters into the ElectricCurrent class (amps RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple. - /// - public struct ElectricCurrent - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricCurrentUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricCurrentUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricCurrent(double value, ElectricCurrentUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricCurrent, which is Second. All conversions go via this value. - /// - public static ElectricCurrentUnit BaseUnit { get; } = ElectricCurrentUnit.Ampere; - - /// - /// Represents the largest possible value of ElectricCurrent. - /// - public static ElectricCurrent MaxValue { get; } = new ElectricCurrent(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricCurrent. - /// - public static ElectricCurrent MinValue { get; } = new ElectricCurrent(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricCurrent Zero { get; } = new ElectricCurrent(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Amperes => As(ElectricCurrentUnit.Ampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Centiamperes => As(ElectricCurrentUnit.Centiampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Femtoamperes => As(ElectricCurrentUnit.Femtoampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Kiloamperes => As(ElectricCurrentUnit.Kiloampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Megaamperes => As(ElectricCurrentUnit.Megaampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Microamperes => As(ElectricCurrentUnit.Microampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliamperes => As(ElectricCurrentUnit.Milliampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanoamperes => As(ElectricCurrentUnit.Nanoampere); - - /// - /// Gets a value of this quantity converted into - /// - public double Picoamperes => As(ElectricCurrentUnit.Picoampere); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricCurrent FromAmperes(double amperes) => new ElectricCurrent(amperes, ElectricCurrentUnit.Ampere); - - /// - /// Creates a from . - /// - public static ElectricCurrent FromCentiamperes(double centiamperes) => new ElectricCurrent(centiamperes, ElectricCurrentUnit.Centiampere); - - /// - /// Creates a from . - /// - public static ElectricCurrent FromFemtoamperes(double femtoamperes) => new ElectricCurrent(femtoamperes, ElectricCurrentUnit.Femtoampere); - - /// - /// Creates a from . - /// - public static ElectricCurrent FromKiloamperes(double kiloamperes) => new ElectricCurrent(kiloamperes, ElectricCurrentUnit.Kiloampere); - - /// - /// Creates a from . - /// - public static ElectricCurrent FromMegaamperes(double megaamperes) => new ElectricCurrent(megaamperes, ElectricCurrentUnit.Megaampere); - - /// - /// Creates a from . - /// - public static ElectricCurrent FromMicroamperes(double microamperes) => new ElectricCurrent(microamperes, ElectricCurrentUnit.Microampere); - - /// - /// Creates a from . - /// - public static ElectricCurrent FromMilliamperes(double milliamperes) => new ElectricCurrent(milliamperes, ElectricCurrentUnit.Milliampere); - - /// - /// Creates a from . - /// - public static ElectricCurrent FromNanoamperes(double nanoamperes) => new ElectricCurrent(nanoamperes, ElectricCurrentUnit.Nanoampere); - - /// - /// Creates a from . - /// - public static ElectricCurrent FromPicoamperes(double picoamperes) => new ElectricCurrent(picoamperes, ElectricCurrentUnit.Picoampere); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricCurrent unit value. - public static ElectricCurrent From(double value, ElectricCurrentUnit fromUnit) - { - return new ElectricCurrent(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricCurrentUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricCurrent to another ElectricCurrent with the unit representation . - /// - /// A ElectricCurrent with the specified unit. - public ElectricCurrent ToUnit(ElectricCurrentUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricCurrent(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricCurrentUnit.Ampere => _value, - ElectricCurrentUnit.Centiampere => (_value) * 1e-2d, - ElectricCurrentUnit.Femtoampere => (_value) * 1e-15d, - ElectricCurrentUnit.Kiloampere => (_value) * 1e3d, - ElectricCurrentUnit.Megaampere => (_value) * 1e6d, - ElectricCurrentUnit.Microampere => (_value) * 1e-6d, - ElectricCurrentUnit.Milliampere => (_value) * 1e-3d, - ElectricCurrentUnit.Nanoampere => (_value) * 1e-9d, - ElectricCurrentUnit.Picoampere => (_value) * 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricCurrentUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricCurrentUnit.Ampere => baseUnitValue, - ElectricCurrentUnit.Centiampere => (baseUnitValue) / 1e-2d, - ElectricCurrentUnit.Femtoampere => (baseUnitValue) / 1e-15d, - ElectricCurrentUnit.Kiloampere => (baseUnitValue) / 1e3d, - ElectricCurrentUnit.Megaampere => (baseUnitValue) / 1e6d, - ElectricCurrentUnit.Microampere => (baseUnitValue) / 1e-6d, - ElectricCurrentUnit.Milliampere => (baseUnitValue) / 1e-3d, - ElectricCurrentUnit.Nanoampere => (baseUnitValue) / 1e-9d, - ElectricCurrentUnit.Picoampere => (baseUnitValue) / 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs deleted file mode 100644 index ab7ba48bdc..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs +++ /dev/null @@ -1,184 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In electromagnetism, current density is the electric current per unit area of cross section. - /// - /// - /// https://en.wikipedia.org/wiki/Current_density - /// - public struct ElectricCurrentDensity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricCurrentDensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricCurrentDensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricCurrentDensity(double value, ElectricCurrentDensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricCurrentDensity, which is Second. All conversions go via this value. - /// - public static ElectricCurrentDensityUnit BaseUnit { get; } = ElectricCurrentDensityUnit.AmperePerSquareMeter; - - /// - /// Represents the largest possible value of ElectricCurrentDensity. - /// - public static ElectricCurrentDensity MaxValue { get; } = new ElectricCurrentDensity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricCurrentDensity. - /// - public static ElectricCurrentDensity MinValue { get; } = new ElectricCurrentDensity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricCurrentDensity Zero { get; } = new ElectricCurrentDensity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double AmperesPerSquareFoot => As(ElectricCurrentDensityUnit.AmperePerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double AmperesPerSquareInch => As(ElectricCurrentDensityUnit.AmperePerSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double AmperesPerSquareMeter => As(ElectricCurrentDensityUnit.AmperePerSquareMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricCurrentDensity FromAmperesPerSquareFoot(double amperespersquarefoot) => new ElectricCurrentDensity(amperespersquarefoot, ElectricCurrentDensityUnit.AmperePerSquareFoot); - - /// - /// Creates a from . - /// - public static ElectricCurrentDensity FromAmperesPerSquareInch(double amperespersquareinch) => new ElectricCurrentDensity(amperespersquareinch, ElectricCurrentDensityUnit.AmperePerSquareInch); - - /// - /// Creates a from . - /// - public static ElectricCurrentDensity FromAmperesPerSquareMeter(double amperespersquaremeter) => new ElectricCurrentDensity(amperespersquaremeter, ElectricCurrentDensityUnit.AmperePerSquareMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricCurrentDensity unit value. - public static ElectricCurrentDensity From(double value, ElectricCurrentDensityUnit fromUnit) - { - return new ElectricCurrentDensity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricCurrentDensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricCurrentDensity to another ElectricCurrentDensity with the unit representation . - /// - /// A ElectricCurrentDensity with the specified unit. - public ElectricCurrentDensity ToUnit(ElectricCurrentDensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricCurrentDensity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricCurrentDensityUnit.AmperePerSquareFoot => _value / 9.290304e-2, - ElectricCurrentDensityUnit.AmperePerSquareInch => _value / 0.00064516, - ElectricCurrentDensityUnit.AmperePerSquareMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricCurrentDensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricCurrentDensityUnit.AmperePerSquareFoot => baseUnitValue * 9.290304e-2, - ElectricCurrentDensityUnit.AmperePerSquareInch => baseUnitValue * 0.00064516, - ElectricCurrentDensityUnit.AmperePerSquareMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs deleted file mode 100644 index cddbfbcef7..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentGradient.g.cs +++ /dev/null @@ -1,229 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In electromagnetism, the current gradient describes how the current changes in time. - /// - public struct ElectricCurrentGradient - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricCurrentGradientUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricCurrentGradientUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricCurrentGradient(double value, ElectricCurrentGradientUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricCurrentGradient, which is Second. All conversions go via this value. - /// - public static ElectricCurrentGradientUnit BaseUnit { get; } = ElectricCurrentGradientUnit.AmperePerSecond; - - /// - /// Represents the largest possible value of ElectricCurrentGradient. - /// - public static ElectricCurrentGradient MaxValue { get; } = new ElectricCurrentGradient(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricCurrentGradient. - /// - public static ElectricCurrentGradient MinValue { get; } = new ElectricCurrentGradient(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricCurrentGradient Zero { get; } = new ElectricCurrentGradient(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double AmperesPerMicrosecond => As(ElectricCurrentGradientUnit.AmperePerMicrosecond); - - /// - /// Gets a value of this quantity converted into - /// - public double AmperesPerMillisecond => As(ElectricCurrentGradientUnit.AmperePerMillisecond); - - /// - /// Gets a value of this quantity converted into - /// - public double AmperesPerMinute => As(ElectricCurrentGradientUnit.AmperePerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double AmperesPerNanosecond => As(ElectricCurrentGradientUnit.AmperePerNanosecond); - - /// - /// Gets a value of this quantity converted into - /// - public double AmperesPerSecond => As(ElectricCurrentGradientUnit.AmperePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliamperesPerMinute => As(ElectricCurrentGradientUnit.MilliamperePerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliamperesPerSecond => As(ElectricCurrentGradientUnit.MilliamperePerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricCurrentGradient FromAmperesPerMicrosecond(double amperespermicrosecond) => new ElectricCurrentGradient(amperespermicrosecond, ElectricCurrentGradientUnit.AmperePerMicrosecond); - - /// - /// Creates a from . - /// - public static ElectricCurrentGradient FromAmperesPerMillisecond(double amperespermillisecond) => new ElectricCurrentGradient(amperespermillisecond, ElectricCurrentGradientUnit.AmperePerMillisecond); - - /// - /// Creates a from . - /// - public static ElectricCurrentGradient FromAmperesPerMinute(double amperesperminute) => new ElectricCurrentGradient(amperesperminute, ElectricCurrentGradientUnit.AmperePerMinute); - - /// - /// Creates a from . - /// - public static ElectricCurrentGradient FromAmperesPerNanosecond(double amperespernanosecond) => new ElectricCurrentGradient(amperespernanosecond, ElectricCurrentGradientUnit.AmperePerNanosecond); - - /// - /// Creates a from . - /// - public static ElectricCurrentGradient FromAmperesPerSecond(double amperespersecond) => new ElectricCurrentGradient(amperespersecond, ElectricCurrentGradientUnit.AmperePerSecond); - - /// - /// Creates a from . - /// - public static ElectricCurrentGradient FromMilliamperesPerMinute(double milliamperesperminute) => new ElectricCurrentGradient(milliamperesperminute, ElectricCurrentGradientUnit.MilliamperePerMinute); - - /// - /// Creates a from . - /// - public static ElectricCurrentGradient FromMilliamperesPerSecond(double milliamperespersecond) => new ElectricCurrentGradient(milliamperespersecond, ElectricCurrentGradientUnit.MilliamperePerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricCurrentGradient unit value. - public static ElectricCurrentGradient From(double value, ElectricCurrentGradientUnit fromUnit) - { - return new ElectricCurrentGradient(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricCurrentGradientUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricCurrentGradient to another ElectricCurrentGradient with the unit representation . - /// - /// A ElectricCurrentGradient with the specified unit. - public ElectricCurrentGradient ToUnit(ElectricCurrentGradientUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricCurrentGradient(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricCurrentGradientUnit.AmperePerMicrosecond => _value * 1E6, - ElectricCurrentGradientUnit.AmperePerMillisecond => _value * 1E3, - ElectricCurrentGradientUnit.AmperePerMinute => _value / 60, - ElectricCurrentGradientUnit.AmperePerNanosecond => _value * 1E9, - ElectricCurrentGradientUnit.AmperePerSecond => _value, - ElectricCurrentGradientUnit.MilliamperePerMinute => (_value / 60) * 1e-3d, - ElectricCurrentGradientUnit.MilliamperePerSecond => (_value) * 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricCurrentGradientUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricCurrentGradientUnit.AmperePerMicrosecond => baseUnitValue / 1E6, - ElectricCurrentGradientUnit.AmperePerMillisecond => baseUnitValue / 1E3, - ElectricCurrentGradientUnit.AmperePerMinute => baseUnitValue * 60, - ElectricCurrentGradientUnit.AmperePerNanosecond => baseUnitValue / 1E9, - ElectricCurrentGradientUnit.AmperePerSecond => baseUnitValue, - ElectricCurrentGradientUnit.MilliamperePerMinute => (baseUnitValue * 60) / 1e-3d, - ElectricCurrentGradientUnit.MilliamperePerSecond => (baseUnitValue) / 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricField.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricField.g.cs deleted file mode 100644 index 0d5c1ae132..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricField.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// An electric field is a force field that surrounds electric charges that attracts or repels other electric charges. - /// - /// - /// https://en.wikipedia.org/wiki/Electric_field - /// - public struct ElectricField - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricFieldUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricFieldUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricField(double value, ElectricFieldUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricField, which is Second. All conversions go via this value. - /// - public static ElectricFieldUnit BaseUnit { get; } = ElectricFieldUnit.VoltPerMeter; - - /// - /// Represents the largest possible value of ElectricField. - /// - public static ElectricField MaxValue { get; } = new ElectricField(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricField. - /// - public static ElectricField MinValue { get; } = new ElectricField(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricField Zero { get; } = new ElectricField(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double VoltsPerMeter => As(ElectricFieldUnit.VoltPerMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricField FromVoltsPerMeter(double voltspermeter) => new ElectricField(voltspermeter, ElectricFieldUnit.VoltPerMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricField unit value. - public static ElectricField From(double value, ElectricFieldUnit fromUnit) - { - return new ElectricField(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricFieldUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricField to another ElectricField with the unit representation . - /// - /// A ElectricField with the specified unit. - public ElectricField ToUnit(ElectricFieldUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricField(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricFieldUnit.VoltPerMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricFieldUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricFieldUnit.VoltPerMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricImpedance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricImpedance.g.cs deleted file mode 100644 index e6629ce635..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricImpedance.g.cs +++ /dev/null @@ -1,245 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Electric impedance is the opposition to alternating current presented by the combined effect of resistance and reactance in a circuit. It is defined as the inverse of admittance. The SI unit of impedance is the ohm (symbol Ω). - /// - /// - /// https://en.wikipedia.org/wiki/Electrical_impedance - /// - [Obsolete("Impedance is a complex number, which is not currently supported by UnitsNet. Please use either ElectricResistance or ElectricReactance instead.")] - public struct ElectricImpedance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricImpedanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricImpedanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricImpedance(double value, ElectricImpedanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricImpedance, which is Second. All conversions go via this value. - /// - public static ElectricImpedanceUnit BaseUnit { get; } = ElectricImpedanceUnit.Ohm; - - /// - /// Represents the largest possible value of ElectricImpedance. - /// - public static ElectricImpedance MaxValue { get; } = new ElectricImpedance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricImpedance. - /// - public static ElectricImpedance MinValue { get; } = new ElectricImpedance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricImpedance Zero { get; } = new ElectricImpedance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Gigaohms => As(ElectricImpedanceUnit.Gigaohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Kiloohms => As(ElectricImpedanceUnit.Kiloohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Megaohms => As(ElectricImpedanceUnit.Megaohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Microohms => As(ElectricImpedanceUnit.Microohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliohms => As(ElectricImpedanceUnit.Milliohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanoohms => As(ElectricImpedanceUnit.Nanoohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Ohms => As(ElectricImpedanceUnit.Ohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Teraohms => As(ElectricImpedanceUnit.Teraohm); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricImpedance FromGigaohms(double gigaohms) => new ElectricImpedance(gigaohms, ElectricImpedanceUnit.Gigaohm); - - /// - /// Creates a from . - /// - public static ElectricImpedance FromKiloohms(double kiloohms) => new ElectricImpedance(kiloohms, ElectricImpedanceUnit.Kiloohm); - - /// - /// Creates a from . - /// - public static ElectricImpedance FromMegaohms(double megaohms) => new ElectricImpedance(megaohms, ElectricImpedanceUnit.Megaohm); - - /// - /// Creates a from . - /// - public static ElectricImpedance FromMicroohms(double microohms) => new ElectricImpedance(microohms, ElectricImpedanceUnit.Microohm); - - /// - /// Creates a from . - /// - public static ElectricImpedance FromMilliohms(double milliohms) => new ElectricImpedance(milliohms, ElectricImpedanceUnit.Milliohm); - - /// - /// Creates a from . - /// - public static ElectricImpedance FromNanoohms(double nanoohms) => new ElectricImpedance(nanoohms, ElectricImpedanceUnit.Nanoohm); - - /// - /// Creates a from . - /// - public static ElectricImpedance FromOhms(double ohms) => new ElectricImpedance(ohms, ElectricImpedanceUnit.Ohm); - - /// - /// Creates a from . - /// - public static ElectricImpedance FromTeraohms(double teraohms) => new ElectricImpedance(teraohms, ElectricImpedanceUnit.Teraohm); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricImpedance unit value. - public static ElectricImpedance From(double value, ElectricImpedanceUnit fromUnit) - { - return new ElectricImpedance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricImpedanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricImpedance to another ElectricImpedance with the unit representation . - /// - /// A ElectricImpedance with the specified unit. - public ElectricImpedance ToUnit(ElectricImpedanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricImpedance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricImpedanceUnit.Gigaohm => (_value) * 1e9d, - ElectricImpedanceUnit.Kiloohm => (_value) * 1e3d, - ElectricImpedanceUnit.Megaohm => (_value) * 1e6d, - ElectricImpedanceUnit.Microohm => (_value) * 1e-6d, - ElectricImpedanceUnit.Milliohm => (_value) * 1e-3d, - ElectricImpedanceUnit.Nanoohm => (_value) * 1e-9d, - ElectricImpedanceUnit.Ohm => _value, - ElectricImpedanceUnit.Teraohm => (_value) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricImpedanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricImpedanceUnit.Gigaohm => (baseUnitValue) / 1e9d, - ElectricImpedanceUnit.Kiloohm => (baseUnitValue) / 1e3d, - ElectricImpedanceUnit.Megaohm => (baseUnitValue) / 1e6d, - ElectricImpedanceUnit.Microohm => (baseUnitValue) / 1e-6d, - ElectricImpedanceUnit.Milliohm => (baseUnitValue) / 1e-3d, - ElectricImpedanceUnit.Nanoohm => (baseUnitValue) / 1e-9d, - ElectricImpedanceUnit.Ohm => baseUnitValue, - ElectricImpedanceUnit.Teraohm => (baseUnitValue) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricInductance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricInductance.g.cs deleted file mode 100644 index 0d7654d801..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricInductance.g.cs +++ /dev/null @@ -1,208 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Inductance is a property of an electrical conductor which opposes a change in current. - /// - /// - /// https://en.wikipedia.org/wiki/Inductance - /// - public struct ElectricInductance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricInductanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricInductanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricInductance(double value, ElectricInductanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricInductance, which is Second. All conversions go via this value. - /// - public static ElectricInductanceUnit BaseUnit { get; } = ElectricInductanceUnit.Henry; - - /// - /// Represents the largest possible value of ElectricInductance. - /// - public static ElectricInductance MaxValue { get; } = new ElectricInductance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricInductance. - /// - public static ElectricInductance MinValue { get; } = new ElectricInductance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricInductance Zero { get; } = new ElectricInductance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Henries => As(ElectricInductanceUnit.Henry); - - /// - /// Gets a value of this quantity converted into - /// - public double Microhenries => As(ElectricInductanceUnit.Microhenry); - - /// - /// Gets a value of this quantity converted into - /// - public double Millihenries => As(ElectricInductanceUnit.Millihenry); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanohenries => As(ElectricInductanceUnit.Nanohenry); - - /// - /// Gets a value of this quantity converted into - /// - public double Picohenries => As(ElectricInductanceUnit.Picohenry); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricInductance FromHenries(double henries) => new ElectricInductance(henries, ElectricInductanceUnit.Henry); - - /// - /// Creates a from . - /// - public static ElectricInductance FromMicrohenries(double microhenries) => new ElectricInductance(microhenries, ElectricInductanceUnit.Microhenry); - - /// - /// Creates a from . - /// - public static ElectricInductance FromMillihenries(double millihenries) => new ElectricInductance(millihenries, ElectricInductanceUnit.Millihenry); - - /// - /// Creates a from . - /// - public static ElectricInductance FromNanohenries(double nanohenries) => new ElectricInductance(nanohenries, ElectricInductanceUnit.Nanohenry); - - /// - /// Creates a from . - /// - public static ElectricInductance FromPicohenries(double picohenries) => new ElectricInductance(picohenries, ElectricInductanceUnit.Picohenry); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricInductance unit value. - public static ElectricInductance From(double value, ElectricInductanceUnit fromUnit) - { - return new ElectricInductance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricInductanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricInductance to another ElectricInductance with the unit representation . - /// - /// A ElectricInductance with the specified unit. - public ElectricInductance ToUnit(ElectricInductanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricInductance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricInductanceUnit.Henry => _value, - ElectricInductanceUnit.Microhenry => (_value) * 1e-6d, - ElectricInductanceUnit.Millihenry => (_value) * 1e-3d, - ElectricInductanceUnit.Nanohenry => (_value) * 1e-9d, - ElectricInductanceUnit.Picohenry => (_value) * 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricInductanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricInductanceUnit.Henry => baseUnitValue, - ElectricInductanceUnit.Microhenry => (baseUnitValue) / 1e-6d, - ElectricInductanceUnit.Millihenry => (baseUnitValue) / 1e-3d, - ElectricInductanceUnit.Nanohenry => (baseUnitValue) / 1e-9d, - ElectricInductanceUnit.Picohenry => (baseUnitValue) / 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotential.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotential.g.cs deleted file mode 100644 index ed4f945693..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotential.g.cs +++ /dev/null @@ -1,220 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In classical electromagnetism, the electric potential (a scalar quantity denoted by Φ, ΦE or V and also called the electric field potential or the electrostatic potential) at a point is the amount of electric potential energy that a unitary point charge would have when located at that point. - /// - /// - /// If you want to map more parameters into the ElectricPotential class (volts RMS, phase angle, etc.), create your own wrapper type such as a record or named tuple. - /// - public struct ElectricPotential - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricPotentialUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricPotentialUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricPotential(double value, ElectricPotentialUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricPotential, which is Second. All conversions go via this value. - /// - public static ElectricPotentialUnit BaseUnit { get; } = ElectricPotentialUnit.Volt; - - /// - /// Represents the largest possible value of ElectricPotential. - /// - public static ElectricPotential MaxValue { get; } = new ElectricPotential(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricPotential. - /// - public static ElectricPotential MinValue { get; } = new ElectricPotential(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricPotential Zero { get; } = new ElectricPotential(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Kilovolts => As(ElectricPotentialUnit.Kilovolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Megavolts => As(ElectricPotentialUnit.Megavolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Microvolts => As(ElectricPotentialUnit.Microvolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Millivolts => As(ElectricPotentialUnit.Millivolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanovolts => As(ElectricPotentialUnit.Nanovolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Volts => As(ElectricPotentialUnit.Volt); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricPotential FromKilovolts(double kilovolts) => new ElectricPotential(kilovolts, ElectricPotentialUnit.Kilovolt); - - /// - /// Creates a from . - /// - public static ElectricPotential FromMegavolts(double megavolts) => new ElectricPotential(megavolts, ElectricPotentialUnit.Megavolt); - - /// - /// Creates a from . - /// - public static ElectricPotential FromMicrovolts(double microvolts) => new ElectricPotential(microvolts, ElectricPotentialUnit.Microvolt); - - /// - /// Creates a from . - /// - public static ElectricPotential FromMillivolts(double millivolts) => new ElectricPotential(millivolts, ElectricPotentialUnit.Millivolt); - - /// - /// Creates a from . - /// - public static ElectricPotential FromNanovolts(double nanovolts) => new ElectricPotential(nanovolts, ElectricPotentialUnit.Nanovolt); - - /// - /// Creates a from . - /// - public static ElectricPotential FromVolts(double volts) => new ElectricPotential(volts, ElectricPotentialUnit.Volt); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricPotential unit value. - public static ElectricPotential From(double value, ElectricPotentialUnit fromUnit) - { - return new ElectricPotential(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricPotentialUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricPotential to another ElectricPotential with the unit representation . - /// - /// A ElectricPotential with the specified unit. - public ElectricPotential ToUnit(ElectricPotentialUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricPotential(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricPotentialUnit.Kilovolt => (_value) * 1e3d, - ElectricPotentialUnit.Megavolt => (_value) * 1e6d, - ElectricPotentialUnit.Microvolt => (_value) * 1e-6d, - ElectricPotentialUnit.Millivolt => (_value) * 1e-3d, - ElectricPotentialUnit.Nanovolt => (_value) * 1e-9d, - ElectricPotentialUnit.Volt => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricPotentialUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricPotentialUnit.Kilovolt => (baseUnitValue) / 1e3d, - ElectricPotentialUnit.Megavolt => (baseUnitValue) / 1e6d, - ElectricPotentialUnit.Microvolt => (baseUnitValue) / 1e-6d, - ElectricPotentialUnit.Millivolt => (baseUnitValue) / 1e-3d, - ElectricPotentialUnit.Nanovolt => (baseUnitValue) / 1e-9d, - ElectricPotentialUnit.Volt => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs deleted file mode 100644 index 4840493913..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricPotentialChangeRate.g.cs +++ /dev/null @@ -1,385 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// ElectricPotential change rate is the ratio of the electric potential change to the time during which the change occurred (value of electric potential changes per unit time). - /// - public struct ElectricPotentialChangeRate - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricPotentialChangeRateUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricPotentialChangeRateUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricPotentialChangeRate(double value, ElectricPotentialChangeRateUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricPotentialChangeRate, which is Second. All conversions go via this value. - /// - public static ElectricPotentialChangeRateUnit BaseUnit { get; } = ElectricPotentialChangeRateUnit.VoltPerSecond; - - /// - /// Represents the largest possible value of ElectricPotentialChangeRate. - /// - public static ElectricPotentialChangeRate MaxValue { get; } = new ElectricPotentialChangeRate(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricPotentialChangeRate. - /// - public static ElectricPotentialChangeRate MinValue { get; } = new ElectricPotentialChangeRate(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricPotentialChangeRate Zero { get; } = new ElectricPotentialChangeRate(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double KilovoltsPerHour => As(ElectricPotentialChangeRateUnit.KilovoltPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KilovoltsPerMicrosecond => As(ElectricPotentialChangeRateUnit.KilovoltPerMicrosecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilovoltsPerMinute => As(ElectricPotentialChangeRateUnit.KilovoltPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KilovoltsPerSecond => As(ElectricPotentialChangeRateUnit.KilovoltPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegavoltsPerHour => As(ElectricPotentialChangeRateUnit.MegavoltPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MegavoltsPerMicrosecond => As(ElectricPotentialChangeRateUnit.MegavoltPerMicrosecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegavoltsPerMinute => As(ElectricPotentialChangeRateUnit.MegavoltPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MegavoltsPerSecond => As(ElectricPotentialChangeRateUnit.MegavoltPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrovoltsPerHour => As(ElectricPotentialChangeRateUnit.MicrovoltPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrovoltsPerMicrosecond => As(ElectricPotentialChangeRateUnit.MicrovoltPerMicrosecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrovoltsPerMinute => As(ElectricPotentialChangeRateUnit.MicrovoltPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrovoltsPerSecond => As(ElectricPotentialChangeRateUnit.MicrovoltPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillivoltsPerHour => As(ElectricPotentialChangeRateUnit.MillivoltPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MillivoltsPerMicrosecond => As(ElectricPotentialChangeRateUnit.MillivoltPerMicrosecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillivoltsPerMinute => As(ElectricPotentialChangeRateUnit.MillivoltPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MillivoltsPerSecond => As(ElectricPotentialChangeRateUnit.MillivoltPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double VoltsPerHour => As(ElectricPotentialChangeRateUnit.VoltPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double VoltsPerMicrosecond => As(ElectricPotentialChangeRateUnit.VoltPerMicrosecond); - - /// - /// Gets a value of this quantity converted into - /// - public double VoltsPerMinute => As(ElectricPotentialChangeRateUnit.VoltPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double VoltsPerSecond => As(ElectricPotentialChangeRateUnit.VoltPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromKilovoltsPerHour(double kilovoltsperhour) => new ElectricPotentialChangeRate(kilovoltsperhour, ElectricPotentialChangeRateUnit.KilovoltPerHour); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromKilovoltsPerMicrosecond(double kilovoltspermicrosecond) => new ElectricPotentialChangeRate(kilovoltspermicrosecond, ElectricPotentialChangeRateUnit.KilovoltPerMicrosecond); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromKilovoltsPerMinute(double kilovoltsperminute) => new ElectricPotentialChangeRate(kilovoltsperminute, ElectricPotentialChangeRateUnit.KilovoltPerMinute); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromKilovoltsPerSecond(double kilovoltspersecond) => new ElectricPotentialChangeRate(kilovoltspersecond, ElectricPotentialChangeRateUnit.KilovoltPerSecond); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMegavoltsPerHour(double megavoltsperhour) => new ElectricPotentialChangeRate(megavoltsperhour, ElectricPotentialChangeRateUnit.MegavoltPerHour); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMegavoltsPerMicrosecond(double megavoltspermicrosecond) => new ElectricPotentialChangeRate(megavoltspermicrosecond, ElectricPotentialChangeRateUnit.MegavoltPerMicrosecond); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMegavoltsPerMinute(double megavoltsperminute) => new ElectricPotentialChangeRate(megavoltsperminute, ElectricPotentialChangeRateUnit.MegavoltPerMinute); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMegavoltsPerSecond(double megavoltspersecond) => new ElectricPotentialChangeRate(megavoltspersecond, ElectricPotentialChangeRateUnit.MegavoltPerSecond); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMicrovoltsPerHour(double microvoltsperhour) => new ElectricPotentialChangeRate(microvoltsperhour, ElectricPotentialChangeRateUnit.MicrovoltPerHour); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMicrovoltsPerMicrosecond(double microvoltspermicrosecond) => new ElectricPotentialChangeRate(microvoltspermicrosecond, ElectricPotentialChangeRateUnit.MicrovoltPerMicrosecond); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMicrovoltsPerMinute(double microvoltsperminute) => new ElectricPotentialChangeRate(microvoltsperminute, ElectricPotentialChangeRateUnit.MicrovoltPerMinute); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMicrovoltsPerSecond(double microvoltspersecond) => new ElectricPotentialChangeRate(microvoltspersecond, ElectricPotentialChangeRateUnit.MicrovoltPerSecond); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMillivoltsPerHour(double millivoltsperhour) => new ElectricPotentialChangeRate(millivoltsperhour, ElectricPotentialChangeRateUnit.MillivoltPerHour); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMillivoltsPerMicrosecond(double millivoltspermicrosecond) => new ElectricPotentialChangeRate(millivoltspermicrosecond, ElectricPotentialChangeRateUnit.MillivoltPerMicrosecond); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMillivoltsPerMinute(double millivoltsperminute) => new ElectricPotentialChangeRate(millivoltsperminute, ElectricPotentialChangeRateUnit.MillivoltPerMinute); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromMillivoltsPerSecond(double millivoltspersecond) => new ElectricPotentialChangeRate(millivoltspersecond, ElectricPotentialChangeRateUnit.MillivoltPerSecond); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromVoltsPerHour(double voltsperhour) => new ElectricPotentialChangeRate(voltsperhour, ElectricPotentialChangeRateUnit.VoltPerHour); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromVoltsPerMicrosecond(double voltspermicrosecond) => new ElectricPotentialChangeRate(voltspermicrosecond, ElectricPotentialChangeRateUnit.VoltPerMicrosecond); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromVoltsPerMinute(double voltsperminute) => new ElectricPotentialChangeRate(voltsperminute, ElectricPotentialChangeRateUnit.VoltPerMinute); - - /// - /// Creates a from . - /// - public static ElectricPotentialChangeRate FromVoltsPerSecond(double voltspersecond) => new ElectricPotentialChangeRate(voltspersecond, ElectricPotentialChangeRateUnit.VoltPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricPotentialChangeRate unit value. - public static ElectricPotentialChangeRate From(double value, ElectricPotentialChangeRateUnit fromUnit) - { - return new ElectricPotentialChangeRate(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricPotentialChangeRateUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricPotentialChangeRate to another ElectricPotentialChangeRate with the unit representation . - /// - /// A ElectricPotentialChangeRate with the specified unit. - public ElectricPotentialChangeRate ToUnit(ElectricPotentialChangeRateUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricPotentialChangeRate(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricPotentialChangeRateUnit.KilovoltPerHour => (_value / 3600) * 1e3d, - ElectricPotentialChangeRateUnit.KilovoltPerMicrosecond => (_value * 1E6) * 1e3d, - ElectricPotentialChangeRateUnit.KilovoltPerMinute => (_value / 60) * 1e3d, - ElectricPotentialChangeRateUnit.KilovoltPerSecond => (_value) * 1e3d, - ElectricPotentialChangeRateUnit.MegavoltPerHour => (_value / 3600) * 1e6d, - ElectricPotentialChangeRateUnit.MegavoltPerMicrosecond => (_value * 1E6) * 1e6d, - ElectricPotentialChangeRateUnit.MegavoltPerMinute => (_value / 60) * 1e6d, - ElectricPotentialChangeRateUnit.MegavoltPerSecond => (_value) * 1e6d, - ElectricPotentialChangeRateUnit.MicrovoltPerHour => (_value / 3600) * 1e-6d, - ElectricPotentialChangeRateUnit.MicrovoltPerMicrosecond => (_value * 1E6) * 1e-6d, - ElectricPotentialChangeRateUnit.MicrovoltPerMinute => (_value / 60) * 1e-6d, - ElectricPotentialChangeRateUnit.MicrovoltPerSecond => (_value) * 1e-6d, - ElectricPotentialChangeRateUnit.MillivoltPerHour => (_value / 3600) * 1e-3d, - ElectricPotentialChangeRateUnit.MillivoltPerMicrosecond => (_value * 1E6) * 1e-3d, - ElectricPotentialChangeRateUnit.MillivoltPerMinute => (_value / 60) * 1e-3d, - ElectricPotentialChangeRateUnit.MillivoltPerSecond => (_value) * 1e-3d, - ElectricPotentialChangeRateUnit.VoltPerHour => _value / 3600, - ElectricPotentialChangeRateUnit.VoltPerMicrosecond => _value * 1E6, - ElectricPotentialChangeRateUnit.VoltPerMinute => _value / 60, - ElectricPotentialChangeRateUnit.VoltPerSecond => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricPotentialChangeRateUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricPotentialChangeRateUnit.KilovoltPerHour => (baseUnitValue * 3600) / 1e3d, - ElectricPotentialChangeRateUnit.KilovoltPerMicrosecond => (baseUnitValue / 1E6) / 1e3d, - ElectricPotentialChangeRateUnit.KilovoltPerMinute => (baseUnitValue * 60) / 1e3d, - ElectricPotentialChangeRateUnit.KilovoltPerSecond => (baseUnitValue) / 1e3d, - ElectricPotentialChangeRateUnit.MegavoltPerHour => (baseUnitValue * 3600) / 1e6d, - ElectricPotentialChangeRateUnit.MegavoltPerMicrosecond => (baseUnitValue / 1E6) / 1e6d, - ElectricPotentialChangeRateUnit.MegavoltPerMinute => (baseUnitValue * 60) / 1e6d, - ElectricPotentialChangeRateUnit.MegavoltPerSecond => (baseUnitValue) / 1e6d, - ElectricPotentialChangeRateUnit.MicrovoltPerHour => (baseUnitValue * 3600) / 1e-6d, - ElectricPotentialChangeRateUnit.MicrovoltPerMicrosecond => (baseUnitValue / 1E6) / 1e-6d, - ElectricPotentialChangeRateUnit.MicrovoltPerMinute => (baseUnitValue * 60) / 1e-6d, - ElectricPotentialChangeRateUnit.MicrovoltPerSecond => (baseUnitValue) / 1e-6d, - ElectricPotentialChangeRateUnit.MillivoltPerHour => (baseUnitValue * 3600) / 1e-3d, - ElectricPotentialChangeRateUnit.MillivoltPerMicrosecond => (baseUnitValue / 1E6) / 1e-3d, - ElectricPotentialChangeRateUnit.MillivoltPerMinute => (baseUnitValue * 60) / 1e-3d, - ElectricPotentialChangeRateUnit.MillivoltPerSecond => (baseUnitValue) / 1e-3d, - ElectricPotentialChangeRateUnit.VoltPerHour => baseUnitValue * 3600, - ElectricPotentialChangeRateUnit.VoltPerMicrosecond => baseUnitValue / 1E6, - ElectricPotentialChangeRateUnit.VoltPerMinute => baseUnitValue * 60, - ElectricPotentialChangeRateUnit.VoltPerSecond => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactance.g.cs deleted file mode 100644 index df246179fc..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactance.g.cs +++ /dev/null @@ -1,244 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In electrical circuits, reactance is the opposition presented to alternating current by inductance and capacitance. Along with resistance, it is one of two elements of impedance. - /// - /// - /// https://en.wikipedia.org/wiki/Electrical_reactance - /// - public struct ElectricReactance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricReactanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricReactanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricReactance(double value, ElectricReactanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricReactance, which is Second. All conversions go via this value. - /// - public static ElectricReactanceUnit BaseUnit { get; } = ElectricReactanceUnit.Ohm; - - /// - /// Represents the largest possible value of ElectricReactance. - /// - public static ElectricReactance MaxValue { get; } = new ElectricReactance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricReactance. - /// - public static ElectricReactance MinValue { get; } = new ElectricReactance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricReactance Zero { get; } = new ElectricReactance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Gigaohms => As(ElectricReactanceUnit.Gigaohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Kiloohms => As(ElectricReactanceUnit.Kiloohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Megaohms => As(ElectricReactanceUnit.Megaohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Microohms => As(ElectricReactanceUnit.Microohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliohms => As(ElectricReactanceUnit.Milliohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanoohms => As(ElectricReactanceUnit.Nanoohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Ohms => As(ElectricReactanceUnit.Ohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Teraohms => As(ElectricReactanceUnit.Teraohm); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricReactance FromGigaohms(double gigaohms) => new ElectricReactance(gigaohms, ElectricReactanceUnit.Gigaohm); - - /// - /// Creates a from . - /// - public static ElectricReactance FromKiloohms(double kiloohms) => new ElectricReactance(kiloohms, ElectricReactanceUnit.Kiloohm); - - /// - /// Creates a from . - /// - public static ElectricReactance FromMegaohms(double megaohms) => new ElectricReactance(megaohms, ElectricReactanceUnit.Megaohm); - - /// - /// Creates a from . - /// - public static ElectricReactance FromMicroohms(double microohms) => new ElectricReactance(microohms, ElectricReactanceUnit.Microohm); - - /// - /// Creates a from . - /// - public static ElectricReactance FromMilliohms(double milliohms) => new ElectricReactance(milliohms, ElectricReactanceUnit.Milliohm); - - /// - /// Creates a from . - /// - public static ElectricReactance FromNanoohms(double nanoohms) => new ElectricReactance(nanoohms, ElectricReactanceUnit.Nanoohm); - - /// - /// Creates a from . - /// - public static ElectricReactance FromOhms(double ohms) => new ElectricReactance(ohms, ElectricReactanceUnit.Ohm); - - /// - /// Creates a from . - /// - public static ElectricReactance FromTeraohms(double teraohms) => new ElectricReactance(teraohms, ElectricReactanceUnit.Teraohm); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricReactance unit value. - public static ElectricReactance From(double value, ElectricReactanceUnit fromUnit) - { - return new ElectricReactance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricReactanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricReactance to another ElectricReactance with the unit representation . - /// - /// A ElectricReactance with the specified unit. - public ElectricReactance ToUnit(ElectricReactanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricReactance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricReactanceUnit.Gigaohm => (_value) * 1e9d, - ElectricReactanceUnit.Kiloohm => (_value) * 1e3d, - ElectricReactanceUnit.Megaohm => (_value) * 1e6d, - ElectricReactanceUnit.Microohm => (_value) * 1e-6d, - ElectricReactanceUnit.Milliohm => (_value) * 1e-3d, - ElectricReactanceUnit.Nanoohm => (_value) * 1e-9d, - ElectricReactanceUnit.Ohm => _value, - ElectricReactanceUnit.Teraohm => (_value) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricReactanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricReactanceUnit.Gigaohm => (baseUnitValue) / 1e9d, - ElectricReactanceUnit.Kiloohm => (baseUnitValue) / 1e3d, - ElectricReactanceUnit.Megaohm => (baseUnitValue) / 1e6d, - ElectricReactanceUnit.Microohm => (baseUnitValue) / 1e-6d, - ElectricReactanceUnit.Milliohm => (baseUnitValue) / 1e-3d, - ElectricReactanceUnit.Nanoohm => (baseUnitValue) / 1e-9d, - ElectricReactanceUnit.Ohm => baseUnitValue, - ElectricReactanceUnit.Teraohm => (baseUnitValue) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs deleted file mode 100644 index 3bb96eec8c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactiveEnergy.g.cs +++ /dev/null @@ -1,181 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The volt-ampere reactive hour (expressed as varh) is the reactive power of one Volt-ampere reactive produced in one hour. - /// - public struct ElectricReactiveEnergy - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricReactiveEnergyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricReactiveEnergyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricReactiveEnergy(double value, ElectricReactiveEnergyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricReactiveEnergy, which is Second. All conversions go via this value. - /// - public static ElectricReactiveEnergyUnit BaseUnit { get; } = ElectricReactiveEnergyUnit.VoltampereReactiveHour; - - /// - /// Represents the largest possible value of ElectricReactiveEnergy. - /// - public static ElectricReactiveEnergy MaxValue { get; } = new ElectricReactiveEnergy(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricReactiveEnergy. - /// - public static ElectricReactiveEnergy MinValue { get; } = new ElectricReactiveEnergy(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricReactiveEnergy Zero { get; } = new ElectricReactiveEnergy(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double KilovoltampereReactiveHours => As(ElectricReactiveEnergyUnit.KilovoltampereReactiveHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MegavoltampereReactiveHours => As(ElectricReactiveEnergyUnit.MegavoltampereReactiveHour); - - /// - /// Gets a value of this quantity converted into - /// - public double VoltampereReactiveHours => As(ElectricReactiveEnergyUnit.VoltampereReactiveHour); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricReactiveEnergy FromKilovoltampereReactiveHours(double kilovoltamperereactivehours) => new ElectricReactiveEnergy(kilovoltamperereactivehours, ElectricReactiveEnergyUnit.KilovoltampereReactiveHour); - - /// - /// Creates a from . - /// - public static ElectricReactiveEnergy FromMegavoltampereReactiveHours(double megavoltamperereactivehours) => new ElectricReactiveEnergy(megavoltamperereactivehours, ElectricReactiveEnergyUnit.MegavoltampereReactiveHour); - - /// - /// Creates a from . - /// - public static ElectricReactiveEnergy FromVoltampereReactiveHours(double voltamperereactivehours) => new ElectricReactiveEnergy(voltamperereactivehours, ElectricReactiveEnergyUnit.VoltampereReactiveHour); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricReactiveEnergy unit value. - public static ElectricReactiveEnergy From(double value, ElectricReactiveEnergyUnit fromUnit) - { - return new ElectricReactiveEnergy(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricReactiveEnergyUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricReactiveEnergy to another ElectricReactiveEnergy with the unit representation . - /// - /// A ElectricReactiveEnergy with the specified unit. - public ElectricReactiveEnergy ToUnit(ElectricReactiveEnergyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricReactiveEnergy(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricReactiveEnergyUnit.KilovoltampereReactiveHour => (_value) * 1e3d, - ElectricReactiveEnergyUnit.MegavoltampereReactiveHour => (_value) * 1e6d, - ElectricReactiveEnergyUnit.VoltampereReactiveHour => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricReactiveEnergyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricReactiveEnergyUnit.KilovoltampereReactiveHour => (baseUnitValue) / 1e3d, - ElectricReactiveEnergyUnit.MegavoltampereReactiveHour => (baseUnitValue) / 1e6d, - ElectricReactiveEnergyUnit.VoltampereReactiveHour => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactivePower.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactivePower.g.cs deleted file mode 100644 index e9206453d5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricReactivePower.g.cs +++ /dev/null @@ -1,196 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In electric power transmission and distribution, volt-ampere reactive (var) is a unit of measurement of reactive power. Reactive power exists in an AC circuit when the current and voltage are not in phase. - /// - /// - /// https://en.wikipedia.org/wiki/AC_power#Active,_reactive,_apparent,_and_complex_power_in_sinusoidal_steady-state - /// - public struct ElectricReactivePower - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricReactivePowerUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricReactivePowerUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricReactivePower(double value, ElectricReactivePowerUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricReactivePower, which is Second. All conversions go via this value. - /// - public static ElectricReactivePowerUnit BaseUnit { get; } = ElectricReactivePowerUnit.VoltampereReactive; - - /// - /// Represents the largest possible value of ElectricReactivePower. - /// - public static ElectricReactivePower MaxValue { get; } = new ElectricReactivePower(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricReactivePower. - /// - public static ElectricReactivePower MinValue { get; } = new ElectricReactivePower(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricReactivePower Zero { get; } = new ElectricReactivePower(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GigavoltamperesReactive => As(ElectricReactivePowerUnit.GigavoltampereReactive); - - /// - /// Gets a value of this quantity converted into - /// - public double KilovoltamperesReactive => As(ElectricReactivePowerUnit.KilovoltampereReactive); - - /// - /// Gets a value of this quantity converted into - /// - public double MegavoltamperesReactive => As(ElectricReactivePowerUnit.MegavoltampereReactive); - - /// - /// Gets a value of this quantity converted into - /// - public double VoltamperesReactive => As(ElectricReactivePowerUnit.VoltampereReactive); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricReactivePower FromGigavoltamperesReactive(double gigavoltamperesreactive) => new ElectricReactivePower(gigavoltamperesreactive, ElectricReactivePowerUnit.GigavoltampereReactive); - - /// - /// Creates a from . - /// - public static ElectricReactivePower FromKilovoltamperesReactive(double kilovoltamperesreactive) => new ElectricReactivePower(kilovoltamperesreactive, ElectricReactivePowerUnit.KilovoltampereReactive); - - /// - /// Creates a from . - /// - public static ElectricReactivePower FromMegavoltamperesReactive(double megavoltamperesreactive) => new ElectricReactivePower(megavoltamperesreactive, ElectricReactivePowerUnit.MegavoltampereReactive); - - /// - /// Creates a from . - /// - public static ElectricReactivePower FromVoltamperesReactive(double voltamperesreactive) => new ElectricReactivePower(voltamperesreactive, ElectricReactivePowerUnit.VoltampereReactive); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricReactivePower unit value. - public static ElectricReactivePower From(double value, ElectricReactivePowerUnit fromUnit) - { - return new ElectricReactivePower(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricReactivePowerUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricReactivePower to another ElectricReactivePower with the unit representation . - /// - /// A ElectricReactivePower with the specified unit. - public ElectricReactivePower ToUnit(ElectricReactivePowerUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricReactivePower(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricReactivePowerUnit.GigavoltampereReactive => (_value) * 1e9d, - ElectricReactivePowerUnit.KilovoltampereReactive => (_value) * 1e3d, - ElectricReactivePowerUnit.MegavoltampereReactive => (_value) * 1e6d, - ElectricReactivePowerUnit.VoltampereReactive => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricReactivePowerUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricReactivePowerUnit.GigavoltampereReactive => (baseUnitValue) / 1e9d, - ElectricReactivePowerUnit.KilovoltampereReactive => (baseUnitValue) / 1e3d, - ElectricReactivePowerUnit.MegavoltampereReactive => (baseUnitValue) / 1e6d, - ElectricReactivePowerUnit.VoltampereReactive => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricResistance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricResistance.g.cs deleted file mode 100644 index 42e2b3bf6d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricResistance.g.cs +++ /dev/null @@ -1,244 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The electrical resistance of an object is a measure of its opposition to the flow of electric current. Along with reactance, it is one of two elements of impedance. Its reciprocal quantity is electrical conductance. - /// - /// - /// https://en.wikipedia.org/wiki/Electrical_resistance_and_conductance - /// - public struct ElectricResistance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricResistanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricResistanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricResistance(double value, ElectricResistanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricResistance, which is Second. All conversions go via this value. - /// - public static ElectricResistanceUnit BaseUnit { get; } = ElectricResistanceUnit.Ohm; - - /// - /// Represents the largest possible value of ElectricResistance. - /// - public static ElectricResistance MaxValue { get; } = new ElectricResistance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricResistance. - /// - public static ElectricResistance MinValue { get; } = new ElectricResistance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricResistance Zero { get; } = new ElectricResistance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Gigaohms => As(ElectricResistanceUnit.Gigaohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Kiloohms => As(ElectricResistanceUnit.Kiloohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Megaohms => As(ElectricResistanceUnit.Megaohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Microohms => As(ElectricResistanceUnit.Microohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliohms => As(ElectricResistanceUnit.Milliohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanoohms => As(ElectricResistanceUnit.Nanoohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Ohms => As(ElectricResistanceUnit.Ohm); - - /// - /// Gets a value of this quantity converted into - /// - public double Teraohms => As(ElectricResistanceUnit.Teraohm); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricResistance FromGigaohms(double gigaohms) => new ElectricResistance(gigaohms, ElectricResistanceUnit.Gigaohm); - - /// - /// Creates a from . - /// - public static ElectricResistance FromKiloohms(double kiloohms) => new ElectricResistance(kiloohms, ElectricResistanceUnit.Kiloohm); - - /// - /// Creates a from . - /// - public static ElectricResistance FromMegaohms(double megaohms) => new ElectricResistance(megaohms, ElectricResistanceUnit.Megaohm); - - /// - /// Creates a from . - /// - public static ElectricResistance FromMicroohms(double microohms) => new ElectricResistance(microohms, ElectricResistanceUnit.Microohm); - - /// - /// Creates a from . - /// - public static ElectricResistance FromMilliohms(double milliohms) => new ElectricResistance(milliohms, ElectricResistanceUnit.Milliohm); - - /// - /// Creates a from . - /// - public static ElectricResistance FromNanoohms(double nanoohms) => new ElectricResistance(nanoohms, ElectricResistanceUnit.Nanoohm); - - /// - /// Creates a from . - /// - public static ElectricResistance FromOhms(double ohms) => new ElectricResistance(ohms, ElectricResistanceUnit.Ohm); - - /// - /// Creates a from . - /// - public static ElectricResistance FromTeraohms(double teraohms) => new ElectricResistance(teraohms, ElectricResistanceUnit.Teraohm); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricResistance unit value. - public static ElectricResistance From(double value, ElectricResistanceUnit fromUnit) - { - return new ElectricResistance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricResistanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricResistance to another ElectricResistance with the unit representation . - /// - /// A ElectricResistance with the specified unit. - public ElectricResistance ToUnit(ElectricResistanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricResistance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricResistanceUnit.Gigaohm => (_value) * 1e9d, - ElectricResistanceUnit.Kiloohm => (_value) * 1e3d, - ElectricResistanceUnit.Megaohm => (_value) * 1e6d, - ElectricResistanceUnit.Microohm => (_value) * 1e-6d, - ElectricResistanceUnit.Milliohm => (_value) * 1e-3d, - ElectricResistanceUnit.Nanoohm => (_value) * 1e-9d, - ElectricResistanceUnit.Ohm => _value, - ElectricResistanceUnit.Teraohm => (_value) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricResistanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricResistanceUnit.Gigaohm => (baseUnitValue) / 1e9d, - ElectricResistanceUnit.Kiloohm => (baseUnitValue) / 1e3d, - ElectricResistanceUnit.Megaohm => (baseUnitValue) / 1e6d, - ElectricResistanceUnit.Microohm => (baseUnitValue) / 1e-6d, - ElectricResistanceUnit.Milliohm => (baseUnitValue) / 1e-3d, - ElectricResistanceUnit.Nanoohm => (baseUnitValue) / 1e-9d, - ElectricResistanceUnit.Ohm => baseUnitValue, - ElectricResistanceUnit.Teraohm => (baseUnitValue) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricResistivity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricResistivity.g.cs deleted file mode 100644 index f8c5f1b7c5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricResistivity.g.cs +++ /dev/null @@ -1,316 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Electrical resistivity (also known as resistivity, specific electrical resistance, or volume resistivity) is a fundamental property that quantifies how strongly a given material opposes the flow of electric current. - /// - /// - /// https://en.wikipedia.org/wiki/Electrical_resistivity_and_conductivity - /// - public struct ElectricResistivity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricResistivityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricResistivityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricResistivity(double value, ElectricResistivityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricResistivity, which is Second. All conversions go via this value. - /// - public static ElectricResistivityUnit BaseUnit { get; } = ElectricResistivityUnit.OhmMeter; - - /// - /// Represents the largest possible value of ElectricResistivity. - /// - public static ElectricResistivity MaxValue { get; } = new ElectricResistivity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricResistivity. - /// - public static ElectricResistivity MinValue { get; } = new ElectricResistivity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricResistivity Zero { get; } = new ElectricResistivity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double KiloohmsCentimeter => As(ElectricResistivityUnit.KiloohmCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KiloohmMeters => As(ElectricResistivityUnit.KiloohmMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegaohmsCentimeter => As(ElectricResistivityUnit.MegaohmCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegaohmMeters => As(ElectricResistivityUnit.MegaohmMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicroohmsCentimeter => As(ElectricResistivityUnit.MicroohmCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicroohmMeters => As(ElectricResistivityUnit.MicroohmMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliohmsCentimeter => As(ElectricResistivityUnit.MilliohmCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliohmMeters => As(ElectricResistivityUnit.MilliohmMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanoohmsCentimeter => As(ElectricResistivityUnit.NanoohmCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanoohmMeters => As(ElectricResistivityUnit.NanoohmMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double OhmsCentimeter => As(ElectricResistivityUnit.OhmCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double OhmMeters => As(ElectricResistivityUnit.OhmMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicoohmsCentimeter => As(ElectricResistivityUnit.PicoohmCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicoohmMeters => As(ElectricResistivityUnit.PicoohmMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricResistivity FromKiloohmsCentimeter(double kiloohmscentimeter) => new ElectricResistivity(kiloohmscentimeter, ElectricResistivityUnit.KiloohmCentimeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromKiloohmMeters(double kiloohmmeters) => new ElectricResistivity(kiloohmmeters, ElectricResistivityUnit.KiloohmMeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromMegaohmsCentimeter(double megaohmscentimeter) => new ElectricResistivity(megaohmscentimeter, ElectricResistivityUnit.MegaohmCentimeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromMegaohmMeters(double megaohmmeters) => new ElectricResistivity(megaohmmeters, ElectricResistivityUnit.MegaohmMeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromMicroohmsCentimeter(double microohmscentimeter) => new ElectricResistivity(microohmscentimeter, ElectricResistivityUnit.MicroohmCentimeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromMicroohmMeters(double microohmmeters) => new ElectricResistivity(microohmmeters, ElectricResistivityUnit.MicroohmMeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromMilliohmsCentimeter(double milliohmscentimeter) => new ElectricResistivity(milliohmscentimeter, ElectricResistivityUnit.MilliohmCentimeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromMilliohmMeters(double milliohmmeters) => new ElectricResistivity(milliohmmeters, ElectricResistivityUnit.MilliohmMeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromNanoohmsCentimeter(double nanoohmscentimeter) => new ElectricResistivity(nanoohmscentimeter, ElectricResistivityUnit.NanoohmCentimeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromNanoohmMeters(double nanoohmmeters) => new ElectricResistivity(nanoohmmeters, ElectricResistivityUnit.NanoohmMeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromOhmsCentimeter(double ohmscentimeter) => new ElectricResistivity(ohmscentimeter, ElectricResistivityUnit.OhmCentimeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromOhmMeters(double ohmmeters) => new ElectricResistivity(ohmmeters, ElectricResistivityUnit.OhmMeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromPicoohmsCentimeter(double picoohmscentimeter) => new ElectricResistivity(picoohmscentimeter, ElectricResistivityUnit.PicoohmCentimeter); - - /// - /// Creates a from . - /// - public static ElectricResistivity FromPicoohmMeters(double picoohmmeters) => new ElectricResistivity(picoohmmeters, ElectricResistivityUnit.PicoohmMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricResistivity unit value. - public static ElectricResistivity From(double value, ElectricResistivityUnit fromUnit) - { - return new ElectricResistivity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricResistivityUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricResistivity to another ElectricResistivity with the unit representation . - /// - /// A ElectricResistivity with the specified unit. - public ElectricResistivity ToUnit(ElectricResistivityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricResistivity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricResistivityUnit.KiloohmCentimeter => (_value / 100) * 1e3d, - ElectricResistivityUnit.KiloohmMeter => (_value) * 1e3d, - ElectricResistivityUnit.MegaohmCentimeter => (_value / 100) * 1e6d, - ElectricResistivityUnit.MegaohmMeter => (_value) * 1e6d, - ElectricResistivityUnit.MicroohmCentimeter => (_value / 100) * 1e-6d, - ElectricResistivityUnit.MicroohmMeter => (_value) * 1e-6d, - ElectricResistivityUnit.MilliohmCentimeter => (_value / 100) * 1e-3d, - ElectricResistivityUnit.MilliohmMeter => (_value) * 1e-3d, - ElectricResistivityUnit.NanoohmCentimeter => (_value / 100) * 1e-9d, - ElectricResistivityUnit.NanoohmMeter => (_value) * 1e-9d, - ElectricResistivityUnit.OhmCentimeter => _value / 100, - ElectricResistivityUnit.OhmMeter => _value, - ElectricResistivityUnit.PicoohmCentimeter => (_value / 100) * 1e-12d, - ElectricResistivityUnit.PicoohmMeter => (_value) * 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricResistivityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricResistivityUnit.KiloohmCentimeter => (baseUnitValue * 100) / 1e3d, - ElectricResistivityUnit.KiloohmMeter => (baseUnitValue) / 1e3d, - ElectricResistivityUnit.MegaohmCentimeter => (baseUnitValue * 100) / 1e6d, - ElectricResistivityUnit.MegaohmMeter => (baseUnitValue) / 1e6d, - ElectricResistivityUnit.MicroohmCentimeter => (baseUnitValue * 100) / 1e-6d, - ElectricResistivityUnit.MicroohmMeter => (baseUnitValue) / 1e-6d, - ElectricResistivityUnit.MilliohmCentimeter => (baseUnitValue * 100) / 1e-3d, - ElectricResistivityUnit.MilliohmMeter => (baseUnitValue) / 1e-3d, - ElectricResistivityUnit.NanoohmCentimeter => (baseUnitValue * 100) / 1e-9d, - ElectricResistivityUnit.NanoohmMeter => (baseUnitValue) / 1e-9d, - ElectricResistivityUnit.OhmCentimeter => baseUnitValue * 100, - ElectricResistivityUnit.OhmMeter => baseUnitValue, - ElectricResistivityUnit.PicoohmCentimeter => (baseUnitValue * 100) / 1e-12d, - ElectricResistivityUnit.PicoohmMeter => (baseUnitValue) / 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs deleted file mode 100644 index 4ef70185c5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs +++ /dev/null @@ -1,184 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In electromagnetism, surface charge density is a measure of the amount of electric charge per surface area. - /// - /// - /// https://en.wikipedia.org/wiki/Charge_density - /// - public struct ElectricSurfaceChargeDensity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricSurfaceChargeDensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricSurfaceChargeDensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricSurfaceChargeDensity(double value, ElectricSurfaceChargeDensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricSurfaceChargeDensity, which is Second. All conversions go via this value. - /// - public static ElectricSurfaceChargeDensityUnit BaseUnit { get; } = ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter; - - /// - /// Represents the largest possible value of ElectricSurfaceChargeDensity. - /// - public static ElectricSurfaceChargeDensity MaxValue { get; } = new ElectricSurfaceChargeDensity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricSurfaceChargeDensity. - /// - public static ElectricSurfaceChargeDensity MinValue { get; } = new ElectricSurfaceChargeDensity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricSurfaceChargeDensity Zero { get; } = new ElectricSurfaceChargeDensity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CoulombsPerSquareCentimeter => As(ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CoulombsPerSquareInch => As(ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double CoulombsPerSquareMeter => As(ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricSurfaceChargeDensity FromCoulombsPerSquareCentimeter(double coulombspersquarecentimeter) => new ElectricSurfaceChargeDensity(coulombspersquarecentimeter, ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static ElectricSurfaceChargeDensity FromCoulombsPerSquareInch(double coulombspersquareinch) => new ElectricSurfaceChargeDensity(coulombspersquareinch, ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch); - - /// - /// Creates a from . - /// - public static ElectricSurfaceChargeDensity FromCoulombsPerSquareMeter(double coulombspersquaremeter) => new ElectricSurfaceChargeDensity(coulombspersquaremeter, ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricSurfaceChargeDensity unit value. - public static ElectricSurfaceChargeDensity From(double value, ElectricSurfaceChargeDensityUnit fromUnit) - { - return new ElectricSurfaceChargeDensity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricSurfaceChargeDensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricSurfaceChargeDensity to another ElectricSurfaceChargeDensity with the unit representation . - /// - /// A ElectricSurfaceChargeDensity with the specified unit. - public ElectricSurfaceChargeDensity ToUnit(ElectricSurfaceChargeDensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricSurfaceChargeDensity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter => _value * 1.0e4, - ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch => _value / 0.00064516, - ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricSurfaceChargeDensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter => baseUnitValue / 1.0e4, - ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch => baseUnitValue * 0.00064516, - ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSusceptance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSusceptance.g.cs deleted file mode 100644 index 3c157cc5c3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSusceptance.g.cs +++ /dev/null @@ -1,340 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Electrical susceptance is the imaginary part of admittance, where the real part is conductance. - /// - /// - /// https://en.wikipedia.org/wiki/Electrical_susceptance - /// - public struct ElectricSusceptance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ElectricSusceptanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ElectricSusceptanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ElectricSusceptance(double value, ElectricSusceptanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ElectricSusceptance, which is Second. All conversions go via this value. - /// - public static ElectricSusceptanceUnit BaseUnit { get; } = ElectricSusceptanceUnit.Siemens; - - /// - /// Represents the largest possible value of ElectricSusceptance. - /// - public static ElectricSusceptance MaxValue { get; } = new ElectricSusceptance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ElectricSusceptance. - /// - public static ElectricSusceptance MinValue { get; } = new ElectricSusceptance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ElectricSusceptance Zero { get; } = new ElectricSusceptance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Gigamhos => As(ElectricSusceptanceUnit.Gigamho); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigasiemens => As(ElectricSusceptanceUnit.Gigasiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilomhos => As(ElectricSusceptanceUnit.Kilomho); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilosiemens => As(ElectricSusceptanceUnit.Kilosiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Megamhos => As(ElectricSusceptanceUnit.Megamho); - - /// - /// Gets a value of this quantity converted into - /// - public double Megasiemens => As(ElectricSusceptanceUnit.Megasiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Mhos => As(ElectricSusceptanceUnit.Mho); - - /// - /// Gets a value of this quantity converted into - /// - public double Micromhos => As(ElectricSusceptanceUnit.Micromho); - - /// - /// Gets a value of this quantity converted into - /// - public double Microsiemens => As(ElectricSusceptanceUnit.Microsiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Millimhos => As(ElectricSusceptanceUnit.Millimho); - - /// - /// Gets a value of this quantity converted into - /// - public double Millisiemens => As(ElectricSusceptanceUnit.Millisiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanomhos => As(ElectricSusceptanceUnit.Nanomho); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanosiemens => As(ElectricSusceptanceUnit.Nanosiemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Siemens => As(ElectricSusceptanceUnit.Siemens); - - /// - /// Gets a value of this quantity converted into - /// - public double Teramhos => As(ElectricSusceptanceUnit.Teramho); - - /// - /// Gets a value of this quantity converted into - /// - public double Terasiemens => As(ElectricSusceptanceUnit.Terasiemens); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromGigamhos(double gigamhos) => new ElectricSusceptance(gigamhos, ElectricSusceptanceUnit.Gigamho); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromGigasiemens(double gigasiemens) => new ElectricSusceptance(gigasiemens, ElectricSusceptanceUnit.Gigasiemens); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromKilomhos(double kilomhos) => new ElectricSusceptance(kilomhos, ElectricSusceptanceUnit.Kilomho); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromKilosiemens(double kilosiemens) => new ElectricSusceptance(kilosiemens, ElectricSusceptanceUnit.Kilosiemens); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromMegamhos(double megamhos) => new ElectricSusceptance(megamhos, ElectricSusceptanceUnit.Megamho); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromMegasiemens(double megasiemens) => new ElectricSusceptance(megasiemens, ElectricSusceptanceUnit.Megasiemens); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromMhos(double mhos) => new ElectricSusceptance(mhos, ElectricSusceptanceUnit.Mho); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromMicromhos(double micromhos) => new ElectricSusceptance(micromhos, ElectricSusceptanceUnit.Micromho); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromMicrosiemens(double microsiemens) => new ElectricSusceptance(microsiemens, ElectricSusceptanceUnit.Microsiemens); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromMillimhos(double millimhos) => new ElectricSusceptance(millimhos, ElectricSusceptanceUnit.Millimho); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromMillisiemens(double millisiemens) => new ElectricSusceptance(millisiemens, ElectricSusceptanceUnit.Millisiemens); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromNanomhos(double nanomhos) => new ElectricSusceptance(nanomhos, ElectricSusceptanceUnit.Nanomho); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromNanosiemens(double nanosiemens) => new ElectricSusceptance(nanosiemens, ElectricSusceptanceUnit.Nanosiemens); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromSiemens(double siemens) => new ElectricSusceptance(siemens, ElectricSusceptanceUnit.Siemens); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromTeramhos(double teramhos) => new ElectricSusceptance(teramhos, ElectricSusceptanceUnit.Teramho); - - /// - /// Creates a from . - /// - public static ElectricSusceptance FromTerasiemens(double terasiemens) => new ElectricSusceptance(terasiemens, ElectricSusceptanceUnit.Terasiemens); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ElectricSusceptance unit value. - public static ElectricSusceptance From(double value, ElectricSusceptanceUnit fromUnit) - { - return new ElectricSusceptance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ElectricSusceptanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ElectricSusceptance to another ElectricSusceptance with the unit representation . - /// - /// A ElectricSusceptance with the specified unit. - public ElectricSusceptance ToUnit(ElectricSusceptanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ElectricSusceptance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ElectricSusceptanceUnit.Gigamho => (_value) * 1e9d, - ElectricSusceptanceUnit.Gigasiemens => (_value) * 1e9d, - ElectricSusceptanceUnit.Kilomho => (_value) * 1e3d, - ElectricSusceptanceUnit.Kilosiemens => (_value) * 1e3d, - ElectricSusceptanceUnit.Megamho => (_value) * 1e6d, - ElectricSusceptanceUnit.Megasiemens => (_value) * 1e6d, - ElectricSusceptanceUnit.Mho => _value, - ElectricSusceptanceUnit.Micromho => (_value) * 1e-6d, - ElectricSusceptanceUnit.Microsiemens => (_value) * 1e-6d, - ElectricSusceptanceUnit.Millimho => (_value) * 1e-3d, - ElectricSusceptanceUnit.Millisiemens => (_value) * 1e-3d, - ElectricSusceptanceUnit.Nanomho => (_value) * 1e-9d, - ElectricSusceptanceUnit.Nanosiemens => (_value) * 1e-9d, - ElectricSusceptanceUnit.Siemens => _value, - ElectricSusceptanceUnit.Teramho => (_value) * 1e12d, - ElectricSusceptanceUnit.Terasiemens => (_value) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ElectricSusceptanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ElectricSusceptanceUnit.Gigamho => (baseUnitValue) / 1e9d, - ElectricSusceptanceUnit.Gigasiemens => (baseUnitValue) / 1e9d, - ElectricSusceptanceUnit.Kilomho => (baseUnitValue) / 1e3d, - ElectricSusceptanceUnit.Kilosiemens => (baseUnitValue) / 1e3d, - ElectricSusceptanceUnit.Megamho => (baseUnitValue) / 1e6d, - ElectricSusceptanceUnit.Megasiemens => (baseUnitValue) / 1e6d, - ElectricSusceptanceUnit.Mho => baseUnitValue, - ElectricSusceptanceUnit.Micromho => (baseUnitValue) / 1e-6d, - ElectricSusceptanceUnit.Microsiemens => (baseUnitValue) / 1e-6d, - ElectricSusceptanceUnit.Millimho => (baseUnitValue) / 1e-3d, - ElectricSusceptanceUnit.Millisiemens => (baseUnitValue) / 1e-3d, - ElectricSusceptanceUnit.Nanomho => (baseUnitValue) / 1e-9d, - ElectricSusceptanceUnit.Nanosiemens => (baseUnitValue) / 1e-9d, - ElectricSusceptanceUnit.Siemens => baseUnitValue, - ElectricSusceptanceUnit.Teramho => (baseUnitValue) / 1e12d, - ElectricSusceptanceUnit.Terasiemens => (baseUnitValue) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Energy.g.cs deleted file mode 100644 index 3b6e4ce23a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Energy.g.cs +++ /dev/null @@ -1,625 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The joule, symbol J, is a derived unit of energy, work, or amount of heat in the International System of Units. It is equal to the energy transferred (or work done) when applying a force of one newton through a distance of one metre (1 newton metre or N·m), or in passing an electric current of one ampere through a resistance of one ohm for one second. Many other units of energy are included. Please do not confuse this definition of the calorie with the one colloquially used by the food industry, the large calorie, which is equivalent to 1 kcal. Thermochemical definition of the calorie is used. For BTU, the IT definition is used. - /// - public struct Energy - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly EnergyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public EnergyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Energy(double value, EnergyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Energy, which is Second. All conversions go via this value. - /// - public static EnergyUnit BaseUnit { get; } = EnergyUnit.Joule; - - /// - /// Represents the largest possible value of Energy. - /// - public static Energy MaxValue { get; } = new Energy(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Energy. - /// - public static Energy MinValue { get; } = new Energy(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Energy Zero { get; } = new Energy(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BritishThermalUnits => As(EnergyUnit.BritishThermalUnit); - - /// - /// Gets a value of this quantity converted into - /// - public double Calories => As(EnergyUnit.Calorie); - - /// - /// Gets a value of this quantity converted into - /// - public double DecathermsEc => As(EnergyUnit.DecathermEc); - - /// - /// Gets a value of this quantity converted into - /// - public double DecathermsImperial => As(EnergyUnit.DecathermImperial); - - /// - /// Gets a value of this quantity converted into - /// - public double DecathermsUs => As(EnergyUnit.DecathermUs); - - /// - /// Gets a value of this quantity converted into - /// - public double ElectronVolts => As(EnergyUnit.ElectronVolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Ergs => As(EnergyUnit.Erg); - - /// - /// Gets a value of this quantity converted into - /// - public double FootPounds => As(EnergyUnit.FootPound); - - /// - /// Gets a value of this quantity converted into - /// - public double GigabritishThermalUnits => As(EnergyUnit.GigabritishThermalUnit); - - /// - /// Gets a value of this quantity converted into - /// - public double GigaelectronVolts => As(EnergyUnit.GigaelectronVolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigajoules => As(EnergyUnit.Gigajoule); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattDays => As(EnergyUnit.GigawattDay); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattHours => As(EnergyUnit.GigawattHour); - - /// - /// Gets a value of this quantity converted into - /// - public double HorsepowerHours => As(EnergyUnit.HorsepowerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Joules => As(EnergyUnit.Joule); - - /// - /// Gets a value of this quantity converted into - /// - public double KilobritishThermalUnits => As(EnergyUnit.KilobritishThermalUnit); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilocalories => As(EnergyUnit.Kilocalorie); - - /// - /// Gets a value of this quantity converted into - /// - public double KiloelectronVolts => As(EnergyUnit.KiloelectronVolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilojoules => As(EnergyUnit.Kilojoule); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattDays => As(EnergyUnit.KilowattDay); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattHours => As(EnergyUnit.KilowattHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MegabritishThermalUnits => As(EnergyUnit.MegabritishThermalUnit); - - /// - /// Gets a value of this quantity converted into - /// - public double Megacalories => As(EnergyUnit.Megacalorie); - - /// - /// Gets a value of this quantity converted into - /// - public double MegaelectronVolts => As(EnergyUnit.MegaelectronVolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Megajoules => As(EnergyUnit.Megajoule); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattDays => As(EnergyUnit.MegawattDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattHours => As(EnergyUnit.MegawattHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Microjoules => As(EnergyUnit.Microjoule); - - /// - /// Gets a value of this quantity converted into - /// - public double Millijoules => As(EnergyUnit.Millijoule); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanojoules => As(EnergyUnit.Nanojoule); - - /// - /// Gets a value of this quantity converted into - /// - public double Petajoules => As(EnergyUnit.Petajoule); - - /// - /// Gets a value of this quantity converted into - /// - public double TeraelectronVolts => As(EnergyUnit.TeraelectronVolt); - - /// - /// Gets a value of this quantity converted into - /// - public double Terajoules => As(EnergyUnit.Terajoule); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattDays => As(EnergyUnit.TerawattDay); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattHours => As(EnergyUnit.TerawattHour); - - /// - /// Gets a value of this quantity converted into - /// - public double ThermsEc => As(EnergyUnit.ThermEc); - - /// - /// Gets a value of this quantity converted into - /// - public double ThermsImperial => As(EnergyUnit.ThermImperial); - - /// - /// Gets a value of this quantity converted into - /// - public double ThermsUs => As(EnergyUnit.ThermUs); - - /// - /// Gets a value of this quantity converted into - /// - public double WattDays => As(EnergyUnit.WattDay); - - /// - /// Gets a value of this quantity converted into - /// - public double WattHours => As(EnergyUnit.WattHour); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Energy FromBritishThermalUnits(double britishthermalunits) => new Energy(britishthermalunits, EnergyUnit.BritishThermalUnit); - - /// - /// Creates a from . - /// - public static Energy FromCalories(double calories) => new Energy(calories, EnergyUnit.Calorie); - - /// - /// Creates a from . - /// - public static Energy FromDecathermsEc(double decathermsec) => new Energy(decathermsec, EnergyUnit.DecathermEc); - - /// - /// Creates a from . - /// - public static Energy FromDecathermsImperial(double decathermsimperial) => new Energy(decathermsimperial, EnergyUnit.DecathermImperial); - - /// - /// Creates a from . - /// - public static Energy FromDecathermsUs(double decathermsus) => new Energy(decathermsus, EnergyUnit.DecathermUs); - - /// - /// Creates a from . - /// - public static Energy FromElectronVolts(double electronvolts) => new Energy(electronvolts, EnergyUnit.ElectronVolt); - - /// - /// Creates a from . - /// - public static Energy FromErgs(double ergs) => new Energy(ergs, EnergyUnit.Erg); - - /// - /// Creates a from . - /// - public static Energy FromFootPounds(double footpounds) => new Energy(footpounds, EnergyUnit.FootPound); - - /// - /// Creates a from . - /// - public static Energy FromGigabritishThermalUnits(double gigabritishthermalunits) => new Energy(gigabritishthermalunits, EnergyUnit.GigabritishThermalUnit); - - /// - /// Creates a from . - /// - public static Energy FromGigaelectronVolts(double gigaelectronvolts) => new Energy(gigaelectronvolts, EnergyUnit.GigaelectronVolt); - - /// - /// Creates a from . - /// - public static Energy FromGigajoules(double gigajoules) => new Energy(gigajoules, EnergyUnit.Gigajoule); - - /// - /// Creates a from . - /// - public static Energy FromGigawattDays(double gigawattdays) => new Energy(gigawattdays, EnergyUnit.GigawattDay); - - /// - /// Creates a from . - /// - public static Energy FromGigawattHours(double gigawatthours) => new Energy(gigawatthours, EnergyUnit.GigawattHour); - - /// - /// Creates a from . - /// - public static Energy FromHorsepowerHours(double horsepowerhours) => new Energy(horsepowerhours, EnergyUnit.HorsepowerHour); - - /// - /// Creates a from . - /// - public static Energy FromJoules(double joules) => new Energy(joules, EnergyUnit.Joule); - - /// - /// Creates a from . - /// - public static Energy FromKilobritishThermalUnits(double kilobritishthermalunits) => new Energy(kilobritishthermalunits, EnergyUnit.KilobritishThermalUnit); - - /// - /// Creates a from . - /// - public static Energy FromKilocalories(double kilocalories) => new Energy(kilocalories, EnergyUnit.Kilocalorie); - - /// - /// Creates a from . - /// - public static Energy FromKiloelectronVolts(double kiloelectronvolts) => new Energy(kiloelectronvolts, EnergyUnit.KiloelectronVolt); - - /// - /// Creates a from . - /// - public static Energy FromKilojoules(double kilojoules) => new Energy(kilojoules, EnergyUnit.Kilojoule); - - /// - /// Creates a from . - /// - public static Energy FromKilowattDays(double kilowattdays) => new Energy(kilowattdays, EnergyUnit.KilowattDay); - - /// - /// Creates a from . - /// - public static Energy FromKilowattHours(double kilowatthours) => new Energy(kilowatthours, EnergyUnit.KilowattHour); - - /// - /// Creates a from . - /// - public static Energy FromMegabritishThermalUnits(double megabritishthermalunits) => new Energy(megabritishthermalunits, EnergyUnit.MegabritishThermalUnit); - - /// - /// Creates a from . - /// - public static Energy FromMegacalories(double megacalories) => new Energy(megacalories, EnergyUnit.Megacalorie); - - /// - /// Creates a from . - /// - public static Energy FromMegaelectronVolts(double megaelectronvolts) => new Energy(megaelectronvolts, EnergyUnit.MegaelectronVolt); - - /// - /// Creates a from . - /// - public static Energy FromMegajoules(double megajoules) => new Energy(megajoules, EnergyUnit.Megajoule); - - /// - /// Creates a from . - /// - public static Energy FromMegawattDays(double megawattdays) => new Energy(megawattdays, EnergyUnit.MegawattDay); - - /// - /// Creates a from . - /// - public static Energy FromMegawattHours(double megawatthours) => new Energy(megawatthours, EnergyUnit.MegawattHour); - - /// - /// Creates a from . - /// - public static Energy FromMicrojoules(double microjoules) => new Energy(microjoules, EnergyUnit.Microjoule); - - /// - /// Creates a from . - /// - public static Energy FromMillijoules(double millijoules) => new Energy(millijoules, EnergyUnit.Millijoule); - - /// - /// Creates a from . - /// - public static Energy FromNanojoules(double nanojoules) => new Energy(nanojoules, EnergyUnit.Nanojoule); - - /// - /// Creates a from . - /// - public static Energy FromPetajoules(double petajoules) => new Energy(petajoules, EnergyUnit.Petajoule); - - /// - /// Creates a from . - /// - public static Energy FromTeraelectronVolts(double teraelectronvolts) => new Energy(teraelectronvolts, EnergyUnit.TeraelectronVolt); - - /// - /// Creates a from . - /// - public static Energy FromTerajoules(double terajoules) => new Energy(terajoules, EnergyUnit.Terajoule); - - /// - /// Creates a from . - /// - public static Energy FromTerawattDays(double terawattdays) => new Energy(terawattdays, EnergyUnit.TerawattDay); - - /// - /// Creates a from . - /// - public static Energy FromTerawattHours(double terawatthours) => new Energy(terawatthours, EnergyUnit.TerawattHour); - - /// - /// Creates a from . - /// - public static Energy FromThermsEc(double thermsec) => new Energy(thermsec, EnergyUnit.ThermEc); - - /// - /// Creates a from . - /// - public static Energy FromThermsImperial(double thermsimperial) => new Energy(thermsimperial, EnergyUnit.ThermImperial); - - /// - /// Creates a from . - /// - public static Energy FromThermsUs(double thermsus) => new Energy(thermsus, EnergyUnit.ThermUs); - - /// - /// Creates a from . - /// - public static Energy FromWattDays(double wattdays) => new Energy(wattdays, EnergyUnit.WattDay); - - /// - /// Creates a from . - /// - public static Energy FromWattHours(double watthours) => new Energy(watthours, EnergyUnit.WattHour); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Energy unit value. - public static Energy From(double value, EnergyUnit fromUnit) - { - return new Energy(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(EnergyUnit unit) => GetValueAs(unit); - - /// - /// Converts this Energy to another Energy with the unit representation . - /// - /// A Energy with the specified unit. - public Energy ToUnit(EnergyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Energy(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - EnergyUnit.BritishThermalUnit => _value * 1055.05585262, - EnergyUnit.Calorie => _value * 4.184, - EnergyUnit.DecathermEc => (_value * 1.05505585262e8) * 1e1d, - EnergyUnit.DecathermImperial => (_value * 1.05505585257348e8) * 1e1d, - EnergyUnit.DecathermUs => (_value * 1.054804e8) * 1e1d, - EnergyUnit.ElectronVolt => _value * 1.602176634e-19, - EnergyUnit.Erg => _value * 1e-7, - EnergyUnit.FootPound => _value * 1.3558179483314004, - EnergyUnit.GigabritishThermalUnit => (_value * 1055.05585262) * 1e9d, - EnergyUnit.GigaelectronVolt => (_value * 1.602176634e-19) * 1e9d, - EnergyUnit.Gigajoule => (_value) * 1e9d, - EnergyUnit.GigawattDay => (_value * 24 * 3600d) * 1e9d, - EnergyUnit.GigawattHour => (_value * 3600d) * 1e9d, - EnergyUnit.HorsepowerHour => _value * 76.0402249 * 9.80665 * 3600, - EnergyUnit.Joule => _value, - EnergyUnit.KilobritishThermalUnit => (_value * 1055.05585262) * 1e3d, - EnergyUnit.Kilocalorie => (_value * 4.184) * 1e3d, - EnergyUnit.KiloelectronVolt => (_value * 1.602176634e-19) * 1e3d, - EnergyUnit.Kilojoule => (_value) * 1e3d, - EnergyUnit.KilowattDay => (_value * 24 * 3600d) * 1e3d, - EnergyUnit.KilowattHour => (_value * 3600d) * 1e3d, - EnergyUnit.MegabritishThermalUnit => (_value * 1055.05585262) * 1e6d, - EnergyUnit.Megacalorie => (_value * 4.184) * 1e6d, - EnergyUnit.MegaelectronVolt => (_value * 1.602176634e-19) * 1e6d, - EnergyUnit.Megajoule => (_value) * 1e6d, - EnergyUnit.MegawattDay => (_value * 24 * 3600d) * 1e6d, - EnergyUnit.MegawattHour => (_value * 3600d) * 1e6d, - EnergyUnit.Microjoule => (_value) * 1e-6d, - EnergyUnit.Millijoule => (_value) * 1e-3d, - EnergyUnit.Nanojoule => (_value) * 1e-9d, - EnergyUnit.Petajoule => (_value) * 1e15d, - EnergyUnit.TeraelectronVolt => (_value * 1.602176634e-19) * 1e12d, - EnergyUnit.Terajoule => (_value) * 1e12d, - EnergyUnit.TerawattDay => (_value * 24 * 3600d) * 1e12d, - EnergyUnit.TerawattHour => (_value * 3600d) * 1e12d, - EnergyUnit.ThermEc => _value * 1.05505585262e8, - EnergyUnit.ThermImperial => _value * 1.05505585257348e8, - EnergyUnit.ThermUs => _value * 1.054804e8, - EnergyUnit.WattDay => _value * 24 * 3600d, - EnergyUnit.WattHour => _value * 3600d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(EnergyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - EnergyUnit.BritishThermalUnit => baseUnitValue / 1055.05585262, - EnergyUnit.Calorie => baseUnitValue / 4.184, - EnergyUnit.DecathermEc => (baseUnitValue / 1.05505585262e8) / 1e1d, - EnergyUnit.DecathermImperial => (baseUnitValue / 1.05505585257348e8) / 1e1d, - EnergyUnit.DecathermUs => (baseUnitValue / 1.054804e8) / 1e1d, - EnergyUnit.ElectronVolt => baseUnitValue / 1.602176634e-19, - EnergyUnit.Erg => baseUnitValue / 1e-7, - EnergyUnit.FootPound => baseUnitValue / 1.3558179483314004, - EnergyUnit.GigabritishThermalUnit => (baseUnitValue / 1055.05585262) / 1e9d, - EnergyUnit.GigaelectronVolt => (baseUnitValue / 1.602176634e-19) / 1e9d, - EnergyUnit.Gigajoule => (baseUnitValue) / 1e9d, - EnergyUnit.GigawattDay => (baseUnitValue / (24 * 3600d)) / 1e9d, - EnergyUnit.GigawattHour => (baseUnitValue / 3600d) / 1e9d, - EnergyUnit.HorsepowerHour => baseUnitValue / (76.0402249 * 9.80665 * 3600), - EnergyUnit.Joule => baseUnitValue, - EnergyUnit.KilobritishThermalUnit => (baseUnitValue / 1055.05585262) / 1e3d, - EnergyUnit.Kilocalorie => (baseUnitValue / 4.184) / 1e3d, - EnergyUnit.KiloelectronVolt => (baseUnitValue / 1.602176634e-19) / 1e3d, - EnergyUnit.Kilojoule => (baseUnitValue) / 1e3d, - EnergyUnit.KilowattDay => (baseUnitValue / (24 * 3600d)) / 1e3d, - EnergyUnit.KilowattHour => (baseUnitValue / 3600d) / 1e3d, - EnergyUnit.MegabritishThermalUnit => (baseUnitValue / 1055.05585262) / 1e6d, - EnergyUnit.Megacalorie => (baseUnitValue / 4.184) / 1e6d, - EnergyUnit.MegaelectronVolt => (baseUnitValue / 1.602176634e-19) / 1e6d, - EnergyUnit.Megajoule => (baseUnitValue) / 1e6d, - EnergyUnit.MegawattDay => (baseUnitValue / (24 * 3600d)) / 1e6d, - EnergyUnit.MegawattHour => (baseUnitValue / 3600d) / 1e6d, - EnergyUnit.Microjoule => (baseUnitValue) / 1e-6d, - EnergyUnit.Millijoule => (baseUnitValue) / 1e-3d, - EnergyUnit.Nanojoule => (baseUnitValue) / 1e-9d, - EnergyUnit.Petajoule => (baseUnitValue) / 1e15d, - EnergyUnit.TeraelectronVolt => (baseUnitValue / 1.602176634e-19) / 1e12d, - EnergyUnit.Terajoule => (baseUnitValue) / 1e12d, - EnergyUnit.TerawattDay => (baseUnitValue / (24 * 3600d)) / 1e12d, - EnergyUnit.TerawattHour => (baseUnitValue / 3600d) / 1e12d, - EnergyUnit.ThermEc => baseUnitValue / 1.05505585262e8, - EnergyUnit.ThermImperial => baseUnitValue / 1.05505585257348e8, - EnergyUnit.ThermUs => baseUnitValue / 1.054804e8, - EnergyUnit.WattDay => baseUnitValue / (24 * 3600d), - EnergyUnit.WattHour => baseUnitValue / 3600d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/EnergyDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/EnergyDensity.g.cs deleted file mode 100644 index c9d7341693..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/EnergyDensity.g.cs +++ /dev/null @@ -1,289 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// - /// - public struct EnergyDensity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly EnergyDensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public EnergyDensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public EnergyDensity(double value, EnergyDensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of EnergyDensity, which is Second. All conversions go via this value. - /// - public static EnergyDensityUnit BaseUnit { get; } = EnergyDensityUnit.JoulePerCubicMeter; - - /// - /// Represents the largest possible value of EnergyDensity. - /// - public static EnergyDensity MaxValue { get; } = new EnergyDensity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of EnergyDensity. - /// - public static EnergyDensity MinValue { get; } = new EnergyDensity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static EnergyDensity Zero { get; } = new EnergyDensity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GigajoulesPerCubicMeter => As(EnergyDensityUnit.GigajoulePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattHoursPerCubicMeter => As(EnergyDensityUnit.GigawattHourPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerCubicMeter => As(EnergyDensityUnit.JoulePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerCubicMeter => As(EnergyDensityUnit.KilojoulePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattHoursPerCubicMeter => As(EnergyDensityUnit.KilowattHourPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerCubicMeter => As(EnergyDensityUnit.MegajoulePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattHoursPerCubicMeter => As(EnergyDensityUnit.MegawattHourPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PetajoulesPerCubicMeter => As(EnergyDensityUnit.PetajoulePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PetawattHoursPerCubicMeter => As(EnergyDensityUnit.PetawattHourPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TerajoulesPerCubicMeter => As(EnergyDensityUnit.TerajoulePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattHoursPerCubicMeter => As(EnergyDensityUnit.TerawattHourPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double WattHoursPerCubicMeter => As(EnergyDensityUnit.WattHourPerCubicMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static EnergyDensity FromGigajoulesPerCubicMeter(double gigajoulespercubicmeter) => new EnergyDensity(gigajoulespercubicmeter, EnergyDensityUnit.GigajoulePerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromGigawattHoursPerCubicMeter(double gigawatthourspercubicmeter) => new EnergyDensity(gigawatthourspercubicmeter, EnergyDensityUnit.GigawattHourPerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromJoulesPerCubicMeter(double joulespercubicmeter) => new EnergyDensity(joulespercubicmeter, EnergyDensityUnit.JoulePerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromKilojoulesPerCubicMeter(double kilojoulespercubicmeter) => new EnergyDensity(kilojoulespercubicmeter, EnergyDensityUnit.KilojoulePerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromKilowattHoursPerCubicMeter(double kilowatthourspercubicmeter) => new EnergyDensity(kilowatthourspercubicmeter, EnergyDensityUnit.KilowattHourPerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromMegajoulesPerCubicMeter(double megajoulespercubicmeter) => new EnergyDensity(megajoulespercubicmeter, EnergyDensityUnit.MegajoulePerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromMegawattHoursPerCubicMeter(double megawatthourspercubicmeter) => new EnergyDensity(megawatthourspercubicmeter, EnergyDensityUnit.MegawattHourPerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromPetajoulesPerCubicMeter(double petajoulespercubicmeter) => new EnergyDensity(petajoulespercubicmeter, EnergyDensityUnit.PetajoulePerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromPetawattHoursPerCubicMeter(double petawatthourspercubicmeter) => new EnergyDensity(petawatthourspercubicmeter, EnergyDensityUnit.PetawattHourPerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromTerajoulesPerCubicMeter(double terajoulespercubicmeter) => new EnergyDensity(terajoulespercubicmeter, EnergyDensityUnit.TerajoulePerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromTerawattHoursPerCubicMeter(double terawatthourspercubicmeter) => new EnergyDensity(terawatthourspercubicmeter, EnergyDensityUnit.TerawattHourPerCubicMeter); - - /// - /// Creates a from . - /// - public static EnergyDensity FromWattHoursPerCubicMeter(double watthourspercubicmeter) => new EnergyDensity(watthourspercubicmeter, EnergyDensityUnit.WattHourPerCubicMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// EnergyDensity unit value. - public static EnergyDensity From(double value, EnergyDensityUnit fromUnit) - { - return new EnergyDensity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(EnergyDensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this EnergyDensity to another EnergyDensity with the unit representation . - /// - /// A EnergyDensity with the specified unit. - public EnergyDensity ToUnit(EnergyDensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new EnergyDensity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - EnergyDensityUnit.GigajoulePerCubicMeter => (_value) * 1e9d, - EnergyDensityUnit.GigawattHourPerCubicMeter => (_value * 3.6e+3) * 1e9d, - EnergyDensityUnit.JoulePerCubicMeter => _value, - EnergyDensityUnit.KilojoulePerCubicMeter => (_value) * 1e3d, - EnergyDensityUnit.KilowattHourPerCubicMeter => (_value * 3.6e+3) * 1e3d, - EnergyDensityUnit.MegajoulePerCubicMeter => (_value) * 1e6d, - EnergyDensityUnit.MegawattHourPerCubicMeter => (_value * 3.6e+3) * 1e6d, - EnergyDensityUnit.PetajoulePerCubicMeter => (_value) * 1e15d, - EnergyDensityUnit.PetawattHourPerCubicMeter => (_value * 3.6e+3) * 1e15d, - EnergyDensityUnit.TerajoulePerCubicMeter => (_value) * 1e12d, - EnergyDensityUnit.TerawattHourPerCubicMeter => (_value * 3.6e+3) * 1e12d, - EnergyDensityUnit.WattHourPerCubicMeter => _value * 3.6e+3, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(EnergyDensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - EnergyDensityUnit.GigajoulePerCubicMeter => (baseUnitValue) / 1e9d, - EnergyDensityUnit.GigawattHourPerCubicMeter => (baseUnitValue / 3.6e+3) / 1e9d, - EnergyDensityUnit.JoulePerCubicMeter => baseUnitValue, - EnergyDensityUnit.KilojoulePerCubicMeter => (baseUnitValue) / 1e3d, - EnergyDensityUnit.KilowattHourPerCubicMeter => (baseUnitValue / 3.6e+3) / 1e3d, - EnergyDensityUnit.MegajoulePerCubicMeter => (baseUnitValue) / 1e6d, - EnergyDensityUnit.MegawattHourPerCubicMeter => (baseUnitValue / 3.6e+3) / 1e6d, - EnergyDensityUnit.PetajoulePerCubicMeter => (baseUnitValue) / 1e15d, - EnergyDensityUnit.PetawattHourPerCubicMeter => (baseUnitValue / 3.6e+3) / 1e15d, - EnergyDensityUnit.TerajoulePerCubicMeter => (baseUnitValue) / 1e12d, - EnergyDensityUnit.TerawattHourPerCubicMeter => (baseUnitValue / 3.6e+3) / 1e12d, - EnergyDensityUnit.WattHourPerCubicMeter => baseUnitValue / 3.6e+3, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Entropy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Entropy.g.cs deleted file mode 100644 index 69d68558db..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Entropy.g.cs +++ /dev/null @@ -1,229 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Entropy is an important concept in the branch of science known as thermodynamics. The idea of "irreversibility" is central to the understanding of entropy. It is often said that entropy is an expression of the disorder, or randomness of a system, or of our lack of information about it. Entropy is an extensive property. It has the dimension of energy divided by temperature, which has a unit of joules per kelvin (J/K) in the International System of Units - /// - public struct Entropy - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly EntropyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public EntropyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Entropy(double value, EntropyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Entropy, which is Second. All conversions go via this value. - /// - public static EntropyUnit BaseUnit { get; } = EntropyUnit.JoulePerKelvin; - - /// - /// Represents the largest possible value of Entropy. - /// - public static Entropy MaxValue { get; } = new Entropy(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Entropy. - /// - public static Entropy MinValue { get; } = new Entropy(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Entropy Zero { get; } = new Entropy(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CaloriesPerKelvin => As(EntropyUnit.CaloriePerKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerDegreeCelsius => As(EntropyUnit.JoulePerDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerKelvin => As(EntropyUnit.JoulePerKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocaloriesPerKelvin => As(EntropyUnit.KilocaloriePerKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerDegreeCelsius => As(EntropyUnit.KilojoulePerDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerKelvin => As(EntropyUnit.KilojoulePerKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerKelvin => As(EntropyUnit.MegajoulePerKelvin); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Entropy FromCaloriesPerKelvin(double caloriesperkelvin) => new Entropy(caloriesperkelvin, EntropyUnit.CaloriePerKelvin); - - /// - /// Creates a from . - /// - public static Entropy FromJoulesPerDegreeCelsius(double joulesperdegreecelsius) => new Entropy(joulesperdegreecelsius, EntropyUnit.JoulePerDegreeCelsius); - - /// - /// Creates a from . - /// - public static Entropy FromJoulesPerKelvin(double joulesperkelvin) => new Entropy(joulesperkelvin, EntropyUnit.JoulePerKelvin); - - /// - /// Creates a from . - /// - public static Entropy FromKilocaloriesPerKelvin(double kilocaloriesperkelvin) => new Entropy(kilocaloriesperkelvin, EntropyUnit.KilocaloriePerKelvin); - - /// - /// Creates a from . - /// - public static Entropy FromKilojoulesPerDegreeCelsius(double kilojoulesperdegreecelsius) => new Entropy(kilojoulesperdegreecelsius, EntropyUnit.KilojoulePerDegreeCelsius); - - /// - /// Creates a from . - /// - public static Entropy FromKilojoulesPerKelvin(double kilojoulesperkelvin) => new Entropy(kilojoulesperkelvin, EntropyUnit.KilojoulePerKelvin); - - /// - /// Creates a from . - /// - public static Entropy FromMegajoulesPerKelvin(double megajoulesperkelvin) => new Entropy(megajoulesperkelvin, EntropyUnit.MegajoulePerKelvin); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Entropy unit value. - public static Entropy From(double value, EntropyUnit fromUnit) - { - return new Entropy(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(EntropyUnit unit) => GetValueAs(unit); - - /// - /// Converts this Entropy to another Entropy with the unit representation . - /// - /// A Entropy with the specified unit. - public Entropy ToUnit(EntropyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Entropy(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - EntropyUnit.CaloriePerKelvin => _value * 4.184, - EntropyUnit.JoulePerDegreeCelsius => _value, - EntropyUnit.JoulePerKelvin => _value, - EntropyUnit.KilocaloriePerKelvin => (_value * 4.184) * 1e3d, - EntropyUnit.KilojoulePerDegreeCelsius => (_value) * 1e3d, - EntropyUnit.KilojoulePerKelvin => (_value) * 1e3d, - EntropyUnit.MegajoulePerKelvin => (_value) * 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(EntropyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - EntropyUnit.CaloriePerKelvin => baseUnitValue / 4.184, - EntropyUnit.JoulePerDegreeCelsius => baseUnitValue, - EntropyUnit.JoulePerKelvin => baseUnitValue, - EntropyUnit.KilocaloriePerKelvin => (baseUnitValue / 4.184) / 1e3d, - EntropyUnit.KilojoulePerDegreeCelsius => (baseUnitValue) / 1e3d, - EntropyUnit.KilojoulePerKelvin => (baseUnitValue) / 1e3d, - EntropyUnit.MegajoulePerKelvin => (baseUnitValue) / 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/FluidResistance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/FluidResistance.g.cs deleted file mode 100644 index 75aa49382e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/FluidResistance.g.cs +++ /dev/null @@ -1,376 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Fluid Resistance is a force acting opposite to the relative motion of any object moving with respect to a surrounding fluid. Fluid Resistance is sometimes referred to as drag or fluid friction. - /// - /// - /// https://en.wikipedia.org/wiki/Friction#Fluid - /// - public struct FluidResistance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly FluidResistanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public FluidResistanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public FluidResistance(double value, FluidResistanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of FluidResistance, which is Second. All conversions go via this value. - /// - public static FluidResistanceUnit BaseUnit { get; } = FluidResistanceUnit.PascalSecondPerCubicMeter; - - /// - /// Represents the largest possible value of FluidResistance. - /// - public static FluidResistance MaxValue { get; } = new FluidResistance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of FluidResistance. - /// - public static FluidResistance MinValue { get; } = new FluidResistance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static FluidResistance Zero { get; } = new FluidResistance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DyneSecondsPerCentimeterToTheFifth => As(FluidResistanceUnit.DyneSecondPerCentimeterToTheFifth); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapascalSecondsPerCubicMeter => As(FluidResistanceUnit.MegapascalSecondPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimeterMercuryMinutesPerCubicCentimeter => As(FluidResistanceUnit.MillimeterMercuryMinutePerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimeterMercuryMinutesPerCubicMeter => As(FluidResistanceUnit.MillimeterMercuryMinutePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimeterMercuryMinutesPerLiter => As(FluidResistanceUnit.MillimeterMercuryMinutePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimeterMercuryMinutesPerMilliliter => As(FluidResistanceUnit.MillimeterMercuryMinutePerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimeterMercurySecondsPerCubicCentimeter => As(FluidResistanceUnit.MillimeterMercurySecondPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimeterMercurySecondsPerCubicMeter => As(FluidResistanceUnit.MillimeterMercurySecondPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimeterMercurySecondsPerLiter => As(FluidResistanceUnit.MillimeterMercurySecondPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimeterMercurySecondsPerMilliliter => As(FluidResistanceUnit.MillimeterMercurySecondPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalMinutesPerCubicCentimeter => As(FluidResistanceUnit.PascalMinutePerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalMinutesPerCubicMeter => As(FluidResistanceUnit.PascalMinutePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalMinutesPerLiter => As(FluidResistanceUnit.PascalMinutePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalMinutesPerMilliliter => As(FluidResistanceUnit.PascalMinutePerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalSecondsPerCubicCentimeter => As(FluidResistanceUnit.PascalSecondPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalSecondsPerCubicMeter => As(FluidResistanceUnit.PascalSecondPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalSecondsPerLiter => As(FluidResistanceUnit.PascalSecondPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalSecondsPerMilliliter => As(FluidResistanceUnit.PascalSecondPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double WoodUnits => As(FluidResistanceUnit.WoodUnit); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static FluidResistance FromDyneSecondsPerCentimeterToTheFifth(double dynesecondspercentimetertothefifth) => new FluidResistance(dynesecondspercentimetertothefifth, FluidResistanceUnit.DyneSecondPerCentimeterToTheFifth); - - /// - /// Creates a from . - /// - public static FluidResistance FromMegapascalSecondsPerCubicMeter(double megapascalsecondspercubicmeter) => new FluidResistance(megapascalsecondspercubicmeter, FluidResistanceUnit.MegapascalSecondPerCubicMeter); - - /// - /// Creates a from . - /// - public static FluidResistance FromMillimeterMercuryMinutesPerCubicCentimeter(double millimetermercuryminutespercubiccentimeter) => new FluidResistance(millimetermercuryminutespercubiccentimeter, FluidResistanceUnit.MillimeterMercuryMinutePerCubicCentimeter); - - /// - /// Creates a from . - /// - public static FluidResistance FromMillimeterMercuryMinutesPerCubicMeter(double millimetermercuryminutespercubicmeter) => new FluidResistance(millimetermercuryminutespercubicmeter, FluidResistanceUnit.MillimeterMercuryMinutePerCubicMeter); - - /// - /// Creates a from . - /// - public static FluidResistance FromMillimeterMercuryMinutesPerLiter(double millimetermercuryminutesperliter) => new FluidResistance(millimetermercuryminutesperliter, FluidResistanceUnit.MillimeterMercuryMinutePerLiter); - - /// - /// Creates a from . - /// - public static FluidResistance FromMillimeterMercuryMinutesPerMilliliter(double millimetermercuryminutespermilliliter) => new FluidResistance(millimetermercuryminutespermilliliter, FluidResistanceUnit.MillimeterMercuryMinutePerMilliliter); - - /// - /// Creates a from . - /// - public static FluidResistance FromMillimeterMercurySecondsPerCubicCentimeter(double millimetermercurysecondspercubiccentimeter) => new FluidResistance(millimetermercurysecondspercubiccentimeter, FluidResistanceUnit.MillimeterMercurySecondPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static FluidResistance FromMillimeterMercurySecondsPerCubicMeter(double millimetermercurysecondspercubicmeter) => new FluidResistance(millimetermercurysecondspercubicmeter, FluidResistanceUnit.MillimeterMercurySecondPerCubicMeter); - - /// - /// Creates a from . - /// - public static FluidResistance FromMillimeterMercurySecondsPerLiter(double millimetermercurysecondsperliter) => new FluidResistance(millimetermercurysecondsperliter, FluidResistanceUnit.MillimeterMercurySecondPerLiter); - - /// - /// Creates a from . - /// - public static FluidResistance FromMillimeterMercurySecondsPerMilliliter(double millimetermercurysecondspermilliliter) => new FluidResistance(millimetermercurysecondspermilliliter, FluidResistanceUnit.MillimeterMercurySecondPerMilliliter); - - /// - /// Creates a from . - /// - public static FluidResistance FromPascalMinutesPerCubicCentimeter(double pascalminutespercubiccentimeter) => new FluidResistance(pascalminutespercubiccentimeter, FluidResistanceUnit.PascalMinutePerCubicCentimeter); - - /// - /// Creates a from . - /// - public static FluidResistance FromPascalMinutesPerCubicMeter(double pascalminutespercubicmeter) => new FluidResistance(pascalminutespercubicmeter, FluidResistanceUnit.PascalMinutePerCubicMeter); - - /// - /// Creates a from . - /// - public static FluidResistance FromPascalMinutesPerLiter(double pascalminutesperliter) => new FluidResistance(pascalminutesperliter, FluidResistanceUnit.PascalMinutePerLiter); - - /// - /// Creates a from . - /// - public static FluidResistance FromPascalMinutesPerMilliliter(double pascalminutespermilliliter) => new FluidResistance(pascalminutespermilliliter, FluidResistanceUnit.PascalMinutePerMilliliter); - - /// - /// Creates a from . - /// - public static FluidResistance FromPascalSecondsPerCubicCentimeter(double pascalsecondspercubiccentimeter) => new FluidResistance(pascalsecondspercubiccentimeter, FluidResistanceUnit.PascalSecondPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static FluidResistance FromPascalSecondsPerCubicMeter(double pascalsecondspercubicmeter) => new FluidResistance(pascalsecondspercubicmeter, FluidResistanceUnit.PascalSecondPerCubicMeter); - - /// - /// Creates a from . - /// - public static FluidResistance FromPascalSecondsPerLiter(double pascalsecondsperliter) => new FluidResistance(pascalsecondsperliter, FluidResistanceUnit.PascalSecondPerLiter); - - /// - /// Creates a from . - /// - public static FluidResistance FromPascalSecondsPerMilliliter(double pascalsecondspermilliliter) => new FluidResistance(pascalsecondspermilliliter, FluidResistanceUnit.PascalSecondPerMilliliter); - - /// - /// Creates a from . - /// - public static FluidResistance FromWoodUnits(double woodunits) => new FluidResistance(woodunits, FluidResistanceUnit.WoodUnit); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// FluidResistance unit value. - public static FluidResistance From(double value, FluidResistanceUnit fromUnit) - { - return new FluidResistance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(FluidResistanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this FluidResistance to another FluidResistance with the unit representation . - /// - /// A FluidResistance with the specified unit. - public FluidResistance ToUnit(FluidResistanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new FluidResistance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - FluidResistanceUnit.DyneSecondPerCentimeterToTheFifth => _value * 1e5, - FluidResistanceUnit.MegapascalSecondPerCubicMeter => (_value) * 1e6d, - FluidResistanceUnit.MillimeterMercuryMinutePerCubicCentimeter => _value * 7.99934208e9, - FluidResistanceUnit.MillimeterMercuryMinutePerCubicMeter => _value * 7.99934208e3, - FluidResistanceUnit.MillimeterMercuryMinutePerLiter => _value * 7.99934208e6, - FluidResistanceUnit.MillimeterMercuryMinutePerMilliliter => _value * 7.99934208e9, - FluidResistanceUnit.MillimeterMercurySecondPerCubicCentimeter => _value * 1.33322368e8, - FluidResistanceUnit.MillimeterMercurySecondPerCubicMeter => _value * 133.322368, - FluidResistanceUnit.MillimeterMercurySecondPerLiter => _value * 1.33322368e5, - FluidResistanceUnit.MillimeterMercurySecondPerMilliliter => _value * 1.33322368e8, - FluidResistanceUnit.PascalMinutePerCubicCentimeter => _value * 6e7, - FluidResistanceUnit.PascalMinutePerCubicMeter => _value * 60, - FluidResistanceUnit.PascalMinutePerLiter => _value * 6e4, - FluidResistanceUnit.PascalMinutePerMilliliter => _value * 6e7, - FluidResistanceUnit.PascalSecondPerCubicCentimeter => _value * 1e6, - FluidResistanceUnit.PascalSecondPerCubicMeter => _value, - FluidResistanceUnit.PascalSecondPerLiter => _value * 1e3, - FluidResistanceUnit.PascalSecondPerMilliliter => _value * 1e6, - FluidResistanceUnit.WoodUnit => _value * 7.99934208e6, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(FluidResistanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - FluidResistanceUnit.DyneSecondPerCentimeterToTheFifth => baseUnitValue / 1e5, - FluidResistanceUnit.MegapascalSecondPerCubicMeter => (baseUnitValue) / 1e6d, - FluidResistanceUnit.MillimeterMercuryMinutePerCubicCentimeter => baseUnitValue / 7.99934208e9, - FluidResistanceUnit.MillimeterMercuryMinutePerCubicMeter => baseUnitValue / 7.99934208e3, - FluidResistanceUnit.MillimeterMercuryMinutePerLiter => baseUnitValue / 7.99934208e6, - FluidResistanceUnit.MillimeterMercuryMinutePerMilliliter => baseUnitValue / 7.99934208e9, - FluidResistanceUnit.MillimeterMercurySecondPerCubicCentimeter => baseUnitValue / 1.33322368e8, - FluidResistanceUnit.MillimeterMercurySecondPerCubicMeter => baseUnitValue / 133.322368, - FluidResistanceUnit.MillimeterMercurySecondPerLiter => baseUnitValue / 1.33322368e5, - FluidResistanceUnit.MillimeterMercurySecondPerMilliliter => baseUnitValue / 1.33322368e8, - FluidResistanceUnit.PascalMinutePerCubicCentimeter => baseUnitValue / 6e7, - FluidResistanceUnit.PascalMinutePerCubicMeter => baseUnitValue / 60, - FluidResistanceUnit.PascalMinutePerLiter => baseUnitValue / 6e4, - FluidResistanceUnit.PascalMinutePerMilliliter => baseUnitValue / 6e7, - FluidResistanceUnit.PascalSecondPerCubicCentimeter => baseUnitValue / 1e6, - FluidResistanceUnit.PascalSecondPerCubicMeter => baseUnitValue, - FluidResistanceUnit.PascalSecondPerLiter => baseUnitValue / 1e3, - FluidResistanceUnit.PascalSecondPerMilliliter => baseUnitValue / 1e6, - FluidResistanceUnit.WoodUnit => baseUnitValue / 7.99934208e6, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Force.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Force.g.cs deleted file mode 100644 index 41747f94ff..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Force.g.cs +++ /dev/null @@ -1,337 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In physics, a force is any influence that causes an object to undergo a certain change, either concerning its movement, direction, or geometrical construction. In other words, a force can cause an object with mass to change its velocity (which includes to begin moving from a state of rest), i.e., to accelerate, or a flexible object to deform, or both. Force can also be described by intuitive concepts such as a push or a pull. A force has both magnitude and direction, making it a vector quantity. It is measured in the SI unit of newtons and represented by the symbol F. - /// - public struct Force - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ForceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ForceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Force(double value, ForceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Force, which is Second. All conversions go via this value. - /// - public static ForceUnit BaseUnit { get; } = ForceUnit.Newton; - - /// - /// Represents the largest possible value of Force. - /// - public static Force MaxValue { get; } = new Force(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Force. - /// - public static Force MinValue { get; } = new Force(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Force Zero { get; } = new Force(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Decanewtons => As(ForceUnit.Decanewton); - - /// - /// Gets a value of this quantity converted into - /// - public double Dyne => As(ForceUnit.Dyn); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsForce => As(ForceUnit.GramForce); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForce => As(ForceUnit.KilogramForce); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilonewtons => As(ForceUnit.Kilonewton); - - /// - /// Gets a value of this quantity converted into - /// - public double Kiloponds => As(ForceUnit.Kilopond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForce => As(ForceUnit.KilopoundForce); - - /// - /// Gets a value of this quantity converted into - /// - public double Meganewtons => As(ForceUnit.Meganewton); - - /// - /// Gets a value of this quantity converted into - /// - public double Micronewtons => As(ForceUnit.Micronewton); - - /// - /// Gets a value of this quantity converted into - /// - public double Millinewtons => As(ForceUnit.Millinewton); - - /// - /// Gets a value of this quantity converted into - /// - public double Newtons => As(ForceUnit.Newton); - - /// - /// Gets a value of this quantity converted into - /// - public double OunceForce => As(ForceUnit.OunceForce); - - /// - /// Gets a value of this quantity converted into - /// - public double Poundals => As(ForceUnit.Poundal); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForce => As(ForceUnit.PoundForce); - - /// - /// Gets a value of this quantity converted into - /// - public double ShortTonsForce => As(ForceUnit.ShortTonForce); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForce => As(ForceUnit.TonneForce); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Force FromDecanewtons(double decanewtons) => new Force(decanewtons, ForceUnit.Decanewton); - - /// - /// Creates a from . - /// - public static Force FromDyne(double dyne) => new Force(dyne, ForceUnit.Dyn); - - /// - /// Creates a from . - /// - public static Force FromGramsForce(double gramsforce) => new Force(gramsforce, ForceUnit.GramForce); - - /// - /// Creates a from . - /// - public static Force FromKilogramsForce(double kilogramsforce) => new Force(kilogramsforce, ForceUnit.KilogramForce); - - /// - /// Creates a from . - /// - public static Force FromKilonewtons(double kilonewtons) => new Force(kilonewtons, ForceUnit.Kilonewton); - - /// - /// Creates a from . - /// - public static Force FromKiloponds(double kiloponds) => new Force(kiloponds, ForceUnit.Kilopond); - - /// - /// Creates a from . - /// - public static Force FromKilopoundsForce(double kilopoundsforce) => new Force(kilopoundsforce, ForceUnit.KilopoundForce); - - /// - /// Creates a from . - /// - public static Force FromMeganewtons(double meganewtons) => new Force(meganewtons, ForceUnit.Meganewton); - - /// - /// Creates a from . - /// - public static Force FromMicronewtons(double micronewtons) => new Force(micronewtons, ForceUnit.Micronewton); - - /// - /// Creates a from . - /// - public static Force FromMillinewtons(double millinewtons) => new Force(millinewtons, ForceUnit.Millinewton); - - /// - /// Creates a from . - /// - public static Force FromNewtons(double newtons) => new Force(newtons, ForceUnit.Newton); - - /// - /// Creates a from . - /// - public static Force FromOunceForce(double ounceforce) => new Force(ounceforce, ForceUnit.OunceForce); - - /// - /// Creates a from . - /// - public static Force FromPoundals(double poundals) => new Force(poundals, ForceUnit.Poundal); - - /// - /// Creates a from . - /// - public static Force FromPoundsForce(double poundsforce) => new Force(poundsforce, ForceUnit.PoundForce); - - /// - /// Creates a from . - /// - public static Force FromShortTonsForce(double shorttonsforce) => new Force(shorttonsforce, ForceUnit.ShortTonForce); - - /// - /// Creates a from . - /// - public static Force FromTonnesForce(double tonnesforce) => new Force(tonnesforce, ForceUnit.TonneForce); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Force unit value. - public static Force From(double value, ForceUnit fromUnit) - { - return new Force(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ForceUnit unit) => GetValueAs(unit); - - /// - /// Converts this Force to another Force with the unit representation . - /// - /// A Force with the specified unit. - public Force ToUnit(ForceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Force(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ForceUnit.Decanewton => (_value) * 1e1d, - ForceUnit.Dyn => _value / 1e5, - ForceUnit.GramForce => _value * 9.80665e-3, - ForceUnit.KilogramForce => _value * 9.80665, - ForceUnit.Kilonewton => (_value) * 1e3d, - ForceUnit.Kilopond => _value * 9.80665, - ForceUnit.KilopoundForce => (_value * 4.4482216152605) * 1e3d, - ForceUnit.Meganewton => (_value) * 1e6d, - ForceUnit.Micronewton => (_value) * 1e-6d, - ForceUnit.Millinewton => (_value) * 1e-3d, - ForceUnit.Newton => _value, - ForceUnit.OunceForce => _value * (4.4482216152605 / 16), - ForceUnit.Poundal => _value * 0.138254954376, - ForceUnit.PoundForce => _value * 4.4482216152605, - ForceUnit.ShortTonForce => _value * (4.4482216152605 * 2000), - ForceUnit.TonneForce => _value * (9.80665 * 1000), - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ForceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ForceUnit.Decanewton => (baseUnitValue) / 1e1d, - ForceUnit.Dyn => baseUnitValue * 1e5, - ForceUnit.GramForce => baseUnitValue / 9.80665e-3, - ForceUnit.KilogramForce => baseUnitValue / 9.80665, - ForceUnit.Kilonewton => (baseUnitValue) / 1e3d, - ForceUnit.Kilopond => baseUnitValue / 9.80665, - ForceUnit.KilopoundForce => (baseUnitValue / 4.4482216152605) / 1e3d, - ForceUnit.Meganewton => (baseUnitValue) / 1e6d, - ForceUnit.Micronewton => (baseUnitValue) / 1e-6d, - ForceUnit.Millinewton => (baseUnitValue) / 1e-3d, - ForceUnit.Newton => baseUnitValue, - ForceUnit.OunceForce => baseUnitValue / (4.4482216152605 / 16), - ForceUnit.Poundal => baseUnitValue / 0.138254954376, - ForceUnit.PoundForce => baseUnitValue / 4.4482216152605, - ForceUnit.ShortTonForce => baseUnitValue / (4.4482216152605 * 2000), - ForceUnit.TonneForce => baseUnitValue / (9.80665 * 1000), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForceChangeRate.g.cs deleted file mode 100644 index 9f1a761c3c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForceChangeRate.g.cs +++ /dev/null @@ -1,325 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Force change rate is the ratio of the force change to the time during which the change occurred (value of force changes per unit time). - /// - public struct ForceChangeRate - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ForceChangeRateUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ForceChangeRateUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ForceChangeRate(double value, ForceChangeRateUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ForceChangeRate, which is Second. All conversions go via this value. - /// - public static ForceChangeRateUnit BaseUnit { get; } = ForceChangeRateUnit.NewtonPerSecond; - - /// - /// Represents the largest possible value of ForceChangeRate. - /// - public static ForceChangeRate MaxValue { get; } = new ForceChangeRate(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ForceChangeRate. - /// - public static ForceChangeRate MinValue { get; } = new ForceChangeRate(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ForceChangeRate Zero { get; } = new ForceChangeRate(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentinewtonsPerSecond => As(ForceChangeRateUnit.CentinewtonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecanewtonsPerMinute => As(ForceChangeRateUnit.DecanewtonPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double DecanewtonsPerSecond => As(ForceChangeRateUnit.DecanewtonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecinewtonsPerSecond => As(ForceChangeRateUnit.DecinewtonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerMinute => As(ForceChangeRateUnit.KilonewtonPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerSecond => As(ForceChangeRateUnit.KilonewtonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerMinute => As(ForceChangeRateUnit.KilopoundForcePerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerSecond => As(ForceChangeRateUnit.KilopoundForcePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MicronewtonsPerSecond => As(ForceChangeRateUnit.MicronewtonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillinewtonsPerSecond => As(ForceChangeRateUnit.MillinewtonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NanonewtonsPerSecond => As(ForceChangeRateUnit.NanonewtonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerMinute => As(ForceChangeRateUnit.NewtonPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerSecond => As(ForceChangeRateUnit.NewtonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerMinute => As(ForceChangeRateUnit.PoundForcePerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerSecond => As(ForceChangeRateUnit.PoundForcePerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ForceChangeRate FromCentinewtonsPerSecond(double centinewtonspersecond) => new ForceChangeRate(centinewtonspersecond, ForceChangeRateUnit.CentinewtonPerSecond); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromDecanewtonsPerMinute(double decanewtonsperminute) => new ForceChangeRate(decanewtonsperminute, ForceChangeRateUnit.DecanewtonPerMinute); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromDecanewtonsPerSecond(double decanewtonspersecond) => new ForceChangeRate(decanewtonspersecond, ForceChangeRateUnit.DecanewtonPerSecond); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromDecinewtonsPerSecond(double decinewtonspersecond) => new ForceChangeRate(decinewtonspersecond, ForceChangeRateUnit.DecinewtonPerSecond); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromKilonewtonsPerMinute(double kilonewtonsperminute) => new ForceChangeRate(kilonewtonsperminute, ForceChangeRateUnit.KilonewtonPerMinute); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromKilonewtonsPerSecond(double kilonewtonspersecond) => new ForceChangeRate(kilonewtonspersecond, ForceChangeRateUnit.KilonewtonPerSecond); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromKilopoundsForcePerMinute(double kilopoundsforceperminute) => new ForceChangeRate(kilopoundsforceperminute, ForceChangeRateUnit.KilopoundForcePerMinute); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromKilopoundsForcePerSecond(double kilopoundsforcepersecond) => new ForceChangeRate(kilopoundsforcepersecond, ForceChangeRateUnit.KilopoundForcePerSecond); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromMicronewtonsPerSecond(double micronewtonspersecond) => new ForceChangeRate(micronewtonspersecond, ForceChangeRateUnit.MicronewtonPerSecond); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromMillinewtonsPerSecond(double millinewtonspersecond) => new ForceChangeRate(millinewtonspersecond, ForceChangeRateUnit.MillinewtonPerSecond); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromNanonewtonsPerSecond(double nanonewtonspersecond) => new ForceChangeRate(nanonewtonspersecond, ForceChangeRateUnit.NanonewtonPerSecond); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromNewtonsPerMinute(double newtonsperminute) => new ForceChangeRate(newtonsperminute, ForceChangeRateUnit.NewtonPerMinute); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromNewtonsPerSecond(double newtonspersecond) => new ForceChangeRate(newtonspersecond, ForceChangeRateUnit.NewtonPerSecond); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromPoundsForcePerMinute(double poundsforceperminute) => new ForceChangeRate(poundsforceperminute, ForceChangeRateUnit.PoundForcePerMinute); - - /// - /// Creates a from . - /// - public static ForceChangeRate FromPoundsForcePerSecond(double poundsforcepersecond) => new ForceChangeRate(poundsforcepersecond, ForceChangeRateUnit.PoundForcePerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ForceChangeRate unit value. - public static ForceChangeRate From(double value, ForceChangeRateUnit fromUnit) - { - return new ForceChangeRate(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ForceChangeRateUnit unit) => GetValueAs(unit); - - /// - /// Converts this ForceChangeRate to another ForceChangeRate with the unit representation . - /// - /// A ForceChangeRate with the specified unit. - public ForceChangeRate ToUnit(ForceChangeRateUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ForceChangeRate(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ForceChangeRateUnit.CentinewtonPerSecond => (_value) * 1e-2d, - ForceChangeRateUnit.DecanewtonPerMinute => (_value / 60) * 1e1d, - ForceChangeRateUnit.DecanewtonPerSecond => (_value) * 1e1d, - ForceChangeRateUnit.DecinewtonPerSecond => (_value) * 1e-1d, - ForceChangeRateUnit.KilonewtonPerMinute => (_value / 60) * 1e3d, - ForceChangeRateUnit.KilonewtonPerSecond => (_value) * 1e3d, - ForceChangeRateUnit.KilopoundForcePerMinute => (_value * 4.4482216152605 / 60) * 1e3d, - ForceChangeRateUnit.KilopoundForcePerSecond => (_value * 4.4482216152605) * 1e3d, - ForceChangeRateUnit.MicronewtonPerSecond => (_value) * 1e-6d, - ForceChangeRateUnit.MillinewtonPerSecond => (_value) * 1e-3d, - ForceChangeRateUnit.NanonewtonPerSecond => (_value) * 1e-9d, - ForceChangeRateUnit.NewtonPerMinute => _value / 60, - ForceChangeRateUnit.NewtonPerSecond => _value, - ForceChangeRateUnit.PoundForcePerMinute => _value * 4.4482216152605 / 60, - ForceChangeRateUnit.PoundForcePerSecond => _value * 4.4482216152605, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ForceChangeRateUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ForceChangeRateUnit.CentinewtonPerSecond => (baseUnitValue) / 1e-2d, - ForceChangeRateUnit.DecanewtonPerMinute => (baseUnitValue * 60) / 1e1d, - ForceChangeRateUnit.DecanewtonPerSecond => (baseUnitValue) / 1e1d, - ForceChangeRateUnit.DecinewtonPerSecond => (baseUnitValue) / 1e-1d, - ForceChangeRateUnit.KilonewtonPerMinute => (baseUnitValue * 60) / 1e3d, - ForceChangeRateUnit.KilonewtonPerSecond => (baseUnitValue) / 1e3d, - ForceChangeRateUnit.KilopoundForcePerMinute => (baseUnitValue / 4.4482216152605 * 60) / 1e3d, - ForceChangeRateUnit.KilopoundForcePerSecond => (baseUnitValue / 4.4482216152605) / 1e3d, - ForceChangeRateUnit.MicronewtonPerSecond => (baseUnitValue) / 1e-6d, - ForceChangeRateUnit.MillinewtonPerSecond => (baseUnitValue) / 1e-3d, - ForceChangeRateUnit.NanonewtonPerSecond => (baseUnitValue) / 1e-9d, - ForceChangeRateUnit.NewtonPerMinute => baseUnitValue * 60, - ForceChangeRateUnit.NewtonPerSecond => baseUnitValue, - ForceChangeRateUnit.PoundForcePerMinute => baseUnitValue / 4.4482216152605 * 60, - ForceChangeRateUnit.PoundForcePerSecond => baseUnitValue / 4.4482216152605, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForcePerLength.g.cs deleted file mode 100644 index f5994eafb7..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForcePerLength.g.cs +++ /dev/null @@ -1,601 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The magnitude of force per unit length. - /// - public struct ForcePerLength - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ForcePerLengthUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ForcePerLengthUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ForcePerLength(double value, ForcePerLengthUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ForcePerLength, which is Second. All conversions go via this value. - /// - public static ForcePerLengthUnit BaseUnit { get; } = ForcePerLengthUnit.NewtonPerMeter; - - /// - /// Represents the largest possible value of ForcePerLength. - /// - public static ForcePerLength MaxValue { get; } = new ForcePerLength(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ForcePerLength. - /// - public static ForcePerLength MinValue { get; } = new ForcePerLength(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ForcePerLength Zero { get; } = new ForcePerLength(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentinewtonsPerCentimeter => As(ForcePerLengthUnit.CentinewtonPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentinewtonsPerMeter => As(ForcePerLengthUnit.CentinewtonPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentinewtonsPerMillimeter => As(ForcePerLengthUnit.CentinewtonPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecanewtonsPerCentimeter => As(ForcePerLengthUnit.DecanewtonPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecanewtonsPerMeter => As(ForcePerLengthUnit.DecanewtonPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecanewtonsPerMillimeter => As(ForcePerLengthUnit.DecanewtonPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecinewtonsPerCentimeter => As(ForcePerLengthUnit.DecinewtonPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecinewtonsPerMeter => As(ForcePerLengthUnit.DecinewtonPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecinewtonsPerMillimeter => As(ForcePerLengthUnit.DecinewtonPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForcePerCentimeter => As(ForcePerLengthUnit.KilogramForcePerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForcePerMeter => As(ForcePerLengthUnit.KilogramForcePerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForcePerMillimeter => As(ForcePerLengthUnit.KilogramForcePerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerCentimeter => As(ForcePerLengthUnit.KilonewtonPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerMeter => As(ForcePerLengthUnit.KilonewtonPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerMillimeter => As(ForcePerLengthUnit.KilonewtonPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerFoot => As(ForcePerLengthUnit.KilopoundForcePerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerInch => As(ForcePerLengthUnit.KilopoundForcePerInch); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonsPerCentimeter => As(ForcePerLengthUnit.MeganewtonPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonsPerMeter => As(ForcePerLengthUnit.MeganewtonPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonsPerMillimeter => As(ForcePerLengthUnit.MeganewtonPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicronewtonsPerCentimeter => As(ForcePerLengthUnit.MicronewtonPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicronewtonsPerMeter => As(ForcePerLengthUnit.MicronewtonPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicronewtonsPerMillimeter => As(ForcePerLengthUnit.MicronewtonPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillinewtonsPerCentimeter => As(ForcePerLengthUnit.MillinewtonPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillinewtonsPerMeter => As(ForcePerLengthUnit.MillinewtonPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillinewtonsPerMillimeter => As(ForcePerLengthUnit.MillinewtonPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanonewtonsPerCentimeter => As(ForcePerLengthUnit.NanonewtonPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanonewtonsPerMeter => As(ForcePerLengthUnit.NanonewtonPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanonewtonsPerMillimeter => As(ForcePerLengthUnit.NanonewtonPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerCentimeter => As(ForcePerLengthUnit.NewtonPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerMeter => As(ForcePerLengthUnit.NewtonPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerMillimeter => As(ForcePerLengthUnit.NewtonPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerFoot => As(ForcePerLengthUnit.PoundForcePerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerInch => As(ForcePerLengthUnit.PoundForcePerInch); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerYard => As(ForcePerLengthUnit.PoundForcePerYard); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForcePerCentimeter => As(ForcePerLengthUnit.TonneForcePerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForcePerMeter => As(ForcePerLengthUnit.TonneForcePerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForcePerMillimeter => As(ForcePerLengthUnit.TonneForcePerMillimeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ForcePerLength FromCentinewtonsPerCentimeter(double centinewtonspercentimeter) => new ForcePerLength(centinewtonspercentimeter, ForcePerLengthUnit.CentinewtonPerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromCentinewtonsPerMeter(double centinewtonspermeter) => new ForcePerLength(centinewtonspermeter, ForcePerLengthUnit.CentinewtonPerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromCentinewtonsPerMillimeter(double centinewtonspermillimeter) => new ForcePerLength(centinewtonspermillimeter, ForcePerLengthUnit.CentinewtonPerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromDecanewtonsPerCentimeter(double decanewtonspercentimeter) => new ForcePerLength(decanewtonspercentimeter, ForcePerLengthUnit.DecanewtonPerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromDecanewtonsPerMeter(double decanewtonspermeter) => new ForcePerLength(decanewtonspermeter, ForcePerLengthUnit.DecanewtonPerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromDecanewtonsPerMillimeter(double decanewtonspermillimeter) => new ForcePerLength(decanewtonspermillimeter, ForcePerLengthUnit.DecanewtonPerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromDecinewtonsPerCentimeter(double decinewtonspercentimeter) => new ForcePerLength(decinewtonspercentimeter, ForcePerLengthUnit.DecinewtonPerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromDecinewtonsPerMeter(double decinewtonspermeter) => new ForcePerLength(decinewtonspermeter, ForcePerLengthUnit.DecinewtonPerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromDecinewtonsPerMillimeter(double decinewtonspermillimeter) => new ForcePerLength(decinewtonspermillimeter, ForcePerLengthUnit.DecinewtonPerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromKilogramsForcePerCentimeter(double kilogramsforcepercentimeter) => new ForcePerLength(kilogramsforcepercentimeter, ForcePerLengthUnit.KilogramForcePerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromKilogramsForcePerMeter(double kilogramsforcepermeter) => new ForcePerLength(kilogramsforcepermeter, ForcePerLengthUnit.KilogramForcePerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromKilogramsForcePerMillimeter(double kilogramsforcepermillimeter) => new ForcePerLength(kilogramsforcepermillimeter, ForcePerLengthUnit.KilogramForcePerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromKilonewtonsPerCentimeter(double kilonewtonspercentimeter) => new ForcePerLength(kilonewtonspercentimeter, ForcePerLengthUnit.KilonewtonPerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromKilonewtonsPerMeter(double kilonewtonspermeter) => new ForcePerLength(kilonewtonspermeter, ForcePerLengthUnit.KilonewtonPerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromKilonewtonsPerMillimeter(double kilonewtonspermillimeter) => new ForcePerLength(kilonewtonspermillimeter, ForcePerLengthUnit.KilonewtonPerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromKilopoundsForcePerFoot(double kilopoundsforceperfoot) => new ForcePerLength(kilopoundsforceperfoot, ForcePerLengthUnit.KilopoundForcePerFoot); - - /// - /// Creates a from . - /// - public static ForcePerLength FromKilopoundsForcePerInch(double kilopoundsforceperinch) => new ForcePerLength(kilopoundsforceperinch, ForcePerLengthUnit.KilopoundForcePerInch); - - /// - /// Creates a from . - /// - public static ForcePerLength FromMeganewtonsPerCentimeter(double meganewtonspercentimeter) => new ForcePerLength(meganewtonspercentimeter, ForcePerLengthUnit.MeganewtonPerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromMeganewtonsPerMeter(double meganewtonspermeter) => new ForcePerLength(meganewtonspermeter, ForcePerLengthUnit.MeganewtonPerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromMeganewtonsPerMillimeter(double meganewtonspermillimeter) => new ForcePerLength(meganewtonspermillimeter, ForcePerLengthUnit.MeganewtonPerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromMicronewtonsPerCentimeter(double micronewtonspercentimeter) => new ForcePerLength(micronewtonspercentimeter, ForcePerLengthUnit.MicronewtonPerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromMicronewtonsPerMeter(double micronewtonspermeter) => new ForcePerLength(micronewtonspermeter, ForcePerLengthUnit.MicronewtonPerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromMicronewtonsPerMillimeter(double micronewtonspermillimeter) => new ForcePerLength(micronewtonspermillimeter, ForcePerLengthUnit.MicronewtonPerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromMillinewtonsPerCentimeter(double millinewtonspercentimeter) => new ForcePerLength(millinewtonspercentimeter, ForcePerLengthUnit.MillinewtonPerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromMillinewtonsPerMeter(double millinewtonspermeter) => new ForcePerLength(millinewtonspermeter, ForcePerLengthUnit.MillinewtonPerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromMillinewtonsPerMillimeter(double millinewtonspermillimeter) => new ForcePerLength(millinewtonspermillimeter, ForcePerLengthUnit.MillinewtonPerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromNanonewtonsPerCentimeter(double nanonewtonspercentimeter) => new ForcePerLength(nanonewtonspercentimeter, ForcePerLengthUnit.NanonewtonPerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromNanonewtonsPerMeter(double nanonewtonspermeter) => new ForcePerLength(nanonewtonspermeter, ForcePerLengthUnit.NanonewtonPerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromNanonewtonsPerMillimeter(double nanonewtonspermillimeter) => new ForcePerLength(nanonewtonspermillimeter, ForcePerLengthUnit.NanonewtonPerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromNewtonsPerCentimeter(double newtonspercentimeter) => new ForcePerLength(newtonspercentimeter, ForcePerLengthUnit.NewtonPerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromNewtonsPerMeter(double newtonspermeter) => new ForcePerLength(newtonspermeter, ForcePerLengthUnit.NewtonPerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromNewtonsPerMillimeter(double newtonspermillimeter) => new ForcePerLength(newtonspermillimeter, ForcePerLengthUnit.NewtonPerMillimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromPoundsForcePerFoot(double poundsforceperfoot) => new ForcePerLength(poundsforceperfoot, ForcePerLengthUnit.PoundForcePerFoot); - - /// - /// Creates a from . - /// - public static ForcePerLength FromPoundsForcePerInch(double poundsforceperinch) => new ForcePerLength(poundsforceperinch, ForcePerLengthUnit.PoundForcePerInch); - - /// - /// Creates a from . - /// - public static ForcePerLength FromPoundsForcePerYard(double poundsforceperyard) => new ForcePerLength(poundsforceperyard, ForcePerLengthUnit.PoundForcePerYard); - - /// - /// Creates a from . - /// - public static ForcePerLength FromTonnesForcePerCentimeter(double tonnesforcepercentimeter) => new ForcePerLength(tonnesforcepercentimeter, ForcePerLengthUnit.TonneForcePerCentimeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromTonnesForcePerMeter(double tonnesforcepermeter) => new ForcePerLength(tonnesforcepermeter, ForcePerLengthUnit.TonneForcePerMeter); - - /// - /// Creates a from . - /// - public static ForcePerLength FromTonnesForcePerMillimeter(double tonnesforcepermillimeter) => new ForcePerLength(tonnesforcepermillimeter, ForcePerLengthUnit.TonneForcePerMillimeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ForcePerLength unit value. - public static ForcePerLength From(double value, ForcePerLengthUnit fromUnit) - { - return new ForcePerLength(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ForcePerLengthUnit unit) => GetValueAs(unit); - - /// - /// Converts this ForcePerLength to another ForcePerLength with the unit representation . - /// - /// A ForcePerLength with the specified unit. - public ForcePerLength ToUnit(ForcePerLengthUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ForcePerLength(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ForcePerLengthUnit.CentinewtonPerCentimeter => (_value * 1e2) * 1e-2d, - ForcePerLengthUnit.CentinewtonPerMeter => (_value) * 1e-2d, - ForcePerLengthUnit.CentinewtonPerMillimeter => (_value * 1e3) * 1e-2d, - ForcePerLengthUnit.DecanewtonPerCentimeter => (_value * 1e2) * 1e1d, - ForcePerLengthUnit.DecanewtonPerMeter => (_value) * 1e1d, - ForcePerLengthUnit.DecanewtonPerMillimeter => (_value * 1e3) * 1e1d, - ForcePerLengthUnit.DecinewtonPerCentimeter => (_value * 1e2) * 1e-1d, - ForcePerLengthUnit.DecinewtonPerMeter => (_value) * 1e-1d, - ForcePerLengthUnit.DecinewtonPerMillimeter => (_value * 1e3) * 1e-1d, - ForcePerLengthUnit.KilogramForcePerCentimeter => _value * 980.665, - ForcePerLengthUnit.KilogramForcePerMeter => _value * 9.80665, - ForcePerLengthUnit.KilogramForcePerMillimeter => _value * 9.80665e3, - ForcePerLengthUnit.KilonewtonPerCentimeter => (_value * 1e2) * 1e3d, - ForcePerLengthUnit.KilonewtonPerMeter => (_value) * 1e3d, - ForcePerLengthUnit.KilonewtonPerMillimeter => (_value * 1e3) * 1e3d, - ForcePerLengthUnit.KilopoundForcePerFoot => _value * 4.4482216152605 / 0.3048e-3, - ForcePerLengthUnit.KilopoundForcePerInch => _value * 4.4482216152605 / 2.54e-5, - ForcePerLengthUnit.MeganewtonPerCentimeter => (_value * 1e2) * 1e6d, - ForcePerLengthUnit.MeganewtonPerMeter => (_value) * 1e6d, - ForcePerLengthUnit.MeganewtonPerMillimeter => (_value * 1e3) * 1e6d, - ForcePerLengthUnit.MicronewtonPerCentimeter => (_value * 1e2) * 1e-6d, - ForcePerLengthUnit.MicronewtonPerMeter => (_value) * 1e-6d, - ForcePerLengthUnit.MicronewtonPerMillimeter => (_value * 1e3) * 1e-6d, - ForcePerLengthUnit.MillinewtonPerCentimeter => (_value * 1e2) * 1e-3d, - ForcePerLengthUnit.MillinewtonPerMeter => (_value) * 1e-3d, - ForcePerLengthUnit.MillinewtonPerMillimeter => (_value * 1e3) * 1e-3d, - ForcePerLengthUnit.NanonewtonPerCentimeter => (_value * 1e2) * 1e-9d, - ForcePerLengthUnit.NanonewtonPerMeter => (_value) * 1e-9d, - ForcePerLengthUnit.NanonewtonPerMillimeter => (_value * 1e3) * 1e-9d, - ForcePerLengthUnit.NewtonPerCentimeter => _value * 1e2, - ForcePerLengthUnit.NewtonPerMeter => _value, - ForcePerLengthUnit.NewtonPerMillimeter => _value * 1e3, - ForcePerLengthUnit.PoundForcePerFoot => _value * 4.4482216152605 / 0.3048, - ForcePerLengthUnit.PoundForcePerInch => _value * 4.4482216152605 / 2.54e-2, - ForcePerLengthUnit.PoundForcePerYard => _value * 4.4482216152605 / 0.9144, - ForcePerLengthUnit.TonneForcePerCentimeter => _value * 9.80665e5, - ForcePerLengthUnit.TonneForcePerMeter => _value * 9.80665e3, - ForcePerLengthUnit.TonneForcePerMillimeter => _value * 9.80665e6, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ForcePerLengthUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ForcePerLengthUnit.CentinewtonPerCentimeter => (baseUnitValue / 1e2) / 1e-2d, - ForcePerLengthUnit.CentinewtonPerMeter => (baseUnitValue) / 1e-2d, - ForcePerLengthUnit.CentinewtonPerMillimeter => (baseUnitValue / 1e3) / 1e-2d, - ForcePerLengthUnit.DecanewtonPerCentimeter => (baseUnitValue / 1e2) / 1e1d, - ForcePerLengthUnit.DecanewtonPerMeter => (baseUnitValue) / 1e1d, - ForcePerLengthUnit.DecanewtonPerMillimeter => (baseUnitValue / 1e3) / 1e1d, - ForcePerLengthUnit.DecinewtonPerCentimeter => (baseUnitValue / 1e2) / 1e-1d, - ForcePerLengthUnit.DecinewtonPerMeter => (baseUnitValue) / 1e-1d, - ForcePerLengthUnit.DecinewtonPerMillimeter => (baseUnitValue / 1e3) / 1e-1d, - ForcePerLengthUnit.KilogramForcePerCentimeter => baseUnitValue / 980.665, - ForcePerLengthUnit.KilogramForcePerMeter => baseUnitValue / 9.80665, - ForcePerLengthUnit.KilogramForcePerMillimeter => baseUnitValue / 9.80665e3, - ForcePerLengthUnit.KilonewtonPerCentimeter => (baseUnitValue / 1e2) / 1e3d, - ForcePerLengthUnit.KilonewtonPerMeter => (baseUnitValue) / 1e3d, - ForcePerLengthUnit.KilonewtonPerMillimeter => (baseUnitValue / 1e3) / 1e3d, - ForcePerLengthUnit.KilopoundForcePerFoot => baseUnitValue * 0.3048e-3 / 4.4482216152605, - ForcePerLengthUnit.KilopoundForcePerInch => baseUnitValue * 2.54e-5 / 4.4482216152605, - ForcePerLengthUnit.MeganewtonPerCentimeter => (baseUnitValue / 1e2) / 1e6d, - ForcePerLengthUnit.MeganewtonPerMeter => (baseUnitValue) / 1e6d, - ForcePerLengthUnit.MeganewtonPerMillimeter => (baseUnitValue / 1e3) / 1e6d, - ForcePerLengthUnit.MicronewtonPerCentimeter => (baseUnitValue / 1e2) / 1e-6d, - ForcePerLengthUnit.MicronewtonPerMeter => (baseUnitValue) / 1e-6d, - ForcePerLengthUnit.MicronewtonPerMillimeter => (baseUnitValue / 1e3) / 1e-6d, - ForcePerLengthUnit.MillinewtonPerCentimeter => (baseUnitValue / 1e2) / 1e-3d, - ForcePerLengthUnit.MillinewtonPerMeter => (baseUnitValue) / 1e-3d, - ForcePerLengthUnit.MillinewtonPerMillimeter => (baseUnitValue / 1e3) / 1e-3d, - ForcePerLengthUnit.NanonewtonPerCentimeter => (baseUnitValue / 1e2) / 1e-9d, - ForcePerLengthUnit.NanonewtonPerMeter => (baseUnitValue) / 1e-9d, - ForcePerLengthUnit.NanonewtonPerMillimeter => (baseUnitValue / 1e3) / 1e-9d, - ForcePerLengthUnit.NewtonPerCentimeter => baseUnitValue / 1e2, - ForcePerLengthUnit.NewtonPerMeter => baseUnitValue, - ForcePerLengthUnit.NewtonPerMillimeter => baseUnitValue / 1e3, - ForcePerLengthUnit.PoundForcePerFoot => baseUnitValue * 0.3048 / 4.4482216152605, - ForcePerLengthUnit.PoundForcePerInch => baseUnitValue * 2.54e-2 / 4.4482216152605, - ForcePerLengthUnit.PoundForcePerYard => baseUnitValue * 0.9144 / 4.4482216152605, - ForcePerLengthUnit.TonneForcePerCentimeter => baseUnitValue / 9.80665e5, - ForcePerLengthUnit.TonneForcePerMeter => baseUnitValue / 9.80665e3, - ForcePerLengthUnit.TonneForcePerMillimeter => baseUnitValue / 9.80665e6, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Frequency.g.cs deleted file mode 100644 index 10ab65d3b0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Frequency.g.cs +++ /dev/null @@ -1,289 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The number of occurrences of a repeating event per unit time. - /// - public struct Frequency - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly FrequencyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public FrequencyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Frequency(double value, FrequencyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Frequency, which is Second. All conversions go via this value. - /// - public static FrequencyUnit BaseUnit { get; } = FrequencyUnit.Hertz; - - /// - /// Represents the largest possible value of Frequency. - /// - public static Frequency MaxValue { get; } = new Frequency(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Frequency. - /// - public static Frequency MinValue { get; } = new Frequency(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Frequency Zero { get; } = new Frequency(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BeatsPerMinute => As(FrequencyUnit.BeatPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double CyclesPerHour => As(FrequencyUnit.CyclePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double CyclesPerMinute => As(FrequencyUnit.CyclePerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigahertz => As(FrequencyUnit.Gigahertz); - - /// - /// Gets a value of this quantity converted into - /// - public double Hertz => As(FrequencyUnit.Hertz); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilohertz => As(FrequencyUnit.Kilohertz); - - /// - /// Gets a value of this quantity converted into - /// - public double Megahertz => As(FrequencyUnit.Megahertz); - - /// - /// Gets a value of this quantity converted into - /// - public double Microhertz => As(FrequencyUnit.Microhertz); - - /// - /// Gets a value of this quantity converted into - /// - public double Millihertz => As(FrequencyUnit.Millihertz); - - /// - /// Gets a value of this quantity converted into - /// - public double PerSecond => As(FrequencyUnit.PerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double RadiansPerSecond => As(FrequencyUnit.RadianPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Terahertz => As(FrequencyUnit.Terahertz); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Frequency FromBeatsPerMinute(double beatsperminute) => new Frequency(beatsperminute, FrequencyUnit.BeatPerMinute); - - /// - /// Creates a from . - /// - public static Frequency FromCyclesPerHour(double cyclesperhour) => new Frequency(cyclesperhour, FrequencyUnit.CyclePerHour); - - /// - /// Creates a from . - /// - public static Frequency FromCyclesPerMinute(double cyclesperminute) => new Frequency(cyclesperminute, FrequencyUnit.CyclePerMinute); - - /// - /// Creates a from . - /// - public static Frequency FromGigahertz(double gigahertz) => new Frequency(gigahertz, FrequencyUnit.Gigahertz); - - /// - /// Creates a from . - /// - public static Frequency FromHertz(double hertz) => new Frequency(hertz, FrequencyUnit.Hertz); - - /// - /// Creates a from . - /// - public static Frequency FromKilohertz(double kilohertz) => new Frequency(kilohertz, FrequencyUnit.Kilohertz); - - /// - /// Creates a from . - /// - public static Frequency FromMegahertz(double megahertz) => new Frequency(megahertz, FrequencyUnit.Megahertz); - - /// - /// Creates a from . - /// - public static Frequency FromMicrohertz(double microhertz) => new Frequency(microhertz, FrequencyUnit.Microhertz); - - /// - /// Creates a from . - /// - public static Frequency FromMillihertz(double millihertz) => new Frequency(millihertz, FrequencyUnit.Millihertz); - - /// - /// Creates a from . - /// - public static Frequency FromPerSecond(double persecond) => new Frequency(persecond, FrequencyUnit.PerSecond); - - /// - /// Creates a from . - /// - public static Frequency FromRadiansPerSecond(double radianspersecond) => new Frequency(radianspersecond, FrequencyUnit.RadianPerSecond); - - /// - /// Creates a from . - /// - public static Frequency FromTerahertz(double terahertz) => new Frequency(terahertz, FrequencyUnit.Terahertz); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Frequency unit value. - public static Frequency From(double value, FrequencyUnit fromUnit) - { - return new Frequency(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(FrequencyUnit unit) => GetValueAs(unit); - - /// - /// Converts this Frequency to another Frequency with the unit representation . - /// - /// A Frequency with the specified unit. - public Frequency ToUnit(FrequencyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Frequency(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - FrequencyUnit.BeatPerMinute => _value / 60, - FrequencyUnit.CyclePerHour => _value / 3600, - FrequencyUnit.CyclePerMinute => _value / 60, - FrequencyUnit.Gigahertz => (_value) * 1e9d, - FrequencyUnit.Hertz => _value, - FrequencyUnit.Kilohertz => (_value) * 1e3d, - FrequencyUnit.Megahertz => (_value) * 1e6d, - FrequencyUnit.Microhertz => (_value) * 1e-6d, - FrequencyUnit.Millihertz => (_value) * 1e-3d, - FrequencyUnit.PerSecond => _value, - FrequencyUnit.RadianPerSecond => _value / (2 * 3.1415926535897931), - FrequencyUnit.Terahertz => (_value) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(FrequencyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - FrequencyUnit.BeatPerMinute => baseUnitValue * 60, - FrequencyUnit.CyclePerHour => baseUnitValue * 3600, - FrequencyUnit.CyclePerMinute => baseUnitValue * 60, - FrequencyUnit.Gigahertz => (baseUnitValue) / 1e9d, - FrequencyUnit.Hertz => baseUnitValue, - FrequencyUnit.Kilohertz => (baseUnitValue) / 1e3d, - FrequencyUnit.Megahertz => (baseUnitValue) / 1e6d, - FrequencyUnit.Microhertz => (baseUnitValue) / 1e-6d, - FrequencyUnit.Millihertz => (baseUnitValue) / 1e-3d, - FrequencyUnit.PerSecond => baseUnitValue, - FrequencyUnit.RadianPerSecond => baseUnitValue * (2 * 3.1415926535897931), - FrequencyUnit.Terahertz => (baseUnitValue) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/FuelEfficiency.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/FuelEfficiency.g.cs deleted file mode 100644 index e6932b94c0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/FuelEfficiency.g.cs +++ /dev/null @@ -1,196 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In the context of transport, fuel economy is the energy efficiency of a particular vehicle, given as a ratio of distance traveled per unit of fuel consumed. In most countries, using the metric system, fuel economy is stated as "fuel consumption" in liters per 100 kilometers (L/100 km) or kilometers per liter (km/L or kmpl). In countries using non-metric system, fuel economy is expressed in miles per gallon (mpg) (imperial galon or US galon). - /// - /// - /// https://en.wikipedia.org/wiki/Fuel_efficiency - /// - public struct FuelEfficiency - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly FuelEfficiencyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public FuelEfficiencyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public FuelEfficiency(double value, FuelEfficiencyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of FuelEfficiency, which is Second. All conversions go via this value. - /// - public static FuelEfficiencyUnit BaseUnit { get; } = FuelEfficiencyUnit.KilometerPerLiter; - - /// - /// Represents the largest possible value of FuelEfficiency. - /// - public static FuelEfficiency MaxValue { get; } = new FuelEfficiency(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of FuelEfficiency. - /// - public static FuelEfficiency MinValue { get; } = new FuelEfficiency(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static FuelEfficiency Zero { get; } = new FuelEfficiency(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double KilometersPerLiter => As(FuelEfficiencyUnit.KilometerPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPer100Kilometers => As(FuelEfficiencyUnit.LiterPer100Kilometers); - - /// - /// Gets a value of this quantity converted into - /// - public double MilesPerUkGallon => As(FuelEfficiencyUnit.MilePerUkGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double MilesPerUsGallon => As(FuelEfficiencyUnit.MilePerUsGallon); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static FuelEfficiency FromKilometersPerLiter(double kilometersperliter) => new FuelEfficiency(kilometersperliter, FuelEfficiencyUnit.KilometerPerLiter); - - /// - /// Creates a from . - /// - public static FuelEfficiency FromLitersPer100Kilometers(double litersper100kilometers) => new FuelEfficiency(litersper100kilometers, FuelEfficiencyUnit.LiterPer100Kilometers); - - /// - /// Creates a from . - /// - public static FuelEfficiency FromMilesPerUkGallon(double milesperukgallon) => new FuelEfficiency(milesperukgallon, FuelEfficiencyUnit.MilePerUkGallon); - - /// - /// Creates a from . - /// - public static FuelEfficiency FromMilesPerUsGallon(double milesperusgallon) => new FuelEfficiency(milesperusgallon, FuelEfficiencyUnit.MilePerUsGallon); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// FuelEfficiency unit value. - public static FuelEfficiency From(double value, FuelEfficiencyUnit fromUnit) - { - return new FuelEfficiency(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(FuelEfficiencyUnit unit) => GetValueAs(unit); - - /// - /// Converts this FuelEfficiency to another FuelEfficiency with the unit representation . - /// - /// A FuelEfficiency with the specified unit. - public FuelEfficiency ToUnit(FuelEfficiencyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new FuelEfficiency(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - FuelEfficiencyUnit.KilometerPerLiter => _value, - FuelEfficiencyUnit.LiterPer100Kilometers => 100 / _value, - FuelEfficiencyUnit.MilePerUkGallon => _value * 1.609344 / 4.54609, - FuelEfficiencyUnit.MilePerUsGallon => _value * 1.609344 / 3.785411784, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(FuelEfficiencyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - FuelEfficiencyUnit.KilometerPerLiter => baseUnitValue, - FuelEfficiencyUnit.LiterPer100Kilometers => 100 / baseUnitValue, - FuelEfficiencyUnit.MilePerUkGallon => baseUnitValue * 4.54609 / 1.609344, - FuelEfficiencyUnit.MilePerUsGallon => baseUnitValue * 3.785411784 / 1.609344, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatFlux.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatFlux.g.cs deleted file mode 100644 index d1027cafde..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatFlux.g.cs +++ /dev/null @@ -1,361 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Heat flux is the flow of energy per unit of area per unit of time - /// - public struct HeatFlux - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly HeatFluxUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public HeatFluxUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public HeatFlux(double value, HeatFluxUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of HeatFlux, which is Second. All conversions go via this value. - /// - public static HeatFluxUnit BaseUnit { get; } = HeatFluxUnit.WattPerSquareMeter; - - /// - /// Represents the largest possible value of HeatFlux. - /// - public static HeatFlux MaxValue { get; } = new HeatFlux(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of HeatFlux. - /// - public static HeatFlux MinValue { get; } = new HeatFlux(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static HeatFlux Zero { get; } = new HeatFlux(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BtusPerHourSquareFoot => As(HeatFluxUnit.BtuPerHourSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double BtusPerMinuteSquareFoot => As(HeatFluxUnit.BtuPerMinuteSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double BtusPerSecondSquareFoot => As(HeatFluxUnit.BtuPerSecondSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double BtusPerSecondSquareInch => As(HeatFluxUnit.BtuPerSecondSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double CaloriesPerSecondSquareCentimeter => As(HeatFluxUnit.CaloriePerSecondSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentiwattsPerSquareMeter => As(HeatFluxUnit.CentiwattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DeciwattsPerSquareMeter => As(HeatFluxUnit.DeciwattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocaloriesPerHourSquareMeter => As(HeatFluxUnit.KilocaloriePerHourSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocaloriesPerSecondSquareCentimeter => As(HeatFluxUnit.KilocaloriePerSecondSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerSquareMeter => As(HeatFluxUnit.KilowattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrowattsPerSquareMeter => As(HeatFluxUnit.MicrowattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerSquareMeter => As(HeatFluxUnit.MilliwattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanowattsPerSquareMeter => As(HeatFluxUnit.NanowattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerFootSecond => As(HeatFluxUnit.PoundForcePerFootSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerSecondCubed => As(HeatFluxUnit.PoundPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerSquareFoot => As(HeatFluxUnit.WattPerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerSquareInch => As(HeatFluxUnit.WattPerSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerSquareMeter => As(HeatFluxUnit.WattPerSquareMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static HeatFlux FromBtusPerHourSquareFoot(double btusperhoursquarefoot) => new HeatFlux(btusperhoursquarefoot, HeatFluxUnit.BtuPerHourSquareFoot); - - /// - /// Creates a from . - /// - public static HeatFlux FromBtusPerMinuteSquareFoot(double btusperminutesquarefoot) => new HeatFlux(btusperminutesquarefoot, HeatFluxUnit.BtuPerMinuteSquareFoot); - - /// - /// Creates a from . - /// - public static HeatFlux FromBtusPerSecondSquareFoot(double btuspersecondsquarefoot) => new HeatFlux(btuspersecondsquarefoot, HeatFluxUnit.BtuPerSecondSquareFoot); - - /// - /// Creates a from . - /// - public static HeatFlux FromBtusPerSecondSquareInch(double btuspersecondsquareinch) => new HeatFlux(btuspersecondsquareinch, HeatFluxUnit.BtuPerSecondSquareInch); - - /// - /// Creates a from . - /// - public static HeatFlux FromCaloriesPerSecondSquareCentimeter(double caloriespersecondsquarecentimeter) => new HeatFlux(caloriespersecondsquarecentimeter, HeatFluxUnit.CaloriePerSecondSquareCentimeter); - - /// - /// Creates a from . - /// - public static HeatFlux FromCentiwattsPerSquareMeter(double centiwattspersquaremeter) => new HeatFlux(centiwattspersquaremeter, HeatFluxUnit.CentiwattPerSquareMeter); - - /// - /// Creates a from . - /// - public static HeatFlux FromDeciwattsPerSquareMeter(double deciwattspersquaremeter) => new HeatFlux(deciwattspersquaremeter, HeatFluxUnit.DeciwattPerSquareMeter); - - /// - /// Creates a from . - /// - public static HeatFlux FromKilocaloriesPerHourSquareMeter(double kilocaloriesperhoursquaremeter) => new HeatFlux(kilocaloriesperhoursquaremeter, HeatFluxUnit.KilocaloriePerHourSquareMeter); - - /// - /// Creates a from . - /// - public static HeatFlux FromKilocaloriesPerSecondSquareCentimeter(double kilocaloriespersecondsquarecentimeter) => new HeatFlux(kilocaloriespersecondsquarecentimeter, HeatFluxUnit.KilocaloriePerSecondSquareCentimeter); - - /// - /// Creates a from . - /// - public static HeatFlux FromKilowattsPerSquareMeter(double kilowattspersquaremeter) => new HeatFlux(kilowattspersquaremeter, HeatFluxUnit.KilowattPerSquareMeter); - - /// - /// Creates a from . - /// - public static HeatFlux FromMicrowattsPerSquareMeter(double microwattspersquaremeter) => new HeatFlux(microwattspersquaremeter, HeatFluxUnit.MicrowattPerSquareMeter); - - /// - /// Creates a from . - /// - public static HeatFlux FromMilliwattsPerSquareMeter(double milliwattspersquaremeter) => new HeatFlux(milliwattspersquaremeter, HeatFluxUnit.MilliwattPerSquareMeter); - - /// - /// Creates a from . - /// - public static HeatFlux FromNanowattsPerSquareMeter(double nanowattspersquaremeter) => new HeatFlux(nanowattspersquaremeter, HeatFluxUnit.NanowattPerSquareMeter); - - /// - /// Creates a from . - /// - public static HeatFlux FromPoundsForcePerFootSecond(double poundsforceperfootsecond) => new HeatFlux(poundsforceperfootsecond, HeatFluxUnit.PoundForcePerFootSecond); - - /// - /// Creates a from . - /// - public static HeatFlux FromPoundsPerSecondCubed(double poundspersecondcubed) => new HeatFlux(poundspersecondcubed, HeatFluxUnit.PoundPerSecondCubed); - - /// - /// Creates a from . - /// - public static HeatFlux FromWattsPerSquareFoot(double wattspersquarefoot) => new HeatFlux(wattspersquarefoot, HeatFluxUnit.WattPerSquareFoot); - - /// - /// Creates a from . - /// - public static HeatFlux FromWattsPerSquareInch(double wattspersquareinch) => new HeatFlux(wattspersquareinch, HeatFluxUnit.WattPerSquareInch); - - /// - /// Creates a from . - /// - public static HeatFlux FromWattsPerSquareMeter(double wattspersquaremeter) => new HeatFlux(wattspersquaremeter, HeatFluxUnit.WattPerSquareMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// HeatFlux unit value. - public static HeatFlux From(double value, HeatFluxUnit fromUnit) - { - return new HeatFlux(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(HeatFluxUnit unit) => GetValueAs(unit); - - /// - /// Converts this HeatFlux to another HeatFlux with the unit representation . - /// - /// A HeatFlux with the specified unit. - public HeatFlux ToUnit(HeatFluxUnit unit) - { - var convertedValue = GetValueAs(unit); - return new HeatFlux(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - HeatFluxUnit.BtuPerHourSquareFoot => _value * 1055.05585262 / (0.3048 * 0.3048 * 3600), - HeatFluxUnit.BtuPerMinuteSquareFoot => _value * 1055.05585262 / (0.3048 * 0.3048 * 60), - HeatFluxUnit.BtuPerSecondSquareFoot => _value * 1055.05585262 / (0.3048 * 0.3048), - HeatFluxUnit.BtuPerSecondSquareInch => _value * 1055.05585262 / (2.54e-2 * 2.54e-2), - HeatFluxUnit.CaloriePerSecondSquareCentimeter => _value * 4.184e4, - HeatFluxUnit.CentiwattPerSquareMeter => (_value) * 1e-2d, - HeatFluxUnit.DeciwattPerSquareMeter => (_value) * 1e-1d, - HeatFluxUnit.KilocaloriePerHourSquareMeter => _value * 4.184e3 / 3600, - HeatFluxUnit.KilocaloriePerSecondSquareCentimeter => (_value * 4.184e4) * 1e3d, - HeatFluxUnit.KilowattPerSquareMeter => (_value) * 1e3d, - HeatFluxUnit.MicrowattPerSquareMeter => (_value) * 1e-6d, - HeatFluxUnit.MilliwattPerSquareMeter => (_value) * 1e-3d, - HeatFluxUnit.NanowattPerSquareMeter => (_value) * 1e-9d, - HeatFluxUnit.PoundForcePerFootSecond => _value * 1.3558179483314004 / 9.290304e-2, - HeatFluxUnit.PoundPerSecondCubed => _value * 4.5359237e-1, - HeatFluxUnit.WattPerSquareFoot => _value / (0.3048 * 0.3048), - HeatFluxUnit.WattPerSquareInch => _value / (2.54e-2 * 2.54e-2), - HeatFluxUnit.WattPerSquareMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(HeatFluxUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - HeatFluxUnit.BtuPerHourSquareFoot => baseUnitValue * (0.3048 * 0.3048 * 3600) / 1055.05585262, - HeatFluxUnit.BtuPerMinuteSquareFoot => baseUnitValue * (0.3048 * 0.3048 * 60) / 1055.05585262, - HeatFluxUnit.BtuPerSecondSquareFoot => baseUnitValue * (0.3048 * 0.3048) / 1055.05585262, - HeatFluxUnit.BtuPerSecondSquareInch => baseUnitValue * (2.54e-2 * 2.54e-2) / 1055.05585262, - HeatFluxUnit.CaloriePerSecondSquareCentimeter => baseUnitValue / 4.184e4, - HeatFluxUnit.CentiwattPerSquareMeter => (baseUnitValue) / 1e-2d, - HeatFluxUnit.DeciwattPerSquareMeter => (baseUnitValue) / 1e-1d, - HeatFluxUnit.KilocaloriePerHourSquareMeter => baseUnitValue * 3600 / 4.184e3, - HeatFluxUnit.KilocaloriePerSecondSquareCentimeter => (baseUnitValue / 4.184e4) / 1e3d, - HeatFluxUnit.KilowattPerSquareMeter => (baseUnitValue) / 1e3d, - HeatFluxUnit.MicrowattPerSquareMeter => (baseUnitValue) / 1e-6d, - HeatFluxUnit.MilliwattPerSquareMeter => (baseUnitValue) / 1e-3d, - HeatFluxUnit.NanowattPerSquareMeter => (baseUnitValue) / 1e-9d, - HeatFluxUnit.PoundForcePerFootSecond => baseUnitValue * 9.290304e-2 / 1.3558179483314004, - HeatFluxUnit.PoundPerSecondCubed => baseUnitValue / 4.5359237e-1, - HeatFluxUnit.WattPerSquareFoot => baseUnitValue * (0.3048 * 0.3048), - HeatFluxUnit.WattPerSquareInch => baseUnitValue * (2.54e-2 * 2.54e-2), - HeatFluxUnit.WattPerSquareMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs deleted file mode 100644 index 274c8b4cec..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs +++ /dev/null @@ -1,205 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The heat transfer coefficient or film coefficient, or film effectiveness, in thermodynamics and in mechanics is the proportionality constant between the heat flux and the thermodynamic driving force for the flow of heat (i.e., the temperature difference, ΔT) - /// - public struct HeatTransferCoefficient - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly HeatTransferCoefficientUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public HeatTransferCoefficientUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public HeatTransferCoefficient(double value, HeatTransferCoefficientUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of HeatTransferCoefficient, which is Second. All conversions go via this value. - /// - public static HeatTransferCoefficientUnit BaseUnit { get; } = HeatTransferCoefficientUnit.WattPerSquareMeterKelvin; - - /// - /// Represents the largest possible value of HeatTransferCoefficient. - /// - public static HeatTransferCoefficient MaxValue { get; } = new HeatTransferCoefficient(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of HeatTransferCoefficient. - /// - public static HeatTransferCoefficient MinValue { get; } = new HeatTransferCoefficient(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static HeatTransferCoefficient Zero { get; } = new HeatTransferCoefficient(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BtusPerHourSquareFootDegreeFahrenheit => As(HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit); - - /// - /// Gets a value of this quantity converted into - /// - public double CaloriesPerHourSquareMeterDegreeCelsius => As(HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocaloriesPerHourSquareMeterDegreeCelsius => As(HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerSquareMeterCelsius => As(HeatTransferCoefficientUnit.WattPerSquareMeterCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerSquareMeterKelvin => As(HeatTransferCoefficientUnit.WattPerSquareMeterKelvin); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static HeatTransferCoefficient FromBtusPerHourSquareFootDegreeFahrenheit(double btusperhoursquarefootdegreefahrenheit) => new HeatTransferCoefficient(btusperhoursquarefootdegreefahrenheit, HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit); - - /// - /// Creates a from . - /// - public static HeatTransferCoefficient FromCaloriesPerHourSquareMeterDegreeCelsius(double caloriesperhoursquaremeterdegreecelsius) => new HeatTransferCoefficient(caloriesperhoursquaremeterdegreecelsius, HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius); - - /// - /// Creates a from . - /// - public static HeatTransferCoefficient FromKilocaloriesPerHourSquareMeterDegreeCelsius(double kilocaloriesperhoursquaremeterdegreecelsius) => new HeatTransferCoefficient(kilocaloriesperhoursquaremeterdegreecelsius, HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius); - - /// - /// Creates a from . - /// - public static HeatTransferCoefficient FromWattsPerSquareMeterCelsius(double wattspersquaremetercelsius) => new HeatTransferCoefficient(wattspersquaremetercelsius, HeatTransferCoefficientUnit.WattPerSquareMeterCelsius); - - /// - /// Creates a from . - /// - public static HeatTransferCoefficient FromWattsPerSquareMeterKelvin(double wattspersquaremeterkelvin) => new HeatTransferCoefficient(wattspersquaremeterkelvin, HeatTransferCoefficientUnit.WattPerSquareMeterKelvin); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// HeatTransferCoefficient unit value. - public static HeatTransferCoefficient From(double value, HeatTransferCoefficientUnit fromUnit) - { - return new HeatTransferCoefficient(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(HeatTransferCoefficientUnit unit) => GetValueAs(unit); - - /// - /// Converts this HeatTransferCoefficient to another HeatTransferCoefficient with the unit representation . - /// - /// A HeatTransferCoefficient with the specified unit. - public HeatTransferCoefficient ToUnit(HeatTransferCoefficientUnit unit) - { - var convertedValue = GetValueAs(unit); - return new HeatTransferCoefficient(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit => _value * ((1055.05585262 / (0.3048 * 0.3048 * 3600)) * 1.8), - HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius => (_value * 4.184) / 3600, - HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius => ((_value * 4.184) / 3600) * 1e3d, - HeatTransferCoefficientUnit.WattPerSquareMeterCelsius => _value, - HeatTransferCoefficientUnit.WattPerSquareMeterKelvin => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(HeatTransferCoefficientUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit => baseUnitValue / ((1055.05585262 / (0.3048 * 0.3048 * 3600)) * 1.8), - HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius => (baseUnitValue / 4.184) * 3600, - HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius => ((baseUnitValue / 4.184) * 3600) / 1e3d, - HeatTransferCoefficientUnit.WattPerSquareMeterCelsius => baseUnitValue, - HeatTransferCoefficientUnit.WattPerSquareMeterKelvin => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Illuminance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Illuminance.g.cs deleted file mode 100644 index 6fda4ca9d3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Illuminance.g.cs +++ /dev/null @@ -1,196 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In photometry, illuminance is the total luminous flux incident on a surface, per unit area. - /// - /// - /// https://en.wikipedia.org/wiki/Illuminance - /// - public struct Illuminance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly IlluminanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public IlluminanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Illuminance(double value, IlluminanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Illuminance, which is Second. All conversions go via this value. - /// - public static IlluminanceUnit BaseUnit { get; } = IlluminanceUnit.Lux; - - /// - /// Represents the largest possible value of Illuminance. - /// - public static Illuminance MaxValue { get; } = new Illuminance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Illuminance. - /// - public static Illuminance MinValue { get; } = new Illuminance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Illuminance Zero { get; } = new Illuminance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Kilolux => As(IlluminanceUnit.Kilolux); - - /// - /// Gets a value of this quantity converted into - /// - public double Lux => As(IlluminanceUnit.Lux); - - /// - /// Gets a value of this quantity converted into - /// - public double Megalux => As(IlluminanceUnit.Megalux); - - /// - /// Gets a value of this quantity converted into - /// - public double Millilux => As(IlluminanceUnit.Millilux); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Illuminance FromKilolux(double kilolux) => new Illuminance(kilolux, IlluminanceUnit.Kilolux); - - /// - /// Creates a from . - /// - public static Illuminance FromLux(double lux) => new Illuminance(lux, IlluminanceUnit.Lux); - - /// - /// Creates a from . - /// - public static Illuminance FromMegalux(double megalux) => new Illuminance(megalux, IlluminanceUnit.Megalux); - - /// - /// Creates a from . - /// - public static Illuminance FromMillilux(double millilux) => new Illuminance(millilux, IlluminanceUnit.Millilux); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Illuminance unit value. - public static Illuminance From(double value, IlluminanceUnit fromUnit) - { - return new Illuminance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(IlluminanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this Illuminance to another Illuminance with the unit representation . - /// - /// A Illuminance with the specified unit. - public Illuminance ToUnit(IlluminanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Illuminance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - IlluminanceUnit.Kilolux => (_value) * 1e3d, - IlluminanceUnit.Lux => _value, - IlluminanceUnit.Megalux => (_value) * 1e6d, - IlluminanceUnit.Millilux => (_value) * 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(IlluminanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - IlluminanceUnit.Kilolux => (baseUnitValue) / 1e3d, - IlluminanceUnit.Lux => baseUnitValue, - IlluminanceUnit.Megalux => (baseUnitValue) / 1e6d, - IlluminanceUnit.Millilux => (baseUnitValue) / 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Impulse.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Impulse.g.cs deleted file mode 100644 index 00b105ccb6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Impulse.g.cs +++ /dev/null @@ -1,301 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In classical mechanics, impulse is the integral of a force, F, over the time interval, t, for which it acts. Impulse applied to an object produces an equivalent vector change in its linear momentum, also in the resultant direction. - /// - public struct Impulse - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ImpulseUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ImpulseUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Impulse(double value, ImpulseUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Impulse, which is Second. All conversions go via this value. - /// - public static ImpulseUnit BaseUnit { get; } = ImpulseUnit.NewtonSecond; - - /// - /// Represents the largest possible value of Impulse. - /// - public static Impulse MaxValue { get; } = new Impulse(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Impulse. - /// - public static Impulse MinValue { get; } = new Impulse(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Impulse Zero { get; } = new Impulse(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentinewtonSeconds => As(ImpulseUnit.CentinewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecanewtonSeconds => As(ImpulseUnit.DecanewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecinewtonSeconds => As(ImpulseUnit.DecinewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramMetersPerSecond => As(ImpulseUnit.KilogramMeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonSeconds => As(ImpulseUnit.KilonewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonSeconds => As(ImpulseUnit.MeganewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MicronewtonSeconds => As(ImpulseUnit.MicronewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillinewtonSeconds => As(ImpulseUnit.MillinewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NanonewtonSeconds => As(ImpulseUnit.NanonewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonSeconds => As(ImpulseUnit.NewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundFeetPerSecond => As(ImpulseUnit.PoundFootPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundForceSeconds => As(ImpulseUnit.PoundForceSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double SlugFeetPerSecond => As(ImpulseUnit.SlugFootPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Impulse FromCentinewtonSeconds(double centinewtonseconds) => new Impulse(centinewtonseconds, ImpulseUnit.CentinewtonSecond); - - /// - /// Creates a from . - /// - public static Impulse FromDecanewtonSeconds(double decanewtonseconds) => new Impulse(decanewtonseconds, ImpulseUnit.DecanewtonSecond); - - /// - /// Creates a from . - /// - public static Impulse FromDecinewtonSeconds(double decinewtonseconds) => new Impulse(decinewtonseconds, ImpulseUnit.DecinewtonSecond); - - /// - /// Creates a from . - /// - public static Impulse FromKilogramMetersPerSecond(double kilogrammeterspersecond) => new Impulse(kilogrammeterspersecond, ImpulseUnit.KilogramMeterPerSecond); - - /// - /// Creates a from . - /// - public static Impulse FromKilonewtonSeconds(double kilonewtonseconds) => new Impulse(kilonewtonseconds, ImpulseUnit.KilonewtonSecond); - - /// - /// Creates a from . - /// - public static Impulse FromMeganewtonSeconds(double meganewtonseconds) => new Impulse(meganewtonseconds, ImpulseUnit.MeganewtonSecond); - - /// - /// Creates a from . - /// - public static Impulse FromMicronewtonSeconds(double micronewtonseconds) => new Impulse(micronewtonseconds, ImpulseUnit.MicronewtonSecond); - - /// - /// Creates a from . - /// - public static Impulse FromMillinewtonSeconds(double millinewtonseconds) => new Impulse(millinewtonseconds, ImpulseUnit.MillinewtonSecond); - - /// - /// Creates a from . - /// - public static Impulse FromNanonewtonSeconds(double nanonewtonseconds) => new Impulse(nanonewtonseconds, ImpulseUnit.NanonewtonSecond); - - /// - /// Creates a from . - /// - public static Impulse FromNewtonSeconds(double newtonseconds) => new Impulse(newtonseconds, ImpulseUnit.NewtonSecond); - - /// - /// Creates a from . - /// - public static Impulse FromPoundFeetPerSecond(double poundfeetpersecond) => new Impulse(poundfeetpersecond, ImpulseUnit.PoundFootPerSecond); - - /// - /// Creates a from . - /// - public static Impulse FromPoundForceSeconds(double poundforceseconds) => new Impulse(poundforceseconds, ImpulseUnit.PoundForceSecond); - - /// - /// Creates a from . - /// - public static Impulse FromSlugFeetPerSecond(double slugfeetpersecond) => new Impulse(slugfeetpersecond, ImpulseUnit.SlugFootPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Impulse unit value. - public static Impulse From(double value, ImpulseUnit fromUnit) - { - return new Impulse(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ImpulseUnit unit) => GetValueAs(unit); - - /// - /// Converts this Impulse to another Impulse with the unit representation . - /// - /// A Impulse with the specified unit. - public Impulse ToUnit(ImpulseUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Impulse(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ImpulseUnit.CentinewtonSecond => (_value) * 1e-2d, - ImpulseUnit.DecanewtonSecond => (_value) * 1e1d, - ImpulseUnit.DecinewtonSecond => (_value) * 1e-1d, - ImpulseUnit.KilogramMeterPerSecond => _value, - ImpulseUnit.KilonewtonSecond => (_value) * 1e3d, - ImpulseUnit.MeganewtonSecond => (_value) * 1e6d, - ImpulseUnit.MicronewtonSecond => (_value) * 1e-6d, - ImpulseUnit.MillinewtonSecond => (_value) * 1e-3d, - ImpulseUnit.NanonewtonSecond => (_value) * 1e-9d, - ImpulseUnit.NewtonSecond => _value, - ImpulseUnit.PoundFootPerSecond => _value * (0.45359237 * 0.3048), - ImpulseUnit.PoundForceSecond => _value * 0.45359237 * 9.80665, - ImpulseUnit.SlugFootPerSecond => _value * (0.45359237 * 9.80665), - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ImpulseUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ImpulseUnit.CentinewtonSecond => (baseUnitValue) / 1e-2d, - ImpulseUnit.DecanewtonSecond => (baseUnitValue) / 1e1d, - ImpulseUnit.DecinewtonSecond => (baseUnitValue) / 1e-1d, - ImpulseUnit.KilogramMeterPerSecond => baseUnitValue, - ImpulseUnit.KilonewtonSecond => (baseUnitValue) / 1e3d, - ImpulseUnit.MeganewtonSecond => (baseUnitValue) / 1e6d, - ImpulseUnit.MicronewtonSecond => (baseUnitValue) / 1e-6d, - ImpulseUnit.MillinewtonSecond => (baseUnitValue) / 1e-3d, - ImpulseUnit.NanonewtonSecond => (baseUnitValue) / 1e-9d, - ImpulseUnit.NewtonSecond => baseUnitValue, - ImpulseUnit.PoundFootPerSecond => baseUnitValue / (0.45359237 * 0.3048), - ImpulseUnit.PoundForceSecond => baseUnitValue / (0.45359237 * 9.80665), - ImpulseUnit.SlugFootPerSecond => baseUnitValue / (0.45359237 * 9.80665), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Information.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Information.g.cs deleted file mode 100644 index e40569f9e4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Information.g.cs +++ /dev/null @@ -1,613 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In computing and telecommunications, a unit of information is the capacity of some standard data storage system or communication channel, used to measure the capacities of other systems and channels. In information theory, units of information are also used to measure the information contents or entropy of random variables. - /// - public struct Information - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly InformationUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public InformationUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Information(double value, InformationUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Information, which is Second. All conversions go via this value. - /// - public static InformationUnit BaseUnit { get; } = InformationUnit.Bit; - - /// - /// Represents the largest possible value of Information. - /// - public static Information MaxValue { get; } = new Information(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Information. - /// - public static Information MinValue { get; } = new Information(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Information Zero { get; } = new Information(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Bits => As(InformationUnit.Bit); - - /// - /// Gets a value of this quantity converted into - /// - public double Bytes => As(InformationUnit.Byte); - - /// - /// Gets a value of this quantity converted into - /// - public double Exabits => As(InformationUnit.Exabit); - - /// - /// Gets a value of this quantity converted into - /// - public double Exabytes => As(InformationUnit.Exabyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Exaoctets => As(InformationUnit.Exaoctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Exbibits => As(InformationUnit.Exbibit); - - /// - /// Gets a value of this quantity converted into - /// - public double Exbibytes => As(InformationUnit.Exbibyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Exbioctets => As(InformationUnit.Exbioctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Gibibits => As(InformationUnit.Gibibit); - - /// - /// Gets a value of this quantity converted into - /// - public double Gibibytes => As(InformationUnit.Gibibyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Gibioctets => As(InformationUnit.Gibioctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigabits => As(InformationUnit.Gigabit); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigabytes => As(InformationUnit.Gigabyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigaoctets => As(InformationUnit.Gigaoctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Kibibits => As(InformationUnit.Kibibit); - - /// - /// Gets a value of this quantity converted into - /// - public double Kibibytes => As(InformationUnit.Kibibyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Kibioctets => As(InformationUnit.Kibioctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilobits => As(InformationUnit.Kilobit); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilobytes => As(InformationUnit.Kilobyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilooctets => As(InformationUnit.Kilooctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Mebibits => As(InformationUnit.Mebibit); - - /// - /// Gets a value of this quantity converted into - /// - public double Mebibytes => As(InformationUnit.Mebibyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Mebioctets => As(InformationUnit.Mebioctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Megabits => As(InformationUnit.Megabit); - - /// - /// Gets a value of this quantity converted into - /// - public double Megabytes => As(InformationUnit.Megabyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Megaoctets => As(InformationUnit.Megaoctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Octets => As(InformationUnit.Octet); - - /// - /// Gets a value of this quantity converted into - /// - public double Pebibits => As(InformationUnit.Pebibit); - - /// - /// Gets a value of this quantity converted into - /// - public double Pebibytes => As(InformationUnit.Pebibyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Pebioctets => As(InformationUnit.Pebioctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Petabits => As(InformationUnit.Petabit); - - /// - /// Gets a value of this quantity converted into - /// - public double Petabytes => As(InformationUnit.Petabyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Petaoctets => As(InformationUnit.Petaoctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Tebibits => As(InformationUnit.Tebibit); - - /// - /// Gets a value of this quantity converted into - /// - public double Tebibytes => As(InformationUnit.Tebibyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Tebioctets => As(InformationUnit.Tebioctet); - - /// - /// Gets a value of this quantity converted into - /// - public double Terabits => As(InformationUnit.Terabit); - - /// - /// Gets a value of this quantity converted into - /// - public double Terabytes => As(InformationUnit.Terabyte); - - /// - /// Gets a value of this quantity converted into - /// - public double Teraoctets => As(InformationUnit.Teraoctet); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Information FromBits(double bits) => new Information(bits, InformationUnit.Bit); - - /// - /// Creates a from . - /// - public static Information FromBytes(double bytes) => new Information(bytes, InformationUnit.Byte); - - /// - /// Creates a from . - /// - public static Information FromExabits(double exabits) => new Information(exabits, InformationUnit.Exabit); - - /// - /// Creates a from . - /// - public static Information FromExabytes(double exabytes) => new Information(exabytes, InformationUnit.Exabyte); - - /// - /// Creates a from . - /// - public static Information FromExaoctets(double exaoctets) => new Information(exaoctets, InformationUnit.Exaoctet); - - /// - /// Creates a from . - /// - public static Information FromExbibits(double exbibits) => new Information(exbibits, InformationUnit.Exbibit); - - /// - /// Creates a from . - /// - public static Information FromExbibytes(double exbibytes) => new Information(exbibytes, InformationUnit.Exbibyte); - - /// - /// Creates a from . - /// - public static Information FromExbioctets(double exbioctets) => new Information(exbioctets, InformationUnit.Exbioctet); - - /// - /// Creates a from . - /// - public static Information FromGibibits(double gibibits) => new Information(gibibits, InformationUnit.Gibibit); - - /// - /// Creates a from . - /// - public static Information FromGibibytes(double gibibytes) => new Information(gibibytes, InformationUnit.Gibibyte); - - /// - /// Creates a from . - /// - public static Information FromGibioctets(double gibioctets) => new Information(gibioctets, InformationUnit.Gibioctet); - - /// - /// Creates a from . - /// - public static Information FromGigabits(double gigabits) => new Information(gigabits, InformationUnit.Gigabit); - - /// - /// Creates a from . - /// - public static Information FromGigabytes(double gigabytes) => new Information(gigabytes, InformationUnit.Gigabyte); - - /// - /// Creates a from . - /// - public static Information FromGigaoctets(double gigaoctets) => new Information(gigaoctets, InformationUnit.Gigaoctet); - - /// - /// Creates a from . - /// - public static Information FromKibibits(double kibibits) => new Information(kibibits, InformationUnit.Kibibit); - - /// - /// Creates a from . - /// - public static Information FromKibibytes(double kibibytes) => new Information(kibibytes, InformationUnit.Kibibyte); - - /// - /// Creates a from . - /// - public static Information FromKibioctets(double kibioctets) => new Information(kibioctets, InformationUnit.Kibioctet); - - /// - /// Creates a from . - /// - public static Information FromKilobits(double kilobits) => new Information(kilobits, InformationUnit.Kilobit); - - /// - /// Creates a from . - /// - public static Information FromKilobytes(double kilobytes) => new Information(kilobytes, InformationUnit.Kilobyte); - - /// - /// Creates a from . - /// - public static Information FromKilooctets(double kilooctets) => new Information(kilooctets, InformationUnit.Kilooctet); - - /// - /// Creates a from . - /// - public static Information FromMebibits(double mebibits) => new Information(mebibits, InformationUnit.Mebibit); - - /// - /// Creates a from . - /// - public static Information FromMebibytes(double mebibytes) => new Information(mebibytes, InformationUnit.Mebibyte); - - /// - /// Creates a from . - /// - public static Information FromMebioctets(double mebioctets) => new Information(mebioctets, InformationUnit.Mebioctet); - - /// - /// Creates a from . - /// - public static Information FromMegabits(double megabits) => new Information(megabits, InformationUnit.Megabit); - - /// - /// Creates a from . - /// - public static Information FromMegabytes(double megabytes) => new Information(megabytes, InformationUnit.Megabyte); - - /// - /// Creates a from . - /// - public static Information FromMegaoctets(double megaoctets) => new Information(megaoctets, InformationUnit.Megaoctet); - - /// - /// Creates a from . - /// - public static Information FromOctets(double octets) => new Information(octets, InformationUnit.Octet); - - /// - /// Creates a from . - /// - public static Information FromPebibits(double pebibits) => new Information(pebibits, InformationUnit.Pebibit); - - /// - /// Creates a from . - /// - public static Information FromPebibytes(double pebibytes) => new Information(pebibytes, InformationUnit.Pebibyte); - - /// - /// Creates a from . - /// - public static Information FromPebioctets(double pebioctets) => new Information(pebioctets, InformationUnit.Pebioctet); - - /// - /// Creates a from . - /// - public static Information FromPetabits(double petabits) => new Information(petabits, InformationUnit.Petabit); - - /// - /// Creates a from . - /// - public static Information FromPetabytes(double petabytes) => new Information(petabytes, InformationUnit.Petabyte); - - /// - /// Creates a from . - /// - public static Information FromPetaoctets(double petaoctets) => new Information(petaoctets, InformationUnit.Petaoctet); - - /// - /// Creates a from . - /// - public static Information FromTebibits(double tebibits) => new Information(tebibits, InformationUnit.Tebibit); - - /// - /// Creates a from . - /// - public static Information FromTebibytes(double tebibytes) => new Information(tebibytes, InformationUnit.Tebibyte); - - /// - /// Creates a from . - /// - public static Information FromTebioctets(double tebioctets) => new Information(tebioctets, InformationUnit.Tebioctet); - - /// - /// Creates a from . - /// - public static Information FromTerabits(double terabits) => new Information(terabits, InformationUnit.Terabit); - - /// - /// Creates a from . - /// - public static Information FromTerabytes(double terabytes) => new Information(terabytes, InformationUnit.Terabyte); - - /// - /// Creates a from . - /// - public static Information FromTeraoctets(double teraoctets) => new Information(teraoctets, InformationUnit.Teraoctet); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Information unit value. - public static Information From(double value, InformationUnit fromUnit) - { - return new Information(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(InformationUnit unit) => GetValueAs(unit); - - /// - /// Converts this Information to another Information with the unit representation . - /// - /// A Information with the specified unit. - public Information ToUnit(InformationUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Information(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - InformationUnit.Bit => _value, - InformationUnit.Byte => _value * 8, - InformationUnit.Exabit => (_value) * 1e18d, - InformationUnit.Exabyte => (_value * 8) * 1e18d, - InformationUnit.Exaoctet => (_value * 8) * 1e18d, - InformationUnit.Exbibit => (_value) * (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - InformationUnit.Exbibyte => (_value * 8) * (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - InformationUnit.Exbioctet => (_value * 8) * (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - InformationUnit.Gibibit => (_value) * (1024d * 1024 * 1024), - InformationUnit.Gibibyte => (_value * 8) * (1024d * 1024 * 1024), - InformationUnit.Gibioctet => (_value * 8) * (1024d * 1024 * 1024), - InformationUnit.Gigabit => (_value) * 1e9d, - InformationUnit.Gigabyte => (_value * 8) * 1e9d, - InformationUnit.Gigaoctet => (_value * 8) * 1e9d, - InformationUnit.Kibibit => (_value) * 1024d, - InformationUnit.Kibibyte => (_value * 8) * 1024d, - InformationUnit.Kibioctet => (_value * 8) * 1024d, - InformationUnit.Kilobit => (_value) * 1e3d, - InformationUnit.Kilobyte => (_value * 8) * 1e3d, - InformationUnit.Kilooctet => (_value * 8) * 1e3d, - InformationUnit.Mebibit => (_value) * (1024d * 1024), - InformationUnit.Mebibyte => (_value * 8) * (1024d * 1024), - InformationUnit.Mebioctet => (_value * 8) * (1024d * 1024), - InformationUnit.Megabit => (_value) * 1e6d, - InformationUnit.Megabyte => (_value * 8) * 1e6d, - InformationUnit.Megaoctet => (_value * 8) * 1e6d, - InformationUnit.Octet => _value * 8, - InformationUnit.Pebibit => (_value) * (1024d * 1024 * 1024 * 1024 * 1024), - InformationUnit.Pebibyte => (_value * 8) * (1024d * 1024 * 1024 * 1024 * 1024), - InformationUnit.Pebioctet => (_value * 8) * (1024d * 1024 * 1024 * 1024 * 1024), - InformationUnit.Petabit => (_value) * 1e15d, - InformationUnit.Petabyte => (_value * 8) * 1e15d, - InformationUnit.Petaoctet => (_value * 8) * 1e15d, - InformationUnit.Tebibit => (_value) * (1024d * 1024 * 1024 * 1024), - InformationUnit.Tebibyte => (_value * 8) * (1024d * 1024 * 1024 * 1024), - InformationUnit.Tebioctet => (_value * 8) * (1024d * 1024 * 1024 * 1024), - InformationUnit.Terabit => (_value) * 1e12d, - InformationUnit.Terabyte => (_value * 8) * 1e12d, - InformationUnit.Teraoctet => (_value * 8) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(InformationUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - InformationUnit.Bit => baseUnitValue, - InformationUnit.Byte => baseUnitValue / 8, - InformationUnit.Exabit => (baseUnitValue) / 1e18d, - InformationUnit.Exabyte => (baseUnitValue / 8) / 1e18d, - InformationUnit.Exaoctet => (baseUnitValue / 8) / 1e18d, - InformationUnit.Exbibit => (baseUnitValue) / (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - InformationUnit.Exbibyte => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - InformationUnit.Exbioctet => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024 * 1024 * 1024), - InformationUnit.Gibibit => (baseUnitValue) / (1024d * 1024 * 1024), - InformationUnit.Gibibyte => (baseUnitValue / 8) / (1024d * 1024 * 1024), - InformationUnit.Gibioctet => (baseUnitValue / 8) / (1024d * 1024 * 1024), - InformationUnit.Gigabit => (baseUnitValue) / 1e9d, - InformationUnit.Gigabyte => (baseUnitValue / 8) / 1e9d, - InformationUnit.Gigaoctet => (baseUnitValue / 8) / 1e9d, - InformationUnit.Kibibit => (baseUnitValue) / 1024d, - InformationUnit.Kibibyte => (baseUnitValue / 8) / 1024d, - InformationUnit.Kibioctet => (baseUnitValue / 8) / 1024d, - InformationUnit.Kilobit => (baseUnitValue) / 1e3d, - InformationUnit.Kilobyte => (baseUnitValue / 8) / 1e3d, - InformationUnit.Kilooctet => (baseUnitValue / 8) / 1e3d, - InformationUnit.Mebibit => (baseUnitValue) / (1024d * 1024), - InformationUnit.Mebibyte => (baseUnitValue / 8) / (1024d * 1024), - InformationUnit.Mebioctet => (baseUnitValue / 8) / (1024d * 1024), - InformationUnit.Megabit => (baseUnitValue) / 1e6d, - InformationUnit.Megabyte => (baseUnitValue / 8) / 1e6d, - InformationUnit.Megaoctet => (baseUnitValue / 8) / 1e6d, - InformationUnit.Octet => baseUnitValue / 8, - InformationUnit.Pebibit => (baseUnitValue) / (1024d * 1024 * 1024 * 1024 * 1024), - InformationUnit.Pebibyte => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024 * 1024), - InformationUnit.Pebioctet => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024 * 1024), - InformationUnit.Petabit => (baseUnitValue) / 1e15d, - InformationUnit.Petabyte => (baseUnitValue / 8) / 1e15d, - InformationUnit.Petaoctet => (baseUnitValue / 8) / 1e15d, - InformationUnit.Tebibit => (baseUnitValue) / (1024d * 1024 * 1024 * 1024), - InformationUnit.Tebibyte => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024), - InformationUnit.Tebioctet => (baseUnitValue / 8) / (1024d * 1024 * 1024 * 1024), - InformationUnit.Terabit => (baseUnitValue) / 1e12d, - InformationUnit.Terabyte => (baseUnitValue / 8) / 1e12d, - InformationUnit.Teraoctet => (baseUnitValue / 8) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiance.g.cs deleted file mode 100644 index 7675fb9f51..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiance.g.cs +++ /dev/null @@ -1,313 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Irradiance is the intensity of ultraviolet (UV) or visible light incident on a surface. - /// - public struct Irradiance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly IrradianceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public IrradianceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Irradiance(double value, IrradianceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Irradiance, which is Second. All conversions go via this value. - /// - public static IrradianceUnit BaseUnit { get; } = IrradianceUnit.WattPerSquareMeter; - - /// - /// Represents the largest possible value of Irradiance. - /// - public static Irradiance MaxValue { get; } = new Irradiance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Irradiance. - /// - public static Irradiance MinValue { get; } = new Irradiance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Irradiance Zero { get; } = new Irradiance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerSquareCentimeter => As(IrradianceUnit.KilowattPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerSquareMeter => As(IrradianceUnit.KilowattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerSquareCentimeter => As(IrradianceUnit.MegawattPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerSquareMeter => As(IrradianceUnit.MegawattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrowattsPerSquareCentimeter => As(IrradianceUnit.MicrowattPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrowattsPerSquareMeter => As(IrradianceUnit.MicrowattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerSquareCentimeter => As(IrradianceUnit.MilliwattPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerSquareMeter => As(IrradianceUnit.MilliwattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanowattsPerSquareCentimeter => As(IrradianceUnit.NanowattPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanowattsPerSquareMeter => As(IrradianceUnit.NanowattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicowattsPerSquareCentimeter => As(IrradianceUnit.PicowattPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicowattsPerSquareMeter => As(IrradianceUnit.PicowattPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerSquareCentimeter => As(IrradianceUnit.WattPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerSquareMeter => As(IrradianceUnit.WattPerSquareMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Irradiance FromKilowattsPerSquareCentimeter(double kilowattspersquarecentimeter) => new Irradiance(kilowattspersquarecentimeter, IrradianceUnit.KilowattPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Irradiance FromKilowattsPerSquareMeter(double kilowattspersquaremeter) => new Irradiance(kilowattspersquaremeter, IrradianceUnit.KilowattPerSquareMeter); - - /// - /// Creates a from . - /// - public static Irradiance FromMegawattsPerSquareCentimeter(double megawattspersquarecentimeter) => new Irradiance(megawattspersquarecentimeter, IrradianceUnit.MegawattPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Irradiance FromMegawattsPerSquareMeter(double megawattspersquaremeter) => new Irradiance(megawattspersquaremeter, IrradianceUnit.MegawattPerSquareMeter); - - /// - /// Creates a from . - /// - public static Irradiance FromMicrowattsPerSquareCentimeter(double microwattspersquarecentimeter) => new Irradiance(microwattspersquarecentimeter, IrradianceUnit.MicrowattPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Irradiance FromMicrowattsPerSquareMeter(double microwattspersquaremeter) => new Irradiance(microwattspersquaremeter, IrradianceUnit.MicrowattPerSquareMeter); - - /// - /// Creates a from . - /// - public static Irradiance FromMilliwattsPerSquareCentimeter(double milliwattspersquarecentimeter) => new Irradiance(milliwattspersquarecentimeter, IrradianceUnit.MilliwattPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Irradiance FromMilliwattsPerSquareMeter(double milliwattspersquaremeter) => new Irradiance(milliwattspersquaremeter, IrradianceUnit.MilliwattPerSquareMeter); - - /// - /// Creates a from . - /// - public static Irradiance FromNanowattsPerSquareCentimeter(double nanowattspersquarecentimeter) => new Irradiance(nanowattspersquarecentimeter, IrradianceUnit.NanowattPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Irradiance FromNanowattsPerSquareMeter(double nanowattspersquaremeter) => new Irradiance(nanowattspersquaremeter, IrradianceUnit.NanowattPerSquareMeter); - - /// - /// Creates a from . - /// - public static Irradiance FromPicowattsPerSquareCentimeter(double picowattspersquarecentimeter) => new Irradiance(picowattspersquarecentimeter, IrradianceUnit.PicowattPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Irradiance FromPicowattsPerSquareMeter(double picowattspersquaremeter) => new Irradiance(picowattspersquaremeter, IrradianceUnit.PicowattPerSquareMeter); - - /// - /// Creates a from . - /// - public static Irradiance FromWattsPerSquareCentimeter(double wattspersquarecentimeter) => new Irradiance(wattspersquarecentimeter, IrradianceUnit.WattPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Irradiance FromWattsPerSquareMeter(double wattspersquaremeter) => new Irradiance(wattspersquaremeter, IrradianceUnit.WattPerSquareMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Irradiance unit value. - public static Irradiance From(double value, IrradianceUnit fromUnit) - { - return new Irradiance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(IrradianceUnit unit) => GetValueAs(unit); - - /// - /// Converts this Irradiance to another Irradiance with the unit representation . - /// - /// A Irradiance with the specified unit. - public Irradiance ToUnit(IrradianceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Irradiance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - IrradianceUnit.KilowattPerSquareCentimeter => (_value * 10000) * 1e3d, - IrradianceUnit.KilowattPerSquareMeter => (_value) * 1e3d, - IrradianceUnit.MegawattPerSquareCentimeter => (_value * 10000) * 1e6d, - IrradianceUnit.MegawattPerSquareMeter => (_value) * 1e6d, - IrradianceUnit.MicrowattPerSquareCentimeter => (_value * 10000) * 1e-6d, - IrradianceUnit.MicrowattPerSquareMeter => (_value) * 1e-6d, - IrradianceUnit.MilliwattPerSquareCentimeter => (_value * 10000) * 1e-3d, - IrradianceUnit.MilliwattPerSquareMeter => (_value) * 1e-3d, - IrradianceUnit.NanowattPerSquareCentimeter => (_value * 10000) * 1e-9d, - IrradianceUnit.NanowattPerSquareMeter => (_value) * 1e-9d, - IrradianceUnit.PicowattPerSquareCentimeter => (_value * 10000) * 1e-12d, - IrradianceUnit.PicowattPerSquareMeter => (_value) * 1e-12d, - IrradianceUnit.WattPerSquareCentimeter => _value * 10000, - IrradianceUnit.WattPerSquareMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(IrradianceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - IrradianceUnit.KilowattPerSquareCentimeter => (baseUnitValue * 0.0001) / 1e3d, - IrradianceUnit.KilowattPerSquareMeter => (baseUnitValue) / 1e3d, - IrradianceUnit.MegawattPerSquareCentimeter => (baseUnitValue * 0.0001) / 1e6d, - IrradianceUnit.MegawattPerSquareMeter => (baseUnitValue) / 1e6d, - IrradianceUnit.MicrowattPerSquareCentimeter => (baseUnitValue * 0.0001) / 1e-6d, - IrradianceUnit.MicrowattPerSquareMeter => (baseUnitValue) / 1e-6d, - IrradianceUnit.MilliwattPerSquareCentimeter => (baseUnitValue * 0.0001) / 1e-3d, - IrradianceUnit.MilliwattPerSquareMeter => (baseUnitValue) / 1e-3d, - IrradianceUnit.NanowattPerSquareCentimeter => (baseUnitValue * 0.0001) / 1e-9d, - IrradianceUnit.NanowattPerSquareMeter => (baseUnitValue) / 1e-9d, - IrradianceUnit.PicowattPerSquareCentimeter => (baseUnitValue * 0.0001) / 1e-12d, - IrradianceUnit.PicowattPerSquareMeter => (baseUnitValue) / 1e-12d, - IrradianceUnit.WattPerSquareCentimeter => baseUnitValue * 0.0001, - IrradianceUnit.WattPerSquareMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiation.g.cs deleted file mode 100644 index 0dadfda90a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiation.g.cs +++ /dev/null @@ -1,256 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Irradiation is the process by which an object is exposed to radiation. The exposure can originate from various sources, including natural sources. - /// - /// - /// https://en.wikipedia.org/wiki/Irradiation - /// - public struct Irradiation - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly IrradiationUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public IrradiationUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Irradiation(double value, IrradiationUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Irradiation, which is Second. All conversions go via this value. - /// - public static IrradiationUnit BaseUnit { get; } = IrradiationUnit.JoulePerSquareMeter; - - /// - /// Represents the largest possible value of Irradiation. - /// - public static Irradiation MaxValue { get; } = new Irradiation(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Irradiation. - /// - public static Irradiation MinValue { get; } = new Irradiation(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Irradiation Zero { get; } = new Irradiation(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BtusPerSquareFoot => As(IrradiationUnit.BtuPerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerSquareCentimeter => As(IrradiationUnit.JoulePerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerSquareMeter => As(IrradiationUnit.JoulePerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerSquareMillimeter => As(IrradiationUnit.JoulePerSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilobtusPerSquareFoot => As(IrradiationUnit.KilobtuPerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerSquareMeter => As(IrradiationUnit.KilojoulePerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattHoursPerSquareMeter => As(IrradiationUnit.KilowattHourPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillijoulesPerSquareCentimeter => As(IrradiationUnit.MillijoulePerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double WattHoursPerSquareMeter => As(IrradiationUnit.WattHourPerSquareMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Irradiation FromBtusPerSquareFoot(double btuspersquarefoot) => new Irradiation(btuspersquarefoot, IrradiationUnit.BtuPerSquareFoot); - - /// - /// Creates a from . - /// - public static Irradiation FromJoulesPerSquareCentimeter(double joulespersquarecentimeter) => new Irradiation(joulespersquarecentimeter, IrradiationUnit.JoulePerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Irradiation FromJoulesPerSquareMeter(double joulespersquaremeter) => new Irradiation(joulespersquaremeter, IrradiationUnit.JoulePerSquareMeter); - - /// - /// Creates a from . - /// - public static Irradiation FromJoulesPerSquareMillimeter(double joulespersquaremillimeter) => new Irradiation(joulespersquaremillimeter, IrradiationUnit.JoulePerSquareMillimeter); - - /// - /// Creates a from . - /// - public static Irradiation FromKilobtusPerSquareFoot(double kilobtuspersquarefoot) => new Irradiation(kilobtuspersquarefoot, IrradiationUnit.KilobtuPerSquareFoot); - - /// - /// Creates a from . - /// - public static Irradiation FromKilojoulesPerSquareMeter(double kilojoulespersquaremeter) => new Irradiation(kilojoulespersquaremeter, IrradiationUnit.KilojoulePerSquareMeter); - - /// - /// Creates a from . - /// - public static Irradiation FromKilowattHoursPerSquareMeter(double kilowatthourspersquaremeter) => new Irradiation(kilowatthourspersquaremeter, IrradiationUnit.KilowattHourPerSquareMeter); - - /// - /// Creates a from . - /// - public static Irradiation FromMillijoulesPerSquareCentimeter(double millijoulespersquarecentimeter) => new Irradiation(millijoulespersquarecentimeter, IrradiationUnit.MillijoulePerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Irradiation FromWattHoursPerSquareMeter(double watthourspersquaremeter) => new Irradiation(watthourspersquaremeter, IrradiationUnit.WattHourPerSquareMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Irradiation unit value. - public static Irradiation From(double value, IrradiationUnit fromUnit) - { - return new Irradiation(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(IrradiationUnit unit) => GetValueAs(unit); - - /// - /// Converts this Irradiation to another Irradiation with the unit representation . - /// - /// A Irradiation with the specified unit. - public Irradiation ToUnit(IrradiationUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Irradiation(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - IrradiationUnit.BtuPerSquareFoot => _value * 1055.05585262 / 9.290304e-2, - IrradiationUnit.JoulePerSquareCentimeter => _value * 1e4, - IrradiationUnit.JoulePerSquareMeter => _value, - IrradiationUnit.JoulePerSquareMillimeter => _value * 1e6, - IrradiationUnit.KilobtuPerSquareFoot => (_value * 1055.05585262 / 9.290304e-2) * 1e3d, - IrradiationUnit.KilojoulePerSquareMeter => (_value) * 1e3d, - IrradiationUnit.KilowattHourPerSquareMeter => (_value * 3600d) * 1e3d, - IrradiationUnit.MillijoulePerSquareCentimeter => (_value * 1e4) * 1e-3d, - IrradiationUnit.WattHourPerSquareMeter => _value * 3600d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(IrradiationUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - IrradiationUnit.BtuPerSquareFoot => baseUnitValue * 9.290304e-2 / 1055.05585262, - IrradiationUnit.JoulePerSquareCentimeter => baseUnitValue / 1e4, - IrradiationUnit.JoulePerSquareMeter => baseUnitValue, - IrradiationUnit.JoulePerSquareMillimeter => baseUnitValue / 1e6, - IrradiationUnit.KilobtuPerSquareFoot => (baseUnitValue * 9.290304e-2 / 1055.05585262) / 1e3d, - IrradiationUnit.KilojoulePerSquareMeter => (baseUnitValue) / 1e3d, - IrradiationUnit.KilowattHourPerSquareMeter => (baseUnitValue / 3600d) / 1e3d, - IrradiationUnit.MillijoulePerSquareCentimeter => (baseUnitValue / 1e4) / 1e-3d, - IrradiationUnit.WattHourPerSquareMeter => baseUnitValue / 3600d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Jerk.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Jerk.g.cs deleted file mode 100644 index f96b0cf1a9..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Jerk.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// - /// - public struct Jerk - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly JerkUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public JerkUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Jerk(double value, JerkUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Jerk, which is Second. All conversions go via this value. - /// - public static JerkUnit BaseUnit { get; } = JerkUnit.MeterPerSecondCubed; - - /// - /// Represents the largest possible value of Jerk. - /// - public static Jerk MaxValue { get; } = new Jerk(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Jerk. - /// - public static Jerk MinValue { get; } = new Jerk(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Jerk Zero { get; } = new Jerk(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentimetersPerSecondCubed => As(JerkUnit.CentimeterPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double DecimetersPerSecondCubed => As(JerkUnit.DecimeterPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double FeetPerSecondCubed => As(JerkUnit.FootPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double InchesPerSecondCubed => As(JerkUnit.InchPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double KilometersPerSecondCubed => As(JerkUnit.KilometerPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double MetersPerSecondCubed => As(JerkUnit.MeterPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrometersPerSecondCubed => As(JerkUnit.MicrometerPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersPerSecondCubed => As(JerkUnit.MillimeterPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double MillistandardGravitiesPerSecond => As(JerkUnit.MillistandardGravitiesPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NanometersPerSecondCubed => As(JerkUnit.NanometerPerSecondCubed); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardGravitiesPerSecond => As(JerkUnit.StandardGravitiesPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Jerk FromCentimetersPerSecondCubed(double centimeterspersecondcubed) => new Jerk(centimeterspersecondcubed, JerkUnit.CentimeterPerSecondCubed); - - /// - /// Creates a from . - /// - public static Jerk FromDecimetersPerSecondCubed(double decimeterspersecondcubed) => new Jerk(decimeterspersecondcubed, JerkUnit.DecimeterPerSecondCubed); - - /// - /// Creates a from . - /// - public static Jerk FromFeetPerSecondCubed(double feetpersecondcubed) => new Jerk(feetpersecondcubed, JerkUnit.FootPerSecondCubed); - - /// - /// Creates a from . - /// - public static Jerk FromInchesPerSecondCubed(double inchespersecondcubed) => new Jerk(inchespersecondcubed, JerkUnit.InchPerSecondCubed); - - /// - /// Creates a from . - /// - public static Jerk FromKilometersPerSecondCubed(double kilometerspersecondcubed) => new Jerk(kilometerspersecondcubed, JerkUnit.KilometerPerSecondCubed); - - /// - /// Creates a from . - /// - public static Jerk FromMetersPerSecondCubed(double meterspersecondcubed) => new Jerk(meterspersecondcubed, JerkUnit.MeterPerSecondCubed); - - /// - /// Creates a from . - /// - public static Jerk FromMicrometersPerSecondCubed(double micrometerspersecondcubed) => new Jerk(micrometerspersecondcubed, JerkUnit.MicrometerPerSecondCubed); - - /// - /// Creates a from . - /// - public static Jerk FromMillimetersPerSecondCubed(double millimeterspersecondcubed) => new Jerk(millimeterspersecondcubed, JerkUnit.MillimeterPerSecondCubed); - - /// - /// Creates a from . - /// - public static Jerk FromMillistandardGravitiesPerSecond(double millistandardgravitiespersecond) => new Jerk(millistandardgravitiespersecond, JerkUnit.MillistandardGravitiesPerSecond); - - /// - /// Creates a from . - /// - public static Jerk FromNanometersPerSecondCubed(double nanometerspersecondcubed) => new Jerk(nanometerspersecondcubed, JerkUnit.NanometerPerSecondCubed); - - /// - /// Creates a from . - /// - public static Jerk FromStandardGravitiesPerSecond(double standardgravitiespersecond) => new Jerk(standardgravitiespersecond, JerkUnit.StandardGravitiesPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Jerk unit value. - public static Jerk From(double value, JerkUnit fromUnit) - { - return new Jerk(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(JerkUnit unit) => GetValueAs(unit); - - /// - /// Converts this Jerk to another Jerk with the unit representation . - /// - /// A Jerk with the specified unit. - public Jerk ToUnit(JerkUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Jerk(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - JerkUnit.CentimeterPerSecondCubed => (_value) * 1e-2d, - JerkUnit.DecimeterPerSecondCubed => (_value) * 1e-1d, - JerkUnit.FootPerSecondCubed => _value * 0.304800, - JerkUnit.InchPerSecondCubed => _value * 0.0254, - JerkUnit.KilometerPerSecondCubed => (_value) * 1e3d, - JerkUnit.MeterPerSecondCubed => _value, - JerkUnit.MicrometerPerSecondCubed => (_value) * 1e-6d, - JerkUnit.MillimeterPerSecondCubed => (_value) * 1e-3d, - JerkUnit.MillistandardGravitiesPerSecond => (_value * 9.80665) * 1e-3d, - JerkUnit.NanometerPerSecondCubed => (_value) * 1e-9d, - JerkUnit.StandardGravitiesPerSecond => _value * 9.80665, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(JerkUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - JerkUnit.CentimeterPerSecondCubed => (baseUnitValue) / 1e-2d, - JerkUnit.DecimeterPerSecondCubed => (baseUnitValue) / 1e-1d, - JerkUnit.FootPerSecondCubed => baseUnitValue / 0.304800, - JerkUnit.InchPerSecondCubed => baseUnitValue / 0.0254, - JerkUnit.KilometerPerSecondCubed => (baseUnitValue) / 1e3d, - JerkUnit.MeterPerSecondCubed => baseUnitValue, - JerkUnit.MicrometerPerSecondCubed => (baseUnitValue) / 1e-6d, - JerkUnit.MillimeterPerSecondCubed => (baseUnitValue) / 1e-3d, - JerkUnit.MillistandardGravitiesPerSecond => (baseUnitValue / 9.80665) / 1e-3d, - JerkUnit.NanometerPerSecondCubed => (baseUnitValue) / 1e-9d, - JerkUnit.StandardGravitiesPerSecond => baseUnitValue / 9.80665, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/KinematicViscosity.g.cs deleted file mode 100644 index 5f7200be13..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/KinematicViscosity.g.cs +++ /dev/null @@ -1,256 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The viscosity of a fluid is a measure of its resistance to gradual deformation by shear stress or tensile stress. - /// - /// - /// http://en.wikipedia.org/wiki/Viscosity - /// - public struct KinematicViscosity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly KinematicViscosityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public KinematicViscosityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public KinematicViscosity(double value, KinematicViscosityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of KinematicViscosity, which is Second. All conversions go via this value. - /// - public static KinematicViscosityUnit BaseUnit { get; } = KinematicViscosityUnit.SquareMeterPerSecond; - - /// - /// Represents the largest possible value of KinematicViscosity. - /// - public static KinematicViscosity MaxValue { get; } = new KinematicViscosity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of KinematicViscosity. - /// - public static KinematicViscosity MinValue { get; } = new KinematicViscosity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static KinematicViscosity Zero { get; } = new KinematicViscosity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Centistokes => As(KinematicViscosityUnit.Centistokes); - - /// - /// Gets a value of this quantity converted into - /// - public double Decistokes => As(KinematicViscosityUnit.Decistokes); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilostokes => As(KinematicViscosityUnit.Kilostokes); - - /// - /// Gets a value of this quantity converted into - /// - public double Microstokes => As(KinematicViscosityUnit.Microstokes); - - /// - /// Gets a value of this quantity converted into - /// - public double Millistokes => As(KinematicViscosityUnit.Millistokes); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanostokes => As(KinematicViscosityUnit.Nanostokes); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareFeetPerSecond => As(KinematicViscosityUnit.SquareFootPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMetersPerSecond => As(KinematicViscosityUnit.SquareMeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Stokes => As(KinematicViscosityUnit.Stokes); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static KinematicViscosity FromCentistokes(double centistokes) => new KinematicViscosity(centistokes, KinematicViscosityUnit.Centistokes); - - /// - /// Creates a from . - /// - public static KinematicViscosity FromDecistokes(double decistokes) => new KinematicViscosity(decistokes, KinematicViscosityUnit.Decistokes); - - /// - /// Creates a from . - /// - public static KinematicViscosity FromKilostokes(double kilostokes) => new KinematicViscosity(kilostokes, KinematicViscosityUnit.Kilostokes); - - /// - /// Creates a from . - /// - public static KinematicViscosity FromMicrostokes(double microstokes) => new KinematicViscosity(microstokes, KinematicViscosityUnit.Microstokes); - - /// - /// Creates a from . - /// - public static KinematicViscosity FromMillistokes(double millistokes) => new KinematicViscosity(millistokes, KinematicViscosityUnit.Millistokes); - - /// - /// Creates a from . - /// - public static KinematicViscosity FromNanostokes(double nanostokes) => new KinematicViscosity(nanostokes, KinematicViscosityUnit.Nanostokes); - - /// - /// Creates a from . - /// - public static KinematicViscosity FromSquareFeetPerSecond(double squarefeetpersecond) => new KinematicViscosity(squarefeetpersecond, KinematicViscosityUnit.SquareFootPerSecond); - - /// - /// Creates a from . - /// - public static KinematicViscosity FromSquareMetersPerSecond(double squaremeterspersecond) => new KinematicViscosity(squaremeterspersecond, KinematicViscosityUnit.SquareMeterPerSecond); - - /// - /// Creates a from . - /// - public static KinematicViscosity FromStokes(double stokes) => new KinematicViscosity(stokes, KinematicViscosityUnit.Stokes); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// KinematicViscosity unit value. - public static KinematicViscosity From(double value, KinematicViscosityUnit fromUnit) - { - return new KinematicViscosity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(KinematicViscosityUnit unit) => GetValueAs(unit); - - /// - /// Converts this KinematicViscosity to another KinematicViscosity with the unit representation . - /// - /// A KinematicViscosity with the specified unit. - public KinematicViscosity ToUnit(KinematicViscosityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new KinematicViscosity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - KinematicViscosityUnit.Centistokes => (_value / 1e4) * 1e-2d, - KinematicViscosityUnit.Decistokes => (_value / 1e4) * 1e-1d, - KinematicViscosityUnit.Kilostokes => (_value / 1e4) * 1e3d, - KinematicViscosityUnit.Microstokes => (_value / 1e4) * 1e-6d, - KinematicViscosityUnit.Millistokes => (_value / 1e4) * 1e-3d, - KinematicViscosityUnit.Nanostokes => (_value / 1e4) * 1e-9d, - KinematicViscosityUnit.SquareFootPerSecond => _value * 9.290304e-2, - KinematicViscosityUnit.SquareMeterPerSecond => _value, - KinematicViscosityUnit.Stokes => _value / 1e4, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(KinematicViscosityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - KinematicViscosityUnit.Centistokes => (baseUnitValue * 1e4) / 1e-2d, - KinematicViscosityUnit.Decistokes => (baseUnitValue * 1e4) / 1e-1d, - KinematicViscosityUnit.Kilostokes => (baseUnitValue * 1e4) / 1e3d, - KinematicViscosityUnit.Microstokes => (baseUnitValue * 1e4) / 1e-6d, - KinematicViscosityUnit.Millistokes => (baseUnitValue * 1e4) / 1e-3d, - KinematicViscosityUnit.Nanostokes => (baseUnitValue * 1e4) / 1e-9d, - KinematicViscosityUnit.SquareFootPerSecond => baseUnitValue / 9.290304e-2, - KinematicViscosityUnit.SquareMeterPerSecond => baseUnitValue, - KinematicViscosityUnit.Stokes => baseUnitValue * 1e4, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LeakRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/LeakRate.g.cs deleted file mode 100644 index 0ae299985c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LeakRate.g.cs +++ /dev/null @@ -1,196 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A leakage rate of QL = 1 Pa-m³/s is given when the pressure in a closed, evacuated container with a volume of 1 m³ rises by 1 Pa per second or when the pressure in the container drops by 1 Pa in the event of overpressure. - /// - /// - /// https://www.leybold.com/en-in/knowledge/vacuum-fundamentals/leak-detection/definition-and-measurement-of-vacuum-leaks - /// - public struct LeakRate - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly LeakRateUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public LeakRateUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public LeakRate(double value, LeakRateUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of LeakRate, which is Second. All conversions go via this value. - /// - public static LeakRateUnit BaseUnit { get; } = LeakRateUnit.PascalCubicMeterPerSecond; - - /// - /// Represents the largest possible value of LeakRate. - /// - public static LeakRate MaxValue { get; } = new LeakRate(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of LeakRate. - /// - public static LeakRate MinValue { get; } = new LeakRate(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static LeakRate Zero { get; } = new LeakRate(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double AtmCubicCentimetersPerSecond => As(LeakRateUnit.AtmCubicCentimeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillibarLitersPerSecond => As(LeakRateUnit.MillibarLiterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalCubicMetersPerSecond => As(LeakRateUnit.PascalCubicMeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double TorrLitersPerSecond => As(LeakRateUnit.TorrLiterPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static LeakRate FromAtmCubicCentimetersPerSecond(double atmcubiccentimeterspersecond) => new LeakRate(atmcubiccentimeterspersecond, LeakRateUnit.AtmCubicCentimeterPerSecond); - - /// - /// Creates a from . - /// - public static LeakRate FromMillibarLitersPerSecond(double millibarliterspersecond) => new LeakRate(millibarliterspersecond, LeakRateUnit.MillibarLiterPerSecond); - - /// - /// Creates a from . - /// - public static LeakRate FromPascalCubicMetersPerSecond(double pascalcubicmeterspersecond) => new LeakRate(pascalcubicmeterspersecond, LeakRateUnit.PascalCubicMeterPerSecond); - - /// - /// Creates a from . - /// - public static LeakRate FromTorrLitersPerSecond(double torrliterspersecond) => new LeakRate(torrliterspersecond, LeakRateUnit.TorrLiterPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// LeakRate unit value. - public static LeakRate From(double value, LeakRateUnit fromUnit) - { - return new LeakRate(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(LeakRateUnit unit) => GetValueAs(unit); - - /// - /// Converts this LeakRate to another LeakRate with the unit representation . - /// - /// A LeakRate with the specified unit. - public LeakRate ToUnit(LeakRateUnit unit) - { - var convertedValue = GetValueAs(unit); - return new LeakRate(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - LeakRateUnit.AtmCubicCentimeterPerSecond => _value / (1e6 / 101325), - LeakRateUnit.MillibarLiterPerSecond => _value / 10, - LeakRateUnit.PascalCubicMeterPerSecond => _value, - LeakRateUnit.TorrLiterPerSecond => _value / 7.5, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(LeakRateUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - LeakRateUnit.AtmCubicCentimeterPerSecond => baseUnitValue * (1e6 / 101325), - LeakRateUnit.MillibarLiterPerSecond => baseUnitValue * 10, - LeakRateUnit.PascalCubicMeterPerSecond => baseUnitValue, - LeakRateUnit.TorrLiterPerSecond => baseUnitValue * 7.5, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Length.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Length.g.cs deleted file mode 100644 index a8540d56d6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Length.g.cs +++ /dev/null @@ -1,649 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Many different units of length have been used around the world. The main units in modern use are U.S. customary units in the United States and the Metric system elsewhere. British Imperial units are still used for some purposes in the United Kingdom and some other countries. The metric system is sub-divided into SI and non-SI units. - /// - public struct Length - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly LengthUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public LengthUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Length(double value, LengthUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Length, which is Second. All conversions go via this value. - /// - public static LengthUnit BaseUnit { get; } = LengthUnit.Meter; - - /// - /// Represents the largest possible value of Length. - /// - public static Length MaxValue { get; } = new Length(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Length. - /// - public static Length MinValue { get; } = new Length(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Length Zero { get; } = new Length(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Angstroms => As(LengthUnit.Angstrom); - - /// - /// Gets a value of this quantity converted into - /// - public double AstronomicalUnits => As(LengthUnit.AstronomicalUnit); - - /// - /// Gets a value of this quantity converted into - /// - public double Centimeters => As(LengthUnit.Centimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double Chains => As(LengthUnit.Chain); - - /// - /// Gets a value of this quantity converted into - /// - public double DataMiles => As(LengthUnit.DataMile); - - /// - /// Gets a value of this quantity converted into - /// - public double Decameters => As(LengthUnit.Decameter); - - /// - /// Gets a value of this quantity converted into - /// - public double Decimeters => As(LengthUnit.Decimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DtpPicas => As(LengthUnit.DtpPica); - - /// - /// Gets a value of this quantity converted into - /// - public double DtpPoints => As(LengthUnit.DtpPoint); - - /// - /// Gets a value of this quantity converted into - /// - public double Fathoms => As(LengthUnit.Fathom); - - /// - /// Gets a value of this quantity converted into - /// - public double Femtometers => As(LengthUnit.Femtometer); - - /// - /// Gets a value of this quantity converted into - /// - public double Feet => As(LengthUnit.Foot); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigameters => As(LengthUnit.Gigameter); - - /// - /// Gets a value of this quantity converted into - /// - public double Hands => As(LengthUnit.Hand); - - /// - /// Gets a value of this quantity converted into - /// - public double Hectometers => As(LengthUnit.Hectometer); - - /// - /// Gets a value of this quantity converted into - /// - public double Inches => As(LengthUnit.Inch); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilofeet => As(LengthUnit.Kilofoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilolightYears => As(LengthUnit.KilolightYear); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilometers => As(LengthUnit.Kilometer); - - /// - /// Gets a value of this quantity converted into - /// - public double Kiloparsecs => As(LengthUnit.Kiloparsec); - - /// - /// Gets a value of this quantity converted into - /// - public double Kiloyards => As(LengthUnit.Kiloyard); - - /// - /// Gets a value of this quantity converted into - /// - public double LightYears => As(LengthUnit.LightYear); - - /// - /// Gets a value of this quantity converted into - /// - public double MegalightYears => As(LengthUnit.MegalightYear); - - /// - /// Gets a value of this quantity converted into - /// - public double Megameters => As(LengthUnit.Megameter); - - /// - /// Gets a value of this quantity converted into - /// - public double Megaparsecs => As(LengthUnit.Megaparsec); - - /// - /// Gets a value of this quantity converted into - /// - public double Meters => As(LengthUnit.Meter); - - /// - /// Gets a value of this quantity converted into - /// - public double Microinches => As(LengthUnit.Microinch); - - /// - /// Gets a value of this quantity converted into - /// - public double Micrometers => As(LengthUnit.Micrometer); - - /// - /// Gets a value of this quantity converted into - /// - public double Mils => As(LengthUnit.Mil); - - /// - /// Gets a value of this quantity converted into - /// - public double Miles => As(LengthUnit.Mile); - - /// - /// Gets a value of this quantity converted into - /// - public double Millimeters => As(LengthUnit.Millimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanometers => As(LengthUnit.Nanometer); - - /// - /// Gets a value of this quantity converted into - /// - public double NauticalMiles => As(LengthUnit.NauticalMile); - - /// - /// Gets a value of this quantity converted into - /// - public double Parsecs => As(LengthUnit.Parsec); - - /// - /// Gets a value of this quantity converted into - /// - public double Picometers => As(LengthUnit.Picometer); - - /// - /// Gets a value of this quantity converted into - /// - public double PrinterPicas => As(LengthUnit.PrinterPica); - - /// - /// Gets a value of this quantity converted into - /// - public double PrinterPoints => As(LengthUnit.PrinterPoint); - - /// - /// Gets a value of this quantity converted into - /// - public double Shackles => As(LengthUnit.Shackle); - - /// - /// Gets a value of this quantity converted into - /// - public double SolarRadiuses => As(LengthUnit.SolarRadius); - - /// - /// Gets a value of this quantity converted into - /// - public double Twips => As(LengthUnit.Twip); - - /// - /// Gets a value of this quantity converted into - /// - public double UsSurveyFeet => As(LengthUnit.UsSurveyFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double Yards => As(LengthUnit.Yard); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Length FromAngstroms(double angstroms) => new Length(angstroms, LengthUnit.Angstrom); - - /// - /// Creates a from . - /// - public static Length FromAstronomicalUnits(double astronomicalunits) => new Length(astronomicalunits, LengthUnit.AstronomicalUnit); - - /// - /// Creates a from . - /// - public static Length FromCentimeters(double centimeters) => new Length(centimeters, LengthUnit.Centimeter); - - /// - /// Creates a from . - /// - public static Length FromChains(double chains) => new Length(chains, LengthUnit.Chain); - - /// - /// Creates a from . - /// - public static Length FromDataMiles(double datamiles) => new Length(datamiles, LengthUnit.DataMile); - - /// - /// Creates a from . - /// - public static Length FromDecameters(double decameters) => new Length(decameters, LengthUnit.Decameter); - - /// - /// Creates a from . - /// - public static Length FromDecimeters(double decimeters) => new Length(decimeters, LengthUnit.Decimeter); - - /// - /// Creates a from . - /// - public static Length FromDtpPicas(double dtppicas) => new Length(dtppicas, LengthUnit.DtpPica); - - /// - /// Creates a from . - /// - public static Length FromDtpPoints(double dtppoints) => new Length(dtppoints, LengthUnit.DtpPoint); - - /// - /// Creates a from . - /// - public static Length FromFathoms(double fathoms) => new Length(fathoms, LengthUnit.Fathom); - - /// - /// Creates a from . - /// - public static Length FromFemtometers(double femtometers) => new Length(femtometers, LengthUnit.Femtometer); - - /// - /// Creates a from . - /// - public static Length FromFeet(double feet) => new Length(feet, LengthUnit.Foot); - - /// - /// Creates a from . - /// - public static Length FromGigameters(double gigameters) => new Length(gigameters, LengthUnit.Gigameter); - - /// - /// Creates a from . - /// - public static Length FromHands(double hands) => new Length(hands, LengthUnit.Hand); - - /// - /// Creates a from . - /// - public static Length FromHectometers(double hectometers) => new Length(hectometers, LengthUnit.Hectometer); - - /// - /// Creates a from . - /// - public static Length FromInches(double inches) => new Length(inches, LengthUnit.Inch); - - /// - /// Creates a from . - /// - public static Length FromKilofeet(double kilofeet) => new Length(kilofeet, LengthUnit.Kilofoot); - - /// - /// Creates a from . - /// - public static Length FromKilolightYears(double kilolightyears) => new Length(kilolightyears, LengthUnit.KilolightYear); - - /// - /// Creates a from . - /// - public static Length FromKilometers(double kilometers) => new Length(kilometers, LengthUnit.Kilometer); - - /// - /// Creates a from . - /// - public static Length FromKiloparsecs(double kiloparsecs) => new Length(kiloparsecs, LengthUnit.Kiloparsec); - - /// - /// Creates a from . - /// - public static Length FromKiloyards(double kiloyards) => new Length(kiloyards, LengthUnit.Kiloyard); - - /// - /// Creates a from . - /// - public static Length FromLightYears(double lightyears) => new Length(lightyears, LengthUnit.LightYear); - - /// - /// Creates a from . - /// - public static Length FromMegalightYears(double megalightyears) => new Length(megalightyears, LengthUnit.MegalightYear); - - /// - /// Creates a from . - /// - public static Length FromMegameters(double megameters) => new Length(megameters, LengthUnit.Megameter); - - /// - /// Creates a from . - /// - public static Length FromMegaparsecs(double megaparsecs) => new Length(megaparsecs, LengthUnit.Megaparsec); - - /// - /// Creates a from . - /// - public static Length FromMeters(double meters) => new Length(meters, LengthUnit.Meter); - - /// - /// Creates a from . - /// - public static Length FromMicroinches(double microinches) => new Length(microinches, LengthUnit.Microinch); - - /// - /// Creates a from . - /// - public static Length FromMicrometers(double micrometers) => new Length(micrometers, LengthUnit.Micrometer); - - /// - /// Creates a from . - /// - public static Length FromMils(double mils) => new Length(mils, LengthUnit.Mil); - - /// - /// Creates a from . - /// - public static Length FromMiles(double miles) => new Length(miles, LengthUnit.Mile); - - /// - /// Creates a from . - /// - public static Length FromMillimeters(double millimeters) => new Length(millimeters, LengthUnit.Millimeter); - - /// - /// Creates a from . - /// - public static Length FromNanometers(double nanometers) => new Length(nanometers, LengthUnit.Nanometer); - - /// - /// Creates a from . - /// - public static Length FromNauticalMiles(double nauticalmiles) => new Length(nauticalmiles, LengthUnit.NauticalMile); - - /// - /// Creates a from . - /// - public static Length FromParsecs(double parsecs) => new Length(parsecs, LengthUnit.Parsec); - - /// - /// Creates a from . - /// - public static Length FromPicometers(double picometers) => new Length(picometers, LengthUnit.Picometer); - - /// - /// Creates a from . - /// - public static Length FromPrinterPicas(double printerpicas) => new Length(printerpicas, LengthUnit.PrinterPica); - - /// - /// Creates a from . - /// - public static Length FromPrinterPoints(double printerpoints) => new Length(printerpoints, LengthUnit.PrinterPoint); - - /// - /// Creates a from . - /// - public static Length FromShackles(double shackles) => new Length(shackles, LengthUnit.Shackle); - - /// - /// Creates a from . - /// - public static Length FromSolarRadiuses(double solarradiuses) => new Length(solarradiuses, LengthUnit.SolarRadius); - - /// - /// Creates a from . - /// - public static Length FromTwips(double twips) => new Length(twips, LengthUnit.Twip); - - /// - /// Creates a from . - /// - public static Length FromUsSurveyFeet(double ussurveyfeet) => new Length(ussurveyfeet, LengthUnit.UsSurveyFoot); - - /// - /// Creates a from . - /// - public static Length FromYards(double yards) => new Length(yards, LengthUnit.Yard); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Length unit value. - public static Length From(double value, LengthUnit fromUnit) - { - return new Length(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(LengthUnit unit) => GetValueAs(unit); - - /// - /// Converts this Length to another Length with the unit representation . - /// - /// A Length with the specified unit. - public Length ToUnit(LengthUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Length(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - LengthUnit.Angstrom => _value * 1e-10, - LengthUnit.AstronomicalUnit => _value * 1.4959787070e11, - LengthUnit.Centimeter => (_value) * 1e-2d, - LengthUnit.Chain => _value * 20.1168, - LengthUnit.DataMile => _value * 1828.8, - LengthUnit.Decameter => (_value) * 1e1d, - LengthUnit.Decimeter => (_value) * 1e-1d, - LengthUnit.DtpPica => _value * 2.54e-2 / 6, - LengthUnit.DtpPoint => _value * 2.54e-2 / 72, - LengthUnit.Fathom => _value * 1.8288, - LengthUnit.Femtometer => (_value) * 1e-15d, - LengthUnit.Foot => _value * 0.3048, - LengthUnit.Gigameter => (_value) * 1e9d, - LengthUnit.Hand => _value * 1.016e-1, - LengthUnit.Hectometer => (_value) * 1e2d, - LengthUnit.Inch => _value * 2.54e-2, - LengthUnit.Kilofoot => (_value * 0.3048) * 1e3d, - LengthUnit.KilolightYear => (_value * 9.46073047258e15) * 1e3d, - LengthUnit.Kilometer => (_value) * 1e3d, - LengthUnit.Kiloparsec => (_value * 3.08567758128e16) * 1e3d, - LengthUnit.Kiloyard => (_value * 0.9144) * 1e3d, - LengthUnit.LightYear => _value * 9.46073047258e15, - LengthUnit.MegalightYear => (_value * 9.46073047258e15) * 1e6d, - LengthUnit.Megameter => (_value) * 1e6d, - LengthUnit.Megaparsec => (_value * 3.08567758128e16) * 1e6d, - LengthUnit.Meter => _value, - LengthUnit.Microinch => _value * 2.54e-8, - LengthUnit.Micrometer => (_value) * 1e-6d, - LengthUnit.Mil => _value * 2.54e-5, - LengthUnit.Mile => _value * 1609.344, - LengthUnit.Millimeter => (_value) * 1e-3d, - LengthUnit.Nanometer => (_value) * 1e-9d, - LengthUnit.NauticalMile => _value * 1852, - LengthUnit.Parsec => _value * 3.08567758128e16, - LengthUnit.Picometer => (_value) * 1e-12d, - LengthUnit.PrinterPica => _value * 2.54e-2 * 400 / 2409, - LengthUnit.PrinterPoint => _value * 2.54e-2 / 72.27 , - LengthUnit.Shackle => _value * 27.432, - LengthUnit.SolarRadius => _value * 6.95700e8, - LengthUnit.Twip => _value * 2.54e-2 / 1440, - LengthUnit.UsSurveyFoot => _value * 1200 / 3937, - LengthUnit.Yard => _value * 0.9144, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(LengthUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - LengthUnit.Angstrom => baseUnitValue / 1e-10, - LengthUnit.AstronomicalUnit => baseUnitValue / 1.4959787070e11, - LengthUnit.Centimeter => (baseUnitValue) / 1e-2d, - LengthUnit.Chain => baseUnitValue / 20.1168, - LengthUnit.DataMile => baseUnitValue / 1828.8, - LengthUnit.Decameter => (baseUnitValue) / 1e1d, - LengthUnit.Decimeter => (baseUnitValue) / 1e-1d, - LengthUnit.DtpPica => baseUnitValue * 6 / 2.54e-2, - LengthUnit.DtpPoint => baseUnitValue * 72 / 2.54e-2, - LengthUnit.Fathom => baseUnitValue / 1.8288, - LengthUnit.Femtometer => (baseUnitValue) / 1e-15d, - LengthUnit.Foot => baseUnitValue / 0.3048, - LengthUnit.Gigameter => (baseUnitValue) / 1e9d, - LengthUnit.Hand => baseUnitValue / 1.016e-1, - LengthUnit.Hectometer => (baseUnitValue) / 1e2d, - LengthUnit.Inch => baseUnitValue / 2.54e-2, - LengthUnit.Kilofoot => (baseUnitValue / 0.3048) / 1e3d, - LengthUnit.KilolightYear => (baseUnitValue / 9.46073047258e15) / 1e3d, - LengthUnit.Kilometer => (baseUnitValue) / 1e3d, - LengthUnit.Kiloparsec => (baseUnitValue / 3.08567758128e16) / 1e3d, - LengthUnit.Kiloyard => (baseUnitValue / 0.9144) / 1e3d, - LengthUnit.LightYear => baseUnitValue / 9.46073047258e15, - LengthUnit.MegalightYear => (baseUnitValue / 9.46073047258e15) / 1e6d, - LengthUnit.Megameter => (baseUnitValue) / 1e6d, - LengthUnit.Megaparsec => (baseUnitValue / 3.08567758128e16) / 1e6d, - LengthUnit.Meter => baseUnitValue, - LengthUnit.Microinch => baseUnitValue / 2.54e-8, - LengthUnit.Micrometer => (baseUnitValue) / 1e-6d, - LengthUnit.Mil => baseUnitValue / 2.54e-5, - LengthUnit.Mile => baseUnitValue / 1609.344, - LengthUnit.Millimeter => (baseUnitValue) / 1e-3d, - LengthUnit.Nanometer => (baseUnitValue) / 1e-9d, - LengthUnit.NauticalMile => baseUnitValue / 1852, - LengthUnit.Parsec => baseUnitValue / 3.08567758128e16, - LengthUnit.Picometer => (baseUnitValue) / 1e-12d, - LengthUnit.PrinterPica => baseUnitValue / (2.54e-2 * 400 / 2409), - LengthUnit.PrinterPoint => baseUnitValue * 72.27 / 2.54e-2, - LengthUnit.Shackle => baseUnitValue / 27.432, - LengthUnit.SolarRadius => baseUnitValue / 6.95700e8, - LengthUnit.Twip => baseUnitValue * 1440 / 2.54e-2, - LengthUnit.UsSurveyFoot => baseUnitValue * 3937 / 1200, - LengthUnit.Yard => baseUnitValue / 0.9144, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Level.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Level.g.cs deleted file mode 100644 index 24cc01e92f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Level.g.cs +++ /dev/null @@ -1,169 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Level is the logarithm of the ratio of a quantity Q to a reference value of that quantity, Q₀, expressed in dimensionless units. - /// - public struct Level - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly LevelUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public LevelUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Level(double value, LevelUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Level, which is Second. All conversions go via this value. - /// - public static LevelUnit BaseUnit { get; } = LevelUnit.Decibel; - - /// - /// Represents the largest possible value of Level. - /// - public static Level MaxValue { get; } = new Level(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Level. - /// - public static Level MinValue { get; } = new Level(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Level Zero { get; } = new Level(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Decibels => As(LevelUnit.Decibel); - - /// - /// Gets a value of this quantity converted into - /// - public double Nepers => As(LevelUnit.Neper); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Level FromDecibels(double decibels) => new Level(decibels, LevelUnit.Decibel); - - /// - /// Creates a from . - /// - public static Level FromNepers(double nepers) => new Level(nepers, LevelUnit.Neper); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Level unit value. - public static Level From(double value, LevelUnit fromUnit) - { - return new Level(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(LevelUnit unit) => GetValueAs(unit); - - /// - /// Converts this Level to another Level with the unit representation . - /// - /// A Level with the specified unit. - public Level ToUnit(LevelUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Level(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - LevelUnit.Decibel => _value, - LevelUnit.Neper => (1 / 0.115129254) * _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(LevelUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - LevelUnit.Decibel => baseUnitValue, - LevelUnit.Neper => 0.115129254 * baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearDensity.g.cs deleted file mode 100644 index 5c7c965719..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearDensity.g.cs +++ /dev/null @@ -1,364 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The Linear Density, or more precisely, the linear mass density, of a substance is its mass per unit length. The term linear density is most often used when describing the characteristics of one-dimensional objects, although linear density can also be used to describe the density of a three-dimensional quantity along one particular dimension. - /// - /// - /// http://en.wikipedia.org/wiki/Linear_density - /// - public struct LinearDensity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly LinearDensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public LinearDensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public LinearDensity(double value, LinearDensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of LinearDensity, which is Second. All conversions go via this value. - /// - public static LinearDensityUnit BaseUnit { get; } = LinearDensityUnit.KilogramPerMeter; - - /// - /// Represents the largest possible value of LinearDensity. - /// - public static LinearDensity MaxValue { get; } = new LinearDensity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of LinearDensity. - /// - public static LinearDensity MinValue { get; } = new LinearDensity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static LinearDensity Zero { get; } = new LinearDensity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerCentimeter => As(LinearDensityUnit.GramPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerFoot => As(LinearDensityUnit.GramPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerMeter => As(LinearDensityUnit.GramPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerMillimeter => As(LinearDensityUnit.GramPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerCentimeter => As(LinearDensityUnit.KilogramPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerFoot => As(LinearDensityUnit.KilogramPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerMeter => As(LinearDensityUnit.KilogramPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerMillimeter => As(LinearDensityUnit.KilogramPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerCentimeter => As(LinearDensityUnit.MicrogramPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerFoot => As(LinearDensityUnit.MicrogramPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerMeter => As(LinearDensityUnit.MicrogramPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerMillimeter => As(LinearDensityUnit.MicrogramPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerCentimeter => As(LinearDensityUnit.MilligramPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerFoot => As(LinearDensityUnit.MilligramPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerMeter => As(LinearDensityUnit.MilligramPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerMillimeter => As(LinearDensityUnit.MilligramPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerFoot => As(LinearDensityUnit.PoundPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerInch => As(LinearDensityUnit.PoundPerInch); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static LinearDensity FromGramsPerCentimeter(double gramspercentimeter) => new LinearDensity(gramspercentimeter, LinearDensityUnit.GramPerCentimeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromGramsPerFoot(double gramsperfoot) => new LinearDensity(gramsperfoot, LinearDensityUnit.GramPerFoot); - - /// - /// Creates a from . - /// - public static LinearDensity FromGramsPerMeter(double gramspermeter) => new LinearDensity(gramspermeter, LinearDensityUnit.GramPerMeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromGramsPerMillimeter(double gramspermillimeter) => new LinearDensity(gramspermillimeter, LinearDensityUnit.GramPerMillimeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromKilogramsPerCentimeter(double kilogramspercentimeter) => new LinearDensity(kilogramspercentimeter, LinearDensityUnit.KilogramPerCentimeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromKilogramsPerFoot(double kilogramsperfoot) => new LinearDensity(kilogramsperfoot, LinearDensityUnit.KilogramPerFoot); - - /// - /// Creates a from . - /// - public static LinearDensity FromKilogramsPerMeter(double kilogramspermeter) => new LinearDensity(kilogramspermeter, LinearDensityUnit.KilogramPerMeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromKilogramsPerMillimeter(double kilogramspermillimeter) => new LinearDensity(kilogramspermillimeter, LinearDensityUnit.KilogramPerMillimeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromMicrogramsPerCentimeter(double microgramspercentimeter) => new LinearDensity(microgramspercentimeter, LinearDensityUnit.MicrogramPerCentimeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromMicrogramsPerFoot(double microgramsperfoot) => new LinearDensity(microgramsperfoot, LinearDensityUnit.MicrogramPerFoot); - - /// - /// Creates a from . - /// - public static LinearDensity FromMicrogramsPerMeter(double microgramspermeter) => new LinearDensity(microgramspermeter, LinearDensityUnit.MicrogramPerMeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromMicrogramsPerMillimeter(double microgramspermillimeter) => new LinearDensity(microgramspermillimeter, LinearDensityUnit.MicrogramPerMillimeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromMilligramsPerCentimeter(double milligramspercentimeter) => new LinearDensity(milligramspercentimeter, LinearDensityUnit.MilligramPerCentimeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromMilligramsPerFoot(double milligramsperfoot) => new LinearDensity(milligramsperfoot, LinearDensityUnit.MilligramPerFoot); - - /// - /// Creates a from . - /// - public static LinearDensity FromMilligramsPerMeter(double milligramspermeter) => new LinearDensity(milligramspermeter, LinearDensityUnit.MilligramPerMeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromMilligramsPerMillimeter(double milligramspermillimeter) => new LinearDensity(milligramspermillimeter, LinearDensityUnit.MilligramPerMillimeter); - - /// - /// Creates a from . - /// - public static LinearDensity FromPoundsPerFoot(double poundsperfoot) => new LinearDensity(poundsperfoot, LinearDensityUnit.PoundPerFoot); - - /// - /// Creates a from . - /// - public static LinearDensity FromPoundsPerInch(double poundsperinch) => new LinearDensity(poundsperinch, LinearDensityUnit.PoundPerInch); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// LinearDensity unit value. - public static LinearDensity From(double value, LinearDensityUnit fromUnit) - { - return new LinearDensity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(LinearDensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this LinearDensity to another LinearDensity with the unit representation . - /// - /// A LinearDensity with the specified unit. - public LinearDensity ToUnit(LinearDensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new LinearDensity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - LinearDensityUnit.GramPerCentimeter => _value * 1e-1, - LinearDensityUnit.GramPerFoot => _value * ( 1e-3 / 0.3048 ), - LinearDensityUnit.GramPerMeter => _value * 1e-3, - LinearDensityUnit.GramPerMillimeter => _value, - LinearDensityUnit.KilogramPerCentimeter => (_value * 1e-1) * 1e3d, - LinearDensityUnit.KilogramPerFoot => (_value * ( 1e-3 / 0.3048 )) * 1e3d, - LinearDensityUnit.KilogramPerMeter => (_value * 1e-3) * 1e3d, - LinearDensityUnit.KilogramPerMillimeter => (_value) * 1e3d, - LinearDensityUnit.MicrogramPerCentimeter => (_value * 1e-1) * 1e-6d, - LinearDensityUnit.MicrogramPerFoot => (_value * ( 1e-3 / 0.3048 )) * 1e-6d, - LinearDensityUnit.MicrogramPerMeter => (_value * 1e-3) * 1e-6d, - LinearDensityUnit.MicrogramPerMillimeter => (_value) * 1e-6d, - LinearDensityUnit.MilligramPerCentimeter => (_value * 1e-1) * 1e-3d, - LinearDensityUnit.MilligramPerFoot => (_value * ( 1e-3 / 0.3048 )) * 1e-3d, - LinearDensityUnit.MilligramPerMeter => (_value * 1e-3) * 1e-3d, - LinearDensityUnit.MilligramPerMillimeter => (_value) * 1e-3d, - LinearDensityUnit.PoundPerFoot => _value * 0.45359237 / 0.3048, - LinearDensityUnit.PoundPerInch => _value * 0.45359237 / 2.54e-2, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(LinearDensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - LinearDensityUnit.GramPerCentimeter => baseUnitValue / 1e-1, - LinearDensityUnit.GramPerFoot => baseUnitValue / ( 1e-3 / 0.3048 ), - LinearDensityUnit.GramPerMeter => baseUnitValue / 1e-3, - LinearDensityUnit.GramPerMillimeter => baseUnitValue, - LinearDensityUnit.KilogramPerCentimeter => (baseUnitValue / 1e-1) / 1e3d, - LinearDensityUnit.KilogramPerFoot => (baseUnitValue / ( 1e-3 / 0.3048 )) / 1e3d, - LinearDensityUnit.KilogramPerMeter => (baseUnitValue / 1e-3) / 1e3d, - LinearDensityUnit.KilogramPerMillimeter => (baseUnitValue) / 1e3d, - LinearDensityUnit.MicrogramPerCentimeter => (baseUnitValue / 1e-1) / 1e-6d, - LinearDensityUnit.MicrogramPerFoot => (baseUnitValue / ( 1e-3 / 0.3048 )) / 1e-6d, - LinearDensityUnit.MicrogramPerMeter => (baseUnitValue / 1e-3) / 1e-6d, - LinearDensityUnit.MicrogramPerMillimeter => (baseUnitValue) / 1e-6d, - LinearDensityUnit.MilligramPerCentimeter => (baseUnitValue / 1e-1) / 1e-3d, - LinearDensityUnit.MilligramPerFoot => (baseUnitValue / ( 1e-3 / 0.3048 )) / 1e-3d, - LinearDensityUnit.MilligramPerMeter => (baseUnitValue / 1e-3) / 1e-3d, - LinearDensityUnit.MilligramPerMillimeter => (baseUnitValue) / 1e-3d, - LinearDensityUnit.PoundPerFoot => baseUnitValue * 0.3048 / 0.45359237, - LinearDensityUnit.PoundPerInch => baseUnitValue * 2.54e-2 / 0.45359237, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearPowerDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearPowerDensity.g.cs deleted file mode 100644 index 5823bb4713..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearPowerDensity.g.cs +++ /dev/null @@ -1,448 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The Linear Power Density of a substance is its power per unit length. The term linear density is most often used when describing the characteristics of one-dimensional objects, although linear density can also be used to describe the density of a three-dimensional quantity along one particular dimension. - /// - /// - /// http://en.wikipedia.org/wiki/Linear_density - /// - public struct LinearPowerDensity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly LinearPowerDensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public LinearPowerDensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public LinearPowerDensity(double value, LinearPowerDensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of LinearPowerDensity, which is Second. All conversions go via this value. - /// - public static LinearPowerDensityUnit BaseUnit { get; } = LinearPowerDensityUnit.WattPerMeter; - - /// - /// Represents the largest possible value of LinearPowerDensity. - /// - public static LinearPowerDensity MaxValue { get; } = new LinearPowerDensity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of LinearPowerDensity. - /// - public static LinearPowerDensity MinValue { get; } = new LinearPowerDensity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static LinearPowerDensity Zero { get; } = new LinearPowerDensity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattsPerCentimeter => As(LinearPowerDensityUnit.GigawattPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattsPerFoot => As(LinearPowerDensityUnit.GigawattPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattsPerInch => As(LinearPowerDensityUnit.GigawattPerInch); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattsPerMeter => As(LinearPowerDensityUnit.GigawattPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattsPerMillimeter => As(LinearPowerDensityUnit.GigawattPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerCentimeter => As(LinearPowerDensityUnit.KilowattPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerFoot => As(LinearPowerDensityUnit.KilowattPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerInch => As(LinearPowerDensityUnit.KilowattPerInch); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerMeter => As(LinearPowerDensityUnit.KilowattPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerMillimeter => As(LinearPowerDensityUnit.KilowattPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerCentimeter => As(LinearPowerDensityUnit.MegawattPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerFoot => As(LinearPowerDensityUnit.MegawattPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerInch => As(LinearPowerDensityUnit.MegawattPerInch); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerMeter => As(LinearPowerDensityUnit.MegawattPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerMillimeter => As(LinearPowerDensityUnit.MegawattPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerCentimeter => As(LinearPowerDensityUnit.MilliwattPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerFoot => As(LinearPowerDensityUnit.MilliwattPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerInch => As(LinearPowerDensityUnit.MilliwattPerInch); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerMeter => As(LinearPowerDensityUnit.MilliwattPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerMillimeter => As(LinearPowerDensityUnit.MilliwattPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerCentimeter => As(LinearPowerDensityUnit.WattPerCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerFoot => As(LinearPowerDensityUnit.WattPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerInch => As(LinearPowerDensityUnit.WattPerInch); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerMeter => As(LinearPowerDensityUnit.WattPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerMillimeter => As(LinearPowerDensityUnit.WattPerMillimeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromGigawattsPerCentimeter(double gigawattspercentimeter) => new LinearPowerDensity(gigawattspercentimeter, LinearPowerDensityUnit.GigawattPerCentimeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromGigawattsPerFoot(double gigawattsperfoot) => new LinearPowerDensity(gigawattsperfoot, LinearPowerDensityUnit.GigawattPerFoot); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromGigawattsPerInch(double gigawattsperinch) => new LinearPowerDensity(gigawattsperinch, LinearPowerDensityUnit.GigawattPerInch); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromGigawattsPerMeter(double gigawattspermeter) => new LinearPowerDensity(gigawattspermeter, LinearPowerDensityUnit.GigawattPerMeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromGigawattsPerMillimeter(double gigawattspermillimeter) => new LinearPowerDensity(gigawattspermillimeter, LinearPowerDensityUnit.GigawattPerMillimeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromKilowattsPerCentimeter(double kilowattspercentimeter) => new LinearPowerDensity(kilowattspercentimeter, LinearPowerDensityUnit.KilowattPerCentimeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromKilowattsPerFoot(double kilowattsperfoot) => new LinearPowerDensity(kilowattsperfoot, LinearPowerDensityUnit.KilowattPerFoot); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromKilowattsPerInch(double kilowattsperinch) => new LinearPowerDensity(kilowattsperinch, LinearPowerDensityUnit.KilowattPerInch); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromKilowattsPerMeter(double kilowattspermeter) => new LinearPowerDensity(kilowattspermeter, LinearPowerDensityUnit.KilowattPerMeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromKilowattsPerMillimeter(double kilowattspermillimeter) => new LinearPowerDensity(kilowattspermillimeter, LinearPowerDensityUnit.KilowattPerMillimeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMegawattsPerCentimeter(double megawattspercentimeter) => new LinearPowerDensity(megawattspercentimeter, LinearPowerDensityUnit.MegawattPerCentimeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMegawattsPerFoot(double megawattsperfoot) => new LinearPowerDensity(megawattsperfoot, LinearPowerDensityUnit.MegawattPerFoot); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMegawattsPerInch(double megawattsperinch) => new LinearPowerDensity(megawattsperinch, LinearPowerDensityUnit.MegawattPerInch); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMegawattsPerMeter(double megawattspermeter) => new LinearPowerDensity(megawattspermeter, LinearPowerDensityUnit.MegawattPerMeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMegawattsPerMillimeter(double megawattspermillimeter) => new LinearPowerDensity(megawattspermillimeter, LinearPowerDensityUnit.MegawattPerMillimeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMilliwattsPerCentimeter(double milliwattspercentimeter) => new LinearPowerDensity(milliwattspercentimeter, LinearPowerDensityUnit.MilliwattPerCentimeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMilliwattsPerFoot(double milliwattsperfoot) => new LinearPowerDensity(milliwattsperfoot, LinearPowerDensityUnit.MilliwattPerFoot); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMilliwattsPerInch(double milliwattsperinch) => new LinearPowerDensity(milliwattsperinch, LinearPowerDensityUnit.MilliwattPerInch); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMilliwattsPerMeter(double milliwattspermeter) => new LinearPowerDensity(milliwattspermeter, LinearPowerDensityUnit.MilliwattPerMeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromMilliwattsPerMillimeter(double milliwattspermillimeter) => new LinearPowerDensity(milliwattspermillimeter, LinearPowerDensityUnit.MilliwattPerMillimeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromWattsPerCentimeter(double wattspercentimeter) => new LinearPowerDensity(wattspercentimeter, LinearPowerDensityUnit.WattPerCentimeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromWattsPerFoot(double wattsperfoot) => new LinearPowerDensity(wattsperfoot, LinearPowerDensityUnit.WattPerFoot); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromWattsPerInch(double wattsperinch) => new LinearPowerDensity(wattsperinch, LinearPowerDensityUnit.WattPerInch); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromWattsPerMeter(double wattspermeter) => new LinearPowerDensity(wattspermeter, LinearPowerDensityUnit.WattPerMeter); - - /// - /// Creates a from . - /// - public static LinearPowerDensity FromWattsPerMillimeter(double wattspermillimeter) => new LinearPowerDensity(wattspermillimeter, LinearPowerDensityUnit.WattPerMillimeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// LinearPowerDensity unit value. - public static LinearPowerDensity From(double value, LinearPowerDensityUnit fromUnit) - { - return new LinearPowerDensity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(LinearPowerDensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this LinearPowerDensity to another LinearPowerDensity with the unit representation . - /// - /// A LinearPowerDensity with the specified unit. - public LinearPowerDensity ToUnit(LinearPowerDensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new LinearPowerDensity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - LinearPowerDensityUnit.GigawattPerCentimeter => (_value * 1e2) * 1e9d, - LinearPowerDensityUnit.GigawattPerFoot => (_value / 0.3048) * 1e9d, - LinearPowerDensityUnit.GigawattPerInch => (_value / 2.54e-2) * 1e9d, - LinearPowerDensityUnit.GigawattPerMeter => (_value) * 1e9d, - LinearPowerDensityUnit.GigawattPerMillimeter => (_value * 1e3) * 1e9d, - LinearPowerDensityUnit.KilowattPerCentimeter => (_value * 1e2) * 1e3d, - LinearPowerDensityUnit.KilowattPerFoot => (_value / 0.3048) * 1e3d, - LinearPowerDensityUnit.KilowattPerInch => (_value / 2.54e-2) * 1e3d, - LinearPowerDensityUnit.KilowattPerMeter => (_value) * 1e3d, - LinearPowerDensityUnit.KilowattPerMillimeter => (_value * 1e3) * 1e3d, - LinearPowerDensityUnit.MegawattPerCentimeter => (_value * 1e2) * 1e6d, - LinearPowerDensityUnit.MegawattPerFoot => (_value / 0.3048) * 1e6d, - LinearPowerDensityUnit.MegawattPerInch => (_value / 2.54e-2) * 1e6d, - LinearPowerDensityUnit.MegawattPerMeter => (_value) * 1e6d, - LinearPowerDensityUnit.MegawattPerMillimeter => (_value * 1e3) * 1e6d, - LinearPowerDensityUnit.MilliwattPerCentimeter => (_value * 1e2) * 1e-3d, - LinearPowerDensityUnit.MilliwattPerFoot => (_value / 0.3048) * 1e-3d, - LinearPowerDensityUnit.MilliwattPerInch => (_value / 2.54e-2) * 1e-3d, - LinearPowerDensityUnit.MilliwattPerMeter => (_value) * 1e-3d, - LinearPowerDensityUnit.MilliwattPerMillimeter => (_value * 1e3) * 1e-3d, - LinearPowerDensityUnit.WattPerCentimeter => _value * 1e2, - LinearPowerDensityUnit.WattPerFoot => _value / 0.3048, - LinearPowerDensityUnit.WattPerInch => _value / 2.54e-2, - LinearPowerDensityUnit.WattPerMeter => _value, - LinearPowerDensityUnit.WattPerMillimeter => _value * 1e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(LinearPowerDensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - LinearPowerDensityUnit.GigawattPerCentimeter => (baseUnitValue / 1e2) / 1e9d, - LinearPowerDensityUnit.GigawattPerFoot => (baseUnitValue * 0.3048) / 1e9d, - LinearPowerDensityUnit.GigawattPerInch => (baseUnitValue * 2.54e-2) / 1e9d, - LinearPowerDensityUnit.GigawattPerMeter => (baseUnitValue) / 1e9d, - LinearPowerDensityUnit.GigawattPerMillimeter => (baseUnitValue / 1e3) / 1e9d, - LinearPowerDensityUnit.KilowattPerCentimeter => (baseUnitValue / 1e2) / 1e3d, - LinearPowerDensityUnit.KilowattPerFoot => (baseUnitValue * 0.3048) / 1e3d, - LinearPowerDensityUnit.KilowattPerInch => (baseUnitValue * 2.54e-2) / 1e3d, - LinearPowerDensityUnit.KilowattPerMeter => (baseUnitValue) / 1e3d, - LinearPowerDensityUnit.KilowattPerMillimeter => (baseUnitValue / 1e3) / 1e3d, - LinearPowerDensityUnit.MegawattPerCentimeter => (baseUnitValue / 1e2) / 1e6d, - LinearPowerDensityUnit.MegawattPerFoot => (baseUnitValue * 0.3048) / 1e6d, - LinearPowerDensityUnit.MegawattPerInch => (baseUnitValue * 2.54e-2) / 1e6d, - LinearPowerDensityUnit.MegawattPerMeter => (baseUnitValue) / 1e6d, - LinearPowerDensityUnit.MegawattPerMillimeter => (baseUnitValue / 1e3) / 1e6d, - LinearPowerDensityUnit.MilliwattPerCentimeter => (baseUnitValue / 1e2) / 1e-3d, - LinearPowerDensityUnit.MilliwattPerFoot => (baseUnitValue * 0.3048) / 1e-3d, - LinearPowerDensityUnit.MilliwattPerInch => (baseUnitValue * 2.54e-2) / 1e-3d, - LinearPowerDensityUnit.MilliwattPerMeter => (baseUnitValue) / 1e-3d, - LinearPowerDensityUnit.MilliwattPerMillimeter => (baseUnitValue / 1e3) / 1e-3d, - LinearPowerDensityUnit.WattPerCentimeter => baseUnitValue / 1e2, - LinearPowerDensityUnit.WattPerFoot => baseUnitValue * 0.3048, - LinearPowerDensityUnit.WattPerInch => baseUnitValue * 2.54e-2, - LinearPowerDensityUnit.WattPerMeter => baseUnitValue, - LinearPowerDensityUnit.WattPerMillimeter => baseUnitValue / 1e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminance.g.cs deleted file mode 100644 index e891857e2f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminance.g.cs +++ /dev/null @@ -1,268 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// - /// - /// - /// https://en.wikipedia.org/wiki/Luminance - /// - public struct Luminance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly LuminanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public LuminanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Luminance(double value, LuminanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Luminance, which is Second. All conversions go via this value. - /// - public static LuminanceUnit BaseUnit { get; } = LuminanceUnit.CandelaPerSquareMeter; - - /// - /// Represents the largest possible value of Luminance. - /// - public static Luminance MaxValue { get; } = new Luminance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Luminance. - /// - public static Luminance MinValue { get; } = new Luminance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Luminance Zero { get; } = new Luminance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CandelasPerSquareFoot => As(LuminanceUnit.CandelaPerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double CandelasPerSquareInch => As(LuminanceUnit.CandelaPerSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double CandelasPerSquareMeter => As(LuminanceUnit.CandelaPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CenticandelasPerSquareMeter => As(LuminanceUnit.CenticandelaPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecicandelasPerSquareMeter => As(LuminanceUnit.DecicandelaPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocandelasPerSquareMeter => As(LuminanceUnit.KilocandelaPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrocandelasPerSquareMeter => As(LuminanceUnit.MicrocandelaPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillicandelasPerSquareMeter => As(LuminanceUnit.MillicandelaPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanocandelasPerSquareMeter => As(LuminanceUnit.NanocandelaPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double Nits => As(LuminanceUnit.Nit); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Luminance FromCandelasPerSquareFoot(double candelaspersquarefoot) => new Luminance(candelaspersquarefoot, LuminanceUnit.CandelaPerSquareFoot); - - /// - /// Creates a from . - /// - public static Luminance FromCandelasPerSquareInch(double candelaspersquareinch) => new Luminance(candelaspersquareinch, LuminanceUnit.CandelaPerSquareInch); - - /// - /// Creates a from . - /// - public static Luminance FromCandelasPerSquareMeter(double candelaspersquaremeter) => new Luminance(candelaspersquaremeter, LuminanceUnit.CandelaPerSquareMeter); - - /// - /// Creates a from . - /// - public static Luminance FromCenticandelasPerSquareMeter(double centicandelaspersquaremeter) => new Luminance(centicandelaspersquaremeter, LuminanceUnit.CenticandelaPerSquareMeter); - - /// - /// Creates a from . - /// - public static Luminance FromDecicandelasPerSquareMeter(double decicandelaspersquaremeter) => new Luminance(decicandelaspersquaremeter, LuminanceUnit.DecicandelaPerSquareMeter); - - /// - /// Creates a from . - /// - public static Luminance FromKilocandelasPerSquareMeter(double kilocandelaspersquaremeter) => new Luminance(kilocandelaspersquaremeter, LuminanceUnit.KilocandelaPerSquareMeter); - - /// - /// Creates a from . - /// - public static Luminance FromMicrocandelasPerSquareMeter(double microcandelaspersquaremeter) => new Luminance(microcandelaspersquaremeter, LuminanceUnit.MicrocandelaPerSquareMeter); - - /// - /// Creates a from . - /// - public static Luminance FromMillicandelasPerSquareMeter(double millicandelaspersquaremeter) => new Luminance(millicandelaspersquaremeter, LuminanceUnit.MillicandelaPerSquareMeter); - - /// - /// Creates a from . - /// - public static Luminance FromNanocandelasPerSquareMeter(double nanocandelaspersquaremeter) => new Luminance(nanocandelaspersquaremeter, LuminanceUnit.NanocandelaPerSquareMeter); - - /// - /// Creates a from . - /// - public static Luminance FromNits(double nits) => new Luminance(nits, LuminanceUnit.Nit); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Luminance unit value. - public static Luminance From(double value, LuminanceUnit fromUnit) - { - return new Luminance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(LuminanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this Luminance to another Luminance with the unit representation . - /// - /// A Luminance with the specified unit. - public Luminance ToUnit(LuminanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Luminance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - LuminanceUnit.CandelaPerSquareFoot => _value / 9.290304e-2, - LuminanceUnit.CandelaPerSquareInch => _value / 0.00064516, - LuminanceUnit.CandelaPerSquareMeter => _value, - LuminanceUnit.CenticandelaPerSquareMeter => (_value) * 1e-2d, - LuminanceUnit.DecicandelaPerSquareMeter => (_value) * 1e-1d, - LuminanceUnit.KilocandelaPerSquareMeter => (_value) * 1e3d, - LuminanceUnit.MicrocandelaPerSquareMeter => (_value) * 1e-6d, - LuminanceUnit.MillicandelaPerSquareMeter => (_value) * 1e-3d, - LuminanceUnit.NanocandelaPerSquareMeter => (_value) * 1e-9d, - LuminanceUnit.Nit => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(LuminanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - LuminanceUnit.CandelaPerSquareFoot => baseUnitValue * 9.290304e-2, - LuminanceUnit.CandelaPerSquareInch => baseUnitValue * 0.00064516, - LuminanceUnit.CandelaPerSquareMeter => baseUnitValue, - LuminanceUnit.CenticandelaPerSquareMeter => (baseUnitValue) / 1e-2d, - LuminanceUnit.DecicandelaPerSquareMeter => (baseUnitValue) / 1e-1d, - LuminanceUnit.KilocandelaPerSquareMeter => (baseUnitValue) / 1e3d, - LuminanceUnit.MicrocandelaPerSquareMeter => (baseUnitValue) / 1e-6d, - LuminanceUnit.MillicandelaPerSquareMeter => (baseUnitValue) / 1e-3d, - LuminanceUnit.NanocandelaPerSquareMeter => (baseUnitValue) / 1e-9d, - LuminanceUnit.Nit => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminosity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminosity.g.cs deleted file mode 100644 index 2f8b1afb41..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminosity.g.cs +++ /dev/null @@ -1,316 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Luminosity is an absolute measure of radiated electromagnetic power (light), the radiant power emitted by a light-emitting object. - /// - /// - /// https://en.wikipedia.org/wiki/Luminosity - /// - public struct Luminosity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly LuminosityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public LuminosityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Luminosity(double value, LuminosityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Luminosity, which is Second. All conversions go via this value. - /// - public static LuminosityUnit BaseUnit { get; } = LuminosityUnit.Watt; - - /// - /// Represents the largest possible value of Luminosity. - /// - public static Luminosity MaxValue { get; } = new Luminosity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Luminosity. - /// - public static Luminosity MinValue { get; } = new Luminosity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Luminosity Zero { get; } = new Luminosity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Decawatts => As(LuminosityUnit.Decawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Deciwatts => As(LuminosityUnit.Deciwatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Femtowatts => As(LuminosityUnit.Femtowatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigawatts => As(LuminosityUnit.Gigawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilowatts => As(LuminosityUnit.Kilowatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Megawatts => As(LuminosityUnit.Megawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Microwatts => As(LuminosityUnit.Microwatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliwatts => As(LuminosityUnit.Milliwatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanowatts => As(LuminosityUnit.Nanowatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Petawatts => As(LuminosityUnit.Petawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Picowatts => As(LuminosityUnit.Picowatt); - - /// - /// Gets a value of this quantity converted into - /// - public double SolarLuminosities => As(LuminosityUnit.SolarLuminosity); - - /// - /// Gets a value of this quantity converted into - /// - public double Terawatts => As(LuminosityUnit.Terawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Watts => As(LuminosityUnit.Watt); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Luminosity FromDecawatts(double decawatts) => new Luminosity(decawatts, LuminosityUnit.Decawatt); - - /// - /// Creates a from . - /// - public static Luminosity FromDeciwatts(double deciwatts) => new Luminosity(deciwatts, LuminosityUnit.Deciwatt); - - /// - /// Creates a from . - /// - public static Luminosity FromFemtowatts(double femtowatts) => new Luminosity(femtowatts, LuminosityUnit.Femtowatt); - - /// - /// Creates a from . - /// - public static Luminosity FromGigawatts(double gigawatts) => new Luminosity(gigawatts, LuminosityUnit.Gigawatt); - - /// - /// Creates a from . - /// - public static Luminosity FromKilowatts(double kilowatts) => new Luminosity(kilowatts, LuminosityUnit.Kilowatt); - - /// - /// Creates a from . - /// - public static Luminosity FromMegawatts(double megawatts) => new Luminosity(megawatts, LuminosityUnit.Megawatt); - - /// - /// Creates a from . - /// - public static Luminosity FromMicrowatts(double microwatts) => new Luminosity(microwatts, LuminosityUnit.Microwatt); - - /// - /// Creates a from . - /// - public static Luminosity FromMilliwatts(double milliwatts) => new Luminosity(milliwatts, LuminosityUnit.Milliwatt); - - /// - /// Creates a from . - /// - public static Luminosity FromNanowatts(double nanowatts) => new Luminosity(nanowatts, LuminosityUnit.Nanowatt); - - /// - /// Creates a from . - /// - public static Luminosity FromPetawatts(double petawatts) => new Luminosity(petawatts, LuminosityUnit.Petawatt); - - /// - /// Creates a from . - /// - public static Luminosity FromPicowatts(double picowatts) => new Luminosity(picowatts, LuminosityUnit.Picowatt); - - /// - /// Creates a from . - /// - public static Luminosity FromSolarLuminosities(double solarluminosities) => new Luminosity(solarluminosities, LuminosityUnit.SolarLuminosity); - - /// - /// Creates a from . - /// - public static Luminosity FromTerawatts(double terawatts) => new Luminosity(terawatts, LuminosityUnit.Terawatt); - - /// - /// Creates a from . - /// - public static Luminosity FromWatts(double watts) => new Luminosity(watts, LuminosityUnit.Watt); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Luminosity unit value. - public static Luminosity From(double value, LuminosityUnit fromUnit) - { - return new Luminosity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(LuminosityUnit unit) => GetValueAs(unit); - - /// - /// Converts this Luminosity to another Luminosity with the unit representation . - /// - /// A Luminosity with the specified unit. - public Luminosity ToUnit(LuminosityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Luminosity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - LuminosityUnit.Decawatt => (_value) * 1e1d, - LuminosityUnit.Deciwatt => (_value) * 1e-1d, - LuminosityUnit.Femtowatt => (_value) * 1e-15d, - LuminosityUnit.Gigawatt => (_value) * 1e9d, - LuminosityUnit.Kilowatt => (_value) * 1e3d, - LuminosityUnit.Megawatt => (_value) * 1e6d, - LuminosityUnit.Microwatt => (_value) * 1e-6d, - LuminosityUnit.Milliwatt => (_value) * 1e-3d, - LuminosityUnit.Nanowatt => (_value) * 1e-9d, - LuminosityUnit.Petawatt => (_value) * 1e15d, - LuminosityUnit.Picowatt => (_value) * 1e-12d, - LuminosityUnit.SolarLuminosity => _value * 3.828e26, - LuminosityUnit.Terawatt => (_value) * 1e12d, - LuminosityUnit.Watt => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(LuminosityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - LuminosityUnit.Decawatt => (baseUnitValue) / 1e1d, - LuminosityUnit.Deciwatt => (baseUnitValue) / 1e-1d, - LuminosityUnit.Femtowatt => (baseUnitValue) / 1e-15d, - LuminosityUnit.Gigawatt => (baseUnitValue) / 1e9d, - LuminosityUnit.Kilowatt => (baseUnitValue) / 1e3d, - LuminosityUnit.Megawatt => (baseUnitValue) / 1e6d, - LuminosityUnit.Microwatt => (baseUnitValue) / 1e-6d, - LuminosityUnit.Milliwatt => (baseUnitValue) / 1e-3d, - LuminosityUnit.Nanowatt => (baseUnitValue) / 1e-9d, - LuminosityUnit.Petawatt => (baseUnitValue) / 1e15d, - LuminosityUnit.Picowatt => (baseUnitValue) / 1e-12d, - LuminosityUnit.SolarLuminosity => baseUnitValue / 3.828e26, - LuminosityUnit.Terawatt => (baseUnitValue) / 1e12d, - LuminosityUnit.Watt => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LuminousFlux.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/LuminousFlux.g.cs deleted file mode 100644 index 22fcdd609f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LuminousFlux.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In photometry, luminous flux or luminous power is the measure of the perceived power of light. - /// - /// - /// https://en.wikipedia.org/wiki/Luminous_flux - /// - public struct LuminousFlux - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly LuminousFluxUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public LuminousFluxUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public LuminousFlux(double value, LuminousFluxUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of LuminousFlux, which is Second. All conversions go via this value. - /// - public static LuminousFluxUnit BaseUnit { get; } = LuminousFluxUnit.Lumen; - - /// - /// Represents the largest possible value of LuminousFlux. - /// - public static LuminousFlux MaxValue { get; } = new LuminousFlux(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of LuminousFlux. - /// - public static LuminousFlux MinValue { get; } = new LuminousFlux(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static LuminousFlux Zero { get; } = new LuminousFlux(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Lumens => As(LuminousFluxUnit.Lumen); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static LuminousFlux FromLumens(double lumens) => new LuminousFlux(lumens, LuminousFluxUnit.Lumen); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// LuminousFlux unit value. - public static LuminousFlux From(double value, LuminousFluxUnit fromUnit) - { - return new LuminousFlux(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(LuminousFluxUnit unit) => GetValueAs(unit); - - /// - /// Converts this LuminousFlux to another LuminousFlux with the unit representation . - /// - /// A LuminousFlux with the specified unit. - public LuminousFlux ToUnit(LuminousFluxUnit unit) - { - var convertedValue = GetValueAs(unit); - return new LuminousFlux(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - LuminousFluxUnit.Lumen => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(LuminousFluxUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - LuminousFluxUnit.Lumen => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LuminousIntensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/LuminousIntensity.g.cs deleted file mode 100644 index c60f66ac21..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LuminousIntensity.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In photometry, luminous intensity is a measure of the wavelength-weighted power emitted by a light source in a particular direction per unit solid angle, based on the luminosity function, a standardized model of the sensitivity of the human eye. - /// - /// - /// https://en.wikipedia.org/wiki/Luminous_intensity - /// - public struct LuminousIntensity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly LuminousIntensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public LuminousIntensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public LuminousIntensity(double value, LuminousIntensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of LuminousIntensity, which is Second. All conversions go via this value. - /// - public static LuminousIntensityUnit BaseUnit { get; } = LuminousIntensityUnit.Candela; - - /// - /// Represents the largest possible value of LuminousIntensity. - /// - public static LuminousIntensity MaxValue { get; } = new LuminousIntensity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of LuminousIntensity. - /// - public static LuminousIntensity MinValue { get; } = new LuminousIntensity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static LuminousIntensity Zero { get; } = new LuminousIntensity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Candela => As(LuminousIntensityUnit.Candela); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static LuminousIntensity FromCandela(double candela) => new LuminousIntensity(candela, LuminousIntensityUnit.Candela); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// LuminousIntensity unit value. - public static LuminousIntensity From(double value, LuminousIntensityUnit fromUnit) - { - return new LuminousIntensity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(LuminousIntensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this LuminousIntensity to another LuminousIntensity with the unit representation . - /// - /// A LuminousIntensity with the specified unit. - public LuminousIntensity ToUnit(LuminousIntensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new LuminousIntensity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - LuminousIntensityUnit.Candela => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(LuminousIntensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - LuminousIntensityUnit.Candela => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MagneticField.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MagneticField.g.cs deleted file mode 100644 index 3548210139..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MagneticField.g.cs +++ /dev/null @@ -1,220 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A magnetic field is a force field that is created by moving electric charges (electric currents) and magnetic dipoles, and exerts a force on other nearby moving charges and magnetic dipoles. - /// - /// - /// https://en.wikipedia.org/wiki/Magnetic_field - /// - public struct MagneticField - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MagneticFieldUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MagneticFieldUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MagneticField(double value, MagneticFieldUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MagneticField, which is Second. All conversions go via this value. - /// - public static MagneticFieldUnit BaseUnit { get; } = MagneticFieldUnit.Tesla; - - /// - /// Represents the largest possible value of MagneticField. - /// - public static MagneticField MaxValue { get; } = new MagneticField(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MagneticField. - /// - public static MagneticField MinValue { get; } = new MagneticField(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MagneticField Zero { get; } = new MagneticField(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Gausses => As(MagneticFieldUnit.Gauss); - - /// - /// Gets a value of this quantity converted into - /// - public double Microteslas => As(MagneticFieldUnit.Microtesla); - - /// - /// Gets a value of this quantity converted into - /// - public double Milligausses => As(MagneticFieldUnit.Milligauss); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliteslas => As(MagneticFieldUnit.Millitesla); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanoteslas => As(MagneticFieldUnit.Nanotesla); - - /// - /// Gets a value of this quantity converted into - /// - public double Teslas => As(MagneticFieldUnit.Tesla); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MagneticField FromGausses(double gausses) => new MagneticField(gausses, MagneticFieldUnit.Gauss); - - /// - /// Creates a from . - /// - public static MagneticField FromMicroteslas(double microteslas) => new MagneticField(microteslas, MagneticFieldUnit.Microtesla); - - /// - /// Creates a from . - /// - public static MagneticField FromMilligausses(double milligausses) => new MagneticField(milligausses, MagneticFieldUnit.Milligauss); - - /// - /// Creates a from . - /// - public static MagneticField FromMilliteslas(double milliteslas) => new MagneticField(milliteslas, MagneticFieldUnit.Millitesla); - - /// - /// Creates a from . - /// - public static MagneticField FromNanoteslas(double nanoteslas) => new MagneticField(nanoteslas, MagneticFieldUnit.Nanotesla); - - /// - /// Creates a from . - /// - public static MagneticField FromTeslas(double teslas) => new MagneticField(teslas, MagneticFieldUnit.Tesla); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MagneticField unit value. - public static MagneticField From(double value, MagneticFieldUnit fromUnit) - { - return new MagneticField(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MagneticFieldUnit unit) => GetValueAs(unit); - - /// - /// Converts this MagneticField to another MagneticField with the unit representation . - /// - /// A MagneticField with the specified unit. - public MagneticField ToUnit(MagneticFieldUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MagneticField(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MagneticFieldUnit.Gauss => _value / 1e4, - MagneticFieldUnit.Microtesla => (_value) * 1e-6d, - MagneticFieldUnit.Milligauss => (_value / 1e4) * 1e-3d, - MagneticFieldUnit.Millitesla => (_value) * 1e-3d, - MagneticFieldUnit.Nanotesla => (_value) * 1e-9d, - MagneticFieldUnit.Tesla => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MagneticFieldUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MagneticFieldUnit.Gauss => baseUnitValue * 1e4, - MagneticFieldUnit.Microtesla => (baseUnitValue) / 1e-6d, - MagneticFieldUnit.Milligauss => (baseUnitValue * 1e4) / 1e-3d, - MagneticFieldUnit.Millitesla => (baseUnitValue) / 1e-3d, - MagneticFieldUnit.Nanotesla => (baseUnitValue) / 1e-9d, - MagneticFieldUnit.Tesla => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MagneticFlux.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MagneticFlux.g.cs deleted file mode 100644 index 03a5b66cd0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MagneticFlux.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In physics, specifically electromagnetism, the magnetic flux through a surface is the surface integral of the normal component of the magnetic field B passing through that surface. - /// - /// - /// https://en.wikipedia.org/wiki/Magnetic_flux - /// - public struct MagneticFlux - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MagneticFluxUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MagneticFluxUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MagneticFlux(double value, MagneticFluxUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MagneticFlux, which is Second. All conversions go via this value. - /// - public static MagneticFluxUnit BaseUnit { get; } = MagneticFluxUnit.Weber; - - /// - /// Represents the largest possible value of MagneticFlux. - /// - public static MagneticFlux MaxValue { get; } = new MagneticFlux(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MagneticFlux. - /// - public static MagneticFlux MinValue { get; } = new MagneticFlux(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MagneticFlux Zero { get; } = new MagneticFlux(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Webers => As(MagneticFluxUnit.Weber); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MagneticFlux FromWebers(double webers) => new MagneticFlux(webers, MagneticFluxUnit.Weber); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MagneticFlux unit value. - public static MagneticFlux From(double value, MagneticFluxUnit fromUnit) - { - return new MagneticFlux(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MagneticFluxUnit unit) => GetValueAs(unit); - - /// - /// Converts this MagneticFlux to another MagneticFlux with the unit representation . - /// - /// A MagneticFlux with the specified unit. - public MagneticFlux ToUnit(MagneticFluxUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MagneticFlux(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MagneticFluxUnit.Weber => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MagneticFluxUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MagneticFluxUnit.Weber => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Magnetization.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Magnetization.g.cs deleted file mode 100644 index 225c4b3b4f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Magnetization.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In classical electromagnetism, magnetization is the vector field that expresses the density of permanent or induced magnetic dipole moments in a magnetic material. - /// - /// - /// https://en.wikipedia.org/wiki/Magnetization - /// - public struct Magnetization - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MagnetizationUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MagnetizationUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Magnetization(double value, MagnetizationUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Magnetization, which is Second. All conversions go via this value. - /// - public static MagnetizationUnit BaseUnit { get; } = MagnetizationUnit.AmperePerMeter; - - /// - /// Represents the largest possible value of Magnetization. - /// - public static Magnetization MaxValue { get; } = new Magnetization(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Magnetization. - /// - public static Magnetization MinValue { get; } = new Magnetization(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Magnetization Zero { get; } = new Magnetization(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double AmperesPerMeter => As(MagnetizationUnit.AmperePerMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Magnetization FromAmperesPerMeter(double amperespermeter) => new Magnetization(amperespermeter, MagnetizationUnit.AmperePerMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Magnetization unit value. - public static Magnetization From(double value, MagnetizationUnit fromUnit) - { - return new Magnetization(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MagnetizationUnit unit) => GetValueAs(unit); - - /// - /// Converts this Magnetization to another Magnetization with the unit representation . - /// - /// A Magnetization with the specified unit. - public Magnetization ToUnit(MagnetizationUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Magnetization(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MagnetizationUnit.AmperePerMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MagnetizationUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MagnetizationUnit.AmperePerMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Mass.g.cs deleted file mode 100644 index 1da423950f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Mass.g.cs +++ /dev/null @@ -1,517 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In physics, mass (from Greek μᾶζα "barley cake, lump [of dough]") is a property of a physical system or body, giving rise to the phenomena of the body's resistance to being accelerated by a force and the strength of its mutual gravitational attraction with other bodies. Instruments such as mass balances or scales use those phenomena to measure mass. The SI unit of mass is the kilogram (kg). - /// - public struct Mass - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MassUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MassUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Mass(double value, MassUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Mass, which is Second. All conversions go via this value. - /// - public static MassUnit BaseUnit { get; } = MassUnit.Kilogram; - - /// - /// Represents the largest possible value of Mass. - /// - public static Mass MaxValue { get; } = new Mass(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Mass. - /// - public static Mass MinValue { get; } = new Mass(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Mass Zero { get; } = new Mass(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Centigrams => As(MassUnit.Centigram); - - /// - /// Gets a value of this quantity converted into - /// - public double Daltons => As(MassUnit.Dalton); - - /// - /// Gets a value of this quantity converted into - /// - public double Decagrams => As(MassUnit.Decagram); - - /// - /// Gets a value of this quantity converted into - /// - public double Decigrams => As(MassUnit.Decigram); - - /// - /// Gets a value of this quantity converted into - /// - public double EarthMasses => As(MassUnit.EarthMass); - - /// - /// Gets a value of this quantity converted into - /// - public double Femtograms => As(MassUnit.Femtogram); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigadaltons => As(MassUnit.Gigadalton); - - /// - /// Gets a value of this quantity converted into - /// - public double Grains => As(MassUnit.Grain); - - /// - /// Gets a value of this quantity converted into - /// - public double Grams => As(MassUnit.Gram); - - /// - /// Gets a value of this quantity converted into - /// - public double Hectograms => As(MassUnit.Hectogram); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilodaltons => As(MassUnit.Kilodalton); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilograms => As(MassUnit.Kilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilopounds => As(MassUnit.Kilopound); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilotonnes => As(MassUnit.Kilotonne); - - /// - /// Gets a value of this quantity converted into - /// - public double LongHundredweight => As(MassUnit.LongHundredweight); - - /// - /// Gets a value of this quantity converted into - /// - public double LongTons => As(MassUnit.LongTon); - - /// - /// Gets a value of this quantity converted into - /// - public double Megadaltons => As(MassUnit.Megadalton); - - /// - /// Gets a value of this quantity converted into - /// - public double Megapounds => As(MassUnit.Megapound); - - /// - /// Gets a value of this quantity converted into - /// - public double Megatonnes => As(MassUnit.Megatonne); - - /// - /// Gets a value of this quantity converted into - /// - public double Micrograms => As(MassUnit.Microgram); - - /// - /// Gets a value of this quantity converted into - /// - public double Milligrams => As(MassUnit.Milligram); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanograms => As(MassUnit.Nanogram); - - /// - /// Gets a value of this quantity converted into - /// - public double Ounces => As(MassUnit.Ounce); - - /// - /// Gets a value of this quantity converted into - /// - public double Picograms => As(MassUnit.Picogram); - - /// - /// Gets a value of this quantity converted into - /// - public double Pounds => As(MassUnit.Pound); - - /// - /// Gets a value of this quantity converted into - /// - public double ShortHundredweight => As(MassUnit.ShortHundredweight); - - /// - /// Gets a value of this quantity converted into - /// - public double ShortTons => As(MassUnit.ShortTon); - - /// - /// Gets a value of this quantity converted into - /// - public double Slugs => As(MassUnit.Slug); - - /// - /// Gets a value of this quantity converted into - /// - public double SolarMasses => As(MassUnit.SolarMass); - - /// - /// Gets a value of this quantity converted into - /// - public double Stone => As(MassUnit.Stone); - - /// - /// Gets a value of this quantity converted into - /// - public double Tonnes => As(MassUnit.Tonne); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Mass FromCentigrams(double centigrams) => new Mass(centigrams, MassUnit.Centigram); - - /// - /// Creates a from . - /// - public static Mass FromDaltons(double daltons) => new Mass(daltons, MassUnit.Dalton); - - /// - /// Creates a from . - /// - public static Mass FromDecagrams(double decagrams) => new Mass(decagrams, MassUnit.Decagram); - - /// - /// Creates a from . - /// - public static Mass FromDecigrams(double decigrams) => new Mass(decigrams, MassUnit.Decigram); - - /// - /// Creates a from . - /// - public static Mass FromEarthMasses(double earthmasses) => new Mass(earthmasses, MassUnit.EarthMass); - - /// - /// Creates a from . - /// - public static Mass FromFemtograms(double femtograms) => new Mass(femtograms, MassUnit.Femtogram); - - /// - /// Creates a from . - /// - public static Mass FromGigadaltons(double gigadaltons) => new Mass(gigadaltons, MassUnit.Gigadalton); - - /// - /// Creates a from . - /// - public static Mass FromGrains(double grains) => new Mass(grains, MassUnit.Grain); - - /// - /// Creates a from . - /// - public static Mass FromGrams(double grams) => new Mass(grams, MassUnit.Gram); - - /// - /// Creates a from . - /// - public static Mass FromHectograms(double hectograms) => new Mass(hectograms, MassUnit.Hectogram); - - /// - /// Creates a from . - /// - public static Mass FromKilodaltons(double kilodaltons) => new Mass(kilodaltons, MassUnit.Kilodalton); - - /// - /// Creates a from . - /// - public static Mass FromKilograms(double kilograms) => new Mass(kilograms, MassUnit.Kilogram); - - /// - /// Creates a from . - /// - public static Mass FromKilopounds(double kilopounds) => new Mass(kilopounds, MassUnit.Kilopound); - - /// - /// Creates a from . - /// - public static Mass FromKilotonnes(double kilotonnes) => new Mass(kilotonnes, MassUnit.Kilotonne); - - /// - /// Creates a from . - /// - public static Mass FromLongHundredweight(double longhundredweight) => new Mass(longhundredweight, MassUnit.LongHundredweight); - - /// - /// Creates a from . - /// - public static Mass FromLongTons(double longtons) => new Mass(longtons, MassUnit.LongTon); - - /// - /// Creates a from . - /// - public static Mass FromMegadaltons(double megadaltons) => new Mass(megadaltons, MassUnit.Megadalton); - - /// - /// Creates a from . - /// - public static Mass FromMegapounds(double megapounds) => new Mass(megapounds, MassUnit.Megapound); - - /// - /// Creates a from . - /// - public static Mass FromMegatonnes(double megatonnes) => new Mass(megatonnes, MassUnit.Megatonne); - - /// - /// Creates a from . - /// - public static Mass FromMicrograms(double micrograms) => new Mass(micrograms, MassUnit.Microgram); - - /// - /// Creates a from . - /// - public static Mass FromMilligrams(double milligrams) => new Mass(milligrams, MassUnit.Milligram); - - /// - /// Creates a from . - /// - public static Mass FromNanograms(double nanograms) => new Mass(nanograms, MassUnit.Nanogram); - - /// - /// Creates a from . - /// - public static Mass FromOunces(double ounces) => new Mass(ounces, MassUnit.Ounce); - - /// - /// Creates a from . - /// - public static Mass FromPicograms(double picograms) => new Mass(picograms, MassUnit.Picogram); - - /// - /// Creates a from . - /// - public static Mass FromPounds(double pounds) => new Mass(pounds, MassUnit.Pound); - - /// - /// Creates a from . - /// - public static Mass FromShortHundredweight(double shorthundredweight) => new Mass(shorthundredweight, MassUnit.ShortHundredweight); - - /// - /// Creates a from . - /// - public static Mass FromShortTons(double shorttons) => new Mass(shorttons, MassUnit.ShortTon); - - /// - /// Creates a from . - /// - public static Mass FromSlugs(double slugs) => new Mass(slugs, MassUnit.Slug); - - /// - /// Creates a from . - /// - public static Mass FromSolarMasses(double solarmasses) => new Mass(solarmasses, MassUnit.SolarMass); - - /// - /// Creates a from . - /// - public static Mass FromStone(double stone) => new Mass(stone, MassUnit.Stone); - - /// - /// Creates a from . - /// - public static Mass FromTonnes(double tonnes) => new Mass(tonnes, MassUnit.Tonne); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Mass unit value. - public static Mass From(double value, MassUnit fromUnit) - { - return new Mass(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MassUnit unit) => GetValueAs(unit); - - /// - /// Converts this Mass to another Mass with the unit representation . - /// - /// A Mass with the specified unit. - public Mass ToUnit(MassUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Mass(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MassUnit.Centigram => (_value / 1e3) * 1e-2d, - MassUnit.Dalton => _value * 1.66053906660e-27, - MassUnit.Decagram => (_value / 1e3) * 1e1d, - MassUnit.Decigram => (_value / 1e3) * 1e-1d, - MassUnit.EarthMass => _value * 5.9722E+24, - MassUnit.Femtogram => (_value / 1e3) * 1e-15d, - MassUnit.Gigadalton => (_value * 1.66053906660e-27) * 1e9d, - MassUnit.Grain => _value * 64.79891e-6, - MassUnit.Gram => _value / 1e3, - MassUnit.Hectogram => (_value / 1e3) * 1e2d, - MassUnit.Kilodalton => (_value * 1.66053906660e-27) * 1e3d, - MassUnit.Kilogram => (_value / 1e3) * 1e3d, - MassUnit.Kilopound => (_value * 0.45359237) * 1e3d, - MassUnit.Kilotonne => (_value * 1e3) * 1e3d, - MassUnit.LongHundredweight => _value * 50.80234544, - MassUnit.LongTon => _value * 1016.0469088, - MassUnit.Megadalton => (_value * 1.66053906660e-27) * 1e6d, - MassUnit.Megapound => (_value * 0.45359237) * 1e6d, - MassUnit.Megatonne => (_value * 1e3) * 1e6d, - MassUnit.Microgram => (_value / 1e3) * 1e-6d, - MassUnit.Milligram => (_value / 1e3) * 1e-3d, - MassUnit.Nanogram => (_value / 1e3) * 1e-9d, - MassUnit.Ounce => _value * 0.028349523125, - MassUnit.Picogram => (_value / 1e3) * 1e-12d, - MassUnit.Pound => _value * 0.45359237, - MassUnit.ShortHundredweight => _value * 45.359237, - MassUnit.ShortTon => _value * 907.18474, - MassUnit.Slug => _value * 0.45359237 * 9.80665 / 0.3048, - MassUnit.SolarMass => _value * 1.98947e30, - MassUnit.Stone => _value * 6.35029318, - MassUnit.Tonne => _value * 1e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MassUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MassUnit.Centigram => (baseUnitValue * 1e3) / 1e-2d, - MassUnit.Dalton => baseUnitValue / 1.66053906660e-27, - MassUnit.Decagram => (baseUnitValue * 1e3) / 1e1d, - MassUnit.Decigram => (baseUnitValue * 1e3) / 1e-1d, - MassUnit.EarthMass => baseUnitValue / 5.9722E+24, - MassUnit.Femtogram => (baseUnitValue * 1e3) / 1e-15d, - MassUnit.Gigadalton => (baseUnitValue / 1.66053906660e-27) / 1e9d, - MassUnit.Grain => baseUnitValue / 64.79891e-6, - MassUnit.Gram => baseUnitValue * 1e3, - MassUnit.Hectogram => (baseUnitValue * 1e3) / 1e2d, - MassUnit.Kilodalton => (baseUnitValue / 1.66053906660e-27) / 1e3d, - MassUnit.Kilogram => (baseUnitValue * 1e3) / 1e3d, - MassUnit.Kilopound => (baseUnitValue / 0.45359237) / 1e3d, - MassUnit.Kilotonne => (baseUnitValue / 1e3) / 1e3d, - MassUnit.LongHundredweight => baseUnitValue / 50.80234544, - MassUnit.LongTon => baseUnitValue / 1016.0469088, - MassUnit.Megadalton => (baseUnitValue / 1.66053906660e-27) / 1e6d, - MassUnit.Megapound => (baseUnitValue / 0.45359237) / 1e6d, - MassUnit.Megatonne => (baseUnitValue / 1e3) / 1e6d, - MassUnit.Microgram => (baseUnitValue * 1e3) / 1e-6d, - MassUnit.Milligram => (baseUnitValue * 1e3) / 1e-3d, - MassUnit.Nanogram => (baseUnitValue * 1e3) / 1e-9d, - MassUnit.Ounce => baseUnitValue / 0.028349523125, - MassUnit.Picogram => (baseUnitValue * 1e3) / 1e-12d, - MassUnit.Pound => baseUnitValue / 0.45359237, - MassUnit.ShortHundredweight => baseUnitValue / 45.359237, - MassUnit.ShortTon => baseUnitValue / 907.18474, - MassUnit.Slug => baseUnitValue * 0.3048 / (0.45359237 * 9.80665), - MassUnit.SolarMass => baseUnitValue / 1.98947e30, - MassUnit.Stone => baseUnitValue / 6.35029318, - MassUnit.Tonne => baseUnitValue / 1e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassConcentration.g.cs deleted file mode 100644 index 3ef7bf6e66..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassConcentration.g.cs +++ /dev/null @@ -1,736 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In chemistry, the mass concentration ρi (or γi) is defined as the mass of a constituent mi divided by the volume of the mixture V - /// - /// - /// https://en.wikipedia.org/wiki/Mass_concentration_(chemistry) - /// - public struct MassConcentration - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MassConcentrationUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MassConcentrationUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MassConcentration(double value, MassConcentrationUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MassConcentration, which is Second. All conversions go via this value. - /// - public static MassConcentrationUnit BaseUnit { get; } = MassConcentrationUnit.KilogramPerCubicMeter; - - /// - /// Represents the largest possible value of MassConcentration. - /// - public static MassConcentration MaxValue { get; } = new MassConcentration(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MassConcentration. - /// - public static MassConcentration MinValue { get; } = new MassConcentration(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MassConcentration Zero { get; } = new MassConcentration(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerDeciliter => As(MassConcentrationUnit.CentigramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerLiter => As(MassConcentrationUnit.CentigramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerMicroliter => As(MassConcentrationUnit.CentigramPerMicroliter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerMilliliter => As(MassConcentrationUnit.CentigramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerDeciliter => As(MassConcentrationUnit.DecigramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerLiter => As(MassConcentrationUnit.DecigramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerMicroliter => As(MassConcentrationUnit.DecigramPerMicroliter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerMilliliter => As(MassConcentrationUnit.DecigramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerCubicCentimeter => As(MassConcentrationUnit.GramPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerCubicMeter => As(MassConcentrationUnit.GramPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerCubicMillimeter => As(MassConcentrationUnit.GramPerCubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerDeciliter => As(MassConcentrationUnit.GramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerLiter => As(MassConcentrationUnit.GramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerMicroliter => As(MassConcentrationUnit.GramPerMicroliter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerMilliliter => As(MassConcentrationUnit.GramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerCubicCentimeter => As(MassConcentrationUnit.KilogramPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerCubicMeter => As(MassConcentrationUnit.KilogramPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerCubicMillimeter => As(MassConcentrationUnit.KilogramPerCubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerLiter => As(MassConcentrationUnit.KilogramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsPerCubicFoot => As(MassConcentrationUnit.KilopoundPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsPerCubicInch => As(MassConcentrationUnit.KilopoundPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerCubicMeter => As(MassConcentrationUnit.MicrogramPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerDeciliter => As(MassConcentrationUnit.MicrogramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerLiter => As(MassConcentrationUnit.MicrogramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerMicroliter => As(MassConcentrationUnit.MicrogramPerMicroliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerMilliliter => As(MassConcentrationUnit.MicrogramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerCubicMeter => As(MassConcentrationUnit.MilligramPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerDeciliter => As(MassConcentrationUnit.MilligramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerLiter => As(MassConcentrationUnit.MilligramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerMicroliter => As(MassConcentrationUnit.MilligramPerMicroliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerMilliliter => As(MassConcentrationUnit.MilligramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerDeciliter => As(MassConcentrationUnit.NanogramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerLiter => As(MassConcentrationUnit.NanogramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerMicroliter => As(MassConcentrationUnit.NanogramPerMicroliter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerMilliliter => As(MassConcentrationUnit.NanogramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double OuncesPerImperialGallon => As(MassConcentrationUnit.OuncePerImperialGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double OuncesPerUSGallon => As(MassConcentrationUnit.OuncePerUSGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double PicogramsPerDeciliter => As(MassConcentrationUnit.PicogramPerDeciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicogramsPerLiter => As(MassConcentrationUnit.PicogramPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicogramsPerMicroliter => As(MassConcentrationUnit.PicogramPerMicroliter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicogramsPerMilliliter => As(MassConcentrationUnit.PicogramPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerCubicFoot => As(MassConcentrationUnit.PoundPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerCubicInch => As(MassConcentrationUnit.PoundPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerImperialGallon => As(MassConcentrationUnit.PoundPerImperialGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerUSGallon => As(MassConcentrationUnit.PoundPerUSGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double SlugsPerCubicFoot => As(MassConcentrationUnit.SlugPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerCubicCentimeter => As(MassConcentrationUnit.TonnePerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerCubicMeter => As(MassConcentrationUnit.TonnePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerCubicMillimeter => As(MassConcentrationUnit.TonnePerCubicMillimeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MassConcentration FromCentigramsPerDeciliter(double centigramsperdeciliter) => new MassConcentration(centigramsperdeciliter, MassConcentrationUnit.CentigramPerDeciliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromCentigramsPerLiter(double centigramsperliter) => new MassConcentration(centigramsperliter, MassConcentrationUnit.CentigramPerLiter); - - /// - /// Creates a from . - /// - public static MassConcentration FromCentigramsPerMicroliter(double centigramspermicroliter) => new MassConcentration(centigramspermicroliter, MassConcentrationUnit.CentigramPerMicroliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromCentigramsPerMilliliter(double centigramspermilliliter) => new MassConcentration(centigramspermilliliter, MassConcentrationUnit.CentigramPerMilliliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromDecigramsPerDeciliter(double decigramsperdeciliter) => new MassConcentration(decigramsperdeciliter, MassConcentrationUnit.DecigramPerDeciliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromDecigramsPerLiter(double decigramsperliter) => new MassConcentration(decigramsperliter, MassConcentrationUnit.DecigramPerLiter); - - /// - /// Creates a from . - /// - public static MassConcentration FromDecigramsPerMicroliter(double decigramspermicroliter) => new MassConcentration(decigramspermicroliter, MassConcentrationUnit.DecigramPerMicroliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromDecigramsPerMilliliter(double decigramspermilliliter) => new MassConcentration(decigramspermilliliter, MassConcentrationUnit.DecigramPerMilliliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromGramsPerCubicCentimeter(double gramspercubiccentimeter) => new MassConcentration(gramspercubiccentimeter, MassConcentrationUnit.GramPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromGramsPerCubicMeter(double gramspercubicmeter) => new MassConcentration(gramspercubicmeter, MassConcentrationUnit.GramPerCubicMeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromGramsPerCubicMillimeter(double gramspercubicmillimeter) => new MassConcentration(gramspercubicmillimeter, MassConcentrationUnit.GramPerCubicMillimeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromGramsPerDeciliter(double gramsperdeciliter) => new MassConcentration(gramsperdeciliter, MassConcentrationUnit.GramPerDeciliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromGramsPerLiter(double gramsperliter) => new MassConcentration(gramsperliter, MassConcentrationUnit.GramPerLiter); - - /// - /// Creates a from . - /// - public static MassConcentration FromGramsPerMicroliter(double gramspermicroliter) => new MassConcentration(gramspermicroliter, MassConcentrationUnit.GramPerMicroliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromGramsPerMilliliter(double gramspermilliliter) => new MassConcentration(gramspermilliliter, MassConcentrationUnit.GramPerMilliliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromKilogramsPerCubicCentimeter(double kilogramspercubiccentimeter) => new MassConcentration(kilogramspercubiccentimeter, MassConcentrationUnit.KilogramPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromKilogramsPerCubicMeter(double kilogramspercubicmeter) => new MassConcentration(kilogramspercubicmeter, MassConcentrationUnit.KilogramPerCubicMeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromKilogramsPerCubicMillimeter(double kilogramspercubicmillimeter) => new MassConcentration(kilogramspercubicmillimeter, MassConcentrationUnit.KilogramPerCubicMillimeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromKilogramsPerLiter(double kilogramsperliter) => new MassConcentration(kilogramsperliter, MassConcentrationUnit.KilogramPerLiter); - - /// - /// Creates a from . - /// - public static MassConcentration FromKilopoundsPerCubicFoot(double kilopoundspercubicfoot) => new MassConcentration(kilopoundspercubicfoot, MassConcentrationUnit.KilopoundPerCubicFoot); - - /// - /// Creates a from . - /// - public static MassConcentration FromKilopoundsPerCubicInch(double kilopoundspercubicinch) => new MassConcentration(kilopoundspercubicinch, MassConcentrationUnit.KilopoundPerCubicInch); - - /// - /// Creates a from . - /// - public static MassConcentration FromMicrogramsPerCubicMeter(double microgramspercubicmeter) => new MassConcentration(microgramspercubicmeter, MassConcentrationUnit.MicrogramPerCubicMeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromMicrogramsPerDeciliter(double microgramsperdeciliter) => new MassConcentration(microgramsperdeciliter, MassConcentrationUnit.MicrogramPerDeciliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromMicrogramsPerLiter(double microgramsperliter) => new MassConcentration(microgramsperliter, MassConcentrationUnit.MicrogramPerLiter); - - /// - /// Creates a from . - /// - public static MassConcentration FromMicrogramsPerMicroliter(double microgramspermicroliter) => new MassConcentration(microgramspermicroliter, MassConcentrationUnit.MicrogramPerMicroliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromMicrogramsPerMilliliter(double microgramspermilliliter) => new MassConcentration(microgramspermilliliter, MassConcentrationUnit.MicrogramPerMilliliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromMilligramsPerCubicMeter(double milligramspercubicmeter) => new MassConcentration(milligramspercubicmeter, MassConcentrationUnit.MilligramPerCubicMeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromMilligramsPerDeciliter(double milligramsperdeciliter) => new MassConcentration(milligramsperdeciliter, MassConcentrationUnit.MilligramPerDeciliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromMilligramsPerLiter(double milligramsperliter) => new MassConcentration(milligramsperliter, MassConcentrationUnit.MilligramPerLiter); - - /// - /// Creates a from . - /// - public static MassConcentration FromMilligramsPerMicroliter(double milligramspermicroliter) => new MassConcentration(milligramspermicroliter, MassConcentrationUnit.MilligramPerMicroliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromMilligramsPerMilliliter(double milligramspermilliliter) => new MassConcentration(milligramspermilliliter, MassConcentrationUnit.MilligramPerMilliliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromNanogramsPerDeciliter(double nanogramsperdeciliter) => new MassConcentration(nanogramsperdeciliter, MassConcentrationUnit.NanogramPerDeciliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromNanogramsPerLiter(double nanogramsperliter) => new MassConcentration(nanogramsperliter, MassConcentrationUnit.NanogramPerLiter); - - /// - /// Creates a from . - /// - public static MassConcentration FromNanogramsPerMicroliter(double nanogramspermicroliter) => new MassConcentration(nanogramspermicroliter, MassConcentrationUnit.NanogramPerMicroliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromNanogramsPerMilliliter(double nanogramspermilliliter) => new MassConcentration(nanogramspermilliliter, MassConcentrationUnit.NanogramPerMilliliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromOuncesPerImperialGallon(double ouncesperimperialgallon) => new MassConcentration(ouncesperimperialgallon, MassConcentrationUnit.OuncePerImperialGallon); - - /// - /// Creates a from . - /// - public static MassConcentration FromOuncesPerUSGallon(double ouncesperusgallon) => new MassConcentration(ouncesperusgallon, MassConcentrationUnit.OuncePerUSGallon); - - /// - /// Creates a from . - /// - public static MassConcentration FromPicogramsPerDeciliter(double picogramsperdeciliter) => new MassConcentration(picogramsperdeciliter, MassConcentrationUnit.PicogramPerDeciliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromPicogramsPerLiter(double picogramsperliter) => new MassConcentration(picogramsperliter, MassConcentrationUnit.PicogramPerLiter); - - /// - /// Creates a from . - /// - public static MassConcentration FromPicogramsPerMicroliter(double picogramspermicroliter) => new MassConcentration(picogramspermicroliter, MassConcentrationUnit.PicogramPerMicroliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromPicogramsPerMilliliter(double picogramspermilliliter) => new MassConcentration(picogramspermilliliter, MassConcentrationUnit.PicogramPerMilliliter); - - /// - /// Creates a from . - /// - public static MassConcentration FromPoundsPerCubicFoot(double poundspercubicfoot) => new MassConcentration(poundspercubicfoot, MassConcentrationUnit.PoundPerCubicFoot); - - /// - /// Creates a from . - /// - public static MassConcentration FromPoundsPerCubicInch(double poundspercubicinch) => new MassConcentration(poundspercubicinch, MassConcentrationUnit.PoundPerCubicInch); - - /// - /// Creates a from . - /// - public static MassConcentration FromPoundsPerImperialGallon(double poundsperimperialgallon) => new MassConcentration(poundsperimperialgallon, MassConcentrationUnit.PoundPerImperialGallon); - - /// - /// Creates a from . - /// - public static MassConcentration FromPoundsPerUSGallon(double poundsperusgallon) => new MassConcentration(poundsperusgallon, MassConcentrationUnit.PoundPerUSGallon); - - /// - /// Creates a from . - /// - public static MassConcentration FromSlugsPerCubicFoot(double slugspercubicfoot) => new MassConcentration(slugspercubicfoot, MassConcentrationUnit.SlugPerCubicFoot); - - /// - /// Creates a from . - /// - public static MassConcentration FromTonnesPerCubicCentimeter(double tonnespercubiccentimeter) => new MassConcentration(tonnespercubiccentimeter, MassConcentrationUnit.TonnePerCubicCentimeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromTonnesPerCubicMeter(double tonnespercubicmeter) => new MassConcentration(tonnespercubicmeter, MassConcentrationUnit.TonnePerCubicMeter); - - /// - /// Creates a from . - /// - public static MassConcentration FromTonnesPerCubicMillimeter(double tonnespercubicmillimeter) => new MassConcentration(tonnespercubicmillimeter, MassConcentrationUnit.TonnePerCubicMillimeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MassConcentration unit value. - public static MassConcentration From(double value, MassConcentrationUnit fromUnit) - { - return new MassConcentration(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MassConcentrationUnit unit) => GetValueAs(unit); - - /// - /// Converts this MassConcentration to another MassConcentration with the unit representation . - /// - /// A MassConcentration with the specified unit. - public MassConcentration ToUnit(MassConcentrationUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MassConcentration(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MassConcentrationUnit.CentigramPerDeciliter => (_value / 1e-1) * 1e-2d, - MassConcentrationUnit.CentigramPerLiter => (_value) * 1e-2d, - MassConcentrationUnit.CentigramPerMicroliter => (_value / 1e-6) * 1e-2d, - MassConcentrationUnit.CentigramPerMilliliter => (_value / 1e-3) * 1e-2d, - MassConcentrationUnit.DecigramPerDeciliter => (_value / 1e-1) * 1e-1d, - MassConcentrationUnit.DecigramPerLiter => (_value) * 1e-1d, - MassConcentrationUnit.DecigramPerMicroliter => (_value / 1e-6) * 1e-1d, - MassConcentrationUnit.DecigramPerMilliliter => (_value / 1e-3) * 1e-1d, - MassConcentrationUnit.GramPerCubicCentimeter => _value / 1e-3, - MassConcentrationUnit.GramPerCubicMeter => _value / 1e3, - MassConcentrationUnit.GramPerCubicMillimeter => _value / 1e-6, - MassConcentrationUnit.GramPerDeciliter => _value / 1e-1, - MassConcentrationUnit.GramPerLiter => _value, - MassConcentrationUnit.GramPerMicroliter => _value / 1e-6, - MassConcentrationUnit.GramPerMilliliter => _value / 1e-3, - MassConcentrationUnit.KilogramPerCubicCentimeter => (_value / 1e-3) * 1e3d, - MassConcentrationUnit.KilogramPerCubicMeter => (_value / 1e3) * 1e3d, - MassConcentrationUnit.KilogramPerCubicMillimeter => (_value / 1e-6) * 1e3d, - MassConcentrationUnit.KilogramPerLiter => (_value) * 1e3d, - MassConcentrationUnit.KilopoundPerCubicFoot => (_value * 0.45359237 / 0.028316846592) * 1e3d, - MassConcentrationUnit.KilopoundPerCubicInch => (_value * 0.45359237 / 1.6387064e-5) * 1e3d, - MassConcentrationUnit.MicrogramPerCubicMeter => (_value / 1e3) * 1e-6d, - MassConcentrationUnit.MicrogramPerDeciliter => (_value / 1e-1) * 1e-6d, - MassConcentrationUnit.MicrogramPerLiter => (_value) * 1e-6d, - MassConcentrationUnit.MicrogramPerMicroliter => (_value / 1e-6) * 1e-6d, - MassConcentrationUnit.MicrogramPerMilliliter => (_value / 1e-3) * 1e-6d, - MassConcentrationUnit.MilligramPerCubicMeter => (_value / 1e3) * 1e-3d, - MassConcentrationUnit.MilligramPerDeciliter => (_value / 1e-1) * 1e-3d, - MassConcentrationUnit.MilligramPerLiter => (_value) * 1e-3d, - MassConcentrationUnit.MilligramPerMicroliter => (_value / 1e-6) * 1e-3d, - MassConcentrationUnit.MilligramPerMilliliter => (_value / 1e-3) * 1e-3d, - MassConcentrationUnit.NanogramPerDeciliter => (_value / 1e-1) * 1e-9d, - MassConcentrationUnit.NanogramPerLiter => (_value) * 1e-9d, - MassConcentrationUnit.NanogramPerMicroliter => (_value / 1e-6) * 1e-9d, - MassConcentrationUnit.NanogramPerMilliliter => (_value / 1e-3) * 1e-9d, - MassConcentrationUnit.OuncePerImperialGallon => _value * 0.028349523125 / 0.00454609, - MassConcentrationUnit.OuncePerUSGallon => _value * 0.028349523125 / 0.003785411784, - MassConcentrationUnit.PicogramPerDeciliter => (_value / 1e-1) * 1e-12d, - MassConcentrationUnit.PicogramPerLiter => (_value) * 1e-12d, - MassConcentrationUnit.PicogramPerMicroliter => (_value / 1e-6) * 1e-12d, - MassConcentrationUnit.PicogramPerMilliliter => (_value / 1e-3) * 1e-12d, - MassConcentrationUnit.PoundPerCubicFoot => _value * 0.45359237 / 0.028316846592, - MassConcentrationUnit.PoundPerCubicInch => _value * 0.45359237 / 1.6387064e-5, - MassConcentrationUnit.PoundPerImperialGallon => _value * 0.45359237 / 0.00454609, - MassConcentrationUnit.PoundPerUSGallon => _value * 0.45359237 / 0.003785411784, - MassConcentrationUnit.SlugPerCubicFoot => _value * (0.45359237 * 9.80665) / (0.3048 * 0.028316846592), - MassConcentrationUnit.TonnePerCubicCentimeter => _value / 1e-9, - MassConcentrationUnit.TonnePerCubicMeter => _value / 0.001, - MassConcentrationUnit.TonnePerCubicMillimeter => _value / 1e-12, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MassConcentrationUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MassConcentrationUnit.CentigramPerDeciliter => (baseUnitValue * 1e-1) / 1e-2d, - MassConcentrationUnit.CentigramPerLiter => (baseUnitValue) / 1e-2d, - MassConcentrationUnit.CentigramPerMicroliter => (baseUnitValue * 1e-6) / 1e-2d, - MassConcentrationUnit.CentigramPerMilliliter => (baseUnitValue * 1e-3) / 1e-2d, - MassConcentrationUnit.DecigramPerDeciliter => (baseUnitValue * 1e-1) / 1e-1d, - MassConcentrationUnit.DecigramPerLiter => (baseUnitValue) / 1e-1d, - MassConcentrationUnit.DecigramPerMicroliter => (baseUnitValue * 1e-6) / 1e-1d, - MassConcentrationUnit.DecigramPerMilliliter => (baseUnitValue * 1e-3) / 1e-1d, - MassConcentrationUnit.GramPerCubicCentimeter => baseUnitValue * 1e-3, - MassConcentrationUnit.GramPerCubicMeter => baseUnitValue * 1e3, - MassConcentrationUnit.GramPerCubicMillimeter => baseUnitValue * 1e-6, - MassConcentrationUnit.GramPerDeciliter => baseUnitValue * 1e-1, - MassConcentrationUnit.GramPerLiter => baseUnitValue, - MassConcentrationUnit.GramPerMicroliter => baseUnitValue * 1e-6, - MassConcentrationUnit.GramPerMilliliter => baseUnitValue * 1e-3, - MassConcentrationUnit.KilogramPerCubicCentimeter => (baseUnitValue * 1e-3) / 1e3d, - MassConcentrationUnit.KilogramPerCubicMeter => (baseUnitValue * 1e3) / 1e3d, - MassConcentrationUnit.KilogramPerCubicMillimeter => (baseUnitValue * 1e-6) / 1e3d, - MassConcentrationUnit.KilogramPerLiter => (baseUnitValue) / 1e3d, - MassConcentrationUnit.KilopoundPerCubicFoot => (baseUnitValue * 0.028316846592 / 0.45359237) / 1e3d, - MassConcentrationUnit.KilopoundPerCubicInch => (baseUnitValue * 1.6387064e-5 / 0.45359237) / 1e3d, - MassConcentrationUnit.MicrogramPerCubicMeter => (baseUnitValue * 1e3) / 1e-6d, - MassConcentrationUnit.MicrogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-6d, - MassConcentrationUnit.MicrogramPerLiter => (baseUnitValue) / 1e-6d, - MassConcentrationUnit.MicrogramPerMicroliter => (baseUnitValue * 1e-6) / 1e-6d, - MassConcentrationUnit.MicrogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-6d, - MassConcentrationUnit.MilligramPerCubicMeter => (baseUnitValue * 1e3) / 1e-3d, - MassConcentrationUnit.MilligramPerDeciliter => (baseUnitValue * 1e-1) / 1e-3d, - MassConcentrationUnit.MilligramPerLiter => (baseUnitValue) / 1e-3d, - MassConcentrationUnit.MilligramPerMicroliter => (baseUnitValue * 1e-6) / 1e-3d, - MassConcentrationUnit.MilligramPerMilliliter => (baseUnitValue * 1e-3) / 1e-3d, - MassConcentrationUnit.NanogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-9d, - MassConcentrationUnit.NanogramPerLiter => (baseUnitValue) / 1e-9d, - MassConcentrationUnit.NanogramPerMicroliter => (baseUnitValue * 1e-6) / 1e-9d, - MassConcentrationUnit.NanogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-9d, - MassConcentrationUnit.OuncePerImperialGallon => baseUnitValue * 0.00454609 / 0.028349523125, - MassConcentrationUnit.OuncePerUSGallon => baseUnitValue * 0.003785411784 / 0.028349523125, - MassConcentrationUnit.PicogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-12d, - MassConcentrationUnit.PicogramPerLiter => (baseUnitValue) / 1e-12d, - MassConcentrationUnit.PicogramPerMicroliter => (baseUnitValue * 1e-6) / 1e-12d, - MassConcentrationUnit.PicogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-12d, - MassConcentrationUnit.PoundPerCubicFoot => baseUnitValue * 0.028316846592 / 0.45359237, - MassConcentrationUnit.PoundPerCubicInch => baseUnitValue * 1.6387064e-5 / 0.45359237, - MassConcentrationUnit.PoundPerImperialGallon => baseUnitValue * 0.00454609 / 0.45359237, - MassConcentrationUnit.PoundPerUSGallon => baseUnitValue * 0.003785411784 / 0.45359237, - MassConcentrationUnit.SlugPerCubicFoot => baseUnitValue * (0.3048 * 0.028316846592) / (0.45359237 * 9.80665), - MassConcentrationUnit.TonnePerCubicCentimeter => baseUnitValue * 1e-9, - MassConcentrationUnit.TonnePerCubicMeter => baseUnitValue * 0.001, - MassConcentrationUnit.TonnePerCubicMillimeter => baseUnitValue * 1e-12, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlow.g.cs deleted file mode 100644 index d6812a6347..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlow.g.cs +++ /dev/null @@ -1,541 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Mass flow is the ratio of the mass change to the time during which the change occurred (value of mass changes per unit time). - /// - public struct MassFlow - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MassFlowUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MassFlowUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MassFlow(double value, MassFlowUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MassFlow, which is Second. All conversions go via this value. - /// - public static MassFlowUnit BaseUnit { get; } = MassFlowUnit.GramPerSecond; - - /// - /// Represents the largest possible value of MassFlow. - /// - public static MassFlow MaxValue { get; } = new MassFlow(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MassFlow. - /// - public static MassFlow MinValue { get; } = new MassFlow(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MassFlow Zero { get; } = new MassFlow(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerDay => As(MassFlowUnit.CentigramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerSecond => As(MassFlowUnit.CentigramPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecagramsPerDay => As(MassFlowUnit.DecagramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double DecagramsPerSecond => As(MassFlowUnit.DecagramPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerDay => As(MassFlowUnit.DecigramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerSecond => As(MassFlowUnit.DecigramPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerDay => As(MassFlowUnit.GramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerHour => As(MassFlowUnit.GramPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerSecond => As(MassFlowUnit.GramPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double HectogramsPerDay => As(MassFlowUnit.HectogramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double HectogramsPerSecond => As(MassFlowUnit.HectogramPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerDay => As(MassFlowUnit.KilogramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerHour => As(MassFlowUnit.KilogramPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerMinute => As(MassFlowUnit.KilogramPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerSecond => As(MassFlowUnit.KilogramPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegagramsPerDay => As(MassFlowUnit.MegagramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapoundsPerDay => As(MassFlowUnit.MegapoundPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapoundsPerHour => As(MassFlowUnit.MegapoundPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapoundsPerMinute => As(MassFlowUnit.MegapoundPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapoundsPerSecond => As(MassFlowUnit.MegapoundPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerDay => As(MassFlowUnit.MicrogramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerSecond => As(MassFlowUnit.MicrogramPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerDay => As(MassFlowUnit.MilligramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerSecond => As(MassFlowUnit.MilligramPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerDay => As(MassFlowUnit.NanogramPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerSecond => As(MassFlowUnit.NanogramPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerDay => As(MassFlowUnit.PoundPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerHour => As(MassFlowUnit.PoundPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerMinute => As(MassFlowUnit.PoundPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerSecond => As(MassFlowUnit.PoundPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double ShortTonsPerHour => As(MassFlowUnit.ShortTonPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerDay => As(MassFlowUnit.TonnePerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesPerHour => As(MassFlowUnit.TonnePerHour); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MassFlow FromCentigramsPerDay(double centigramsperday) => new MassFlow(centigramsperday, MassFlowUnit.CentigramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromCentigramsPerSecond(double centigramspersecond) => new MassFlow(centigramspersecond, MassFlowUnit.CentigramPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromDecagramsPerDay(double decagramsperday) => new MassFlow(decagramsperday, MassFlowUnit.DecagramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromDecagramsPerSecond(double decagramspersecond) => new MassFlow(decagramspersecond, MassFlowUnit.DecagramPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromDecigramsPerDay(double decigramsperday) => new MassFlow(decigramsperday, MassFlowUnit.DecigramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromDecigramsPerSecond(double decigramspersecond) => new MassFlow(decigramspersecond, MassFlowUnit.DecigramPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromGramsPerDay(double gramsperday) => new MassFlow(gramsperday, MassFlowUnit.GramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromGramsPerHour(double gramsperhour) => new MassFlow(gramsperhour, MassFlowUnit.GramPerHour); - - /// - /// Creates a from . - /// - public static MassFlow FromGramsPerSecond(double gramspersecond) => new MassFlow(gramspersecond, MassFlowUnit.GramPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromHectogramsPerDay(double hectogramsperday) => new MassFlow(hectogramsperday, MassFlowUnit.HectogramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromHectogramsPerSecond(double hectogramspersecond) => new MassFlow(hectogramspersecond, MassFlowUnit.HectogramPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromKilogramsPerDay(double kilogramsperday) => new MassFlow(kilogramsperday, MassFlowUnit.KilogramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromKilogramsPerHour(double kilogramsperhour) => new MassFlow(kilogramsperhour, MassFlowUnit.KilogramPerHour); - - /// - /// Creates a from . - /// - public static MassFlow FromKilogramsPerMinute(double kilogramsperminute) => new MassFlow(kilogramsperminute, MassFlowUnit.KilogramPerMinute); - - /// - /// Creates a from . - /// - public static MassFlow FromKilogramsPerSecond(double kilogramspersecond) => new MassFlow(kilogramspersecond, MassFlowUnit.KilogramPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromMegagramsPerDay(double megagramsperday) => new MassFlow(megagramsperday, MassFlowUnit.MegagramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromMegapoundsPerDay(double megapoundsperday) => new MassFlow(megapoundsperday, MassFlowUnit.MegapoundPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromMegapoundsPerHour(double megapoundsperhour) => new MassFlow(megapoundsperhour, MassFlowUnit.MegapoundPerHour); - - /// - /// Creates a from . - /// - public static MassFlow FromMegapoundsPerMinute(double megapoundsperminute) => new MassFlow(megapoundsperminute, MassFlowUnit.MegapoundPerMinute); - - /// - /// Creates a from . - /// - public static MassFlow FromMegapoundsPerSecond(double megapoundspersecond) => new MassFlow(megapoundspersecond, MassFlowUnit.MegapoundPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromMicrogramsPerDay(double microgramsperday) => new MassFlow(microgramsperday, MassFlowUnit.MicrogramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromMicrogramsPerSecond(double microgramspersecond) => new MassFlow(microgramspersecond, MassFlowUnit.MicrogramPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromMilligramsPerDay(double milligramsperday) => new MassFlow(milligramsperday, MassFlowUnit.MilligramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromMilligramsPerSecond(double milligramspersecond) => new MassFlow(milligramspersecond, MassFlowUnit.MilligramPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromNanogramsPerDay(double nanogramsperday) => new MassFlow(nanogramsperday, MassFlowUnit.NanogramPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromNanogramsPerSecond(double nanogramspersecond) => new MassFlow(nanogramspersecond, MassFlowUnit.NanogramPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromPoundsPerDay(double poundsperday) => new MassFlow(poundsperday, MassFlowUnit.PoundPerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromPoundsPerHour(double poundsperhour) => new MassFlow(poundsperhour, MassFlowUnit.PoundPerHour); - - /// - /// Creates a from . - /// - public static MassFlow FromPoundsPerMinute(double poundsperminute) => new MassFlow(poundsperminute, MassFlowUnit.PoundPerMinute); - - /// - /// Creates a from . - /// - public static MassFlow FromPoundsPerSecond(double poundspersecond) => new MassFlow(poundspersecond, MassFlowUnit.PoundPerSecond); - - /// - /// Creates a from . - /// - public static MassFlow FromShortTonsPerHour(double shorttonsperhour) => new MassFlow(shorttonsperhour, MassFlowUnit.ShortTonPerHour); - - /// - /// Creates a from . - /// - public static MassFlow FromTonnesPerDay(double tonnesperday) => new MassFlow(tonnesperday, MassFlowUnit.TonnePerDay); - - /// - /// Creates a from . - /// - public static MassFlow FromTonnesPerHour(double tonnesperhour) => new MassFlow(tonnesperhour, MassFlowUnit.TonnePerHour); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MassFlow unit value. - public static MassFlow From(double value, MassFlowUnit fromUnit) - { - return new MassFlow(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MassFlowUnit unit) => GetValueAs(unit); - - /// - /// Converts this MassFlow to another MassFlow with the unit representation . - /// - /// A MassFlow with the specified unit. - public MassFlow ToUnit(MassFlowUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MassFlow(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MassFlowUnit.CentigramPerDay => (_value / 86400) * 1e-2d, - MassFlowUnit.CentigramPerSecond => (_value) * 1e-2d, - MassFlowUnit.DecagramPerDay => (_value / 86400) * 1e1d, - MassFlowUnit.DecagramPerSecond => (_value) * 1e1d, - MassFlowUnit.DecigramPerDay => (_value / 86400) * 1e-1d, - MassFlowUnit.DecigramPerSecond => (_value) * 1e-1d, - MassFlowUnit.GramPerDay => _value / 86400, - MassFlowUnit.GramPerHour => _value / 3600, - MassFlowUnit.GramPerSecond => _value, - MassFlowUnit.HectogramPerDay => (_value / 86400) * 1e2d, - MassFlowUnit.HectogramPerSecond => (_value) * 1e2d, - MassFlowUnit.KilogramPerDay => (_value / 86400) * 1e3d, - MassFlowUnit.KilogramPerHour => _value / 3.6, - MassFlowUnit.KilogramPerMinute => _value / 0.06, - MassFlowUnit.KilogramPerSecond => (_value) * 1e3d, - MassFlowUnit.MegagramPerDay => (_value / 86400) * 1e6d, - MassFlowUnit.MegapoundPerDay => (_value * 453.59237 / 86400) * 1e6d, - MassFlowUnit.MegapoundPerHour => (_value * 453.59237 / 3600) * 1e6d, - MassFlowUnit.MegapoundPerMinute => (_value * 453.59237 / 60) * 1e6d, - MassFlowUnit.MegapoundPerSecond => (_value * 453.59237) * 1e6d, - MassFlowUnit.MicrogramPerDay => (_value / 86400) * 1e-6d, - MassFlowUnit.MicrogramPerSecond => (_value) * 1e-6d, - MassFlowUnit.MilligramPerDay => (_value / 86400) * 1e-3d, - MassFlowUnit.MilligramPerSecond => (_value) * 1e-3d, - MassFlowUnit.NanogramPerDay => (_value / 86400) * 1e-9d, - MassFlowUnit.NanogramPerSecond => (_value) * 1e-9d, - MassFlowUnit.PoundPerDay => _value * 453.59237 / 86400, - MassFlowUnit.PoundPerHour => _value * 453.59237 / 3600, - MassFlowUnit.PoundPerMinute => _value * 453.59237 / 60, - MassFlowUnit.PoundPerSecond => _value * 453.59237, - MassFlowUnit.ShortTonPerHour => _value * 907.18474 / 3.6, - MassFlowUnit.TonnePerDay => _value / 0.0864000, - MassFlowUnit.TonnePerHour => _value * 1000 / 3.6, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MassFlowUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MassFlowUnit.CentigramPerDay => (baseUnitValue * 86400) / 1e-2d, - MassFlowUnit.CentigramPerSecond => (baseUnitValue) / 1e-2d, - MassFlowUnit.DecagramPerDay => (baseUnitValue * 86400) / 1e1d, - MassFlowUnit.DecagramPerSecond => (baseUnitValue) / 1e1d, - MassFlowUnit.DecigramPerDay => (baseUnitValue * 86400) / 1e-1d, - MassFlowUnit.DecigramPerSecond => (baseUnitValue) / 1e-1d, - MassFlowUnit.GramPerDay => baseUnitValue * 86400, - MassFlowUnit.GramPerHour => baseUnitValue * 3600, - MassFlowUnit.GramPerSecond => baseUnitValue, - MassFlowUnit.HectogramPerDay => (baseUnitValue * 86400) / 1e2d, - MassFlowUnit.HectogramPerSecond => (baseUnitValue) / 1e2d, - MassFlowUnit.KilogramPerDay => (baseUnitValue * 86400) / 1e3d, - MassFlowUnit.KilogramPerHour => baseUnitValue * 3.6, - MassFlowUnit.KilogramPerMinute => baseUnitValue * 0.06, - MassFlowUnit.KilogramPerSecond => (baseUnitValue) / 1e3d, - MassFlowUnit.MegagramPerDay => (baseUnitValue * 86400) / 1e6d, - MassFlowUnit.MegapoundPerDay => (baseUnitValue * 86400 / 453.59237) / 1e6d, - MassFlowUnit.MegapoundPerHour => (baseUnitValue * 3600 / 453.59237) / 1e6d, - MassFlowUnit.MegapoundPerMinute => (baseUnitValue * 60 / 453.59237) / 1e6d, - MassFlowUnit.MegapoundPerSecond => (baseUnitValue / 453.59237) / 1e6d, - MassFlowUnit.MicrogramPerDay => (baseUnitValue * 86400) / 1e-6d, - MassFlowUnit.MicrogramPerSecond => (baseUnitValue) / 1e-6d, - MassFlowUnit.MilligramPerDay => (baseUnitValue * 86400) / 1e-3d, - MassFlowUnit.MilligramPerSecond => (baseUnitValue) / 1e-3d, - MassFlowUnit.NanogramPerDay => (baseUnitValue * 86400) / 1e-9d, - MassFlowUnit.NanogramPerSecond => (baseUnitValue) / 1e-9d, - MassFlowUnit.PoundPerDay => baseUnitValue * 86400 / 453.59237, - MassFlowUnit.PoundPerHour => baseUnitValue * 3600 / 453.59237, - MassFlowUnit.PoundPerMinute => baseUnitValue * 60 / 453.59237, - MassFlowUnit.PoundPerSecond => baseUnitValue / 453.59237, - MassFlowUnit.ShortTonPerHour => baseUnitValue * 3.6 / 907.18474, - MassFlowUnit.TonnePerDay => baseUnitValue * 0.0864000, - MassFlowUnit.TonnePerHour => baseUnitValue * 3.6 / 1000, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlux.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlux.g.cs deleted file mode 100644 index 3d73e1427c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlux.g.cs +++ /dev/null @@ -1,289 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Mass flux is the mass flow rate per unit area. - /// - public struct MassFlux - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MassFluxUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MassFluxUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MassFlux(double value, MassFluxUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MassFlux, which is Second. All conversions go via this value. - /// - public static MassFluxUnit BaseUnit { get; } = MassFluxUnit.KilogramPerSecondPerSquareMeter; - - /// - /// Represents the largest possible value of MassFlux. - /// - public static MassFlux MaxValue { get; } = new MassFlux(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MassFlux. - /// - public static MassFlux MinValue { get; } = new MassFlux(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MassFlux Zero { get; } = new MassFlux(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerHourPerSquareCentimeter => As(MassFluxUnit.GramPerHourPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerHourPerSquareMeter => As(MassFluxUnit.GramPerHourPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerHourPerSquareMillimeter => As(MassFluxUnit.GramPerHourPerSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerSecondPerSquareCentimeter => As(MassFluxUnit.GramPerSecondPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerSecondPerSquareMeter => As(MassFluxUnit.GramPerSecondPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerSecondPerSquareMillimeter => As(MassFluxUnit.GramPerSecondPerSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerHourPerSquareCentimeter => As(MassFluxUnit.KilogramPerHourPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerHourPerSquareMeter => As(MassFluxUnit.KilogramPerHourPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerHourPerSquareMillimeter => As(MassFluxUnit.KilogramPerHourPerSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerSecondPerSquareCentimeter => As(MassFluxUnit.KilogramPerSecondPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerSecondPerSquareMeter => As(MassFluxUnit.KilogramPerSecondPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerSecondPerSquareMillimeter => As(MassFluxUnit.KilogramPerSecondPerSquareMillimeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MassFlux FromGramsPerHourPerSquareCentimeter(double gramsperhourpersquarecentimeter) => new MassFlux(gramsperhourpersquarecentimeter, MassFluxUnit.GramPerHourPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassFlux FromGramsPerHourPerSquareMeter(double gramsperhourpersquaremeter) => new MassFlux(gramsperhourpersquaremeter, MassFluxUnit.GramPerHourPerSquareMeter); - - /// - /// Creates a from . - /// - public static MassFlux FromGramsPerHourPerSquareMillimeter(double gramsperhourpersquaremillimeter) => new MassFlux(gramsperhourpersquaremillimeter, MassFluxUnit.GramPerHourPerSquareMillimeter); - - /// - /// Creates a from . - /// - public static MassFlux FromGramsPerSecondPerSquareCentimeter(double gramspersecondpersquarecentimeter) => new MassFlux(gramspersecondpersquarecentimeter, MassFluxUnit.GramPerSecondPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassFlux FromGramsPerSecondPerSquareMeter(double gramspersecondpersquaremeter) => new MassFlux(gramspersecondpersquaremeter, MassFluxUnit.GramPerSecondPerSquareMeter); - - /// - /// Creates a from . - /// - public static MassFlux FromGramsPerSecondPerSquareMillimeter(double gramspersecondpersquaremillimeter) => new MassFlux(gramspersecondpersquaremillimeter, MassFluxUnit.GramPerSecondPerSquareMillimeter); - - /// - /// Creates a from . - /// - public static MassFlux FromKilogramsPerHourPerSquareCentimeter(double kilogramsperhourpersquarecentimeter) => new MassFlux(kilogramsperhourpersquarecentimeter, MassFluxUnit.KilogramPerHourPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassFlux FromKilogramsPerHourPerSquareMeter(double kilogramsperhourpersquaremeter) => new MassFlux(kilogramsperhourpersquaremeter, MassFluxUnit.KilogramPerHourPerSquareMeter); - - /// - /// Creates a from . - /// - public static MassFlux FromKilogramsPerHourPerSquareMillimeter(double kilogramsperhourpersquaremillimeter) => new MassFlux(kilogramsperhourpersquaremillimeter, MassFluxUnit.KilogramPerHourPerSquareMillimeter); - - /// - /// Creates a from . - /// - public static MassFlux FromKilogramsPerSecondPerSquareCentimeter(double kilogramspersecondpersquarecentimeter) => new MassFlux(kilogramspersecondpersquarecentimeter, MassFluxUnit.KilogramPerSecondPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassFlux FromKilogramsPerSecondPerSquareMeter(double kilogramspersecondpersquaremeter) => new MassFlux(kilogramspersecondpersquaremeter, MassFluxUnit.KilogramPerSecondPerSquareMeter); - - /// - /// Creates a from . - /// - public static MassFlux FromKilogramsPerSecondPerSquareMillimeter(double kilogramspersecondpersquaremillimeter) => new MassFlux(kilogramspersecondpersquaremillimeter, MassFluxUnit.KilogramPerSecondPerSquareMillimeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MassFlux unit value. - public static MassFlux From(double value, MassFluxUnit fromUnit) - { - return new MassFlux(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MassFluxUnit unit) => GetValueAs(unit); - - /// - /// Converts this MassFlux to another MassFlux with the unit representation . - /// - /// A MassFlux with the specified unit. - public MassFlux ToUnit(MassFluxUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MassFlux(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MassFluxUnit.GramPerHourPerSquareCentimeter => _value / 3.6e2, - MassFluxUnit.GramPerHourPerSquareMeter => _value / 3.6e6, - MassFluxUnit.GramPerHourPerSquareMillimeter => _value / 3.6e0, - MassFluxUnit.GramPerSecondPerSquareCentimeter => _value / 1e-1, - MassFluxUnit.GramPerSecondPerSquareMeter => _value / 1e3, - MassFluxUnit.GramPerSecondPerSquareMillimeter => _value / 1e-3, - MassFluxUnit.KilogramPerHourPerSquareCentimeter => (_value / 3.6e2) * 1e3d, - MassFluxUnit.KilogramPerHourPerSquareMeter => (_value / 3.6e6) * 1e3d, - MassFluxUnit.KilogramPerHourPerSquareMillimeter => (_value / 3.6e0) * 1e3d, - MassFluxUnit.KilogramPerSecondPerSquareCentimeter => (_value / 1e-1) * 1e3d, - MassFluxUnit.KilogramPerSecondPerSquareMeter => (_value / 1e3) * 1e3d, - MassFluxUnit.KilogramPerSecondPerSquareMillimeter => (_value / 1e-3) * 1e3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MassFluxUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MassFluxUnit.GramPerHourPerSquareCentimeter => baseUnitValue * 3.6e2, - MassFluxUnit.GramPerHourPerSquareMeter => baseUnitValue * 3.6e6, - MassFluxUnit.GramPerHourPerSquareMillimeter => baseUnitValue * 3.6e0, - MassFluxUnit.GramPerSecondPerSquareCentimeter => baseUnitValue * 1e-1, - MassFluxUnit.GramPerSecondPerSquareMeter => baseUnitValue * 1e3, - MassFluxUnit.GramPerSecondPerSquareMillimeter => baseUnitValue * 1e-3, - MassFluxUnit.KilogramPerHourPerSquareCentimeter => (baseUnitValue * 3.6e2) / 1e3d, - MassFluxUnit.KilogramPerHourPerSquareMeter => (baseUnitValue * 3.6e6) / 1e3d, - MassFluxUnit.KilogramPerHourPerSquareMillimeter => (baseUnitValue * 3.6e0) / 1e3d, - MassFluxUnit.KilogramPerSecondPerSquareCentimeter => (baseUnitValue * 1e-1) / 1e3d, - MassFluxUnit.KilogramPerSecondPerSquareMeter => (baseUnitValue * 1e3) / 1e3d, - MassFluxUnit.KilogramPerSecondPerSquareMillimeter => (baseUnitValue * 1e-3) / 1e3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFraction.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFraction.g.cs deleted file mode 100644 index bf63376d96..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFraction.g.cs +++ /dev/null @@ -1,436 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The mass fraction is defined as the mass of a constituent divided by the total mass of the mixture. - /// - /// - /// https://en.wikipedia.org/wiki/Mass_fraction_(chemistry) - /// - public struct MassFraction - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MassFractionUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MassFractionUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MassFraction(double value, MassFractionUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MassFraction, which is Second. All conversions go via this value. - /// - public static MassFractionUnit BaseUnit { get; } = MassFractionUnit.DecimalFraction; - - /// - /// Represents the largest possible value of MassFraction. - /// - public static MassFraction MaxValue { get; } = new MassFraction(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MassFraction. - /// - public static MassFraction MinValue { get; } = new MassFraction(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MassFraction Zero { get; } = new MassFraction(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerGram => As(MassFractionUnit.CentigramPerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerKilogram => As(MassFractionUnit.CentigramPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double DecagramsPerGram => As(MassFractionUnit.DecagramPerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double DecagramsPerKilogram => As(MassFractionUnit.DecagramPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerGram => As(MassFractionUnit.DecigramPerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerKilogram => As(MassFractionUnit.DecigramPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double DecimalFractions => As(MassFractionUnit.DecimalFraction); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerGram => As(MassFractionUnit.GramPerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerKilogram => As(MassFractionUnit.GramPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double HectogramsPerGram => As(MassFractionUnit.HectogramPerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double HectogramsPerKilogram => As(MassFractionUnit.HectogramPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerGram => As(MassFractionUnit.KilogramPerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerKilogram => As(MassFractionUnit.KilogramPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerGram => As(MassFractionUnit.MicrogramPerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerKilogram => As(MassFractionUnit.MicrogramPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerGram => As(MassFractionUnit.MilligramPerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerKilogram => As(MassFractionUnit.MilligramPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerGram => As(MassFractionUnit.NanogramPerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerKilogram => As(MassFractionUnit.NanogramPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerBillion => As(MassFractionUnit.PartPerBillion); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerMillion => As(MassFractionUnit.PartPerMillion); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerThousand => As(MassFractionUnit.PartPerThousand); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerTrillion => As(MassFractionUnit.PartPerTrillion); - - /// - /// Gets a value of this quantity converted into - /// - public double Percent => As(MassFractionUnit.Percent); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MassFraction FromCentigramsPerGram(double centigramspergram) => new MassFraction(centigramspergram, MassFractionUnit.CentigramPerGram); - - /// - /// Creates a from . - /// - public static MassFraction FromCentigramsPerKilogram(double centigramsperkilogram) => new MassFraction(centigramsperkilogram, MassFractionUnit.CentigramPerKilogram); - - /// - /// Creates a from . - /// - public static MassFraction FromDecagramsPerGram(double decagramspergram) => new MassFraction(decagramspergram, MassFractionUnit.DecagramPerGram); - - /// - /// Creates a from . - /// - public static MassFraction FromDecagramsPerKilogram(double decagramsperkilogram) => new MassFraction(decagramsperkilogram, MassFractionUnit.DecagramPerKilogram); - - /// - /// Creates a from . - /// - public static MassFraction FromDecigramsPerGram(double decigramspergram) => new MassFraction(decigramspergram, MassFractionUnit.DecigramPerGram); - - /// - /// Creates a from . - /// - public static MassFraction FromDecigramsPerKilogram(double decigramsperkilogram) => new MassFraction(decigramsperkilogram, MassFractionUnit.DecigramPerKilogram); - - /// - /// Creates a from . - /// - public static MassFraction FromDecimalFractions(double decimalfractions) => new MassFraction(decimalfractions, MassFractionUnit.DecimalFraction); - - /// - /// Creates a from . - /// - public static MassFraction FromGramsPerGram(double gramspergram) => new MassFraction(gramspergram, MassFractionUnit.GramPerGram); - - /// - /// Creates a from . - /// - public static MassFraction FromGramsPerKilogram(double gramsperkilogram) => new MassFraction(gramsperkilogram, MassFractionUnit.GramPerKilogram); - - /// - /// Creates a from . - /// - public static MassFraction FromHectogramsPerGram(double hectogramspergram) => new MassFraction(hectogramspergram, MassFractionUnit.HectogramPerGram); - - /// - /// Creates a from . - /// - public static MassFraction FromHectogramsPerKilogram(double hectogramsperkilogram) => new MassFraction(hectogramsperkilogram, MassFractionUnit.HectogramPerKilogram); - - /// - /// Creates a from . - /// - public static MassFraction FromKilogramsPerGram(double kilogramspergram) => new MassFraction(kilogramspergram, MassFractionUnit.KilogramPerGram); - - /// - /// Creates a from . - /// - public static MassFraction FromKilogramsPerKilogram(double kilogramsperkilogram) => new MassFraction(kilogramsperkilogram, MassFractionUnit.KilogramPerKilogram); - - /// - /// Creates a from . - /// - public static MassFraction FromMicrogramsPerGram(double microgramspergram) => new MassFraction(microgramspergram, MassFractionUnit.MicrogramPerGram); - - /// - /// Creates a from . - /// - public static MassFraction FromMicrogramsPerKilogram(double microgramsperkilogram) => new MassFraction(microgramsperkilogram, MassFractionUnit.MicrogramPerKilogram); - - /// - /// Creates a from . - /// - public static MassFraction FromMilligramsPerGram(double milligramspergram) => new MassFraction(milligramspergram, MassFractionUnit.MilligramPerGram); - - /// - /// Creates a from . - /// - public static MassFraction FromMilligramsPerKilogram(double milligramsperkilogram) => new MassFraction(milligramsperkilogram, MassFractionUnit.MilligramPerKilogram); - - /// - /// Creates a from . - /// - public static MassFraction FromNanogramsPerGram(double nanogramspergram) => new MassFraction(nanogramspergram, MassFractionUnit.NanogramPerGram); - - /// - /// Creates a from . - /// - public static MassFraction FromNanogramsPerKilogram(double nanogramsperkilogram) => new MassFraction(nanogramsperkilogram, MassFractionUnit.NanogramPerKilogram); - - /// - /// Creates a from . - /// - public static MassFraction FromPartsPerBillion(double partsperbillion) => new MassFraction(partsperbillion, MassFractionUnit.PartPerBillion); - - /// - /// Creates a from . - /// - public static MassFraction FromPartsPerMillion(double partspermillion) => new MassFraction(partspermillion, MassFractionUnit.PartPerMillion); - - /// - /// Creates a from . - /// - public static MassFraction FromPartsPerThousand(double partsperthousand) => new MassFraction(partsperthousand, MassFractionUnit.PartPerThousand); - - /// - /// Creates a from . - /// - public static MassFraction FromPartsPerTrillion(double partspertrillion) => new MassFraction(partspertrillion, MassFractionUnit.PartPerTrillion); - - /// - /// Creates a from . - /// - public static MassFraction FromPercent(double percent) => new MassFraction(percent, MassFractionUnit.Percent); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MassFraction unit value. - public static MassFraction From(double value, MassFractionUnit fromUnit) - { - return new MassFraction(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MassFractionUnit unit) => GetValueAs(unit); - - /// - /// Converts this MassFraction to another MassFraction with the unit representation . - /// - /// A MassFraction with the specified unit. - public MassFraction ToUnit(MassFractionUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MassFraction(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MassFractionUnit.CentigramPerGram => (_value) * 1e-2d, - MassFractionUnit.CentigramPerKilogram => (_value / 1e3) * 1e-2d, - MassFractionUnit.DecagramPerGram => (_value) * 1e1d, - MassFractionUnit.DecagramPerKilogram => (_value / 1e3) * 1e1d, - MassFractionUnit.DecigramPerGram => (_value) * 1e-1d, - MassFractionUnit.DecigramPerKilogram => (_value / 1e3) * 1e-1d, - MassFractionUnit.DecimalFraction => _value, - MassFractionUnit.GramPerGram => _value, - MassFractionUnit.GramPerKilogram => _value / 1e3, - MassFractionUnit.HectogramPerGram => (_value) * 1e2d, - MassFractionUnit.HectogramPerKilogram => (_value / 1e3) * 1e2d, - MassFractionUnit.KilogramPerGram => (_value) * 1e3d, - MassFractionUnit.KilogramPerKilogram => (_value / 1e3) * 1e3d, - MassFractionUnit.MicrogramPerGram => (_value) * 1e-6d, - MassFractionUnit.MicrogramPerKilogram => (_value / 1e3) * 1e-6d, - MassFractionUnit.MilligramPerGram => (_value) * 1e-3d, - MassFractionUnit.MilligramPerKilogram => (_value / 1e3) * 1e-3d, - MassFractionUnit.NanogramPerGram => (_value) * 1e-9d, - MassFractionUnit.NanogramPerKilogram => (_value / 1e3) * 1e-9d, - MassFractionUnit.PartPerBillion => _value / 1e9, - MassFractionUnit.PartPerMillion => _value / 1e6, - MassFractionUnit.PartPerThousand => _value / 1e3, - MassFractionUnit.PartPerTrillion => _value / 1e12, - MassFractionUnit.Percent => _value / 1e2, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MassFractionUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MassFractionUnit.CentigramPerGram => (baseUnitValue) / 1e-2d, - MassFractionUnit.CentigramPerKilogram => (baseUnitValue * 1e3) / 1e-2d, - MassFractionUnit.DecagramPerGram => (baseUnitValue) / 1e1d, - MassFractionUnit.DecagramPerKilogram => (baseUnitValue * 1e3) / 1e1d, - MassFractionUnit.DecigramPerGram => (baseUnitValue) / 1e-1d, - MassFractionUnit.DecigramPerKilogram => (baseUnitValue * 1e3) / 1e-1d, - MassFractionUnit.DecimalFraction => baseUnitValue, - MassFractionUnit.GramPerGram => baseUnitValue, - MassFractionUnit.GramPerKilogram => baseUnitValue * 1e3, - MassFractionUnit.HectogramPerGram => (baseUnitValue) / 1e2d, - MassFractionUnit.HectogramPerKilogram => (baseUnitValue * 1e3) / 1e2d, - MassFractionUnit.KilogramPerGram => (baseUnitValue) / 1e3d, - MassFractionUnit.KilogramPerKilogram => (baseUnitValue * 1e3) / 1e3d, - MassFractionUnit.MicrogramPerGram => (baseUnitValue) / 1e-6d, - MassFractionUnit.MicrogramPerKilogram => (baseUnitValue * 1e3) / 1e-6d, - MassFractionUnit.MilligramPerGram => (baseUnitValue) / 1e-3d, - MassFractionUnit.MilligramPerKilogram => (baseUnitValue * 1e3) / 1e-3d, - MassFractionUnit.NanogramPerGram => (baseUnitValue) / 1e-9d, - MassFractionUnit.NanogramPerKilogram => (baseUnitValue * 1e3) / 1e-9d, - MassFractionUnit.PartPerBillion => baseUnitValue * 1e9, - MassFractionUnit.PartPerMillion => baseUnitValue * 1e6, - MassFractionUnit.PartPerThousand => baseUnitValue * 1e3, - MassFractionUnit.PartPerTrillion => baseUnitValue * 1e12, - MassFractionUnit.Percent => baseUnitValue * 1e2, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs deleted file mode 100644 index 1c80b42c24..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ /dev/null @@ -1,481 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A property of body reflects how its mass is distributed with regard to an axis. - /// - public struct MassMomentOfInertia - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MassMomentOfInertiaUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MassMomentOfInertiaUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MassMomentOfInertia, which is Second. All conversions go via this value. - /// - public static MassMomentOfInertiaUnit BaseUnit { get; } = MassMomentOfInertiaUnit.KilogramSquareMeter; - - /// - /// Represents the largest possible value of MassMomentOfInertia. - /// - public static MassMomentOfInertia MaxValue { get; } = new MassMomentOfInertia(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MassMomentOfInertia. - /// - public static MassMomentOfInertia MinValue { get; } = new MassMomentOfInertia(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MassMomentOfInertia Zero { get; } = new MassMomentOfInertia(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GramSquareCentimeters => As(MassMomentOfInertiaUnit.GramSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramSquareDecimeters => As(MassMomentOfInertiaUnit.GramSquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramSquareMeters => As(MassMomentOfInertiaUnit.GramSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramSquareMillimeters => As(MassMomentOfInertiaUnit.GramSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramSquareCentimeters => As(MassMomentOfInertiaUnit.KilogramSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramSquareDecimeters => As(MassMomentOfInertiaUnit.KilogramSquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramSquareMeters => As(MassMomentOfInertiaUnit.KilogramSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramSquareMillimeters => As(MassMomentOfInertiaUnit.KilogramSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilotonneSquareCentimeters => As(MassMomentOfInertiaUnit.KilotonneSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilotonneSquareDecimeters => As(MassMomentOfInertiaUnit.KilotonneSquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilotonneSquareMeters => As(MassMomentOfInertiaUnit.KilotonneSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilotonneSquareMillimeters => As(MassMomentOfInertiaUnit.KilotonneSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegatonneSquareCentimeters => As(MassMomentOfInertiaUnit.MegatonneSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegatonneSquareDecimeters => As(MassMomentOfInertiaUnit.MegatonneSquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegatonneSquareMeters => As(MassMomentOfInertiaUnit.MegatonneSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegatonneSquareMillimeters => As(MassMomentOfInertiaUnit.MegatonneSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramSquareCentimeters => As(MassMomentOfInertiaUnit.MilligramSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramSquareDecimeters => As(MassMomentOfInertiaUnit.MilligramSquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramSquareMeters => As(MassMomentOfInertiaUnit.MilligramSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramSquareMillimeters => As(MassMomentOfInertiaUnit.MilligramSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundSquareFeet => As(MassMomentOfInertiaUnit.PoundSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundSquareInches => As(MassMomentOfInertiaUnit.PoundSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double SlugSquareFeet => As(MassMomentOfInertiaUnit.SlugSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double SlugSquareInches => As(MassMomentOfInertiaUnit.SlugSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double TonneSquareCentimeters => As(MassMomentOfInertiaUnit.TonneSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonneSquareDecimeters => As(MassMomentOfInertiaUnit.TonneSquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonneSquareMeters => As(MassMomentOfInertiaUnit.TonneSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonneSquareMillimeters => As(MassMomentOfInertiaUnit.TonneSquareMillimeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromGramSquareCentimeters(double gramsquarecentimeters) => new MassMomentOfInertia(gramsquarecentimeters, MassMomentOfInertiaUnit.GramSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromGramSquareDecimeters(double gramsquaredecimeters) => new MassMomentOfInertia(gramsquaredecimeters, MassMomentOfInertiaUnit.GramSquareDecimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromGramSquareMeters(double gramsquaremeters) => new MassMomentOfInertia(gramsquaremeters, MassMomentOfInertiaUnit.GramSquareMeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromGramSquareMillimeters(double gramsquaremillimeters) => new MassMomentOfInertia(gramsquaremillimeters, MassMomentOfInertiaUnit.GramSquareMillimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromKilogramSquareCentimeters(double kilogramsquarecentimeters) => new MassMomentOfInertia(kilogramsquarecentimeters, MassMomentOfInertiaUnit.KilogramSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromKilogramSquareDecimeters(double kilogramsquaredecimeters) => new MassMomentOfInertia(kilogramsquaredecimeters, MassMomentOfInertiaUnit.KilogramSquareDecimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromKilogramSquareMeters(double kilogramsquaremeters) => new MassMomentOfInertia(kilogramsquaremeters, MassMomentOfInertiaUnit.KilogramSquareMeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromKilogramSquareMillimeters(double kilogramsquaremillimeters) => new MassMomentOfInertia(kilogramsquaremillimeters, MassMomentOfInertiaUnit.KilogramSquareMillimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromKilotonneSquareCentimeters(double kilotonnesquarecentimeters) => new MassMomentOfInertia(kilotonnesquarecentimeters, MassMomentOfInertiaUnit.KilotonneSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromKilotonneSquareDecimeters(double kilotonnesquaredecimeters) => new MassMomentOfInertia(kilotonnesquaredecimeters, MassMomentOfInertiaUnit.KilotonneSquareDecimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromKilotonneSquareMeters(double kilotonnesquaremeters) => new MassMomentOfInertia(kilotonnesquaremeters, MassMomentOfInertiaUnit.KilotonneSquareMeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromKilotonneSquareMillimeters(double kilotonnesquaremillimeters) => new MassMomentOfInertia(kilotonnesquaremillimeters, MassMomentOfInertiaUnit.KilotonneSquareMillimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromMegatonneSquareCentimeters(double megatonnesquarecentimeters) => new MassMomentOfInertia(megatonnesquarecentimeters, MassMomentOfInertiaUnit.MegatonneSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromMegatonneSquareDecimeters(double megatonnesquaredecimeters) => new MassMomentOfInertia(megatonnesquaredecimeters, MassMomentOfInertiaUnit.MegatonneSquareDecimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromMegatonneSquareMeters(double megatonnesquaremeters) => new MassMomentOfInertia(megatonnesquaremeters, MassMomentOfInertiaUnit.MegatonneSquareMeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromMegatonneSquareMillimeters(double megatonnesquaremillimeters) => new MassMomentOfInertia(megatonnesquaremillimeters, MassMomentOfInertiaUnit.MegatonneSquareMillimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromMilligramSquareCentimeters(double milligramsquarecentimeters) => new MassMomentOfInertia(milligramsquarecentimeters, MassMomentOfInertiaUnit.MilligramSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromMilligramSquareDecimeters(double milligramsquaredecimeters) => new MassMomentOfInertia(milligramsquaredecimeters, MassMomentOfInertiaUnit.MilligramSquareDecimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromMilligramSquareMeters(double milligramsquaremeters) => new MassMomentOfInertia(milligramsquaremeters, MassMomentOfInertiaUnit.MilligramSquareMeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromMilligramSquareMillimeters(double milligramsquaremillimeters) => new MassMomentOfInertia(milligramsquaremillimeters, MassMomentOfInertiaUnit.MilligramSquareMillimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromPoundSquareFeet(double poundsquarefeet) => new MassMomentOfInertia(poundsquarefeet, MassMomentOfInertiaUnit.PoundSquareFoot); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromPoundSquareInches(double poundsquareinches) => new MassMomentOfInertia(poundsquareinches, MassMomentOfInertiaUnit.PoundSquareInch); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromSlugSquareFeet(double slugsquarefeet) => new MassMomentOfInertia(slugsquarefeet, MassMomentOfInertiaUnit.SlugSquareFoot); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromSlugSquareInches(double slugsquareinches) => new MassMomentOfInertia(slugsquareinches, MassMomentOfInertiaUnit.SlugSquareInch); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromTonneSquareCentimeters(double tonnesquarecentimeters) => new MassMomentOfInertia(tonnesquarecentimeters, MassMomentOfInertiaUnit.TonneSquareCentimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromTonneSquareDecimeters(double tonnesquaredecimeters) => new MassMomentOfInertia(tonnesquaredecimeters, MassMomentOfInertiaUnit.TonneSquareDecimeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromTonneSquareMeters(double tonnesquaremeters) => new MassMomentOfInertia(tonnesquaremeters, MassMomentOfInertiaUnit.TonneSquareMeter); - - /// - /// Creates a from . - /// - public static MassMomentOfInertia FromTonneSquareMillimeters(double tonnesquaremillimeters) => new MassMomentOfInertia(tonnesquaremillimeters, MassMomentOfInertiaUnit.TonneSquareMillimeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MassMomentOfInertia unit value. - public static MassMomentOfInertia From(double value, MassMomentOfInertiaUnit fromUnit) - { - return new MassMomentOfInertia(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MassMomentOfInertiaUnit unit) => GetValueAs(unit); - - /// - /// Converts this MassMomentOfInertia to another MassMomentOfInertia with the unit representation . - /// - /// A MassMomentOfInertia with the specified unit. - public MassMomentOfInertia ToUnit(MassMomentOfInertiaUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MassMomentOfInertia(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MassMomentOfInertiaUnit.GramSquareCentimeter => _value / 1e7, - MassMomentOfInertiaUnit.GramSquareDecimeter => _value / 1e5, - MassMomentOfInertiaUnit.GramSquareMeter => _value / 1e3, - MassMomentOfInertiaUnit.GramSquareMillimeter => _value / 1e9, - MassMomentOfInertiaUnit.KilogramSquareCentimeter => (_value / 1e7) * 1e3d, - MassMomentOfInertiaUnit.KilogramSquareDecimeter => (_value / 1e5) * 1e3d, - MassMomentOfInertiaUnit.KilogramSquareMeter => (_value / 1e3) * 1e3d, - MassMomentOfInertiaUnit.KilogramSquareMillimeter => (_value / 1e9) * 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareCentimeter => (_value / 1e1) * 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareDecimeter => (_value / 1e-1) * 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareMeter => (_value / 1e-3) * 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareMillimeter => (_value / 1e3) * 1e3d, - MassMomentOfInertiaUnit.MegatonneSquareCentimeter => (_value / 1e1) * 1e6d, - MassMomentOfInertiaUnit.MegatonneSquareDecimeter => (_value / 1e-1) * 1e6d, - MassMomentOfInertiaUnit.MegatonneSquareMeter => (_value / 1e-3) * 1e6d, - MassMomentOfInertiaUnit.MegatonneSquareMillimeter => (_value / 1e3) * 1e6d, - MassMomentOfInertiaUnit.MilligramSquareCentimeter => (_value / 1e7) * 1e-3d, - MassMomentOfInertiaUnit.MilligramSquareDecimeter => (_value / 1e5) * 1e-3d, - MassMomentOfInertiaUnit.MilligramSquareMeter => (_value / 1e3) * 1e-3d, - MassMomentOfInertiaUnit.MilligramSquareMillimeter => (_value / 1e9) * 1e-3d, - MassMomentOfInertiaUnit.PoundSquareFoot => _value * (0.45359237 * 9.290304e-2), - MassMomentOfInertiaUnit.PoundSquareInch => _value * (0.45359237 * 0.00064516), - MassMomentOfInertiaUnit.SlugSquareFoot => _value * 0.45359237 * 9.290304e-2 * 9.80665 / 0.3048, - MassMomentOfInertiaUnit.SlugSquareInch => _value * 0.45359237 * 0.00064516 * 9.80665 / 0.3048, - MassMomentOfInertiaUnit.TonneSquareCentimeter => _value / 1e1, - MassMomentOfInertiaUnit.TonneSquareDecimeter => _value / 1e-1, - MassMomentOfInertiaUnit.TonneSquareMeter => _value / 1e-3, - MassMomentOfInertiaUnit.TonneSquareMillimeter => _value / 1e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MassMomentOfInertiaUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MassMomentOfInertiaUnit.GramSquareCentimeter => baseUnitValue * 1e7, - MassMomentOfInertiaUnit.GramSquareDecimeter => baseUnitValue * 1e5, - MassMomentOfInertiaUnit.GramSquareMeter => baseUnitValue * 1e3, - MassMomentOfInertiaUnit.GramSquareMillimeter => baseUnitValue * 1e9, - MassMomentOfInertiaUnit.KilogramSquareCentimeter => (baseUnitValue * 1e7) / 1e3d, - MassMomentOfInertiaUnit.KilogramSquareDecimeter => (baseUnitValue * 1e5) / 1e3d, - MassMomentOfInertiaUnit.KilogramSquareMeter => (baseUnitValue * 1e3) / 1e3d, - MassMomentOfInertiaUnit.KilogramSquareMillimeter => (baseUnitValue * 1e9) / 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareCentimeter => (baseUnitValue * 1e1) / 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareDecimeter => (baseUnitValue * 1e-1) / 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareMeter => (baseUnitValue * 1e-3) / 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareMillimeter => (baseUnitValue * 1e3) / 1e3d, - MassMomentOfInertiaUnit.MegatonneSquareCentimeter => (baseUnitValue * 1e1) / 1e6d, - MassMomentOfInertiaUnit.MegatonneSquareDecimeter => (baseUnitValue * 1e-1) / 1e6d, - MassMomentOfInertiaUnit.MegatonneSquareMeter => (baseUnitValue * 1e-3) / 1e6d, - MassMomentOfInertiaUnit.MegatonneSquareMillimeter => (baseUnitValue * 1e3) / 1e6d, - MassMomentOfInertiaUnit.MilligramSquareCentimeter => (baseUnitValue * 1e7) / 1e-3d, - MassMomentOfInertiaUnit.MilligramSquareDecimeter => (baseUnitValue * 1e5) / 1e-3d, - MassMomentOfInertiaUnit.MilligramSquareMeter => (baseUnitValue * 1e3) / 1e-3d, - MassMomentOfInertiaUnit.MilligramSquareMillimeter => (baseUnitValue * 1e9) / 1e-3d, - MassMomentOfInertiaUnit.PoundSquareFoot => baseUnitValue / (0.45359237 * 9.290304e-2), - MassMomentOfInertiaUnit.PoundSquareInch => baseUnitValue / (0.45359237 * 0.00064516), - MassMomentOfInertiaUnit.SlugSquareFoot => baseUnitValue * 0.3048 / (0.45359237 * 9.290304e-2 * 9.80665), - MassMomentOfInertiaUnit.SlugSquareInch => baseUnitValue * 0.3048 / (0.45359237 * 0.00064516 * 9.80665), - MassMomentOfInertiaUnit.TonneSquareCentimeter => baseUnitValue * 1e1, - MassMomentOfInertiaUnit.TonneSquareDecimeter => baseUnitValue * 1e-1, - MassMomentOfInertiaUnit.TonneSquareMeter => baseUnitValue * 1e-3, - MassMomentOfInertiaUnit.TonneSquareMillimeter => baseUnitValue * 1e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molality.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molality.g.cs deleted file mode 100644 index d959f00afc..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molality.g.cs +++ /dev/null @@ -1,184 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Molality is a measure of the amount of solute in a solution relative to a given mass of solvent. - /// - /// - /// https://en.wikipedia.org/wiki/Molality - /// - public struct Molality - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MolalityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MolalityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Molality(double value, MolalityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Molality, which is Second. All conversions go via this value. - /// - public static MolalityUnit BaseUnit { get; } = MolalityUnit.MolePerKilogram; - - /// - /// Represents the largest possible value of Molality. - /// - public static Molality MaxValue { get; } = new Molality(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Molality. - /// - public static Molality MinValue { get; } = new Molality(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Molality Zero { get; } = new Molality(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double MillimolesPerKilogram => As(MolalityUnit.MillimolePerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double MolesPerGram => As(MolalityUnit.MolePerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double MolesPerKilogram => As(MolalityUnit.MolePerKilogram); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Molality FromMillimolesPerKilogram(double millimolesperkilogram) => new Molality(millimolesperkilogram, MolalityUnit.MillimolePerKilogram); - - /// - /// Creates a from . - /// - public static Molality FromMolesPerGram(double molespergram) => new Molality(molespergram, MolalityUnit.MolePerGram); - - /// - /// Creates a from . - /// - public static Molality FromMolesPerKilogram(double molesperkilogram) => new Molality(molesperkilogram, MolalityUnit.MolePerKilogram); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Molality unit value. - public static Molality From(double value, MolalityUnit fromUnit) - { - return new Molality(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MolalityUnit unit) => GetValueAs(unit); - - /// - /// Converts this Molality to another Molality with the unit representation . - /// - /// A Molality with the specified unit. - public Molality ToUnit(MolalityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Molality(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MolalityUnit.MillimolePerKilogram => (_value) * 1e-3d, - MolalityUnit.MolePerGram => _value / 1e-3, - MolalityUnit.MolePerKilogram => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MolalityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MolalityUnit.MillimolePerKilogram => (baseUnitValue) / 1e-3d, - MolalityUnit.MolePerGram => baseUnitValue * 1e-3, - MolalityUnit.MolePerKilogram => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarEnergy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarEnergy.g.cs deleted file mode 100644 index 2934e13f88..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarEnergy.g.cs +++ /dev/null @@ -1,181 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Molar energy is the amount of energy stored in 1 mole of a substance. - /// - public struct MolarEnergy - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MolarEnergyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MolarEnergyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MolarEnergy(double value, MolarEnergyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MolarEnergy, which is Second. All conversions go via this value. - /// - public static MolarEnergyUnit BaseUnit { get; } = MolarEnergyUnit.JoulePerMole; - - /// - /// Represents the largest possible value of MolarEnergy. - /// - public static MolarEnergy MaxValue { get; } = new MolarEnergy(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MolarEnergy. - /// - public static MolarEnergy MinValue { get; } = new MolarEnergy(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MolarEnergy Zero { get; } = new MolarEnergy(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerMole => As(MolarEnergyUnit.JoulePerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerMole => As(MolarEnergyUnit.KilojoulePerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerMole => As(MolarEnergyUnit.MegajoulePerMole); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MolarEnergy FromJoulesPerMole(double joulespermole) => new MolarEnergy(joulespermole, MolarEnergyUnit.JoulePerMole); - - /// - /// Creates a from . - /// - public static MolarEnergy FromKilojoulesPerMole(double kilojoulespermole) => new MolarEnergy(kilojoulespermole, MolarEnergyUnit.KilojoulePerMole); - - /// - /// Creates a from . - /// - public static MolarEnergy FromMegajoulesPerMole(double megajoulespermole) => new MolarEnergy(megajoulespermole, MolarEnergyUnit.MegajoulePerMole); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MolarEnergy unit value. - public static MolarEnergy From(double value, MolarEnergyUnit fromUnit) - { - return new MolarEnergy(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MolarEnergyUnit unit) => GetValueAs(unit); - - /// - /// Converts this MolarEnergy to another MolarEnergy with the unit representation . - /// - /// A MolarEnergy with the specified unit. - public MolarEnergy ToUnit(MolarEnergyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MolarEnergy(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MolarEnergyUnit.JoulePerMole => _value, - MolarEnergyUnit.KilojoulePerMole => (_value) * 1e3d, - MolarEnergyUnit.MegajoulePerMole => (_value) * 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MolarEnergyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MolarEnergyUnit.JoulePerMole => baseUnitValue, - MolarEnergyUnit.KilojoulePerMole => (baseUnitValue) / 1e3d, - MolarEnergyUnit.MegajoulePerMole => (baseUnitValue) / 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarEntropy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarEntropy.g.cs deleted file mode 100644 index caedf9eaba..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarEntropy.g.cs +++ /dev/null @@ -1,181 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Molar entropy is amount of energy required to increase temperature of 1 mole substance by 1 Kelvin. - /// - public struct MolarEntropy - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MolarEntropyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MolarEntropyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MolarEntropy(double value, MolarEntropyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MolarEntropy, which is Second. All conversions go via this value. - /// - public static MolarEntropyUnit BaseUnit { get; } = MolarEntropyUnit.JoulePerMoleKelvin; - - /// - /// Represents the largest possible value of MolarEntropy. - /// - public static MolarEntropy MaxValue { get; } = new MolarEntropy(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MolarEntropy. - /// - public static MolarEntropy MinValue { get; } = new MolarEntropy(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MolarEntropy Zero { get; } = new MolarEntropy(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerMoleKelvin => As(MolarEntropyUnit.JoulePerMoleKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerMoleKelvin => As(MolarEntropyUnit.KilojoulePerMoleKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerMoleKelvin => As(MolarEntropyUnit.MegajoulePerMoleKelvin); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MolarEntropy FromJoulesPerMoleKelvin(double joulespermolekelvin) => new MolarEntropy(joulespermolekelvin, MolarEntropyUnit.JoulePerMoleKelvin); - - /// - /// Creates a from . - /// - public static MolarEntropy FromKilojoulesPerMoleKelvin(double kilojoulespermolekelvin) => new MolarEntropy(kilojoulespermolekelvin, MolarEntropyUnit.KilojoulePerMoleKelvin); - - /// - /// Creates a from . - /// - public static MolarEntropy FromMegajoulesPerMoleKelvin(double megajoulespermolekelvin) => new MolarEntropy(megajoulespermolekelvin, MolarEntropyUnit.MegajoulePerMoleKelvin); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MolarEntropy unit value. - public static MolarEntropy From(double value, MolarEntropyUnit fromUnit) - { - return new MolarEntropy(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MolarEntropyUnit unit) => GetValueAs(unit); - - /// - /// Converts this MolarEntropy to another MolarEntropy with the unit representation . - /// - /// A MolarEntropy with the specified unit. - public MolarEntropy ToUnit(MolarEntropyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MolarEntropy(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MolarEntropyUnit.JoulePerMoleKelvin => _value, - MolarEntropyUnit.KilojoulePerMoleKelvin => (_value) * 1e3d, - MolarEntropyUnit.MegajoulePerMoleKelvin => (_value) * 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MolarEntropyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MolarEntropyUnit.JoulePerMoleKelvin => baseUnitValue, - MolarEntropyUnit.KilojoulePerMoleKelvin => (baseUnitValue) / 1e3d, - MolarEntropyUnit.MegajoulePerMoleKelvin => (baseUnitValue) / 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarFlow.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarFlow.g.cs deleted file mode 100644 index 3aca64c697..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarFlow.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Molar flow is the ratio of the amount of substance change to the time during which the change occurred (value of amount of substance changes per unit time). - /// - public struct MolarFlow - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MolarFlowUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MolarFlowUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MolarFlow(double value, MolarFlowUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MolarFlow, which is Second. All conversions go via this value. - /// - public static MolarFlowUnit BaseUnit { get; } = MolarFlowUnit.MolePerSecond; - - /// - /// Represents the largest possible value of MolarFlow. - /// - public static MolarFlow MaxValue { get; } = new MolarFlow(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MolarFlow. - /// - public static MolarFlow MinValue { get; } = new MolarFlow(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MolarFlow Zero { get; } = new MolarFlow(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double KilomolesPerHour => As(MolarFlowUnit.KilomolePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KilomolesPerMinute => As(MolarFlowUnit.KilomolePerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KilomolesPerSecond => As(MolarFlowUnit.KilomolePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MolesPerHour => As(MolarFlowUnit.MolePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MolesPerMinute => As(MolarFlowUnit.MolePerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MolesPerSecond => As(MolarFlowUnit.MolePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundMolesPerHour => As(MolarFlowUnit.PoundMolePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundMolesPerMinute => As(MolarFlowUnit.PoundMolePerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundMolesPerSecond => As(MolarFlowUnit.PoundMolePerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MolarFlow FromKilomolesPerHour(double kilomolesperhour) => new MolarFlow(kilomolesperhour, MolarFlowUnit.KilomolePerHour); - - /// - /// Creates a from . - /// - public static MolarFlow FromKilomolesPerMinute(double kilomolesperminute) => new MolarFlow(kilomolesperminute, MolarFlowUnit.KilomolePerMinute); - - /// - /// Creates a from . - /// - public static MolarFlow FromKilomolesPerSecond(double kilomolespersecond) => new MolarFlow(kilomolespersecond, MolarFlowUnit.KilomolePerSecond); - - /// - /// Creates a from . - /// - public static MolarFlow FromMolesPerHour(double molesperhour) => new MolarFlow(molesperhour, MolarFlowUnit.MolePerHour); - - /// - /// Creates a from . - /// - public static MolarFlow FromMolesPerMinute(double molesperminute) => new MolarFlow(molesperminute, MolarFlowUnit.MolePerMinute); - - /// - /// Creates a from . - /// - public static MolarFlow FromMolesPerSecond(double molespersecond) => new MolarFlow(molespersecond, MolarFlowUnit.MolePerSecond); - - /// - /// Creates a from . - /// - public static MolarFlow FromPoundMolesPerHour(double poundmolesperhour) => new MolarFlow(poundmolesperhour, MolarFlowUnit.PoundMolePerHour); - - /// - /// Creates a from . - /// - public static MolarFlow FromPoundMolesPerMinute(double poundmolesperminute) => new MolarFlow(poundmolesperminute, MolarFlowUnit.PoundMolePerMinute); - - /// - /// Creates a from . - /// - public static MolarFlow FromPoundMolesPerSecond(double poundmolespersecond) => new MolarFlow(poundmolespersecond, MolarFlowUnit.PoundMolePerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MolarFlow unit value. - public static MolarFlow From(double value, MolarFlowUnit fromUnit) - { - return new MolarFlow(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MolarFlowUnit unit) => GetValueAs(unit); - - /// - /// Converts this MolarFlow to another MolarFlow with the unit representation . - /// - /// A MolarFlow with the specified unit. - public MolarFlow ToUnit(MolarFlowUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MolarFlow(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MolarFlowUnit.KilomolePerHour => (_value / 3600) * 1e3d, - MolarFlowUnit.KilomolePerMinute => (_value / 60) * 1e3d, - MolarFlowUnit.KilomolePerSecond => (_value) * 1e3d, - MolarFlowUnit.MolePerHour => _value / 3600, - MolarFlowUnit.MolePerMinute => _value / 60, - MolarFlowUnit.MolePerSecond => _value, - MolarFlowUnit.PoundMolePerHour => (_value * 453.59237) / 3600, - MolarFlowUnit.PoundMolePerMinute => (_value * 453.59237) / 60, - MolarFlowUnit.PoundMolePerSecond => _value * 453.59237, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MolarFlowUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MolarFlowUnit.KilomolePerHour => (baseUnitValue * 3600) / 1e3d, - MolarFlowUnit.KilomolePerMinute => (baseUnitValue * 60) / 1e3d, - MolarFlowUnit.KilomolePerSecond => (baseUnitValue) / 1e3d, - MolarFlowUnit.MolePerHour => baseUnitValue * 3600, - MolarFlowUnit.MolePerMinute => baseUnitValue * 60, - MolarFlowUnit.MolePerSecond => baseUnitValue, - MolarFlowUnit.PoundMolePerHour => (baseUnitValue / 453.59237) * 3600, - MolarFlowUnit.PoundMolePerMinute => (baseUnitValue / 453.59237) * 60, - MolarFlowUnit.PoundMolePerSecond => baseUnitValue / 453.59237, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarMass.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarMass.g.cs deleted file mode 100644 index a61a13b27b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MolarMass.g.cs +++ /dev/null @@ -1,301 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In chemistry, the molar mass M is a physical property defined as the mass of a given substance (chemical element or chemical compound) divided by the amount of substance. - /// - public struct MolarMass - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MolarMassUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MolarMassUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public MolarMass(double value, MolarMassUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of MolarMass, which is Second. All conversions go via this value. - /// - public static MolarMassUnit BaseUnit { get; } = MolarMassUnit.KilogramPerMole; - - /// - /// Represents the largest possible value of MolarMass. - /// - public static MolarMass MaxValue { get; } = new MolarMass(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of MolarMass. - /// - public static MolarMass MinValue { get; } = new MolarMass(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static MolarMass Zero { get; } = new MolarMass(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentigramsPerMole => As(MolarMassUnit.CentigramPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double DecagramsPerMole => As(MolarMassUnit.DecagramPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double DecigramsPerMole => As(MolarMassUnit.DecigramPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerMole => As(MolarMassUnit.GramPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double HectogramsPerMole => As(MolarMassUnit.HectogramPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerKilomole => As(MolarMassUnit.KilogramPerKilomole); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerMole => As(MolarMassUnit.KilogramPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsPerMole => As(MolarMassUnit.KilopoundPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapoundsPerMole => As(MolarMassUnit.MegapoundPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrogramsPerMole => As(MolarMassUnit.MicrogramPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsPerMole => As(MolarMassUnit.MilligramPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double NanogramsPerMole => As(MolarMassUnit.NanogramPerMole); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerMole => As(MolarMassUnit.PoundPerMole); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static MolarMass FromCentigramsPerMole(double centigramspermole) => new MolarMass(centigramspermole, MolarMassUnit.CentigramPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromDecagramsPerMole(double decagramspermole) => new MolarMass(decagramspermole, MolarMassUnit.DecagramPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromDecigramsPerMole(double decigramspermole) => new MolarMass(decigramspermole, MolarMassUnit.DecigramPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromGramsPerMole(double gramspermole) => new MolarMass(gramspermole, MolarMassUnit.GramPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromHectogramsPerMole(double hectogramspermole) => new MolarMass(hectogramspermole, MolarMassUnit.HectogramPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromKilogramsPerKilomole(double kilogramsperkilomole) => new MolarMass(kilogramsperkilomole, MolarMassUnit.KilogramPerKilomole); - - /// - /// Creates a from . - /// - public static MolarMass FromKilogramsPerMole(double kilogramspermole) => new MolarMass(kilogramspermole, MolarMassUnit.KilogramPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromKilopoundsPerMole(double kilopoundspermole) => new MolarMass(kilopoundspermole, MolarMassUnit.KilopoundPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromMegapoundsPerMole(double megapoundspermole) => new MolarMass(megapoundspermole, MolarMassUnit.MegapoundPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromMicrogramsPerMole(double microgramspermole) => new MolarMass(microgramspermole, MolarMassUnit.MicrogramPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromMilligramsPerMole(double milligramspermole) => new MolarMass(milligramspermole, MolarMassUnit.MilligramPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromNanogramsPerMole(double nanogramspermole) => new MolarMass(nanogramspermole, MolarMassUnit.NanogramPerMole); - - /// - /// Creates a from . - /// - public static MolarMass FromPoundsPerMole(double poundspermole) => new MolarMass(poundspermole, MolarMassUnit.PoundPerMole); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// MolarMass unit value. - public static MolarMass From(double value, MolarMassUnit fromUnit) - { - return new MolarMass(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MolarMassUnit unit) => GetValueAs(unit); - - /// - /// Converts this MolarMass to another MolarMass with the unit representation . - /// - /// A MolarMass with the specified unit. - public MolarMass ToUnit(MolarMassUnit unit) - { - var convertedValue = GetValueAs(unit); - return new MolarMass(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MolarMassUnit.CentigramPerMole => (_value / 1e3) * 1e-2d, - MolarMassUnit.DecagramPerMole => (_value / 1e3) * 1e1d, - MolarMassUnit.DecigramPerMole => (_value / 1e3) * 1e-1d, - MolarMassUnit.GramPerMole => _value / 1e3, - MolarMassUnit.HectogramPerMole => (_value / 1e3) * 1e2d, - MolarMassUnit.KilogramPerKilomole => _value / 1e3, - MolarMassUnit.KilogramPerMole => (_value / 1e3) * 1e3d, - MolarMassUnit.KilopoundPerMole => (_value * 0.45359237) * 1e3d, - MolarMassUnit.MegapoundPerMole => (_value * 0.45359237) * 1e6d, - MolarMassUnit.MicrogramPerMole => (_value / 1e3) * 1e-6d, - MolarMassUnit.MilligramPerMole => (_value / 1e3) * 1e-3d, - MolarMassUnit.NanogramPerMole => (_value / 1e3) * 1e-9d, - MolarMassUnit.PoundPerMole => _value * 0.45359237, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MolarMassUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MolarMassUnit.CentigramPerMole => (baseUnitValue * 1e3) / 1e-2d, - MolarMassUnit.DecagramPerMole => (baseUnitValue * 1e3) / 1e1d, - MolarMassUnit.DecigramPerMole => (baseUnitValue * 1e3) / 1e-1d, - MolarMassUnit.GramPerMole => baseUnitValue * 1e3, - MolarMassUnit.HectogramPerMole => (baseUnitValue * 1e3) / 1e2d, - MolarMassUnit.KilogramPerKilomole => baseUnitValue * 1e3, - MolarMassUnit.KilogramPerMole => (baseUnitValue * 1e3) / 1e3d, - MolarMassUnit.KilopoundPerMole => (baseUnitValue / 0.45359237) / 1e3d, - MolarMassUnit.MegapoundPerMole => (baseUnitValue / 0.45359237) / 1e6d, - MolarMassUnit.MicrogramPerMole => (baseUnitValue * 1e3) / 1e-6d, - MolarMassUnit.MilligramPerMole => (baseUnitValue * 1e3) / 1e-3d, - MolarMassUnit.NanogramPerMole => (baseUnitValue * 1e3) / 1e-9d, - MolarMassUnit.PoundPerMole => baseUnitValue / 0.45359237, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molarity.g.cs deleted file mode 100644 index 75a20a08f7..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molarity.g.cs +++ /dev/null @@ -1,280 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Molar concentration, also called molarity, amount concentration or substance concentration, is a measure of the concentration of a solute in a solution, or of any chemical species, in terms of amount of substance in a given volume. - /// - /// - /// https://en.wikipedia.org/wiki/Molar_concentration - /// - public struct Molarity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly MolarityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public MolarityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Molarity(double value, MolarityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Molarity, which is Second. All conversions go via this value. - /// - public static MolarityUnit BaseUnit { get; } = MolarityUnit.MolePerCubicMeter; - - /// - /// Represents the largest possible value of Molarity. - /// - public static Molarity MaxValue { get; } = new Molarity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Molarity. - /// - public static Molarity MinValue { get; } = new Molarity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Molarity Zero { get; } = new Molarity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentimolesPerLiter => As(MolarityUnit.CentimolePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecimolesPerLiter => As(MolarityUnit.DecimolePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double FemtomolesPerLiter => As(MolarityUnit.FemtomolePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilomolesPerCubicMeter => As(MolarityUnit.KilomolePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicromolesPerLiter => As(MolarityUnit.MicromolePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimolesPerLiter => As(MolarityUnit.MillimolePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MolesPerCubicMeter => As(MolarityUnit.MolePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MolesPerLiter => As(MolarityUnit.MolePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanomolesPerLiter => As(MolarityUnit.NanomolePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicomolesPerLiter => As(MolarityUnit.PicomolePerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundMolesPerCubicFoot => As(MolarityUnit.PoundMolePerCubicFoot); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Molarity FromCentimolesPerLiter(double centimolesperliter) => new Molarity(centimolesperliter, MolarityUnit.CentimolePerLiter); - - /// - /// Creates a from . - /// - public static Molarity FromDecimolesPerLiter(double decimolesperliter) => new Molarity(decimolesperliter, MolarityUnit.DecimolePerLiter); - - /// - /// Creates a from . - /// - public static Molarity FromFemtomolesPerLiter(double femtomolesperliter) => new Molarity(femtomolesperliter, MolarityUnit.FemtomolePerLiter); - - /// - /// Creates a from . - /// - public static Molarity FromKilomolesPerCubicMeter(double kilomolespercubicmeter) => new Molarity(kilomolespercubicmeter, MolarityUnit.KilomolePerCubicMeter); - - /// - /// Creates a from . - /// - public static Molarity FromMicromolesPerLiter(double micromolesperliter) => new Molarity(micromolesperliter, MolarityUnit.MicromolePerLiter); - - /// - /// Creates a from . - /// - public static Molarity FromMillimolesPerLiter(double millimolesperliter) => new Molarity(millimolesperliter, MolarityUnit.MillimolePerLiter); - - /// - /// Creates a from . - /// - public static Molarity FromMolesPerCubicMeter(double molespercubicmeter) => new Molarity(molespercubicmeter, MolarityUnit.MolePerCubicMeter); - - /// - /// Creates a from . - /// - public static Molarity FromMolesPerLiter(double molesperliter) => new Molarity(molesperliter, MolarityUnit.MolePerLiter); - - /// - /// Creates a from . - /// - public static Molarity FromNanomolesPerLiter(double nanomolesperliter) => new Molarity(nanomolesperliter, MolarityUnit.NanomolePerLiter); - - /// - /// Creates a from . - /// - public static Molarity FromPicomolesPerLiter(double picomolesperliter) => new Molarity(picomolesperliter, MolarityUnit.PicomolePerLiter); - - /// - /// Creates a from . - /// - public static Molarity FromPoundMolesPerCubicFoot(double poundmolespercubicfoot) => new Molarity(poundmolespercubicfoot, MolarityUnit.PoundMolePerCubicFoot); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Molarity unit value. - public static Molarity From(double value, MolarityUnit fromUnit) - { - return new Molarity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(MolarityUnit unit) => GetValueAs(unit); - - /// - /// Converts this Molarity to another Molarity with the unit representation . - /// - /// A Molarity with the specified unit. - public Molarity ToUnit(MolarityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Molarity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - MolarityUnit.CentimolePerLiter => (_value / 1e-3) * 1e-2d, - MolarityUnit.DecimolePerLiter => (_value / 1e-3) * 1e-1d, - MolarityUnit.FemtomolePerLiter => (_value / 1e-3) * 1e-15d, - MolarityUnit.KilomolePerCubicMeter => (_value) * 1e3d, - MolarityUnit.MicromolePerLiter => (_value / 1e-3) * 1e-6d, - MolarityUnit.MillimolePerLiter => (_value / 1e-3) * 1e-3d, - MolarityUnit.MolePerCubicMeter => _value, - MolarityUnit.MolePerLiter => _value / 1e-3, - MolarityUnit.NanomolePerLiter => (_value / 1e-3) * 1e-9d, - MolarityUnit.PicomolePerLiter => (_value / 1e-3) * 1e-12d, - MolarityUnit.PoundMolePerCubicFoot => _value * 1000 * 0.45359237 / 0.028316846592, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(MolarityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - MolarityUnit.CentimolePerLiter => (baseUnitValue * 1e-3) / 1e-2d, - MolarityUnit.DecimolePerLiter => (baseUnitValue * 1e-3) / 1e-1d, - MolarityUnit.FemtomolePerLiter => (baseUnitValue * 1e-3) / 1e-15d, - MolarityUnit.KilomolePerCubicMeter => (baseUnitValue) / 1e3d, - MolarityUnit.MicromolePerLiter => (baseUnitValue * 1e-3) / 1e-6d, - MolarityUnit.MillimolePerLiter => (baseUnitValue * 1e-3) / 1e-3d, - MolarityUnit.MolePerCubicMeter => baseUnitValue, - MolarityUnit.MolePerLiter => baseUnitValue * 1e-3, - MolarityUnit.NanomolePerLiter => (baseUnitValue * 1e-3) / 1e-9d, - MolarityUnit.PicomolePerLiter => (baseUnitValue * 1e-3) / 1e-12d, - MolarityUnit.PoundMolePerCubicFoot => baseUnitValue / (1000 * 0.45359237 / 0.028316846592), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Permeability.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Permeability.g.cs deleted file mode 100644 index 98167f4a14..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Permeability.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In electromagnetism, permeability is the measure of the ability of a material to support the formation of a magnetic field within itself. - /// - /// - /// https://en.wikipedia.org/wiki/Permeability_(electromagnetism) - /// - public struct Permeability - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly PermeabilityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public PermeabilityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Permeability(double value, PermeabilityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Permeability, which is Second. All conversions go via this value. - /// - public static PermeabilityUnit BaseUnit { get; } = PermeabilityUnit.HenryPerMeter; - - /// - /// Represents the largest possible value of Permeability. - /// - public static Permeability MaxValue { get; } = new Permeability(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Permeability. - /// - public static Permeability MinValue { get; } = new Permeability(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Permeability Zero { get; } = new Permeability(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double HenriesPerMeter => As(PermeabilityUnit.HenryPerMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Permeability FromHenriesPerMeter(double henriespermeter) => new Permeability(henriespermeter, PermeabilityUnit.HenryPerMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Permeability unit value. - public static Permeability From(double value, PermeabilityUnit fromUnit) - { - return new Permeability(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(PermeabilityUnit unit) => GetValueAs(unit); - - /// - /// Converts this Permeability to another Permeability with the unit representation . - /// - /// A Permeability with the specified unit. - public Permeability ToUnit(PermeabilityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Permeability(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - PermeabilityUnit.HenryPerMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(PermeabilityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - PermeabilityUnit.HenryPerMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Permittivity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Permittivity.g.cs deleted file mode 100644 index 22878acd37..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Permittivity.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In electromagnetism, permittivity is the measure of resistance that is encountered when forming an electric field in a particular medium. - /// - /// - /// https://en.wikipedia.org/wiki/Permittivity - /// - public struct Permittivity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly PermittivityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public PermittivityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Permittivity(double value, PermittivityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Permittivity, which is Second. All conversions go via this value. - /// - public static PermittivityUnit BaseUnit { get; } = PermittivityUnit.FaradPerMeter; - - /// - /// Represents the largest possible value of Permittivity. - /// - public static Permittivity MaxValue { get; } = new Permittivity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Permittivity. - /// - public static Permittivity MinValue { get; } = new Permittivity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Permittivity Zero { get; } = new Permittivity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double FaradsPerMeter => As(PermittivityUnit.FaradPerMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Permittivity FromFaradsPerMeter(double faradspermeter) => new Permittivity(faradspermeter, PermittivityUnit.FaradPerMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Permittivity unit value. - public static Permittivity From(double value, PermittivityUnit fromUnit) - { - return new Permittivity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(PermittivityUnit unit) => GetValueAs(unit); - - /// - /// Converts this Permittivity to another Permittivity with the unit representation . - /// - /// A Permittivity with the specified unit. - public Permittivity ToUnit(PermittivityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Permittivity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - PermittivityUnit.FaradPerMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(PermittivityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - PermittivityUnit.FaradPerMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PorousMediumPermeability.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PorousMediumPermeability.g.cs deleted file mode 100644 index 06676e08ae..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PorousMediumPermeability.g.cs +++ /dev/null @@ -1,208 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// - /// - /// - /// https://en.wikipedia.org/wiki/Permeability_(Earth_sciences) - /// - public struct PorousMediumPermeability - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly PorousMediumPermeabilityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public PorousMediumPermeabilityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public PorousMediumPermeability(double value, PorousMediumPermeabilityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of PorousMediumPermeability, which is Second. All conversions go via this value. - /// - public static PorousMediumPermeabilityUnit BaseUnit { get; } = PorousMediumPermeabilityUnit.SquareMeter; - - /// - /// Represents the largest possible value of PorousMediumPermeability. - /// - public static PorousMediumPermeability MaxValue { get; } = new PorousMediumPermeability(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of PorousMediumPermeability. - /// - public static PorousMediumPermeability MinValue { get; } = new PorousMediumPermeability(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static PorousMediumPermeability Zero { get; } = new PorousMediumPermeability(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Darcys => As(PorousMediumPermeabilityUnit.Darcy); - - /// - /// Gets a value of this quantity converted into - /// - public double Microdarcys => As(PorousMediumPermeabilityUnit.Microdarcy); - - /// - /// Gets a value of this quantity converted into - /// - public double Millidarcys => As(PorousMediumPermeabilityUnit.Millidarcy); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareCentimeters => As(PorousMediumPermeabilityUnit.SquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMeters => As(PorousMediumPermeabilityUnit.SquareMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static PorousMediumPermeability FromDarcys(double darcys) => new PorousMediumPermeability(darcys, PorousMediumPermeabilityUnit.Darcy); - - /// - /// Creates a from . - /// - public static PorousMediumPermeability FromMicrodarcys(double microdarcys) => new PorousMediumPermeability(microdarcys, PorousMediumPermeabilityUnit.Microdarcy); - - /// - /// Creates a from . - /// - public static PorousMediumPermeability FromMillidarcys(double millidarcys) => new PorousMediumPermeability(millidarcys, PorousMediumPermeabilityUnit.Millidarcy); - - /// - /// Creates a from . - /// - public static PorousMediumPermeability FromSquareCentimeters(double squarecentimeters) => new PorousMediumPermeability(squarecentimeters, PorousMediumPermeabilityUnit.SquareCentimeter); - - /// - /// Creates a from . - /// - public static PorousMediumPermeability FromSquareMeters(double squaremeters) => new PorousMediumPermeability(squaremeters, PorousMediumPermeabilityUnit.SquareMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// PorousMediumPermeability unit value. - public static PorousMediumPermeability From(double value, PorousMediumPermeabilityUnit fromUnit) - { - return new PorousMediumPermeability(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(PorousMediumPermeabilityUnit unit) => GetValueAs(unit); - - /// - /// Converts this PorousMediumPermeability to another PorousMediumPermeability with the unit representation . - /// - /// A PorousMediumPermeability with the specified unit. - public PorousMediumPermeability ToUnit(PorousMediumPermeabilityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new PorousMediumPermeability(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - PorousMediumPermeabilityUnit.Darcy => _value * 9.869233e-13, - PorousMediumPermeabilityUnit.Microdarcy => (_value * 9.869233e-13) * 1e-6d, - PorousMediumPermeabilityUnit.Millidarcy => (_value * 9.869233e-13) * 1e-3d, - PorousMediumPermeabilityUnit.SquareCentimeter => _value * 1e-4, - PorousMediumPermeabilityUnit.SquareMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(PorousMediumPermeabilityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - PorousMediumPermeabilityUnit.Darcy => baseUnitValue / 9.869233e-13, - PorousMediumPermeabilityUnit.Microdarcy => (baseUnitValue / 9.869233e-13) / 1e-6d, - PorousMediumPermeabilityUnit.Millidarcy => (baseUnitValue / 9.869233e-13) / 1e-3d, - PorousMediumPermeabilityUnit.SquareCentimeter => baseUnitValue / 1e-4, - PorousMediumPermeabilityUnit.SquareMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Power.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Power.g.cs deleted file mode 100644 index d06e73550e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Power.g.cs +++ /dev/null @@ -1,469 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In physics, power is the rate of doing work. It is equivalent to an amount of energy consumed per unit time. - /// - public struct Power - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly PowerUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public PowerUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Power(double value, PowerUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Power, which is Second. All conversions go via this value. - /// - public static PowerUnit BaseUnit { get; } = PowerUnit.Watt; - - /// - /// Represents the largest possible value of Power. - /// - public static Power MaxValue { get; } = new Power(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Power. - /// - public static Power MinValue { get; } = new Power(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Power Zero { get; } = new Power(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BoilerHorsepower => As(PowerUnit.BoilerHorsepower); - - /// - /// Gets a value of this quantity converted into - /// - public double BritishThermalUnitsPerHour => As(PowerUnit.BritishThermalUnitPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Decawatts => As(PowerUnit.Decawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Deciwatts => As(PowerUnit.Deciwatt); - - /// - /// Gets a value of this quantity converted into - /// - public double ElectricalHorsepower => As(PowerUnit.ElectricalHorsepower); - - /// - /// Gets a value of this quantity converted into - /// - public double Femtowatts => As(PowerUnit.Femtowatt); - - /// - /// Gets a value of this quantity converted into - /// - public double GigajoulesPerHour => As(PowerUnit.GigajoulePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigawatts => As(PowerUnit.Gigawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double HydraulicHorsepower => As(PowerUnit.HydraulicHorsepower); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerHour => As(PowerUnit.JoulePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KilobritishThermalUnitsPerHour => As(PowerUnit.KilobritishThermalUnitPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerHour => As(PowerUnit.KilojoulePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilowatts => As(PowerUnit.Kilowatt); - - /// - /// Gets a value of this quantity converted into - /// - public double MechanicalHorsepower => As(PowerUnit.MechanicalHorsepower); - - /// - /// Gets a value of this quantity converted into - /// - public double MegabritishThermalUnitsPerHour => As(PowerUnit.MegabritishThermalUnitPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerHour => As(PowerUnit.MegajoulePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Megawatts => As(PowerUnit.Megawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double MetricHorsepower => As(PowerUnit.MetricHorsepower); - - /// - /// Gets a value of this quantity converted into - /// - public double Microwatts => As(PowerUnit.Microwatt); - - /// - /// Gets a value of this quantity converted into - /// - public double MillijoulesPerHour => As(PowerUnit.MillijoulePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliwatts => As(PowerUnit.Milliwatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanowatts => As(PowerUnit.Nanowatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Petawatts => As(PowerUnit.Petawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Picowatts => As(PowerUnit.Picowatt); - - /// - /// Gets a value of this quantity converted into - /// - public double Terawatts => As(PowerUnit.Terawatt); - - /// - /// Gets a value of this quantity converted into - /// - public double TonsOfRefrigeration => As(PowerUnit.TonOfRefrigeration); - - /// - /// Gets a value of this quantity converted into - /// - public double Watts => As(PowerUnit.Watt); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Power FromBoilerHorsepower(double boilerhorsepower) => new Power(boilerhorsepower, PowerUnit.BoilerHorsepower); - - /// - /// Creates a from . - /// - public static Power FromBritishThermalUnitsPerHour(double britishthermalunitsperhour) => new Power(britishthermalunitsperhour, PowerUnit.BritishThermalUnitPerHour); - - /// - /// Creates a from . - /// - public static Power FromDecawatts(double decawatts) => new Power(decawatts, PowerUnit.Decawatt); - - /// - /// Creates a from . - /// - public static Power FromDeciwatts(double deciwatts) => new Power(deciwatts, PowerUnit.Deciwatt); - - /// - /// Creates a from . - /// - public static Power FromElectricalHorsepower(double electricalhorsepower) => new Power(electricalhorsepower, PowerUnit.ElectricalHorsepower); - - /// - /// Creates a from . - /// - public static Power FromFemtowatts(double femtowatts) => new Power(femtowatts, PowerUnit.Femtowatt); - - /// - /// Creates a from . - /// - public static Power FromGigajoulesPerHour(double gigajoulesperhour) => new Power(gigajoulesperhour, PowerUnit.GigajoulePerHour); - - /// - /// Creates a from . - /// - public static Power FromGigawatts(double gigawatts) => new Power(gigawatts, PowerUnit.Gigawatt); - - /// - /// Creates a from . - /// - public static Power FromHydraulicHorsepower(double hydraulichorsepower) => new Power(hydraulichorsepower, PowerUnit.HydraulicHorsepower); - - /// - /// Creates a from . - /// - public static Power FromJoulesPerHour(double joulesperhour) => new Power(joulesperhour, PowerUnit.JoulePerHour); - - /// - /// Creates a from . - /// - public static Power FromKilobritishThermalUnitsPerHour(double kilobritishthermalunitsperhour) => new Power(kilobritishthermalunitsperhour, PowerUnit.KilobritishThermalUnitPerHour); - - /// - /// Creates a from . - /// - public static Power FromKilojoulesPerHour(double kilojoulesperhour) => new Power(kilojoulesperhour, PowerUnit.KilojoulePerHour); - - /// - /// Creates a from . - /// - public static Power FromKilowatts(double kilowatts) => new Power(kilowatts, PowerUnit.Kilowatt); - - /// - /// Creates a from . - /// - public static Power FromMechanicalHorsepower(double mechanicalhorsepower) => new Power(mechanicalhorsepower, PowerUnit.MechanicalHorsepower); - - /// - /// Creates a from . - /// - public static Power FromMegabritishThermalUnitsPerHour(double megabritishthermalunitsperhour) => new Power(megabritishthermalunitsperhour, PowerUnit.MegabritishThermalUnitPerHour); - - /// - /// Creates a from . - /// - public static Power FromMegajoulesPerHour(double megajoulesperhour) => new Power(megajoulesperhour, PowerUnit.MegajoulePerHour); - - /// - /// Creates a from . - /// - public static Power FromMegawatts(double megawatts) => new Power(megawatts, PowerUnit.Megawatt); - - /// - /// Creates a from . - /// - public static Power FromMetricHorsepower(double metrichorsepower) => new Power(metrichorsepower, PowerUnit.MetricHorsepower); - - /// - /// Creates a from . - /// - public static Power FromMicrowatts(double microwatts) => new Power(microwatts, PowerUnit.Microwatt); - - /// - /// Creates a from . - /// - public static Power FromMillijoulesPerHour(double millijoulesperhour) => new Power(millijoulesperhour, PowerUnit.MillijoulePerHour); - - /// - /// Creates a from . - /// - public static Power FromMilliwatts(double milliwatts) => new Power(milliwatts, PowerUnit.Milliwatt); - - /// - /// Creates a from . - /// - public static Power FromNanowatts(double nanowatts) => new Power(nanowatts, PowerUnit.Nanowatt); - - /// - /// Creates a from . - /// - public static Power FromPetawatts(double petawatts) => new Power(petawatts, PowerUnit.Petawatt); - - /// - /// Creates a from . - /// - public static Power FromPicowatts(double picowatts) => new Power(picowatts, PowerUnit.Picowatt); - - /// - /// Creates a from . - /// - public static Power FromTerawatts(double terawatts) => new Power(terawatts, PowerUnit.Terawatt); - - /// - /// Creates a from . - /// - public static Power FromTonsOfRefrigeration(double tonsofrefrigeration) => new Power(tonsofrefrigeration, PowerUnit.TonOfRefrigeration); - - /// - /// Creates a from . - /// - public static Power FromWatts(double watts) => new Power(watts, PowerUnit.Watt); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Power unit value. - public static Power From(double value, PowerUnit fromUnit) - { - return new Power(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(PowerUnit unit) => GetValueAs(unit); - - /// - /// Converts this Power to another Power with the unit representation . - /// - /// A Power with the specified unit. - public Power ToUnit(PowerUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Power(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - PowerUnit.BoilerHorsepower => _value * 9812.5, - PowerUnit.BritishThermalUnitPerHour => _value * 1055.05585262 / 3600, - PowerUnit.Decawatt => (_value) * 1e1d, - PowerUnit.Deciwatt => (_value) * 1e-1d, - PowerUnit.ElectricalHorsepower => _value * 746, - PowerUnit.Femtowatt => (_value) * 1e-15d, - PowerUnit.GigajoulePerHour => (_value / 3600) * 1e9d, - PowerUnit.Gigawatt => (_value) * 1e9d, - PowerUnit.HydraulicHorsepower => _value * 745.69987158227022, - PowerUnit.JoulePerHour => _value / 3600, - PowerUnit.KilobritishThermalUnitPerHour => (_value * 1055.05585262 / 3600) * 1e3d, - PowerUnit.KilojoulePerHour => (_value / 3600) * 1e3d, - PowerUnit.Kilowatt => (_value) * 1e3d, - PowerUnit.MechanicalHorsepower => _value * 76.0402249 * 9.80665, - PowerUnit.MegabritishThermalUnitPerHour => (_value * 1055.05585262 / 3600) * 1e6d, - PowerUnit.MegajoulePerHour => (_value / 3600) * 1e6d, - PowerUnit.Megawatt => (_value) * 1e6d, - PowerUnit.MetricHorsepower => _value * 75 * 9.80665, - PowerUnit.Microwatt => (_value) * 1e-6d, - PowerUnit.MillijoulePerHour => (_value / 3600) * 1e-3d, - PowerUnit.Milliwatt => (_value) * 1e-3d, - PowerUnit.Nanowatt => (_value) * 1e-9d, - PowerUnit.Petawatt => (_value) * 1e15d, - PowerUnit.Picowatt => (_value) * 1e-12d, - PowerUnit.Terawatt => (_value) * 1e12d, - PowerUnit.TonOfRefrigeration => _value * 3516.853, - PowerUnit.Watt => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(PowerUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - PowerUnit.BoilerHorsepower => baseUnitValue / 9812.5, - PowerUnit.BritishThermalUnitPerHour => baseUnitValue * 3600 / 1055.05585262, - PowerUnit.Decawatt => (baseUnitValue) / 1e1d, - PowerUnit.Deciwatt => (baseUnitValue) / 1e-1d, - PowerUnit.ElectricalHorsepower => baseUnitValue / 746, - PowerUnit.Femtowatt => (baseUnitValue) / 1e-15d, - PowerUnit.GigajoulePerHour => (baseUnitValue * 3600) / 1e9d, - PowerUnit.Gigawatt => (baseUnitValue) / 1e9d, - PowerUnit.HydraulicHorsepower => baseUnitValue / 745.69987158227022, - PowerUnit.JoulePerHour => baseUnitValue * 3600, - PowerUnit.KilobritishThermalUnitPerHour => (baseUnitValue * 3600 / 1055.05585262) / 1e3d, - PowerUnit.KilojoulePerHour => (baseUnitValue * 3600) / 1e3d, - PowerUnit.Kilowatt => (baseUnitValue) / 1e3d, - PowerUnit.MechanicalHorsepower => baseUnitValue / (76.0402249 * 9.80665), - PowerUnit.MegabritishThermalUnitPerHour => (baseUnitValue * 3600 / 1055.05585262) / 1e6d, - PowerUnit.MegajoulePerHour => (baseUnitValue * 3600) / 1e6d, - PowerUnit.Megawatt => (baseUnitValue) / 1e6d, - PowerUnit.MetricHorsepower => baseUnitValue / (75 * 9.80665), - PowerUnit.Microwatt => (baseUnitValue) / 1e-6d, - PowerUnit.MillijoulePerHour => (baseUnitValue * 3600) / 1e-3d, - PowerUnit.Milliwatt => (baseUnitValue) / 1e-3d, - PowerUnit.Nanowatt => (baseUnitValue) / 1e-9d, - PowerUnit.Petawatt => (baseUnitValue) / 1e15d, - PowerUnit.Picowatt => (baseUnitValue) / 1e-12d, - PowerUnit.Terawatt => (baseUnitValue) / 1e12d, - PowerUnit.TonOfRefrigeration => baseUnitValue / 3516.853, - PowerUnit.Watt => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs deleted file mode 100644 index 0ad6bd97a9..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs +++ /dev/null @@ -1,673 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The amount of power in a volume. - /// - public struct PowerDensity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly PowerDensityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public PowerDensityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public PowerDensity(double value, PowerDensityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of PowerDensity, which is Second. All conversions go via this value. - /// - public static PowerDensityUnit BaseUnit { get; } = PowerDensityUnit.WattPerCubicMeter; - - /// - /// Represents the largest possible value of PowerDensity. - /// - public static PowerDensity MaxValue { get; } = new PowerDensity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of PowerDensity. - /// - public static PowerDensity MinValue { get; } = new PowerDensity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static PowerDensity Zero { get; } = new PowerDensity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DecawattsPerCubicFoot => As(PowerDensityUnit.DecawattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double DecawattsPerCubicInch => As(PowerDensityUnit.DecawattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double DecawattsPerCubicMeter => As(PowerDensityUnit.DecawattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecawattsPerLiter => As(PowerDensityUnit.DecawattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double DeciwattsPerCubicFoot => As(PowerDensityUnit.DeciwattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double DeciwattsPerCubicInch => As(PowerDensityUnit.DeciwattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double DeciwattsPerCubicMeter => As(PowerDensityUnit.DeciwattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DeciwattsPerLiter => As(PowerDensityUnit.DeciwattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattsPerCubicFoot => As(PowerDensityUnit.GigawattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattsPerCubicInch => As(PowerDensityUnit.GigawattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattsPerCubicMeter => As(PowerDensityUnit.GigawattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattsPerLiter => As(PowerDensityUnit.GigawattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerCubicFoot => As(PowerDensityUnit.KilowattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerCubicInch => As(PowerDensityUnit.KilowattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerCubicMeter => As(PowerDensityUnit.KilowattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattsPerLiter => As(PowerDensityUnit.KilowattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerCubicFoot => As(PowerDensityUnit.MegawattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerCubicInch => As(PowerDensityUnit.MegawattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerCubicMeter => As(PowerDensityUnit.MegawattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattsPerLiter => As(PowerDensityUnit.MegawattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrowattsPerCubicFoot => As(PowerDensityUnit.MicrowattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrowattsPerCubicInch => As(PowerDensityUnit.MicrowattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrowattsPerCubicMeter => As(PowerDensityUnit.MicrowattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrowattsPerLiter => As(PowerDensityUnit.MicrowattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerCubicFoot => As(PowerDensityUnit.MilliwattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerCubicInch => As(PowerDensityUnit.MilliwattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerCubicMeter => As(PowerDensityUnit.MilliwattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliwattsPerLiter => As(PowerDensityUnit.MilliwattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanowattsPerCubicFoot => As(PowerDensityUnit.NanowattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double NanowattsPerCubicInch => As(PowerDensityUnit.NanowattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double NanowattsPerCubicMeter => As(PowerDensityUnit.NanowattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanowattsPerLiter => As(PowerDensityUnit.NanowattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicowattsPerCubicFoot => As(PowerDensityUnit.PicowattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PicowattsPerCubicInch => As(PowerDensityUnit.PicowattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double PicowattsPerCubicMeter => As(PowerDensityUnit.PicowattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicowattsPerLiter => As(PowerDensityUnit.PicowattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattsPerCubicFoot => As(PowerDensityUnit.TerawattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattsPerCubicInch => As(PowerDensityUnit.TerawattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattsPerCubicMeter => As(PowerDensityUnit.TerawattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattsPerLiter => As(PowerDensityUnit.TerawattPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerCubicFoot => As(PowerDensityUnit.WattPerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerCubicInch => As(PowerDensityUnit.WattPerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerCubicMeter => As(PowerDensityUnit.WattPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerLiter => As(PowerDensityUnit.WattPerLiter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static PowerDensity FromDecawattsPerCubicFoot(double decawattspercubicfoot) => new PowerDensity(decawattspercubicfoot, PowerDensityUnit.DecawattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromDecawattsPerCubicInch(double decawattspercubicinch) => new PowerDensity(decawattspercubicinch, PowerDensityUnit.DecawattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromDecawattsPerCubicMeter(double decawattspercubicmeter) => new PowerDensity(decawattspercubicmeter, PowerDensityUnit.DecawattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromDecawattsPerLiter(double decawattsperliter) => new PowerDensity(decawattsperliter, PowerDensityUnit.DecawattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromDeciwattsPerCubicFoot(double deciwattspercubicfoot) => new PowerDensity(deciwattspercubicfoot, PowerDensityUnit.DeciwattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromDeciwattsPerCubicInch(double deciwattspercubicinch) => new PowerDensity(deciwattspercubicinch, PowerDensityUnit.DeciwattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromDeciwattsPerCubicMeter(double deciwattspercubicmeter) => new PowerDensity(deciwattspercubicmeter, PowerDensityUnit.DeciwattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromDeciwattsPerLiter(double deciwattsperliter) => new PowerDensity(deciwattsperliter, PowerDensityUnit.DeciwattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromGigawattsPerCubicFoot(double gigawattspercubicfoot) => new PowerDensity(gigawattspercubicfoot, PowerDensityUnit.GigawattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromGigawattsPerCubicInch(double gigawattspercubicinch) => new PowerDensity(gigawattspercubicinch, PowerDensityUnit.GigawattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromGigawattsPerCubicMeter(double gigawattspercubicmeter) => new PowerDensity(gigawattspercubicmeter, PowerDensityUnit.GigawattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromGigawattsPerLiter(double gigawattsperliter) => new PowerDensity(gigawattsperliter, PowerDensityUnit.GigawattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromKilowattsPerCubicFoot(double kilowattspercubicfoot) => new PowerDensity(kilowattspercubicfoot, PowerDensityUnit.KilowattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromKilowattsPerCubicInch(double kilowattspercubicinch) => new PowerDensity(kilowattspercubicinch, PowerDensityUnit.KilowattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromKilowattsPerCubicMeter(double kilowattspercubicmeter) => new PowerDensity(kilowattspercubicmeter, PowerDensityUnit.KilowattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromKilowattsPerLiter(double kilowattsperliter) => new PowerDensity(kilowattsperliter, PowerDensityUnit.KilowattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromMegawattsPerCubicFoot(double megawattspercubicfoot) => new PowerDensity(megawattspercubicfoot, PowerDensityUnit.MegawattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromMegawattsPerCubicInch(double megawattspercubicinch) => new PowerDensity(megawattspercubicinch, PowerDensityUnit.MegawattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromMegawattsPerCubicMeter(double megawattspercubicmeter) => new PowerDensity(megawattspercubicmeter, PowerDensityUnit.MegawattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromMegawattsPerLiter(double megawattsperliter) => new PowerDensity(megawattsperliter, PowerDensityUnit.MegawattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromMicrowattsPerCubicFoot(double microwattspercubicfoot) => new PowerDensity(microwattspercubicfoot, PowerDensityUnit.MicrowattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromMicrowattsPerCubicInch(double microwattspercubicinch) => new PowerDensity(microwattspercubicinch, PowerDensityUnit.MicrowattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromMicrowattsPerCubicMeter(double microwattspercubicmeter) => new PowerDensity(microwattspercubicmeter, PowerDensityUnit.MicrowattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromMicrowattsPerLiter(double microwattsperliter) => new PowerDensity(microwattsperliter, PowerDensityUnit.MicrowattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromMilliwattsPerCubicFoot(double milliwattspercubicfoot) => new PowerDensity(milliwattspercubicfoot, PowerDensityUnit.MilliwattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromMilliwattsPerCubicInch(double milliwattspercubicinch) => new PowerDensity(milliwattspercubicinch, PowerDensityUnit.MilliwattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromMilliwattsPerCubicMeter(double milliwattspercubicmeter) => new PowerDensity(milliwattspercubicmeter, PowerDensityUnit.MilliwattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromMilliwattsPerLiter(double milliwattsperliter) => new PowerDensity(milliwattsperliter, PowerDensityUnit.MilliwattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromNanowattsPerCubicFoot(double nanowattspercubicfoot) => new PowerDensity(nanowattspercubicfoot, PowerDensityUnit.NanowattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromNanowattsPerCubicInch(double nanowattspercubicinch) => new PowerDensity(nanowattspercubicinch, PowerDensityUnit.NanowattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromNanowattsPerCubicMeter(double nanowattspercubicmeter) => new PowerDensity(nanowattspercubicmeter, PowerDensityUnit.NanowattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromNanowattsPerLiter(double nanowattsperliter) => new PowerDensity(nanowattsperliter, PowerDensityUnit.NanowattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromPicowattsPerCubicFoot(double picowattspercubicfoot) => new PowerDensity(picowattspercubicfoot, PowerDensityUnit.PicowattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromPicowattsPerCubicInch(double picowattspercubicinch) => new PowerDensity(picowattspercubicinch, PowerDensityUnit.PicowattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromPicowattsPerCubicMeter(double picowattspercubicmeter) => new PowerDensity(picowattspercubicmeter, PowerDensityUnit.PicowattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromPicowattsPerLiter(double picowattsperliter) => new PowerDensity(picowattsperliter, PowerDensityUnit.PicowattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromTerawattsPerCubicFoot(double terawattspercubicfoot) => new PowerDensity(terawattspercubicfoot, PowerDensityUnit.TerawattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromTerawattsPerCubicInch(double terawattspercubicinch) => new PowerDensity(terawattspercubicinch, PowerDensityUnit.TerawattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromTerawattsPerCubicMeter(double terawattspercubicmeter) => new PowerDensity(terawattspercubicmeter, PowerDensityUnit.TerawattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromTerawattsPerLiter(double terawattsperliter) => new PowerDensity(terawattsperliter, PowerDensityUnit.TerawattPerLiter); - - /// - /// Creates a from . - /// - public static PowerDensity FromWattsPerCubicFoot(double wattspercubicfoot) => new PowerDensity(wattspercubicfoot, PowerDensityUnit.WattPerCubicFoot); - - /// - /// Creates a from . - /// - public static PowerDensity FromWattsPerCubicInch(double wattspercubicinch) => new PowerDensity(wattspercubicinch, PowerDensityUnit.WattPerCubicInch); - - /// - /// Creates a from . - /// - public static PowerDensity FromWattsPerCubicMeter(double wattspercubicmeter) => new PowerDensity(wattspercubicmeter, PowerDensityUnit.WattPerCubicMeter); - - /// - /// Creates a from . - /// - public static PowerDensity FromWattsPerLiter(double wattsperliter) => new PowerDensity(wattsperliter, PowerDensityUnit.WattPerLiter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// PowerDensity unit value. - public static PowerDensity From(double value, PowerDensityUnit fromUnit) - { - return new PowerDensity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(PowerDensityUnit unit) => GetValueAs(unit); - - /// - /// Converts this PowerDensity to another PowerDensity with the unit representation . - /// - /// A PowerDensity with the specified unit. - public PowerDensity ToUnit(PowerDensityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new PowerDensity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - PowerDensityUnit.DecawattPerCubicFoot => (_value / 0.028316846592) * 1e1d, - PowerDensityUnit.DecawattPerCubicInch => (_value / 1.6387064e-5) * 1e1d, - PowerDensityUnit.DecawattPerCubicMeter => (_value) * 1e1d, - PowerDensityUnit.DecawattPerLiter => (_value * 1.0e3) * 1e1d, - PowerDensityUnit.DeciwattPerCubicFoot => (_value / 0.028316846592) * 1e-1d, - PowerDensityUnit.DeciwattPerCubicInch => (_value / 1.6387064e-5) * 1e-1d, - PowerDensityUnit.DeciwattPerCubicMeter => (_value) * 1e-1d, - PowerDensityUnit.DeciwattPerLiter => (_value * 1.0e3) * 1e-1d, - PowerDensityUnit.GigawattPerCubicFoot => (_value / 0.028316846592) * 1e9d, - PowerDensityUnit.GigawattPerCubicInch => (_value / 1.6387064e-5) * 1e9d, - PowerDensityUnit.GigawattPerCubicMeter => (_value) * 1e9d, - PowerDensityUnit.GigawattPerLiter => (_value * 1.0e3) * 1e9d, - PowerDensityUnit.KilowattPerCubicFoot => (_value / 0.028316846592) * 1e3d, - PowerDensityUnit.KilowattPerCubicInch => (_value / 1.6387064e-5) * 1e3d, - PowerDensityUnit.KilowattPerCubicMeter => (_value) * 1e3d, - PowerDensityUnit.KilowattPerLiter => (_value * 1.0e3) * 1e3d, - PowerDensityUnit.MegawattPerCubicFoot => (_value / 0.028316846592) * 1e6d, - PowerDensityUnit.MegawattPerCubicInch => (_value / 1.6387064e-5) * 1e6d, - PowerDensityUnit.MegawattPerCubicMeter => (_value) * 1e6d, - PowerDensityUnit.MegawattPerLiter => (_value * 1.0e3) * 1e6d, - PowerDensityUnit.MicrowattPerCubicFoot => (_value / 0.028316846592) * 1e-6d, - PowerDensityUnit.MicrowattPerCubicInch => (_value / 1.6387064e-5) * 1e-6d, - PowerDensityUnit.MicrowattPerCubicMeter => (_value) * 1e-6d, - PowerDensityUnit.MicrowattPerLiter => (_value * 1.0e3) * 1e-6d, - PowerDensityUnit.MilliwattPerCubicFoot => (_value / 0.028316846592) * 1e-3d, - PowerDensityUnit.MilliwattPerCubicInch => (_value / 1.6387064e-5) * 1e-3d, - PowerDensityUnit.MilliwattPerCubicMeter => (_value) * 1e-3d, - PowerDensityUnit.MilliwattPerLiter => (_value * 1.0e3) * 1e-3d, - PowerDensityUnit.NanowattPerCubicFoot => (_value / 0.028316846592) * 1e-9d, - PowerDensityUnit.NanowattPerCubicInch => (_value / 1.6387064e-5) * 1e-9d, - PowerDensityUnit.NanowattPerCubicMeter => (_value) * 1e-9d, - PowerDensityUnit.NanowattPerLiter => (_value * 1.0e3) * 1e-9d, - PowerDensityUnit.PicowattPerCubicFoot => (_value / 0.028316846592) * 1e-12d, - PowerDensityUnit.PicowattPerCubicInch => (_value / 1.6387064e-5) * 1e-12d, - PowerDensityUnit.PicowattPerCubicMeter => (_value) * 1e-12d, - PowerDensityUnit.PicowattPerLiter => (_value * 1.0e3) * 1e-12d, - PowerDensityUnit.TerawattPerCubicFoot => (_value / 0.028316846592) * 1e12d, - PowerDensityUnit.TerawattPerCubicInch => (_value / 1.6387064e-5) * 1e12d, - PowerDensityUnit.TerawattPerCubicMeter => (_value) * 1e12d, - PowerDensityUnit.TerawattPerLiter => (_value * 1.0e3) * 1e12d, - PowerDensityUnit.WattPerCubicFoot => _value / 0.028316846592, - PowerDensityUnit.WattPerCubicInch => _value / 1.6387064e-5, - PowerDensityUnit.WattPerCubicMeter => _value, - PowerDensityUnit.WattPerLiter => _value * 1.0e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(PowerDensityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - PowerDensityUnit.DecawattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e1d, - PowerDensityUnit.DecawattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e1d, - PowerDensityUnit.DecawattPerCubicMeter => (baseUnitValue) / 1e1d, - PowerDensityUnit.DecawattPerLiter => (baseUnitValue / 1.0e3) / 1e1d, - PowerDensityUnit.DeciwattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-1d, - PowerDensityUnit.DeciwattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-1d, - PowerDensityUnit.DeciwattPerCubicMeter => (baseUnitValue) / 1e-1d, - PowerDensityUnit.DeciwattPerLiter => (baseUnitValue / 1.0e3) / 1e-1d, - PowerDensityUnit.GigawattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e9d, - PowerDensityUnit.GigawattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e9d, - PowerDensityUnit.GigawattPerCubicMeter => (baseUnitValue) / 1e9d, - PowerDensityUnit.GigawattPerLiter => (baseUnitValue / 1.0e3) / 1e9d, - PowerDensityUnit.KilowattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e3d, - PowerDensityUnit.KilowattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e3d, - PowerDensityUnit.KilowattPerCubicMeter => (baseUnitValue) / 1e3d, - PowerDensityUnit.KilowattPerLiter => (baseUnitValue / 1.0e3) / 1e3d, - PowerDensityUnit.MegawattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e6d, - PowerDensityUnit.MegawattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e6d, - PowerDensityUnit.MegawattPerCubicMeter => (baseUnitValue) / 1e6d, - PowerDensityUnit.MegawattPerLiter => (baseUnitValue / 1.0e3) / 1e6d, - PowerDensityUnit.MicrowattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-6d, - PowerDensityUnit.MicrowattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-6d, - PowerDensityUnit.MicrowattPerCubicMeter => (baseUnitValue) / 1e-6d, - PowerDensityUnit.MicrowattPerLiter => (baseUnitValue / 1.0e3) / 1e-6d, - PowerDensityUnit.MilliwattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-3d, - PowerDensityUnit.MilliwattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-3d, - PowerDensityUnit.MilliwattPerCubicMeter => (baseUnitValue) / 1e-3d, - PowerDensityUnit.MilliwattPerLiter => (baseUnitValue / 1.0e3) / 1e-3d, - PowerDensityUnit.NanowattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-9d, - PowerDensityUnit.NanowattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-9d, - PowerDensityUnit.NanowattPerCubicMeter => (baseUnitValue) / 1e-9d, - PowerDensityUnit.NanowattPerLiter => (baseUnitValue / 1.0e3) / 1e-9d, - PowerDensityUnit.PicowattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-12d, - PowerDensityUnit.PicowattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-12d, - PowerDensityUnit.PicowattPerCubicMeter => (baseUnitValue) / 1e-12d, - PowerDensityUnit.PicowattPerLiter => (baseUnitValue / 1.0e3) / 1e-12d, - PowerDensityUnit.TerawattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e12d, - PowerDensityUnit.TerawattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e12d, - PowerDensityUnit.TerawattPerCubicMeter => (baseUnitValue) / 1e12d, - PowerDensityUnit.TerawattPerLiter => (baseUnitValue / 1.0e3) / 1e12d, - PowerDensityUnit.WattPerCubicFoot => baseUnitValue * 0.028316846592, - PowerDensityUnit.WattPerCubicInch => baseUnitValue * 1.6387064e-5, - PowerDensityUnit.WattPerCubicMeter => baseUnitValue, - PowerDensityUnit.WattPerLiter => baseUnitValue / 1.0e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerRatio.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerRatio.g.cs deleted file mode 100644 index 5cd1825e49..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerRatio.g.cs +++ /dev/null @@ -1,169 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The strength of a signal expressed in decibels (dB) relative to one watt. - /// - public struct PowerRatio - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly PowerRatioUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public PowerRatioUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public PowerRatio(double value, PowerRatioUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of PowerRatio, which is Second. All conversions go via this value. - /// - public static PowerRatioUnit BaseUnit { get; } = PowerRatioUnit.DecibelWatt; - - /// - /// Represents the largest possible value of PowerRatio. - /// - public static PowerRatio MaxValue { get; } = new PowerRatio(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of PowerRatio. - /// - public static PowerRatio MinValue { get; } = new PowerRatio(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static PowerRatio Zero { get; } = new PowerRatio(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DecibelMilliwatts => As(PowerRatioUnit.DecibelMilliwatt); - - /// - /// Gets a value of this quantity converted into - /// - public double DecibelWatts => As(PowerRatioUnit.DecibelWatt); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static PowerRatio FromDecibelMilliwatts(double decibelmilliwatts) => new PowerRatio(decibelmilliwatts, PowerRatioUnit.DecibelMilliwatt); - - /// - /// Creates a from . - /// - public static PowerRatio FromDecibelWatts(double decibelwatts) => new PowerRatio(decibelwatts, PowerRatioUnit.DecibelWatt); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// PowerRatio unit value. - public static PowerRatio From(double value, PowerRatioUnit fromUnit) - { - return new PowerRatio(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(PowerRatioUnit unit) => GetValueAs(unit); - - /// - /// Converts this PowerRatio to another PowerRatio with the unit representation . - /// - /// A PowerRatio with the specified unit. - public PowerRatio ToUnit(PowerRatioUnit unit) - { - var convertedValue = GetValueAs(unit); - return new PowerRatio(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - PowerRatioUnit.DecibelMilliwatt => _value - 30, - PowerRatioUnit.DecibelWatt => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(PowerRatioUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - PowerRatioUnit.DecibelMilliwatt => baseUnitValue + 30, - PowerRatioUnit.DecibelWatt => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Pressure.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Pressure.g.cs deleted file mode 100644 index 0d6091e98c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Pressure.g.cs +++ /dev/null @@ -1,745 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Pressure (symbol: P or p) is the ratio of force to the area over which that force is distributed. Pressure is force per unit area applied in a direction perpendicular to the surface of an object. Gauge pressure (also spelled gage pressure)[a] is the pressure relative to the local atmospheric or ambient pressure. Pressure is measured in any unit of force divided by any unit of area. The SI unit of pressure is the newton per square metre, which is called the pascal (Pa) after the seventeenth-century philosopher and scientist Blaise Pascal. A pressure of 1 Pa is small; it approximately equals the pressure exerted by a dollar bill resting flat on a table. Everyday pressures are often stated in kilopascals (1 kPa = 1000 Pa). - /// - public struct Pressure - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly PressureUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public PressureUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Pressure(double value, PressureUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Pressure, which is Second. All conversions go via this value. - /// - public static PressureUnit BaseUnit { get; } = PressureUnit.Pascal; - - /// - /// Represents the largest possible value of Pressure. - /// - public static Pressure MaxValue { get; } = new Pressure(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Pressure. - /// - public static Pressure MinValue { get; } = new Pressure(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Pressure Zero { get; } = new Pressure(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Atmospheres => As(PressureUnit.Atmosphere); - - /// - /// Gets a value of this quantity converted into - /// - public double Bars => As(PressureUnit.Bar); - - /// - /// Gets a value of this quantity converted into - /// - public double Centibars => As(PressureUnit.Centibar); - - /// - /// Gets a value of this quantity converted into - /// - public double CentimetersOfWaterColumn => As(PressureUnit.CentimeterOfWaterColumn); - - /// - /// Gets a value of this quantity converted into - /// - public double Decapascals => As(PressureUnit.Decapascal); - - /// - /// Gets a value of this quantity converted into - /// - public double Decibars => As(PressureUnit.Decibar); - - /// - /// Gets a value of this quantity converted into - /// - public double DynesPerSquareCentimeter => As(PressureUnit.DynePerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double FeetOfHead => As(PressureUnit.FootOfHead); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigapascals => As(PressureUnit.Gigapascal); - - /// - /// Gets a value of this quantity converted into - /// - public double Hectopascals => As(PressureUnit.Hectopascal); - - /// - /// Gets a value of this quantity converted into - /// - public double InchesOfMercury => As(PressureUnit.InchOfMercury); - - /// - /// Gets a value of this quantity converted into - /// - public double InchesOfWaterColumn => As(PressureUnit.InchOfWaterColumn); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilobars => As(PressureUnit.Kilobar); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForcePerSquareCentimeter => As(PressureUnit.KilogramForcePerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForcePerSquareMeter => As(PressureUnit.KilogramForcePerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForcePerSquareMillimeter => As(PressureUnit.KilogramForcePerSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerSquareCentimeter => As(PressureUnit.KilonewtonPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerSquareMeter => As(PressureUnit.KilonewtonPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerSquareMillimeter => As(PressureUnit.KilonewtonPerSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilopascals => As(PressureUnit.Kilopascal); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerSquareFoot => As(PressureUnit.KilopoundForcePerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerSquareInch => As(PressureUnit.KilopoundForcePerSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerSquareMil => As(PressureUnit.KilopoundForcePerSquareMil); - - /// - /// Gets a value of this quantity converted into - /// - public double Megabars => As(PressureUnit.Megabar); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonsPerSquareMeter => As(PressureUnit.MeganewtonPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double Megapascals => As(PressureUnit.Megapascal); - - /// - /// Gets a value of this quantity converted into - /// - public double MetersOfHead => As(PressureUnit.MeterOfHead); - - /// - /// Gets a value of this quantity converted into - /// - public double MetersOfWaterColumn => As(PressureUnit.MeterOfWaterColumn); - - /// - /// Gets a value of this quantity converted into - /// - public double Microbars => As(PressureUnit.Microbar); - - /// - /// Gets a value of this quantity converted into - /// - public double Micropascals => As(PressureUnit.Micropascal); - - /// - /// Gets a value of this quantity converted into - /// - public double Millibars => As(PressureUnit.Millibar); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsForcePerSquareFoot => As(PressureUnit.MilligramForcePerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MilligramsForcePerSquareMeter => As(PressureUnit.MilligramForcePerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersOfMercury => As(PressureUnit.MillimeterOfMercury); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersOfWaterColumn => As(PressureUnit.MillimeterOfWaterColumn); - - /// - /// Gets a value of this quantity converted into - /// - public double Millipascals => As(PressureUnit.Millipascal); - - /// - /// Gets a value of this quantity converted into - /// - public double Millitorrs => As(PressureUnit.Millitorr); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerSquareCentimeter => As(PressureUnit.NewtonPerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerSquareMeter => As(PressureUnit.NewtonPerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerSquareMillimeter => As(PressureUnit.NewtonPerSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double Pascals => As(PressureUnit.Pascal); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerSquareFoot => As(PressureUnit.PoundForcePerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerSquareInch => As(PressureUnit.PoundForcePerSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerSquareMil => As(PressureUnit.PoundForcePerSquareMil); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsPerInchSecondSquared => As(PressureUnit.PoundPerInchSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double TechnicalAtmospheres => As(PressureUnit.TechnicalAtmosphere); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForcePerSquareCentimeter => As(PressureUnit.TonneForcePerSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForcePerSquareMeter => As(PressureUnit.TonneForcePerSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForcePerSquareMillimeter => As(PressureUnit.TonneForcePerSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double Torrs => As(PressureUnit.Torr); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Pressure FromAtmospheres(double atmospheres) => new Pressure(atmospheres, PressureUnit.Atmosphere); - - /// - /// Creates a from . - /// - public static Pressure FromBars(double bars) => new Pressure(bars, PressureUnit.Bar); - - /// - /// Creates a from . - /// - public static Pressure FromCentibars(double centibars) => new Pressure(centibars, PressureUnit.Centibar); - - /// - /// Creates a from . - /// - public static Pressure FromCentimetersOfWaterColumn(double centimetersofwatercolumn) => new Pressure(centimetersofwatercolumn, PressureUnit.CentimeterOfWaterColumn); - - /// - /// Creates a from . - /// - public static Pressure FromDecapascals(double decapascals) => new Pressure(decapascals, PressureUnit.Decapascal); - - /// - /// Creates a from . - /// - public static Pressure FromDecibars(double decibars) => new Pressure(decibars, PressureUnit.Decibar); - - /// - /// Creates a from . - /// - public static Pressure FromDynesPerSquareCentimeter(double dynespersquarecentimeter) => new Pressure(dynespersquarecentimeter, PressureUnit.DynePerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Pressure FromFeetOfHead(double feetofhead) => new Pressure(feetofhead, PressureUnit.FootOfHead); - - /// - /// Creates a from . - /// - public static Pressure FromGigapascals(double gigapascals) => new Pressure(gigapascals, PressureUnit.Gigapascal); - - /// - /// Creates a from . - /// - public static Pressure FromHectopascals(double hectopascals) => new Pressure(hectopascals, PressureUnit.Hectopascal); - - /// - /// Creates a from . - /// - public static Pressure FromInchesOfMercury(double inchesofmercury) => new Pressure(inchesofmercury, PressureUnit.InchOfMercury); - - /// - /// Creates a from . - /// - public static Pressure FromInchesOfWaterColumn(double inchesofwatercolumn) => new Pressure(inchesofwatercolumn, PressureUnit.InchOfWaterColumn); - - /// - /// Creates a from . - /// - public static Pressure FromKilobars(double kilobars) => new Pressure(kilobars, PressureUnit.Kilobar); - - /// - /// Creates a from . - /// - public static Pressure FromKilogramsForcePerSquareCentimeter(double kilogramsforcepersquarecentimeter) => new Pressure(kilogramsforcepersquarecentimeter, PressureUnit.KilogramForcePerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Pressure FromKilogramsForcePerSquareMeter(double kilogramsforcepersquaremeter) => new Pressure(kilogramsforcepersquaremeter, PressureUnit.KilogramForcePerSquareMeter); - - /// - /// Creates a from . - /// - public static Pressure FromKilogramsForcePerSquareMillimeter(double kilogramsforcepersquaremillimeter) => new Pressure(kilogramsforcepersquaremillimeter, PressureUnit.KilogramForcePerSquareMillimeter); - - /// - /// Creates a from . - /// - public static Pressure FromKilonewtonsPerSquareCentimeter(double kilonewtonspersquarecentimeter) => new Pressure(kilonewtonspersquarecentimeter, PressureUnit.KilonewtonPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Pressure FromKilonewtonsPerSquareMeter(double kilonewtonspersquaremeter) => new Pressure(kilonewtonspersquaremeter, PressureUnit.KilonewtonPerSquareMeter); - - /// - /// Creates a from . - /// - public static Pressure FromKilonewtonsPerSquareMillimeter(double kilonewtonspersquaremillimeter) => new Pressure(kilonewtonspersquaremillimeter, PressureUnit.KilonewtonPerSquareMillimeter); - - /// - /// Creates a from . - /// - public static Pressure FromKilopascals(double kilopascals) => new Pressure(kilopascals, PressureUnit.Kilopascal); - - /// - /// Creates a from . - /// - public static Pressure FromKilopoundsForcePerSquareFoot(double kilopoundsforcepersquarefoot) => new Pressure(kilopoundsforcepersquarefoot, PressureUnit.KilopoundForcePerSquareFoot); - - /// - /// Creates a from . - /// - public static Pressure FromKilopoundsForcePerSquareInch(double kilopoundsforcepersquareinch) => new Pressure(kilopoundsforcepersquareinch, PressureUnit.KilopoundForcePerSquareInch); - - /// - /// Creates a from . - /// - public static Pressure FromKilopoundsForcePerSquareMil(double kilopoundsforcepersquaremil) => new Pressure(kilopoundsforcepersquaremil, PressureUnit.KilopoundForcePerSquareMil); - - /// - /// Creates a from . - /// - public static Pressure FromMegabars(double megabars) => new Pressure(megabars, PressureUnit.Megabar); - - /// - /// Creates a from . - /// - public static Pressure FromMeganewtonsPerSquareMeter(double meganewtonspersquaremeter) => new Pressure(meganewtonspersquaremeter, PressureUnit.MeganewtonPerSquareMeter); - - /// - /// Creates a from . - /// - public static Pressure FromMegapascals(double megapascals) => new Pressure(megapascals, PressureUnit.Megapascal); - - /// - /// Creates a from . - /// - public static Pressure FromMetersOfHead(double metersofhead) => new Pressure(metersofhead, PressureUnit.MeterOfHead); - - /// - /// Creates a from . - /// - public static Pressure FromMetersOfWaterColumn(double metersofwatercolumn) => new Pressure(metersofwatercolumn, PressureUnit.MeterOfWaterColumn); - - /// - /// Creates a from . - /// - public static Pressure FromMicrobars(double microbars) => new Pressure(microbars, PressureUnit.Microbar); - - /// - /// Creates a from . - /// - public static Pressure FromMicropascals(double micropascals) => new Pressure(micropascals, PressureUnit.Micropascal); - - /// - /// Creates a from . - /// - public static Pressure FromMillibars(double millibars) => new Pressure(millibars, PressureUnit.Millibar); - - /// - /// Creates a from . - /// - public static Pressure FromMilligramsForcePerSquareFoot(double milligramsforcepersquarefoot) => new Pressure(milligramsforcepersquarefoot, PressureUnit.MilligramForcePerSquareFoot); - - /// - /// Creates a from . - /// - public static Pressure FromMilligramsForcePerSquareMeter(double milligramsforcepersquaremeter) => new Pressure(milligramsforcepersquaremeter, PressureUnit.MilligramForcePerSquareMeter); - - /// - /// Creates a from . - /// - public static Pressure FromMillimetersOfMercury(double millimetersofmercury) => new Pressure(millimetersofmercury, PressureUnit.MillimeterOfMercury); - - /// - /// Creates a from . - /// - public static Pressure FromMillimetersOfWaterColumn(double millimetersofwatercolumn) => new Pressure(millimetersofwatercolumn, PressureUnit.MillimeterOfWaterColumn); - - /// - /// Creates a from . - /// - public static Pressure FromMillipascals(double millipascals) => new Pressure(millipascals, PressureUnit.Millipascal); - - /// - /// Creates a from . - /// - public static Pressure FromMillitorrs(double millitorrs) => new Pressure(millitorrs, PressureUnit.Millitorr); - - /// - /// Creates a from . - /// - public static Pressure FromNewtonsPerSquareCentimeter(double newtonspersquarecentimeter) => new Pressure(newtonspersquarecentimeter, PressureUnit.NewtonPerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Pressure FromNewtonsPerSquareMeter(double newtonspersquaremeter) => new Pressure(newtonspersquaremeter, PressureUnit.NewtonPerSquareMeter); - - /// - /// Creates a from . - /// - public static Pressure FromNewtonsPerSquareMillimeter(double newtonspersquaremillimeter) => new Pressure(newtonspersquaremillimeter, PressureUnit.NewtonPerSquareMillimeter); - - /// - /// Creates a from . - /// - public static Pressure FromPascals(double pascals) => new Pressure(pascals, PressureUnit.Pascal); - - /// - /// Creates a from . - /// - public static Pressure FromPoundsForcePerSquareFoot(double poundsforcepersquarefoot) => new Pressure(poundsforcepersquarefoot, PressureUnit.PoundForcePerSquareFoot); - - /// - /// Creates a from . - /// - public static Pressure FromPoundsForcePerSquareInch(double poundsforcepersquareinch) => new Pressure(poundsforcepersquareinch, PressureUnit.PoundForcePerSquareInch); - - /// - /// Creates a from . - /// - public static Pressure FromPoundsForcePerSquareMil(double poundsforcepersquaremil) => new Pressure(poundsforcepersquaremil, PressureUnit.PoundForcePerSquareMil); - - /// - /// Creates a from . - /// - public static Pressure FromPoundsPerInchSecondSquared(double poundsperinchsecondsquared) => new Pressure(poundsperinchsecondsquared, PressureUnit.PoundPerInchSecondSquared); - - /// - /// Creates a from . - /// - public static Pressure FromTechnicalAtmospheres(double technicalatmospheres) => new Pressure(technicalatmospheres, PressureUnit.TechnicalAtmosphere); - - /// - /// Creates a from . - /// - public static Pressure FromTonnesForcePerSquareCentimeter(double tonnesforcepersquarecentimeter) => new Pressure(tonnesforcepersquarecentimeter, PressureUnit.TonneForcePerSquareCentimeter); - - /// - /// Creates a from . - /// - public static Pressure FromTonnesForcePerSquareMeter(double tonnesforcepersquaremeter) => new Pressure(tonnesforcepersquaremeter, PressureUnit.TonneForcePerSquareMeter); - - /// - /// Creates a from . - /// - public static Pressure FromTonnesForcePerSquareMillimeter(double tonnesforcepersquaremillimeter) => new Pressure(tonnesforcepersquaremillimeter, PressureUnit.TonneForcePerSquareMillimeter); - - /// - /// Creates a from . - /// - public static Pressure FromTorrs(double torrs) => new Pressure(torrs, PressureUnit.Torr); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Pressure unit value. - public static Pressure From(double value, PressureUnit fromUnit) - { - return new Pressure(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(PressureUnit unit) => GetValueAs(unit); - - /// - /// Converts this Pressure to another Pressure with the unit representation . - /// - /// A Pressure with the specified unit. - public Pressure ToUnit(PressureUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Pressure(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - PressureUnit.Atmosphere => _value * 1.01325 * 1e5, - PressureUnit.Bar => _value * 1e5, - PressureUnit.Centibar => (_value * 1e5) * 1e-2d, - PressureUnit.CentimeterOfWaterColumn => (_value * 9.80665e3) * 1e-2d, - PressureUnit.Decapascal => (_value) * 1e1d, - PressureUnit.Decibar => (_value * 1e5) * 1e-1d, - PressureUnit.DynePerSquareCentimeter => _value * 1.0e-1, - PressureUnit.FootOfHead => _value * 9804.139432 * 0.3048, - PressureUnit.Gigapascal => (_value) * 1e9d, - PressureUnit.Hectopascal => (_value) * 1e2d, - PressureUnit.InchOfMercury => _value * 2.54e1 * 133.322387415, - PressureUnit.InchOfWaterColumn => _value * 2.54e-2 * 9.80665e3, - PressureUnit.Kilobar => (_value * 1e5) * 1e3d, - PressureUnit.KilogramForcePerSquareCentimeter => _value * 9.80665e4, - PressureUnit.KilogramForcePerSquareMeter => _value * 9.80665, - PressureUnit.KilogramForcePerSquareMillimeter => _value * 9.80665e6, - PressureUnit.KilonewtonPerSquareCentimeter => (_value * 1e4) * 1e3d, - PressureUnit.KilonewtonPerSquareMeter => (_value) * 1e3d, - PressureUnit.KilonewtonPerSquareMillimeter => (_value * 1e6) * 1e3d, - PressureUnit.Kilopascal => (_value) * 1e3d, - PressureUnit.KilopoundForcePerSquareFoot => (_value * 4.4482216152605 / 9.290304e-2) * 1e3d, - PressureUnit.KilopoundForcePerSquareInch => (_value * 4.4482216152605 / 0.00064516) * 1e3d, - PressureUnit.KilopoundForcePerSquareMil => (_value * 4.4482216152605 / (2.54e-5 * 2.54e-5)) * 1e3d, - PressureUnit.Megabar => (_value * 1e5) * 1e6d, - PressureUnit.MeganewtonPerSquareMeter => (_value) * 1e6d, - PressureUnit.Megapascal => (_value) * 1e6d, - PressureUnit.MeterOfHead => _value * 9804.139432, - PressureUnit.MeterOfWaterColumn => _value * 9.80665e3, - PressureUnit.Microbar => (_value * 1e5) * 1e-6d, - PressureUnit.Micropascal => (_value) * 1e-6d, - PressureUnit.Millibar => (_value * 1e5) * 1e-3d, - PressureUnit.MilligramForcePerSquareFoot => _value * 9.80665e-6 / 9.290304e-2, - PressureUnit.MilligramForcePerSquareMeter => _value * 9.80665e-6, - PressureUnit.MillimeterOfMercury => _value * 133.322387415, - PressureUnit.MillimeterOfWaterColumn => (_value * 9.80665e3) * 1e-3d, - PressureUnit.Millipascal => (_value) * 1e-3d, - PressureUnit.Millitorr => (_value * 101325 / 760) * 1e-3d, - PressureUnit.NewtonPerSquareCentimeter => _value * 1e4, - PressureUnit.NewtonPerSquareMeter => _value, - PressureUnit.NewtonPerSquareMillimeter => _value * 1e6, - PressureUnit.Pascal => _value, - PressureUnit.PoundForcePerSquareFoot => _value * 4.4482216152605 / 9.290304e-2, - PressureUnit.PoundForcePerSquareInch => _value * 4.4482216152605 / 0.00064516, - PressureUnit.PoundForcePerSquareMil => _value * 4.4482216152605 / (2.54e-5 * 2.54e-5), - PressureUnit.PoundPerInchSecondSquared => _value * (4.4482216152605 / 0.00064516) / 386.0886, - PressureUnit.TechnicalAtmosphere => _value * 9.80665e4, - PressureUnit.TonneForcePerSquareCentimeter => _value * 9.80665e7, - PressureUnit.TonneForcePerSquareMeter => _value * 9.80665e3, - PressureUnit.TonneForcePerSquareMillimeter => _value * 9.80665e9, - PressureUnit.Torr => _value * 101325 / 760, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(PressureUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - PressureUnit.Atmosphere => baseUnitValue / (1.01325 * 1e5), - PressureUnit.Bar => baseUnitValue / 1e5, - PressureUnit.Centibar => (baseUnitValue / 1e5) / 1e-2d, - PressureUnit.CentimeterOfWaterColumn => (baseUnitValue / 9.80665e3) / 1e-2d, - PressureUnit.Decapascal => (baseUnitValue) / 1e1d, - PressureUnit.Decibar => (baseUnitValue / 1e5) / 1e-1d, - PressureUnit.DynePerSquareCentimeter => baseUnitValue / 1.0e-1, - PressureUnit.FootOfHead => baseUnitValue / (9804.139432 * 0.3048), - PressureUnit.Gigapascal => (baseUnitValue) / 1e9d, - PressureUnit.Hectopascal => (baseUnitValue) / 1e2d, - PressureUnit.InchOfMercury => baseUnitValue / (2.54e1 * 133.322387415), - PressureUnit.InchOfWaterColumn => baseUnitValue / (2.54e-2 * 9.80665e3), - PressureUnit.Kilobar => (baseUnitValue / 1e5) / 1e3d, - PressureUnit.KilogramForcePerSquareCentimeter => baseUnitValue / 9.80665e4, - PressureUnit.KilogramForcePerSquareMeter => baseUnitValue / 9.80665, - PressureUnit.KilogramForcePerSquareMillimeter => baseUnitValue / 9.80665e6, - PressureUnit.KilonewtonPerSquareCentimeter => (baseUnitValue / 1e4) / 1e3d, - PressureUnit.KilonewtonPerSquareMeter => (baseUnitValue) / 1e3d, - PressureUnit.KilonewtonPerSquareMillimeter => (baseUnitValue / 1e6) / 1e3d, - PressureUnit.Kilopascal => (baseUnitValue) / 1e3d, - PressureUnit.KilopoundForcePerSquareFoot => (baseUnitValue * 9.290304e-2 / 4.4482216152605) / 1e3d, - PressureUnit.KilopoundForcePerSquareInch => (baseUnitValue * 0.00064516 / 4.4482216152605) / 1e3d, - PressureUnit.KilopoundForcePerSquareMil => (baseUnitValue * (2.54e-5 * 2.54e-5) / 4.4482216152605) / 1e3d, - PressureUnit.Megabar => (baseUnitValue / 1e5) / 1e6d, - PressureUnit.MeganewtonPerSquareMeter => (baseUnitValue) / 1e6d, - PressureUnit.Megapascal => (baseUnitValue) / 1e6d, - PressureUnit.MeterOfHead => baseUnitValue / 9804.139432, - PressureUnit.MeterOfWaterColumn => baseUnitValue / 9.80665e3, - PressureUnit.Microbar => (baseUnitValue / 1e5) / 1e-6d, - PressureUnit.Micropascal => (baseUnitValue) / 1e-6d, - PressureUnit.Millibar => (baseUnitValue / 1e5) / 1e-3d, - PressureUnit.MilligramForcePerSquareFoot => baseUnitValue / 9.80665e-6 * 9.290304e-2, - PressureUnit.MilligramForcePerSquareMeter => baseUnitValue / 9.80665e-6, - PressureUnit.MillimeterOfMercury => baseUnitValue / 133.322387415, - PressureUnit.MillimeterOfWaterColumn => (baseUnitValue / 9.80665e3) / 1e-3d, - PressureUnit.Millipascal => (baseUnitValue) / 1e-3d, - PressureUnit.Millitorr => (baseUnitValue * 760 / 101325) / 1e-3d, - PressureUnit.NewtonPerSquareCentimeter => baseUnitValue / 1e4, - PressureUnit.NewtonPerSquareMeter => baseUnitValue, - PressureUnit.NewtonPerSquareMillimeter => baseUnitValue / 1e6, - PressureUnit.Pascal => baseUnitValue, - PressureUnit.PoundForcePerSquareFoot => baseUnitValue * 9.290304e-2 / 4.4482216152605, - PressureUnit.PoundForcePerSquareInch => baseUnitValue * 0.00064516 / 4.4482216152605, - PressureUnit.PoundForcePerSquareMil => baseUnitValue * (2.54e-5 * 2.54e-5) / 4.4482216152605, - PressureUnit.PoundPerInchSecondSquared => baseUnitValue * 386.0886 / (4.4482216152605 / 0.00064516), - PressureUnit.TechnicalAtmosphere => baseUnitValue / 9.80665e4, - PressureUnit.TonneForcePerSquareCentimeter => baseUnitValue / 9.80665e7, - PressureUnit.TonneForcePerSquareMeter => baseUnitValue / 9.80665e3, - PressureUnit.TonneForcePerSquareMillimeter => baseUnitValue / 9.80665e9, - PressureUnit.Torr => baseUnitValue * 760 / 101325, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PressureChangeRate.g.cs deleted file mode 100644 index c5547c401d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PressureChangeRate.g.cs +++ /dev/null @@ -1,361 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Pressure change rate is the ratio of the pressure change to the time during which the change occurred (value of pressure changes per unit time). - /// - public struct PressureChangeRate - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly PressureChangeRateUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public PressureChangeRateUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public PressureChangeRate(double value, PressureChangeRateUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of PressureChangeRate, which is Second. All conversions go via this value. - /// - public static PressureChangeRateUnit BaseUnit { get; } = PressureChangeRateUnit.PascalPerSecond; - - /// - /// Represents the largest possible value of PressureChangeRate. - /// - public static PressureChangeRate MaxValue { get; } = new PressureChangeRate(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of PressureChangeRate. - /// - public static PressureChangeRate MinValue { get; } = new PressureChangeRate(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static PressureChangeRate Zero { get; } = new PressureChangeRate(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double AtmospheresPerSecond => As(PressureChangeRateUnit.AtmospherePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double BarsPerMinute => As(PressureChangeRateUnit.BarPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double BarsPerSecond => As(PressureChangeRateUnit.BarPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopascalsPerMinute => As(PressureChangeRateUnit.KilopascalPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopascalsPerSecond => As(PressureChangeRateUnit.KilopascalPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerSquareInchPerMinute => As(PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerSquareInchPerSecond => As(PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapascalsPerMinute => As(PressureChangeRateUnit.MegapascalPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapascalsPerSecond => As(PressureChangeRateUnit.MegapascalPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapoundsForcePerSquareInchPerMinute => As(PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapoundsForcePerSquareInchPerSecond => As(PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillibarsPerMinute => As(PressureChangeRateUnit.MillibarPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MillibarsPerSecond => As(PressureChangeRateUnit.MillibarPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersOfMercuryPerSecond => As(PressureChangeRateUnit.MillimeterOfMercuryPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalsPerMinute => As(PressureChangeRateUnit.PascalPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double PascalsPerSecond => As(PressureChangeRateUnit.PascalPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerSquareInchPerMinute => As(PressureChangeRateUnit.PoundForcePerSquareInchPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerSquareInchPerSecond => As(PressureChangeRateUnit.PoundForcePerSquareInchPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static PressureChangeRate FromAtmospheresPerSecond(double atmospherespersecond) => new PressureChangeRate(atmospherespersecond, PressureChangeRateUnit.AtmospherePerSecond); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromBarsPerMinute(double barsperminute) => new PressureChangeRate(barsperminute, PressureChangeRateUnit.BarPerMinute); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromBarsPerSecond(double barspersecond) => new PressureChangeRate(barspersecond, PressureChangeRateUnit.BarPerSecond); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromKilopascalsPerMinute(double kilopascalsperminute) => new PressureChangeRate(kilopascalsperminute, PressureChangeRateUnit.KilopascalPerMinute); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromKilopascalsPerSecond(double kilopascalspersecond) => new PressureChangeRate(kilopascalspersecond, PressureChangeRateUnit.KilopascalPerSecond); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromKilopoundsForcePerSquareInchPerMinute(double kilopoundsforcepersquareinchperminute) => new PressureChangeRate(kilopoundsforcepersquareinchperminute, PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromKilopoundsForcePerSquareInchPerSecond(double kilopoundsforcepersquareinchpersecond) => new PressureChangeRate(kilopoundsforcepersquareinchpersecond, PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromMegapascalsPerMinute(double megapascalsperminute) => new PressureChangeRate(megapascalsperminute, PressureChangeRateUnit.MegapascalPerMinute); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromMegapascalsPerSecond(double megapascalspersecond) => new PressureChangeRate(megapascalspersecond, PressureChangeRateUnit.MegapascalPerSecond); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromMegapoundsForcePerSquareInchPerMinute(double megapoundsforcepersquareinchperminute) => new PressureChangeRate(megapoundsforcepersquareinchperminute, PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromMegapoundsForcePerSquareInchPerSecond(double megapoundsforcepersquareinchpersecond) => new PressureChangeRate(megapoundsforcepersquareinchpersecond, PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromMillibarsPerMinute(double millibarsperminute) => new PressureChangeRate(millibarsperminute, PressureChangeRateUnit.MillibarPerMinute); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromMillibarsPerSecond(double millibarspersecond) => new PressureChangeRate(millibarspersecond, PressureChangeRateUnit.MillibarPerSecond); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromMillimetersOfMercuryPerSecond(double millimetersofmercurypersecond) => new PressureChangeRate(millimetersofmercurypersecond, PressureChangeRateUnit.MillimeterOfMercuryPerSecond); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromPascalsPerMinute(double pascalsperminute) => new PressureChangeRate(pascalsperminute, PressureChangeRateUnit.PascalPerMinute); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromPascalsPerSecond(double pascalspersecond) => new PressureChangeRate(pascalspersecond, PressureChangeRateUnit.PascalPerSecond); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromPoundsForcePerSquareInchPerMinute(double poundsforcepersquareinchperminute) => new PressureChangeRate(poundsforcepersquareinchperminute, PressureChangeRateUnit.PoundForcePerSquareInchPerMinute); - - /// - /// Creates a from . - /// - public static PressureChangeRate FromPoundsForcePerSquareInchPerSecond(double poundsforcepersquareinchpersecond) => new PressureChangeRate(poundsforcepersquareinchpersecond, PressureChangeRateUnit.PoundForcePerSquareInchPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// PressureChangeRate unit value. - public static PressureChangeRate From(double value, PressureChangeRateUnit fromUnit) - { - return new PressureChangeRate(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(PressureChangeRateUnit unit) => GetValueAs(unit); - - /// - /// Converts this PressureChangeRate to another PressureChangeRate with the unit representation . - /// - /// A PressureChangeRate with the specified unit. - public PressureChangeRate ToUnit(PressureChangeRateUnit unit) - { - var convertedValue = GetValueAs(unit); - return new PressureChangeRate(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - PressureChangeRateUnit.AtmospherePerSecond => _value * 1.01325 * 1e5, - PressureChangeRateUnit.BarPerMinute => _value * 1e5 / 60, - PressureChangeRateUnit.BarPerSecond => _value * 1e5, - PressureChangeRateUnit.KilopascalPerMinute => (_value / 60) * 1e3d, - PressureChangeRateUnit.KilopascalPerSecond => (_value) * 1e3d, - PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute => (_value * (4.4482216152605 / 0.00064516) / 60) * 1e3d, - PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond => (_value * 4.4482216152605 / 0.00064516) * 1e3d, - PressureChangeRateUnit.MegapascalPerMinute => (_value / 60) * 1e6d, - PressureChangeRateUnit.MegapascalPerSecond => (_value) * 1e6d, - PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute => (_value * (4.4482216152605 / 0.00064516) / 60) * 1e6d, - PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond => (_value * 4.4482216152605 / 0.00064516) * 1e6d, - PressureChangeRateUnit.MillibarPerMinute => (_value * 1e5 / 60) * 1e-3d, - PressureChangeRateUnit.MillibarPerSecond => (_value * 1e5) * 1e-3d, - PressureChangeRateUnit.MillimeterOfMercuryPerSecond => _value * 133.322387415, - PressureChangeRateUnit.PascalPerMinute => _value / 60, - PressureChangeRateUnit.PascalPerSecond => _value, - PressureChangeRateUnit.PoundForcePerSquareInchPerMinute => _value * (4.4482216152605 / 0.00064516) / 60, - PressureChangeRateUnit.PoundForcePerSquareInchPerSecond => _value * 4.4482216152605 / 0.00064516, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(PressureChangeRateUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - PressureChangeRateUnit.AtmospherePerSecond => baseUnitValue / (1.01325 * 1e5), - PressureChangeRateUnit.BarPerMinute => baseUnitValue / 1e5 * 60, - PressureChangeRateUnit.BarPerSecond => baseUnitValue / 1e5, - PressureChangeRateUnit.KilopascalPerMinute => (baseUnitValue * 60) / 1e3d, - PressureChangeRateUnit.KilopascalPerSecond => (baseUnitValue) / 1e3d, - PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute => (baseUnitValue * 60 / (4.4482216152605 / 0.00064516)) / 1e3d, - PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond => (baseUnitValue * 0.00064516 / 4.4482216152605) / 1e3d, - PressureChangeRateUnit.MegapascalPerMinute => (baseUnitValue * 60) / 1e6d, - PressureChangeRateUnit.MegapascalPerSecond => (baseUnitValue) / 1e6d, - PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute => (baseUnitValue * 60 / (4.4482216152605 / 0.00064516)) / 1e6d, - PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond => (baseUnitValue * 0.00064516 / 4.4482216152605) / 1e6d, - PressureChangeRateUnit.MillibarPerMinute => (baseUnitValue / 1e5 * 60) / 1e-3d, - PressureChangeRateUnit.MillibarPerSecond => (baseUnitValue / 1e5) / 1e-3d, - PressureChangeRateUnit.MillimeterOfMercuryPerSecond => baseUnitValue / 133.322387415, - PressureChangeRateUnit.PascalPerMinute => baseUnitValue * 60, - PressureChangeRateUnit.PascalPerSecond => baseUnitValue, - PressureChangeRateUnit.PoundForcePerSquareInchPerMinute => baseUnitValue * 60 / (4.4482216152605 / 0.00064516), - PressureChangeRateUnit.PoundForcePerSquareInchPerSecond => baseUnitValue * 0.00064516 / 4.4482216152605, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs deleted file mode 100644 index 57ea2e0869..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDose.g.cs +++ /dev/null @@ -1,217 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Equivalent dose is a dose quantity representing the stochastic health effects of low levels of ionizing radiation on the human body which represents the probability of radiation-induced cancer and genetic damage. - /// - public struct RadiationEquivalentDose - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RadiationEquivalentDoseUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RadiationEquivalentDoseUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public RadiationEquivalentDose(double value, RadiationEquivalentDoseUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of RadiationEquivalentDose, which is Second. All conversions go via this value. - /// - public static RadiationEquivalentDoseUnit BaseUnit { get; } = RadiationEquivalentDoseUnit.Sievert; - - /// - /// Represents the largest possible value of RadiationEquivalentDose. - /// - public static RadiationEquivalentDose MaxValue { get; } = new RadiationEquivalentDose(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of RadiationEquivalentDose. - /// - public static RadiationEquivalentDose MinValue { get; } = new RadiationEquivalentDose(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static RadiationEquivalentDose Zero { get; } = new RadiationEquivalentDose(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Microsieverts => As(RadiationEquivalentDoseUnit.Microsievert); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliroentgensEquivalentMan => As(RadiationEquivalentDoseUnit.MilliroentgenEquivalentMan); - - /// - /// Gets a value of this quantity converted into - /// - public double Millisieverts => As(RadiationEquivalentDoseUnit.Millisievert); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanosieverts => As(RadiationEquivalentDoseUnit.Nanosievert); - - /// - /// Gets a value of this quantity converted into - /// - public double RoentgensEquivalentMan => As(RadiationEquivalentDoseUnit.RoentgenEquivalentMan); - - /// - /// Gets a value of this quantity converted into - /// - public double Sieverts => As(RadiationEquivalentDoseUnit.Sievert); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static RadiationEquivalentDose FromMicrosieverts(double microsieverts) => new RadiationEquivalentDose(microsieverts, RadiationEquivalentDoseUnit.Microsievert); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDose FromMilliroentgensEquivalentMan(double milliroentgensequivalentman) => new RadiationEquivalentDose(milliroentgensequivalentman, RadiationEquivalentDoseUnit.MilliroentgenEquivalentMan); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDose FromMillisieverts(double millisieverts) => new RadiationEquivalentDose(millisieverts, RadiationEquivalentDoseUnit.Millisievert); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDose FromNanosieverts(double nanosieverts) => new RadiationEquivalentDose(nanosieverts, RadiationEquivalentDoseUnit.Nanosievert); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDose FromRoentgensEquivalentMan(double roentgensequivalentman) => new RadiationEquivalentDose(roentgensequivalentman, RadiationEquivalentDoseUnit.RoentgenEquivalentMan); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDose FromSieverts(double sieverts) => new RadiationEquivalentDose(sieverts, RadiationEquivalentDoseUnit.Sievert); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// RadiationEquivalentDose unit value. - public static RadiationEquivalentDose From(double value, RadiationEquivalentDoseUnit fromUnit) - { - return new RadiationEquivalentDose(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RadiationEquivalentDoseUnit unit) => GetValueAs(unit); - - /// - /// Converts this RadiationEquivalentDose to another RadiationEquivalentDose with the unit representation . - /// - /// A RadiationEquivalentDose with the specified unit. - public RadiationEquivalentDose ToUnit(RadiationEquivalentDoseUnit unit) - { - var convertedValue = GetValueAs(unit); - return new RadiationEquivalentDose(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RadiationEquivalentDoseUnit.Microsievert => (_value) * 1e-6d, - RadiationEquivalentDoseUnit.MilliroentgenEquivalentMan => (_value / 100) * 1e-3d, - RadiationEquivalentDoseUnit.Millisievert => (_value) * 1e-3d, - RadiationEquivalentDoseUnit.Nanosievert => (_value) * 1e-9d, - RadiationEquivalentDoseUnit.RoentgenEquivalentMan => _value / 100, - RadiationEquivalentDoseUnit.Sievert => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RadiationEquivalentDoseUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RadiationEquivalentDoseUnit.Microsievert => (baseUnitValue) / 1e-6d, - RadiationEquivalentDoseUnit.MilliroentgenEquivalentMan => (baseUnitValue * 100) / 1e-3d, - RadiationEquivalentDoseUnit.Millisievert => (baseUnitValue) / 1e-3d, - RadiationEquivalentDoseUnit.Nanosievert => (baseUnitValue) / 1e-9d, - RadiationEquivalentDoseUnit.RoentgenEquivalentMan => baseUnitValue * 100, - RadiationEquivalentDoseUnit.Sievert => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs deleted file mode 100644 index cfd02e3935..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs +++ /dev/null @@ -1,265 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A dose rate is quantity of radiation absorbed or delivered per unit time. - /// - public struct RadiationEquivalentDoseRate - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RadiationEquivalentDoseRateUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RadiationEquivalentDoseRateUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public RadiationEquivalentDoseRate(double value, RadiationEquivalentDoseRateUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of RadiationEquivalentDoseRate, which is Second. All conversions go via this value. - /// - public static RadiationEquivalentDoseRateUnit BaseUnit { get; } = RadiationEquivalentDoseRateUnit.SievertPerSecond; - - /// - /// Represents the largest possible value of RadiationEquivalentDoseRate. - /// - public static RadiationEquivalentDoseRate MaxValue { get; } = new RadiationEquivalentDoseRate(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of RadiationEquivalentDoseRate. - /// - public static RadiationEquivalentDoseRate MinValue { get; } = new RadiationEquivalentDoseRate(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static RadiationEquivalentDoseRate Zero { get; } = new RadiationEquivalentDoseRate(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double MicrosievertsPerHour => As(RadiationEquivalentDoseRateUnit.MicrosievertPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrosievertsPerSecond => As(RadiationEquivalentDoseRateUnit.MicrosievertPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliroentgensEquivalentManPerHour => As(RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MillisievertsPerHour => As(RadiationEquivalentDoseRateUnit.MillisievertPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MillisievertsPerSecond => As(RadiationEquivalentDoseRateUnit.MillisievertPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NanosievertsPerHour => As(RadiationEquivalentDoseRateUnit.NanosievertPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double NanosievertsPerSecond => As(RadiationEquivalentDoseRateUnit.NanosievertPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double RoentgensEquivalentManPerHour => As(RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double SievertsPerHour => As(RadiationEquivalentDoseRateUnit.SievertPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double SievertsPerSecond => As(RadiationEquivalentDoseRateUnit.SievertPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromMicrosievertsPerHour(double microsievertsperhour) => new RadiationEquivalentDoseRate(microsievertsperhour, RadiationEquivalentDoseRateUnit.MicrosievertPerHour); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromMicrosievertsPerSecond(double microsievertspersecond) => new RadiationEquivalentDoseRate(microsievertspersecond, RadiationEquivalentDoseRateUnit.MicrosievertPerSecond); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromMilliroentgensEquivalentManPerHour(double milliroentgensequivalentmanperhour) => new RadiationEquivalentDoseRate(milliroentgensequivalentmanperhour, RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromMillisievertsPerHour(double millisievertsperhour) => new RadiationEquivalentDoseRate(millisievertsperhour, RadiationEquivalentDoseRateUnit.MillisievertPerHour); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromMillisievertsPerSecond(double millisievertspersecond) => new RadiationEquivalentDoseRate(millisievertspersecond, RadiationEquivalentDoseRateUnit.MillisievertPerSecond); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromNanosievertsPerHour(double nanosievertsperhour) => new RadiationEquivalentDoseRate(nanosievertsperhour, RadiationEquivalentDoseRateUnit.NanosievertPerHour); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromNanosievertsPerSecond(double nanosievertspersecond) => new RadiationEquivalentDoseRate(nanosievertspersecond, RadiationEquivalentDoseRateUnit.NanosievertPerSecond); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromRoentgensEquivalentManPerHour(double roentgensequivalentmanperhour) => new RadiationEquivalentDoseRate(roentgensequivalentmanperhour, RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromSievertsPerHour(double sievertsperhour) => new RadiationEquivalentDoseRate(sievertsperhour, RadiationEquivalentDoseRateUnit.SievertPerHour); - - /// - /// Creates a from . - /// - public static RadiationEquivalentDoseRate FromSievertsPerSecond(double sievertspersecond) => new RadiationEquivalentDoseRate(sievertspersecond, RadiationEquivalentDoseRateUnit.SievertPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// RadiationEquivalentDoseRate unit value. - public static RadiationEquivalentDoseRate From(double value, RadiationEquivalentDoseRateUnit fromUnit) - { - return new RadiationEquivalentDoseRate(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RadiationEquivalentDoseRateUnit unit) => GetValueAs(unit); - - /// - /// Converts this RadiationEquivalentDoseRate to another RadiationEquivalentDoseRate with the unit representation . - /// - /// A RadiationEquivalentDoseRate with the specified unit. - public RadiationEquivalentDoseRate ToUnit(RadiationEquivalentDoseRateUnit unit) - { - var convertedValue = GetValueAs(unit); - return new RadiationEquivalentDoseRate(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RadiationEquivalentDoseRateUnit.MicrosievertPerHour => (_value/3600) * 1e-6d, - RadiationEquivalentDoseRateUnit.MicrosievertPerSecond => (_value) * 1e-6d, - RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour => (_value / 100 / 3600) * 1e-3d, - RadiationEquivalentDoseRateUnit.MillisievertPerHour => (_value/3600) * 1e-3d, - RadiationEquivalentDoseRateUnit.MillisievertPerSecond => (_value) * 1e-3d, - RadiationEquivalentDoseRateUnit.NanosievertPerHour => (_value/3600) * 1e-9d, - RadiationEquivalentDoseRateUnit.NanosievertPerSecond => (_value) * 1e-9d, - RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour => _value / 100 / 3600, - RadiationEquivalentDoseRateUnit.SievertPerHour => _value/3600, - RadiationEquivalentDoseRateUnit.SievertPerSecond => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RadiationEquivalentDoseRateUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RadiationEquivalentDoseRateUnit.MicrosievertPerHour => (baseUnitValue*3600) / 1e-6d, - RadiationEquivalentDoseRateUnit.MicrosievertPerSecond => (baseUnitValue) / 1e-6d, - RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour => (baseUnitValue * 100 * 3600) / 1e-3d, - RadiationEquivalentDoseRateUnit.MillisievertPerHour => (baseUnitValue*3600) / 1e-3d, - RadiationEquivalentDoseRateUnit.MillisievertPerSecond => (baseUnitValue) / 1e-3d, - RadiationEquivalentDoseRateUnit.NanosievertPerHour => (baseUnitValue*3600) / 1e-9d, - RadiationEquivalentDoseRateUnit.NanosievertPerSecond => (baseUnitValue) / 1e-9d, - RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour => baseUnitValue * 100 * 3600, - RadiationEquivalentDoseRateUnit.SievertPerHour => baseUnitValue*3600, - RadiationEquivalentDoseRateUnit.SievertPerSecond => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationExposure.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationExposure.g.cs deleted file mode 100644 index eb3b34d723..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationExposure.g.cs +++ /dev/null @@ -1,241 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Radiation exposure is a measure of the ionization of air due to ionizing radiation from photons. - /// - public struct RadiationExposure - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RadiationExposureUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RadiationExposureUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public RadiationExposure(double value, RadiationExposureUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of RadiationExposure, which is Second. All conversions go via this value. - /// - public static RadiationExposureUnit BaseUnit { get; } = RadiationExposureUnit.CoulombPerKilogram; - - /// - /// Represents the largest possible value of RadiationExposure. - /// - public static RadiationExposure MaxValue { get; } = new RadiationExposure(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of RadiationExposure. - /// - public static RadiationExposure MinValue { get; } = new RadiationExposure(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static RadiationExposure Zero { get; } = new RadiationExposure(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CoulombsPerKilogram => As(RadiationExposureUnit.CoulombPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrocoulombsPerKilogram => As(RadiationExposureUnit.MicrocoulombPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double Microroentgens => As(RadiationExposureUnit.Microroentgen); - - /// - /// Gets a value of this quantity converted into - /// - public double MillicoulombsPerKilogram => As(RadiationExposureUnit.MillicoulombPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliroentgens => As(RadiationExposureUnit.Milliroentgen); - - /// - /// Gets a value of this quantity converted into - /// - public double NanocoulombsPerKilogram => As(RadiationExposureUnit.NanocoulombPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double PicocoulombsPerKilogram => As(RadiationExposureUnit.PicocoulombPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double Roentgens => As(RadiationExposureUnit.Roentgen); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static RadiationExposure FromCoulombsPerKilogram(double coulombsperkilogram) => new RadiationExposure(coulombsperkilogram, RadiationExposureUnit.CoulombPerKilogram); - - /// - /// Creates a from . - /// - public static RadiationExposure FromMicrocoulombsPerKilogram(double microcoulombsperkilogram) => new RadiationExposure(microcoulombsperkilogram, RadiationExposureUnit.MicrocoulombPerKilogram); - - /// - /// Creates a from . - /// - public static RadiationExposure FromMicroroentgens(double microroentgens) => new RadiationExposure(microroentgens, RadiationExposureUnit.Microroentgen); - - /// - /// Creates a from . - /// - public static RadiationExposure FromMillicoulombsPerKilogram(double millicoulombsperkilogram) => new RadiationExposure(millicoulombsperkilogram, RadiationExposureUnit.MillicoulombPerKilogram); - - /// - /// Creates a from . - /// - public static RadiationExposure FromMilliroentgens(double milliroentgens) => new RadiationExposure(milliroentgens, RadiationExposureUnit.Milliroentgen); - - /// - /// Creates a from . - /// - public static RadiationExposure FromNanocoulombsPerKilogram(double nanocoulombsperkilogram) => new RadiationExposure(nanocoulombsperkilogram, RadiationExposureUnit.NanocoulombPerKilogram); - - /// - /// Creates a from . - /// - public static RadiationExposure FromPicocoulombsPerKilogram(double picocoulombsperkilogram) => new RadiationExposure(picocoulombsperkilogram, RadiationExposureUnit.PicocoulombPerKilogram); - - /// - /// Creates a from . - /// - public static RadiationExposure FromRoentgens(double roentgens) => new RadiationExposure(roentgens, RadiationExposureUnit.Roentgen); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// RadiationExposure unit value. - public static RadiationExposure From(double value, RadiationExposureUnit fromUnit) - { - return new RadiationExposure(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RadiationExposureUnit unit) => GetValueAs(unit); - - /// - /// Converts this RadiationExposure to another RadiationExposure with the unit representation . - /// - /// A RadiationExposure with the specified unit. - public RadiationExposure ToUnit(RadiationExposureUnit unit) - { - var convertedValue = GetValueAs(unit); - return new RadiationExposure(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RadiationExposureUnit.CoulombPerKilogram => _value, - RadiationExposureUnit.MicrocoulombPerKilogram => (_value) * 1e-6d, - RadiationExposureUnit.Microroentgen => (_value * 2.58e-4) * 1e-6d, - RadiationExposureUnit.MillicoulombPerKilogram => (_value) * 1e-3d, - RadiationExposureUnit.Milliroentgen => (_value * 2.58e-4) * 1e-3d, - RadiationExposureUnit.NanocoulombPerKilogram => (_value) * 1e-9d, - RadiationExposureUnit.PicocoulombPerKilogram => (_value) * 1e-12d, - RadiationExposureUnit.Roentgen => _value * 2.58e-4, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RadiationExposureUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RadiationExposureUnit.CoulombPerKilogram => baseUnitValue, - RadiationExposureUnit.MicrocoulombPerKilogram => (baseUnitValue) / 1e-6d, - RadiationExposureUnit.Microroentgen => (baseUnitValue / 2.58e-4) / 1e-6d, - RadiationExposureUnit.MillicoulombPerKilogram => (baseUnitValue) / 1e-3d, - RadiationExposureUnit.Milliroentgen => (baseUnitValue / 2.58e-4) / 1e-3d, - RadiationExposureUnit.NanocoulombPerKilogram => (baseUnitValue) / 1e-9d, - RadiationExposureUnit.PicocoulombPerKilogram => (baseUnitValue) / 1e-12d, - RadiationExposureUnit.Roentgen => baseUnitValue / 2.58e-4, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Radioactivity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Radioactivity.g.cs deleted file mode 100644 index a5b0422773..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Radioactivity.g.cs +++ /dev/null @@ -1,493 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Amount of ionizing radiation released when an element spontaneously emits energy as a result of the radioactive decay of an unstable atom per unit time. - /// - public struct Radioactivity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RadioactivityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RadioactivityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Radioactivity(double value, RadioactivityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Radioactivity, which is Second. All conversions go via this value. - /// - public static RadioactivityUnit BaseUnit { get; } = RadioactivityUnit.Becquerel; - - /// - /// Represents the largest possible value of Radioactivity. - /// - public static Radioactivity MaxValue { get; } = new Radioactivity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Radioactivity. - /// - public static Radioactivity MinValue { get; } = new Radioactivity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Radioactivity Zero { get; } = new Radioactivity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Becquerels => As(RadioactivityUnit.Becquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Curies => As(RadioactivityUnit.Curie); - - /// - /// Gets a value of this quantity converted into - /// - public double Exabecquerels => As(RadioactivityUnit.Exabecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigabecquerels => As(RadioactivityUnit.Gigabecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigacuries => As(RadioactivityUnit.Gigacurie); - - /// - /// Gets a value of this quantity converted into - /// - public double Gigarutherfords => As(RadioactivityUnit.Gigarutherford); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilobecquerels => As(RadioactivityUnit.Kilobecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilocuries => As(RadioactivityUnit.Kilocurie); - - /// - /// Gets a value of this quantity converted into - /// - public double Kilorutherfords => As(RadioactivityUnit.Kilorutherford); - - /// - /// Gets a value of this quantity converted into - /// - public double Megabecquerels => As(RadioactivityUnit.Megabecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Megacuries => As(RadioactivityUnit.Megacurie); - - /// - /// Gets a value of this quantity converted into - /// - public double Megarutherfords => As(RadioactivityUnit.Megarutherford); - - /// - /// Gets a value of this quantity converted into - /// - public double Microbecquerels => As(RadioactivityUnit.Microbecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Microcuries => As(RadioactivityUnit.Microcurie); - - /// - /// Gets a value of this quantity converted into - /// - public double Microrutherfords => As(RadioactivityUnit.Microrutherford); - - /// - /// Gets a value of this quantity converted into - /// - public double Millibecquerels => As(RadioactivityUnit.Millibecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Millicuries => As(RadioactivityUnit.Millicurie); - - /// - /// Gets a value of this quantity converted into - /// - public double Millirutherfords => As(RadioactivityUnit.Millirutherford); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanobecquerels => As(RadioactivityUnit.Nanobecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanocuries => As(RadioactivityUnit.Nanocurie); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanorutherfords => As(RadioactivityUnit.Nanorutherford); - - /// - /// Gets a value of this quantity converted into - /// - public double Petabecquerels => As(RadioactivityUnit.Petabecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Picobecquerels => As(RadioactivityUnit.Picobecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Picocuries => As(RadioactivityUnit.Picocurie); - - /// - /// Gets a value of this quantity converted into - /// - public double Picorutherfords => As(RadioactivityUnit.Picorutherford); - - /// - /// Gets a value of this quantity converted into - /// - public double Rutherfords => As(RadioactivityUnit.Rutherford); - - /// - /// Gets a value of this quantity converted into - /// - public double Terabecquerels => As(RadioactivityUnit.Terabecquerel); - - /// - /// Gets a value of this quantity converted into - /// - public double Teracuries => As(RadioactivityUnit.Teracurie); - - /// - /// Gets a value of this quantity converted into - /// - public double Terarutherfords => As(RadioactivityUnit.Terarutherford); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Radioactivity FromBecquerels(double becquerels) => new Radioactivity(becquerels, RadioactivityUnit.Becquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromCuries(double curies) => new Radioactivity(curies, RadioactivityUnit.Curie); - - /// - /// Creates a from . - /// - public static Radioactivity FromExabecquerels(double exabecquerels) => new Radioactivity(exabecquerels, RadioactivityUnit.Exabecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromGigabecquerels(double gigabecquerels) => new Radioactivity(gigabecquerels, RadioactivityUnit.Gigabecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromGigacuries(double gigacuries) => new Radioactivity(gigacuries, RadioactivityUnit.Gigacurie); - - /// - /// Creates a from . - /// - public static Radioactivity FromGigarutherfords(double gigarutherfords) => new Radioactivity(gigarutherfords, RadioactivityUnit.Gigarutherford); - - /// - /// Creates a from . - /// - public static Radioactivity FromKilobecquerels(double kilobecquerels) => new Radioactivity(kilobecquerels, RadioactivityUnit.Kilobecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromKilocuries(double kilocuries) => new Radioactivity(kilocuries, RadioactivityUnit.Kilocurie); - - /// - /// Creates a from . - /// - public static Radioactivity FromKilorutherfords(double kilorutherfords) => new Radioactivity(kilorutherfords, RadioactivityUnit.Kilorutherford); - - /// - /// Creates a from . - /// - public static Radioactivity FromMegabecquerels(double megabecquerels) => new Radioactivity(megabecquerels, RadioactivityUnit.Megabecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromMegacuries(double megacuries) => new Radioactivity(megacuries, RadioactivityUnit.Megacurie); - - /// - /// Creates a from . - /// - public static Radioactivity FromMegarutherfords(double megarutherfords) => new Radioactivity(megarutherfords, RadioactivityUnit.Megarutherford); - - /// - /// Creates a from . - /// - public static Radioactivity FromMicrobecquerels(double microbecquerels) => new Radioactivity(microbecquerels, RadioactivityUnit.Microbecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromMicrocuries(double microcuries) => new Radioactivity(microcuries, RadioactivityUnit.Microcurie); - - /// - /// Creates a from . - /// - public static Radioactivity FromMicrorutherfords(double microrutherfords) => new Radioactivity(microrutherfords, RadioactivityUnit.Microrutherford); - - /// - /// Creates a from . - /// - public static Radioactivity FromMillibecquerels(double millibecquerels) => new Radioactivity(millibecquerels, RadioactivityUnit.Millibecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromMillicuries(double millicuries) => new Radioactivity(millicuries, RadioactivityUnit.Millicurie); - - /// - /// Creates a from . - /// - public static Radioactivity FromMillirutherfords(double millirutherfords) => new Radioactivity(millirutherfords, RadioactivityUnit.Millirutherford); - - /// - /// Creates a from . - /// - public static Radioactivity FromNanobecquerels(double nanobecquerels) => new Radioactivity(nanobecquerels, RadioactivityUnit.Nanobecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromNanocuries(double nanocuries) => new Radioactivity(nanocuries, RadioactivityUnit.Nanocurie); - - /// - /// Creates a from . - /// - public static Radioactivity FromNanorutherfords(double nanorutherfords) => new Radioactivity(nanorutherfords, RadioactivityUnit.Nanorutherford); - - /// - /// Creates a from . - /// - public static Radioactivity FromPetabecquerels(double petabecquerels) => new Radioactivity(petabecquerels, RadioactivityUnit.Petabecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromPicobecquerels(double picobecquerels) => new Radioactivity(picobecquerels, RadioactivityUnit.Picobecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromPicocuries(double picocuries) => new Radioactivity(picocuries, RadioactivityUnit.Picocurie); - - /// - /// Creates a from . - /// - public static Radioactivity FromPicorutherfords(double picorutherfords) => new Radioactivity(picorutherfords, RadioactivityUnit.Picorutherford); - - /// - /// Creates a from . - /// - public static Radioactivity FromRutherfords(double rutherfords) => new Radioactivity(rutherfords, RadioactivityUnit.Rutherford); - - /// - /// Creates a from . - /// - public static Radioactivity FromTerabecquerels(double terabecquerels) => new Radioactivity(terabecquerels, RadioactivityUnit.Terabecquerel); - - /// - /// Creates a from . - /// - public static Radioactivity FromTeracuries(double teracuries) => new Radioactivity(teracuries, RadioactivityUnit.Teracurie); - - /// - /// Creates a from . - /// - public static Radioactivity FromTerarutherfords(double terarutherfords) => new Radioactivity(terarutherfords, RadioactivityUnit.Terarutherford); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Radioactivity unit value. - public static Radioactivity From(double value, RadioactivityUnit fromUnit) - { - return new Radioactivity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RadioactivityUnit unit) => GetValueAs(unit); - - /// - /// Converts this Radioactivity to another Radioactivity with the unit representation . - /// - /// A Radioactivity with the specified unit. - public Radioactivity ToUnit(RadioactivityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Radioactivity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RadioactivityUnit.Becquerel => _value, - RadioactivityUnit.Curie => _value * 3.7e10, - RadioactivityUnit.Exabecquerel => (_value) * 1e18d, - RadioactivityUnit.Gigabecquerel => (_value) * 1e9d, - RadioactivityUnit.Gigacurie => (_value * 3.7e10) * 1e9d, - RadioactivityUnit.Gigarutherford => (_value * 1e6) * 1e9d, - RadioactivityUnit.Kilobecquerel => (_value) * 1e3d, - RadioactivityUnit.Kilocurie => (_value * 3.7e10) * 1e3d, - RadioactivityUnit.Kilorutherford => (_value * 1e6) * 1e3d, - RadioactivityUnit.Megabecquerel => (_value) * 1e6d, - RadioactivityUnit.Megacurie => (_value * 3.7e10) * 1e6d, - RadioactivityUnit.Megarutherford => (_value * 1e6) * 1e6d, - RadioactivityUnit.Microbecquerel => (_value) * 1e-6d, - RadioactivityUnit.Microcurie => (_value * 3.7e10) * 1e-6d, - RadioactivityUnit.Microrutherford => (_value * 1e6) * 1e-6d, - RadioactivityUnit.Millibecquerel => (_value) * 1e-3d, - RadioactivityUnit.Millicurie => (_value * 3.7e10) * 1e-3d, - RadioactivityUnit.Millirutherford => (_value * 1e6) * 1e-3d, - RadioactivityUnit.Nanobecquerel => (_value) * 1e-9d, - RadioactivityUnit.Nanocurie => (_value * 3.7e10) * 1e-9d, - RadioactivityUnit.Nanorutherford => (_value * 1e6) * 1e-9d, - RadioactivityUnit.Petabecquerel => (_value) * 1e15d, - RadioactivityUnit.Picobecquerel => (_value) * 1e-12d, - RadioactivityUnit.Picocurie => (_value * 3.7e10) * 1e-12d, - RadioactivityUnit.Picorutherford => (_value * 1e6) * 1e-12d, - RadioactivityUnit.Rutherford => _value * 1e6, - RadioactivityUnit.Terabecquerel => (_value) * 1e12d, - RadioactivityUnit.Teracurie => (_value * 3.7e10) * 1e12d, - RadioactivityUnit.Terarutherford => (_value * 1e6) * 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RadioactivityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RadioactivityUnit.Becquerel => baseUnitValue, - RadioactivityUnit.Curie => baseUnitValue / 3.7e10, - RadioactivityUnit.Exabecquerel => (baseUnitValue) / 1e18d, - RadioactivityUnit.Gigabecquerel => (baseUnitValue) / 1e9d, - RadioactivityUnit.Gigacurie => (baseUnitValue / 3.7e10) / 1e9d, - RadioactivityUnit.Gigarutherford => (baseUnitValue / 1e6) / 1e9d, - RadioactivityUnit.Kilobecquerel => (baseUnitValue) / 1e3d, - RadioactivityUnit.Kilocurie => (baseUnitValue / 3.7e10) / 1e3d, - RadioactivityUnit.Kilorutherford => (baseUnitValue / 1e6) / 1e3d, - RadioactivityUnit.Megabecquerel => (baseUnitValue) / 1e6d, - RadioactivityUnit.Megacurie => (baseUnitValue / 3.7e10) / 1e6d, - RadioactivityUnit.Megarutherford => (baseUnitValue / 1e6) / 1e6d, - RadioactivityUnit.Microbecquerel => (baseUnitValue) / 1e-6d, - RadioactivityUnit.Microcurie => (baseUnitValue / 3.7e10) / 1e-6d, - RadioactivityUnit.Microrutherford => (baseUnitValue / 1e6) / 1e-6d, - RadioactivityUnit.Millibecquerel => (baseUnitValue) / 1e-3d, - RadioactivityUnit.Millicurie => (baseUnitValue / 3.7e10) / 1e-3d, - RadioactivityUnit.Millirutherford => (baseUnitValue / 1e6) / 1e-3d, - RadioactivityUnit.Nanobecquerel => (baseUnitValue) / 1e-9d, - RadioactivityUnit.Nanocurie => (baseUnitValue / 3.7e10) / 1e-9d, - RadioactivityUnit.Nanorutherford => (baseUnitValue / 1e6) / 1e-9d, - RadioactivityUnit.Petabecquerel => (baseUnitValue) / 1e15d, - RadioactivityUnit.Picobecquerel => (baseUnitValue) / 1e-12d, - RadioactivityUnit.Picocurie => (baseUnitValue / 3.7e10) / 1e-12d, - RadioactivityUnit.Picorutherford => (baseUnitValue / 1e6) / 1e-12d, - RadioactivityUnit.Rutherford => baseUnitValue / 1e6, - RadioactivityUnit.Terabecquerel => (baseUnitValue) / 1e12d, - RadioactivityUnit.Teracurie => (baseUnitValue / 3.7e10) / 1e12d, - RadioactivityUnit.Terarutherford => (baseUnitValue / 1e6) / 1e12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Ratio.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Ratio.g.cs deleted file mode 100644 index 851469f361..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Ratio.g.cs +++ /dev/null @@ -1,217 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In mathematics, a ratio is a relationship between two numbers of the same kind (e.g., objects, persons, students, spoonfuls, units of whatever identical dimension), usually expressed as "a to b" or a:b, sometimes expressed arithmetically as a dimensionless quotient of the two that explicitly indicates how many times the first number contains the second (not necessarily an integer). - /// - public struct Ratio - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RatioUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RatioUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Ratio(double value, RatioUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Ratio, which is Second. All conversions go via this value. - /// - public static RatioUnit BaseUnit { get; } = RatioUnit.DecimalFraction; - - /// - /// Represents the largest possible value of Ratio. - /// - public static Ratio MaxValue { get; } = new Ratio(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Ratio. - /// - public static Ratio MinValue { get; } = new Ratio(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Ratio Zero { get; } = new Ratio(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DecimalFractions => As(RatioUnit.DecimalFraction); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerBillion => As(RatioUnit.PartPerBillion); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerMillion => As(RatioUnit.PartPerMillion); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerThousand => As(RatioUnit.PartPerThousand); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerTrillion => As(RatioUnit.PartPerTrillion); - - /// - /// Gets a value of this quantity converted into - /// - public double Percent => As(RatioUnit.Percent); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Ratio FromDecimalFractions(double decimalfractions) => new Ratio(decimalfractions, RatioUnit.DecimalFraction); - - /// - /// Creates a from . - /// - public static Ratio FromPartsPerBillion(double partsperbillion) => new Ratio(partsperbillion, RatioUnit.PartPerBillion); - - /// - /// Creates a from . - /// - public static Ratio FromPartsPerMillion(double partspermillion) => new Ratio(partspermillion, RatioUnit.PartPerMillion); - - /// - /// Creates a from . - /// - public static Ratio FromPartsPerThousand(double partsperthousand) => new Ratio(partsperthousand, RatioUnit.PartPerThousand); - - /// - /// Creates a from . - /// - public static Ratio FromPartsPerTrillion(double partspertrillion) => new Ratio(partspertrillion, RatioUnit.PartPerTrillion); - - /// - /// Creates a from . - /// - public static Ratio FromPercent(double percent) => new Ratio(percent, RatioUnit.Percent); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Ratio unit value. - public static Ratio From(double value, RatioUnit fromUnit) - { - return new Ratio(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RatioUnit unit) => GetValueAs(unit); - - /// - /// Converts this Ratio to another Ratio with the unit representation . - /// - /// A Ratio with the specified unit. - public Ratio ToUnit(RatioUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Ratio(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RatioUnit.DecimalFraction => _value, - RatioUnit.PartPerBillion => _value / 1e9, - RatioUnit.PartPerMillion => _value / 1e6, - RatioUnit.PartPerThousand => _value / 1e3, - RatioUnit.PartPerTrillion => _value / 1e12, - RatioUnit.Percent => _value / 1e2, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RatioUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RatioUnit.DecimalFraction => baseUnitValue, - RatioUnit.PartPerBillion => baseUnitValue * 1e9, - RatioUnit.PartPerMillion => baseUnitValue * 1e6, - RatioUnit.PartPerThousand => baseUnitValue * 1e3, - RatioUnit.PartPerTrillion => baseUnitValue * 1e12, - RatioUnit.Percent => baseUnitValue * 1e2, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RatioChangeRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RatioChangeRate.g.cs deleted file mode 100644 index fbf544789d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RatioChangeRate.g.cs +++ /dev/null @@ -1,169 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The change in ratio per unit of time. - /// - public struct RatioChangeRate - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RatioChangeRateUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RatioChangeRateUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public RatioChangeRate(double value, RatioChangeRateUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of RatioChangeRate, which is Second. All conversions go via this value. - /// - public static RatioChangeRateUnit BaseUnit { get; } = RatioChangeRateUnit.DecimalFractionPerSecond; - - /// - /// Represents the largest possible value of RatioChangeRate. - /// - public static RatioChangeRate MaxValue { get; } = new RatioChangeRate(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of RatioChangeRate. - /// - public static RatioChangeRate MinValue { get; } = new RatioChangeRate(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static RatioChangeRate Zero { get; } = new RatioChangeRate(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DecimalFractionsPerSecond => As(RatioChangeRateUnit.DecimalFractionPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PercentsPerSecond => As(RatioChangeRateUnit.PercentPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static RatioChangeRate FromDecimalFractionsPerSecond(double decimalfractionspersecond) => new RatioChangeRate(decimalfractionspersecond, RatioChangeRateUnit.DecimalFractionPerSecond); - - /// - /// Creates a from . - /// - public static RatioChangeRate FromPercentsPerSecond(double percentspersecond) => new RatioChangeRate(percentspersecond, RatioChangeRateUnit.PercentPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// RatioChangeRate unit value. - public static RatioChangeRate From(double value, RatioChangeRateUnit fromUnit) - { - return new RatioChangeRate(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RatioChangeRateUnit unit) => GetValueAs(unit); - - /// - /// Converts this RatioChangeRate to another RatioChangeRate with the unit representation . - /// - /// A RatioChangeRate with the specified unit. - public RatioChangeRate ToUnit(RatioChangeRateUnit unit) - { - var convertedValue = GetValueAs(unit); - return new RatioChangeRate(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RatioChangeRateUnit.DecimalFractionPerSecond => _value, - RatioChangeRateUnit.PercentPerSecond => _value / 1e2, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RatioChangeRateUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RatioChangeRateUnit.DecimalFractionPerSecond => baseUnitValue, - RatioChangeRateUnit.PercentPerSecond => baseUnitValue * 1e2, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalArea.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalArea.g.cs deleted file mode 100644 index 3904a09425..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalArea.g.cs +++ /dev/null @@ -1,280 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Reciprocal area (Inverse-square) quantity is used to specify a physical quantity inversely proportional to the square of the distance. - /// - /// - /// https://en.wikipedia.org/wiki/Inverse-square_law - /// - public struct ReciprocalArea - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ReciprocalAreaUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ReciprocalAreaUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ReciprocalArea(double value, ReciprocalAreaUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ReciprocalArea, which is Second. All conversions go via this value. - /// - public static ReciprocalAreaUnit BaseUnit { get; } = ReciprocalAreaUnit.InverseSquareMeter; - - /// - /// Represents the largest possible value of ReciprocalArea. - /// - public static ReciprocalArea MaxValue { get; } = new ReciprocalArea(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ReciprocalArea. - /// - public static ReciprocalArea MinValue { get; } = new ReciprocalArea(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ReciprocalArea Zero { get; } = new ReciprocalArea(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareCentimeters => As(ReciprocalAreaUnit.InverseSquareCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareDecimeters => As(ReciprocalAreaUnit.InverseSquareDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareFeet => As(ReciprocalAreaUnit.InverseSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareInches => As(ReciprocalAreaUnit.InverseSquareInch); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareKilometers => As(ReciprocalAreaUnit.InverseSquareKilometer); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareMeters => As(ReciprocalAreaUnit.InverseSquareMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareMicrometers => As(ReciprocalAreaUnit.InverseSquareMicrometer); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareMiles => As(ReciprocalAreaUnit.InverseSquareMile); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareMillimeters => As(ReciprocalAreaUnit.InverseSquareMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseSquareYards => As(ReciprocalAreaUnit.InverseSquareYard); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseUsSurveySquareFeet => As(ReciprocalAreaUnit.InverseUsSurveySquareFoot); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareCentimeters(double inversesquarecentimeters) => new ReciprocalArea(inversesquarecentimeters, ReciprocalAreaUnit.InverseSquareCentimeter); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareDecimeters(double inversesquaredecimeters) => new ReciprocalArea(inversesquaredecimeters, ReciprocalAreaUnit.InverseSquareDecimeter); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareFeet(double inversesquarefeet) => new ReciprocalArea(inversesquarefeet, ReciprocalAreaUnit.InverseSquareFoot); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareInches(double inversesquareinches) => new ReciprocalArea(inversesquareinches, ReciprocalAreaUnit.InverseSquareInch); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareKilometers(double inversesquarekilometers) => new ReciprocalArea(inversesquarekilometers, ReciprocalAreaUnit.InverseSquareKilometer); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareMeters(double inversesquaremeters) => new ReciprocalArea(inversesquaremeters, ReciprocalAreaUnit.InverseSquareMeter); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareMicrometers(double inversesquaremicrometers) => new ReciprocalArea(inversesquaremicrometers, ReciprocalAreaUnit.InverseSquareMicrometer); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareMiles(double inversesquaremiles) => new ReciprocalArea(inversesquaremiles, ReciprocalAreaUnit.InverseSquareMile); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareMillimeters(double inversesquaremillimeters) => new ReciprocalArea(inversesquaremillimeters, ReciprocalAreaUnit.InverseSquareMillimeter); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseSquareYards(double inversesquareyards) => new ReciprocalArea(inversesquareyards, ReciprocalAreaUnit.InverseSquareYard); - - /// - /// Creates a from . - /// - public static ReciprocalArea FromInverseUsSurveySquareFeet(double inverseussurveysquarefeet) => new ReciprocalArea(inverseussurveysquarefeet, ReciprocalAreaUnit.InverseUsSurveySquareFoot); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ReciprocalArea unit value. - public static ReciprocalArea From(double value, ReciprocalAreaUnit fromUnit) - { - return new ReciprocalArea(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ReciprocalAreaUnit unit) => GetValueAs(unit); - - /// - /// Converts this ReciprocalArea to another ReciprocalArea with the unit representation . - /// - /// A ReciprocalArea with the specified unit. - public ReciprocalArea ToUnit(ReciprocalAreaUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ReciprocalArea(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ReciprocalAreaUnit.InverseSquareCentimeter => _value / 1e-4, - ReciprocalAreaUnit.InverseSquareDecimeter => _value / 1e-2, - ReciprocalAreaUnit.InverseSquareFoot => _value / 9.290304e-2, - ReciprocalAreaUnit.InverseSquareInch => _value / 0.00064516, - ReciprocalAreaUnit.InverseSquareKilometer => _value / 1e6, - ReciprocalAreaUnit.InverseSquareMeter => _value, - ReciprocalAreaUnit.InverseSquareMicrometer => _value / 1e-12, - ReciprocalAreaUnit.InverseSquareMile => _value / (1609.344 * 1609.344), - ReciprocalAreaUnit.InverseSquareMillimeter => _value / 1e-6, - ReciprocalAreaUnit.InverseSquareYard => _value / (0.9144 * 0.9144), - ReciprocalAreaUnit.InverseUsSurveySquareFoot => _value / (1200.0 / 3937.0) / (1200.0 / 3937.0), - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ReciprocalAreaUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ReciprocalAreaUnit.InverseSquareCentimeter => baseUnitValue * 1e-4, - ReciprocalAreaUnit.InverseSquareDecimeter => baseUnitValue * 1e-2, - ReciprocalAreaUnit.InverseSquareFoot => baseUnitValue * 9.290304e-2, - ReciprocalAreaUnit.InverseSquareInch => baseUnitValue * 0.00064516, - ReciprocalAreaUnit.InverseSquareKilometer => baseUnitValue * 1e6, - ReciprocalAreaUnit.InverseSquareMeter => baseUnitValue, - ReciprocalAreaUnit.InverseSquareMicrometer => baseUnitValue * 1e-12, - ReciprocalAreaUnit.InverseSquareMile => baseUnitValue * (1609.344 * 1609.344), - ReciprocalAreaUnit.InverseSquareMillimeter => baseUnitValue * 1e-6, - ReciprocalAreaUnit.InverseSquareYard => baseUnitValue * (0.9144 * 0.9144), - ReciprocalAreaUnit.InverseUsSurveySquareFoot => baseUnitValue * (1200.0 / 3937.0) * (1200.0 / 3937.0), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalLength.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalLength.g.cs deleted file mode 100644 index 4663e72183..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalLength.g.cs +++ /dev/null @@ -1,268 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Reciprocal (Inverse) Length is used in various fields of science and mathematics. It is defined as the inverse value of a length unit. - /// - /// - /// https://en.wikipedia.org/wiki/Reciprocal_length - /// - public struct ReciprocalLength - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ReciprocalLengthUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ReciprocalLengthUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ReciprocalLength(double value, ReciprocalLengthUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ReciprocalLength, which is Second. All conversions go via this value. - /// - public static ReciprocalLengthUnit BaseUnit { get; } = ReciprocalLengthUnit.InverseMeter; - - /// - /// Represents the largest possible value of ReciprocalLength. - /// - public static ReciprocalLength MaxValue { get; } = new ReciprocalLength(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ReciprocalLength. - /// - public static ReciprocalLength MinValue { get; } = new ReciprocalLength(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ReciprocalLength Zero { get; } = new ReciprocalLength(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double InverseCentimeters => As(ReciprocalLengthUnit.InverseCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseFeet => As(ReciprocalLengthUnit.InverseFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseInches => As(ReciprocalLengthUnit.InverseInch); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseMeters => As(ReciprocalLengthUnit.InverseMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseMicroinches => As(ReciprocalLengthUnit.InverseMicroinch); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseMils => As(ReciprocalLengthUnit.InverseMil); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseMiles => As(ReciprocalLengthUnit.InverseMile); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseMillimeters => As(ReciprocalLengthUnit.InverseMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseUsSurveyFeet => As(ReciprocalLengthUnit.InverseUsSurveyFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double InverseYards => As(ReciprocalLengthUnit.InverseYard); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseCentimeters(double inversecentimeters) => new ReciprocalLength(inversecentimeters, ReciprocalLengthUnit.InverseCentimeter); - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseFeet(double inversefeet) => new ReciprocalLength(inversefeet, ReciprocalLengthUnit.InverseFoot); - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseInches(double inverseinches) => new ReciprocalLength(inverseinches, ReciprocalLengthUnit.InverseInch); - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseMeters(double inversemeters) => new ReciprocalLength(inversemeters, ReciprocalLengthUnit.InverseMeter); - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseMicroinches(double inversemicroinches) => new ReciprocalLength(inversemicroinches, ReciprocalLengthUnit.InverseMicroinch); - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseMils(double inversemils) => new ReciprocalLength(inversemils, ReciprocalLengthUnit.InverseMil); - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseMiles(double inversemiles) => new ReciprocalLength(inversemiles, ReciprocalLengthUnit.InverseMile); - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseMillimeters(double inversemillimeters) => new ReciprocalLength(inversemillimeters, ReciprocalLengthUnit.InverseMillimeter); - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseUsSurveyFeet(double inverseussurveyfeet) => new ReciprocalLength(inverseussurveyfeet, ReciprocalLengthUnit.InverseUsSurveyFoot); - - /// - /// Creates a from . - /// - public static ReciprocalLength FromInverseYards(double inverseyards) => new ReciprocalLength(inverseyards, ReciprocalLengthUnit.InverseYard); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ReciprocalLength unit value. - public static ReciprocalLength From(double value, ReciprocalLengthUnit fromUnit) - { - return new ReciprocalLength(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ReciprocalLengthUnit unit) => GetValueAs(unit); - - /// - /// Converts this ReciprocalLength to another ReciprocalLength with the unit representation . - /// - /// A ReciprocalLength with the specified unit. - public ReciprocalLength ToUnit(ReciprocalLengthUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ReciprocalLength(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ReciprocalLengthUnit.InverseCentimeter => _value * 1e2, - ReciprocalLengthUnit.InverseFoot => _value / 0.3048, - ReciprocalLengthUnit.InverseInch => _value / 2.54e-2, - ReciprocalLengthUnit.InverseMeter => _value, - ReciprocalLengthUnit.InverseMicroinch => _value / 2.54e-8, - ReciprocalLengthUnit.InverseMil => _value / 2.54e-5, - ReciprocalLengthUnit.InverseMile => _value / 1609.344, - ReciprocalLengthUnit.InverseMillimeter => _value * 1e3, - ReciprocalLengthUnit.InverseUsSurveyFoot => _value * 3937 / 1200, - ReciprocalLengthUnit.InverseYard => _value / 0.9144, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ReciprocalLengthUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ReciprocalLengthUnit.InverseCentimeter => baseUnitValue / 1e2, - ReciprocalLengthUnit.InverseFoot => baseUnitValue * 0.3048, - ReciprocalLengthUnit.InverseInch => baseUnitValue * 2.54e-2, - ReciprocalLengthUnit.InverseMeter => baseUnitValue, - ReciprocalLengthUnit.InverseMicroinch => baseUnitValue * 2.54e-8, - ReciprocalLengthUnit.InverseMil => baseUnitValue * 2.54e-5, - ReciprocalLengthUnit.InverseMile => baseUnitValue * 1609.344, - ReciprocalLengthUnit.InverseMillimeter => baseUnitValue / 1e3, - ReciprocalLengthUnit.InverseUsSurveyFoot => baseUnitValue * 1200 / 3937, - ReciprocalLengthUnit.InverseYard => baseUnitValue * 0.9144, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RelativeHumidity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RelativeHumidity.g.cs deleted file mode 100644 index c3c583d1b3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RelativeHumidity.g.cs +++ /dev/null @@ -1,157 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Relative humidity is a ratio of the actual water vapor present in the air to the maximum water vapor in the air at the given temperature. - /// - public struct RelativeHumidity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RelativeHumidityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RelativeHumidityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public RelativeHumidity(double value, RelativeHumidityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of RelativeHumidity, which is Second. All conversions go via this value. - /// - public static RelativeHumidityUnit BaseUnit { get; } = RelativeHumidityUnit.Percent; - - /// - /// Represents the largest possible value of RelativeHumidity. - /// - public static RelativeHumidity MaxValue { get; } = new RelativeHumidity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of RelativeHumidity. - /// - public static RelativeHumidity MinValue { get; } = new RelativeHumidity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static RelativeHumidity Zero { get; } = new RelativeHumidity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Percent => As(RelativeHumidityUnit.Percent); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static RelativeHumidity FromPercent(double percent) => new RelativeHumidity(percent, RelativeHumidityUnit.Percent); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// RelativeHumidity unit value. - public static RelativeHumidity From(double value, RelativeHumidityUnit fromUnit) - { - return new RelativeHumidity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RelativeHumidityUnit unit) => GetValueAs(unit); - - /// - /// Converts this RelativeHumidity to another RelativeHumidity with the unit representation . - /// - /// A RelativeHumidity with the specified unit. - public RelativeHumidity ToUnit(RelativeHumidityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new RelativeHumidity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RelativeHumidityUnit.Percent => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RelativeHumidityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RelativeHumidityUnit.Percent => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalAcceleration.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalAcceleration.g.cs deleted file mode 100644 index 7bdaedb545..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalAcceleration.g.cs +++ /dev/null @@ -1,193 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Angular acceleration is the rate of change of rotational speed. - /// - public struct RotationalAcceleration - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RotationalAccelerationUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RotationalAccelerationUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public RotationalAcceleration(double value, RotationalAccelerationUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of RotationalAcceleration, which is Second. All conversions go via this value. - /// - public static RotationalAccelerationUnit BaseUnit { get; } = RotationalAccelerationUnit.RadianPerSecondSquared; - - /// - /// Represents the largest possible value of RotationalAcceleration. - /// - public static RotationalAcceleration MaxValue { get; } = new RotationalAcceleration(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of RotationalAcceleration. - /// - public static RotationalAcceleration MinValue { get; } = new RotationalAcceleration(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static RotationalAcceleration Zero { get; } = new RotationalAcceleration(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesPerSecondSquared => As(RotationalAccelerationUnit.DegreePerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double RadiansPerSecondSquared => As(RotationalAccelerationUnit.RadianPerSecondSquared); - - /// - /// Gets a value of this quantity converted into - /// - public double RevolutionsPerMinutePerSecond => As(RotationalAccelerationUnit.RevolutionPerMinutePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double RevolutionsPerSecondSquared => As(RotationalAccelerationUnit.RevolutionPerSecondSquared); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static RotationalAcceleration FromDegreesPerSecondSquared(double degreespersecondsquared) => new RotationalAcceleration(degreespersecondsquared, RotationalAccelerationUnit.DegreePerSecondSquared); - - /// - /// Creates a from . - /// - public static RotationalAcceleration FromRadiansPerSecondSquared(double radianspersecondsquared) => new RotationalAcceleration(radianspersecondsquared, RotationalAccelerationUnit.RadianPerSecondSquared); - - /// - /// Creates a from . - /// - public static RotationalAcceleration FromRevolutionsPerMinutePerSecond(double revolutionsperminutepersecond) => new RotationalAcceleration(revolutionsperminutepersecond, RotationalAccelerationUnit.RevolutionPerMinutePerSecond); - - /// - /// Creates a from . - /// - public static RotationalAcceleration FromRevolutionsPerSecondSquared(double revolutionspersecondsquared) => new RotationalAcceleration(revolutionspersecondsquared, RotationalAccelerationUnit.RevolutionPerSecondSquared); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// RotationalAcceleration unit value. - public static RotationalAcceleration From(double value, RotationalAccelerationUnit fromUnit) - { - return new RotationalAcceleration(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RotationalAccelerationUnit unit) => GetValueAs(unit); - - /// - /// Converts this RotationalAcceleration to another RotationalAcceleration with the unit representation . - /// - /// A RotationalAcceleration with the specified unit. - public RotationalAcceleration ToUnit(RotationalAccelerationUnit unit) - { - var convertedValue = GetValueAs(unit); - return new RotationalAcceleration(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RotationalAccelerationUnit.DegreePerSecondSquared => (3.1415926535897931 / 180) * _value, - RotationalAccelerationUnit.RadianPerSecondSquared => _value, - RotationalAccelerationUnit.RevolutionPerMinutePerSecond => ((2 * 3.1415926535897931) / 60) * _value, - RotationalAccelerationUnit.RevolutionPerSecondSquared => (2 * 3.1415926535897931) * _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RotationalAccelerationUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RotationalAccelerationUnit.DegreePerSecondSquared => (180 / 3.1415926535897931) * baseUnitValue, - RotationalAccelerationUnit.RadianPerSecondSquared => baseUnitValue, - RotationalAccelerationUnit.RevolutionPerMinutePerSecond => (60 / (2 * 3.1415926535897931)) * baseUnitValue, - RotationalAccelerationUnit.RevolutionPerSecondSquared => (1 / (2 * 3.1415926535897931)) * baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalSpeed.g.cs deleted file mode 100644 index 079d1d6c7d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalSpeed.g.cs +++ /dev/null @@ -1,301 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Rotational speed (sometimes called speed of revolution) is the number of complete rotations, revolutions, cycles, or turns per time unit. Rotational speed is a cyclic frequency, measured in radians per second or in hertz in the SI System by scientists, or in revolutions per minute (rpm or min-1) or revolutions per second in everyday life. The symbol for rotational speed is ω (the Greek lowercase letter "omega"). - /// - public struct RotationalSpeed - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RotationalSpeedUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RotationalSpeedUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public RotationalSpeed(double value, RotationalSpeedUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of RotationalSpeed, which is Second. All conversions go via this value. - /// - public static RotationalSpeedUnit BaseUnit { get; } = RotationalSpeedUnit.RadianPerSecond; - - /// - /// Represents the largest possible value of RotationalSpeed. - /// - public static RotationalSpeed MaxValue { get; } = new RotationalSpeed(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of RotationalSpeed. - /// - public static RotationalSpeed MinValue { get; } = new RotationalSpeed(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static RotationalSpeed Zero { get; } = new RotationalSpeed(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentiradiansPerSecond => As(RotationalSpeedUnit.CentiradianPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DeciradiansPerSecond => As(RotationalSpeedUnit.DeciradianPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesPerMinute => As(RotationalSpeedUnit.DegreePerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesPerSecond => As(RotationalSpeedUnit.DegreePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrodegreesPerSecond => As(RotationalSpeedUnit.MicrodegreePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MicroradiansPerSecond => As(RotationalSpeedUnit.MicroradianPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillidegreesPerSecond => As(RotationalSpeedUnit.MillidegreePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MilliradiansPerSecond => As(RotationalSpeedUnit.MilliradianPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NanodegreesPerSecond => As(RotationalSpeedUnit.NanodegreePerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NanoradiansPerSecond => As(RotationalSpeedUnit.NanoradianPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double RadiansPerSecond => As(RotationalSpeedUnit.RadianPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double RevolutionsPerMinute => As(RotationalSpeedUnit.RevolutionPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double RevolutionsPerSecond => As(RotationalSpeedUnit.RevolutionPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static RotationalSpeed FromCentiradiansPerSecond(double centiradianspersecond) => new RotationalSpeed(centiradianspersecond, RotationalSpeedUnit.CentiradianPerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromDeciradiansPerSecond(double deciradianspersecond) => new RotationalSpeed(deciradianspersecond, RotationalSpeedUnit.DeciradianPerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromDegreesPerMinute(double degreesperminute) => new RotationalSpeed(degreesperminute, RotationalSpeedUnit.DegreePerMinute); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromDegreesPerSecond(double degreespersecond) => new RotationalSpeed(degreespersecond, RotationalSpeedUnit.DegreePerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromMicrodegreesPerSecond(double microdegreespersecond) => new RotationalSpeed(microdegreespersecond, RotationalSpeedUnit.MicrodegreePerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromMicroradiansPerSecond(double microradianspersecond) => new RotationalSpeed(microradianspersecond, RotationalSpeedUnit.MicroradianPerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromMillidegreesPerSecond(double millidegreespersecond) => new RotationalSpeed(millidegreespersecond, RotationalSpeedUnit.MillidegreePerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromMilliradiansPerSecond(double milliradianspersecond) => new RotationalSpeed(milliradianspersecond, RotationalSpeedUnit.MilliradianPerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromNanodegreesPerSecond(double nanodegreespersecond) => new RotationalSpeed(nanodegreespersecond, RotationalSpeedUnit.NanodegreePerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromNanoradiansPerSecond(double nanoradianspersecond) => new RotationalSpeed(nanoradianspersecond, RotationalSpeedUnit.NanoradianPerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromRadiansPerSecond(double radianspersecond) => new RotationalSpeed(radianspersecond, RotationalSpeedUnit.RadianPerSecond); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromRevolutionsPerMinute(double revolutionsperminute) => new RotationalSpeed(revolutionsperminute, RotationalSpeedUnit.RevolutionPerMinute); - - /// - /// Creates a from . - /// - public static RotationalSpeed FromRevolutionsPerSecond(double revolutionspersecond) => new RotationalSpeed(revolutionspersecond, RotationalSpeedUnit.RevolutionPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// RotationalSpeed unit value. - public static RotationalSpeed From(double value, RotationalSpeedUnit fromUnit) - { - return new RotationalSpeed(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RotationalSpeedUnit unit) => GetValueAs(unit); - - /// - /// Converts this RotationalSpeed to another RotationalSpeed with the unit representation . - /// - /// A RotationalSpeed with the specified unit. - public RotationalSpeed ToUnit(RotationalSpeedUnit unit) - { - var convertedValue = GetValueAs(unit); - return new RotationalSpeed(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RotationalSpeedUnit.CentiradianPerSecond => (_value) * 1e-2d, - RotationalSpeedUnit.DeciradianPerSecond => (_value) * 1e-1d, - RotationalSpeedUnit.DegreePerMinute => (3.1415926535897931 / (180 * 60)) * _value, - RotationalSpeedUnit.DegreePerSecond => (3.1415926535897931 / 180) * _value, - RotationalSpeedUnit.MicrodegreePerSecond => ((3.1415926535897931 / 180) * _value) * 1e-6d, - RotationalSpeedUnit.MicroradianPerSecond => (_value) * 1e-6d, - RotationalSpeedUnit.MillidegreePerSecond => ((3.1415926535897931 / 180) * _value) * 1e-3d, - RotationalSpeedUnit.MilliradianPerSecond => (_value) * 1e-3d, - RotationalSpeedUnit.NanodegreePerSecond => ((3.1415926535897931 / 180) * _value) * 1e-9d, - RotationalSpeedUnit.NanoradianPerSecond => (_value) * 1e-9d, - RotationalSpeedUnit.RadianPerSecond => _value, - RotationalSpeedUnit.RevolutionPerMinute => (_value * 2 * 3.1415926535897931) / 60, - RotationalSpeedUnit.RevolutionPerSecond => _value * 2 * 3.1415926535897931, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RotationalSpeedUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RotationalSpeedUnit.CentiradianPerSecond => (baseUnitValue) / 1e-2d, - RotationalSpeedUnit.DeciradianPerSecond => (baseUnitValue) / 1e-1d, - RotationalSpeedUnit.DegreePerMinute => (180 * 60 / 3.1415926535897931) * baseUnitValue, - RotationalSpeedUnit.DegreePerSecond => (180 / 3.1415926535897931) * baseUnitValue, - RotationalSpeedUnit.MicrodegreePerSecond => ((180 / 3.1415926535897931) * baseUnitValue) / 1e-6d, - RotationalSpeedUnit.MicroradianPerSecond => (baseUnitValue) / 1e-6d, - RotationalSpeedUnit.MillidegreePerSecond => ((180 / 3.1415926535897931) * baseUnitValue) / 1e-3d, - RotationalSpeedUnit.MilliradianPerSecond => (baseUnitValue) / 1e-3d, - RotationalSpeedUnit.NanodegreePerSecond => ((180 / 3.1415926535897931) * baseUnitValue) / 1e-9d, - RotationalSpeedUnit.NanoradianPerSecond => (baseUnitValue) / 1e-9d, - RotationalSpeedUnit.RadianPerSecond => baseUnitValue, - RotationalSpeedUnit.RevolutionPerMinute => (baseUnitValue / (2 * 3.1415926535897931)) * 60, - RotationalSpeedUnit.RevolutionPerSecond => baseUnitValue / (2 * 3.1415926535897931), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffness.g.cs deleted file mode 100644 index b7e34514c8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffness.g.cs +++ /dev/null @@ -1,553 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// https://en.wikipedia.org/wiki/Stiffness#Rotational_stiffness - /// - public struct RotationalStiffness - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RotationalStiffnessUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RotationalStiffnessUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public RotationalStiffness(double value, RotationalStiffnessUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of RotationalStiffness, which is Second. All conversions go via this value. - /// - public static RotationalStiffnessUnit BaseUnit { get; } = RotationalStiffnessUnit.NewtonMeterPerRadian; - - /// - /// Represents the largest possible value of RotationalStiffness. - /// - public static RotationalStiffness MaxValue { get; } = new RotationalStiffness(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of RotationalStiffness. - /// - public static RotationalStiffness MinValue { get; } = new RotationalStiffness(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static RotationalStiffness Zero { get; } = new RotationalStiffness(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentinewtonMetersPerDegree => As(RotationalStiffnessUnit.CentinewtonMeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double CentinewtonMillimetersPerDegree => As(RotationalStiffnessUnit.CentinewtonMillimeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double CentinewtonMillimetersPerRadian => As(RotationalStiffnessUnit.CentinewtonMillimeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double DecanewtonMetersPerDegree => As(RotationalStiffnessUnit.DecanewtonMeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double DecanewtonMillimetersPerDegree => As(RotationalStiffnessUnit.DecanewtonMillimeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double DecanewtonMillimetersPerRadian => As(RotationalStiffnessUnit.DecanewtonMillimeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double DecinewtonMetersPerDegree => As(RotationalStiffnessUnit.DecinewtonMeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double DecinewtonMillimetersPerDegree => As(RotationalStiffnessUnit.DecinewtonMillimeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double DecinewtonMillimetersPerRadian => As(RotationalStiffnessUnit.DecinewtonMillimeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonMetersPerDegree => As(RotationalStiffnessUnit.KilonewtonMeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonMetersPerRadian => As(RotationalStiffnessUnit.KilonewtonMeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonMillimetersPerDegree => As(RotationalStiffnessUnit.KilonewtonMillimeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonMillimetersPerRadian => As(RotationalStiffnessUnit.KilonewtonMillimeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundForceFeetPerDegrees => As(RotationalStiffnessUnit.KilopoundForceFootPerDegrees); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundForceFeetPerRadian => As(RotationalStiffnessUnit.KilopoundForceFootPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonMetersPerDegree => As(RotationalStiffnessUnit.MeganewtonMeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonMetersPerRadian => As(RotationalStiffnessUnit.MeganewtonMeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonMillimetersPerDegree => As(RotationalStiffnessUnit.MeganewtonMillimeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonMillimetersPerRadian => As(RotationalStiffnessUnit.MeganewtonMillimeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double MicronewtonMetersPerDegree => As(RotationalStiffnessUnit.MicronewtonMeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double MicronewtonMillimetersPerDegree => As(RotationalStiffnessUnit.MicronewtonMillimeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double MicronewtonMillimetersPerRadian => As(RotationalStiffnessUnit.MicronewtonMillimeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double MillinewtonMetersPerDegree => As(RotationalStiffnessUnit.MillinewtonMeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double MillinewtonMillimetersPerDegree => As(RotationalStiffnessUnit.MillinewtonMillimeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double MillinewtonMillimetersPerRadian => As(RotationalStiffnessUnit.MillinewtonMillimeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double NanonewtonMetersPerDegree => As(RotationalStiffnessUnit.NanonewtonMeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double NanonewtonMillimetersPerDegree => As(RotationalStiffnessUnit.NanonewtonMillimeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double NanonewtonMillimetersPerRadian => As(RotationalStiffnessUnit.NanonewtonMillimeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonMetersPerDegree => As(RotationalStiffnessUnit.NewtonMeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonMetersPerRadian => As(RotationalStiffnessUnit.NewtonMeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonMillimetersPerDegree => As(RotationalStiffnessUnit.NewtonMillimeterPerDegree); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonMillimetersPerRadian => As(RotationalStiffnessUnit.NewtonMillimeterPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundForceFeetPerRadian => As(RotationalStiffnessUnit.PoundForceFeetPerRadian); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundForceFeetPerDegrees => As(RotationalStiffnessUnit.PoundForceFootPerDegrees); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static RotationalStiffness FromCentinewtonMetersPerDegree(double centinewtonmetersperdegree) => new RotationalStiffness(centinewtonmetersperdegree, RotationalStiffnessUnit.CentinewtonMeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromCentinewtonMillimetersPerDegree(double centinewtonmillimetersperdegree) => new RotationalStiffness(centinewtonmillimetersperdegree, RotationalStiffnessUnit.CentinewtonMillimeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromCentinewtonMillimetersPerRadian(double centinewtonmillimetersperradian) => new RotationalStiffness(centinewtonmillimetersperradian, RotationalStiffnessUnit.CentinewtonMillimeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromDecanewtonMetersPerDegree(double decanewtonmetersperdegree) => new RotationalStiffness(decanewtonmetersperdegree, RotationalStiffnessUnit.DecanewtonMeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromDecanewtonMillimetersPerDegree(double decanewtonmillimetersperdegree) => new RotationalStiffness(decanewtonmillimetersperdegree, RotationalStiffnessUnit.DecanewtonMillimeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromDecanewtonMillimetersPerRadian(double decanewtonmillimetersperradian) => new RotationalStiffness(decanewtonmillimetersperradian, RotationalStiffnessUnit.DecanewtonMillimeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromDecinewtonMetersPerDegree(double decinewtonmetersperdegree) => new RotationalStiffness(decinewtonmetersperdegree, RotationalStiffnessUnit.DecinewtonMeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromDecinewtonMillimetersPerDegree(double decinewtonmillimetersperdegree) => new RotationalStiffness(decinewtonmillimetersperdegree, RotationalStiffnessUnit.DecinewtonMillimeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromDecinewtonMillimetersPerRadian(double decinewtonmillimetersperradian) => new RotationalStiffness(decinewtonmillimetersperradian, RotationalStiffnessUnit.DecinewtonMillimeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromKilonewtonMetersPerDegree(double kilonewtonmetersperdegree) => new RotationalStiffness(kilonewtonmetersperdegree, RotationalStiffnessUnit.KilonewtonMeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromKilonewtonMetersPerRadian(double kilonewtonmetersperradian) => new RotationalStiffness(kilonewtonmetersperradian, RotationalStiffnessUnit.KilonewtonMeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromKilonewtonMillimetersPerDegree(double kilonewtonmillimetersperdegree) => new RotationalStiffness(kilonewtonmillimetersperdegree, RotationalStiffnessUnit.KilonewtonMillimeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromKilonewtonMillimetersPerRadian(double kilonewtonmillimetersperradian) => new RotationalStiffness(kilonewtonmillimetersperradian, RotationalStiffnessUnit.KilonewtonMillimeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromKilopoundForceFeetPerDegrees(double kilopoundforcefeetperdegrees) => new RotationalStiffness(kilopoundforcefeetperdegrees, RotationalStiffnessUnit.KilopoundForceFootPerDegrees); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromKilopoundForceFeetPerRadian(double kilopoundforcefeetperradian) => new RotationalStiffness(kilopoundforcefeetperradian, RotationalStiffnessUnit.KilopoundForceFootPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMeganewtonMetersPerDegree(double meganewtonmetersperdegree) => new RotationalStiffness(meganewtonmetersperdegree, RotationalStiffnessUnit.MeganewtonMeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMeganewtonMetersPerRadian(double meganewtonmetersperradian) => new RotationalStiffness(meganewtonmetersperradian, RotationalStiffnessUnit.MeganewtonMeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMeganewtonMillimetersPerDegree(double meganewtonmillimetersperdegree) => new RotationalStiffness(meganewtonmillimetersperdegree, RotationalStiffnessUnit.MeganewtonMillimeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMeganewtonMillimetersPerRadian(double meganewtonmillimetersperradian) => new RotationalStiffness(meganewtonmillimetersperradian, RotationalStiffnessUnit.MeganewtonMillimeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMicronewtonMetersPerDegree(double micronewtonmetersperdegree) => new RotationalStiffness(micronewtonmetersperdegree, RotationalStiffnessUnit.MicronewtonMeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMicronewtonMillimetersPerDegree(double micronewtonmillimetersperdegree) => new RotationalStiffness(micronewtonmillimetersperdegree, RotationalStiffnessUnit.MicronewtonMillimeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMicronewtonMillimetersPerRadian(double micronewtonmillimetersperradian) => new RotationalStiffness(micronewtonmillimetersperradian, RotationalStiffnessUnit.MicronewtonMillimeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMillinewtonMetersPerDegree(double millinewtonmetersperdegree) => new RotationalStiffness(millinewtonmetersperdegree, RotationalStiffnessUnit.MillinewtonMeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMillinewtonMillimetersPerDegree(double millinewtonmillimetersperdegree) => new RotationalStiffness(millinewtonmillimetersperdegree, RotationalStiffnessUnit.MillinewtonMillimeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromMillinewtonMillimetersPerRadian(double millinewtonmillimetersperradian) => new RotationalStiffness(millinewtonmillimetersperradian, RotationalStiffnessUnit.MillinewtonMillimeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromNanonewtonMetersPerDegree(double nanonewtonmetersperdegree) => new RotationalStiffness(nanonewtonmetersperdegree, RotationalStiffnessUnit.NanonewtonMeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromNanonewtonMillimetersPerDegree(double nanonewtonmillimetersperdegree) => new RotationalStiffness(nanonewtonmillimetersperdegree, RotationalStiffnessUnit.NanonewtonMillimeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromNanonewtonMillimetersPerRadian(double nanonewtonmillimetersperradian) => new RotationalStiffness(nanonewtonmillimetersperradian, RotationalStiffnessUnit.NanonewtonMillimeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromNewtonMetersPerDegree(double newtonmetersperdegree) => new RotationalStiffness(newtonmetersperdegree, RotationalStiffnessUnit.NewtonMeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromNewtonMetersPerRadian(double newtonmetersperradian) => new RotationalStiffness(newtonmetersperradian, RotationalStiffnessUnit.NewtonMeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromNewtonMillimetersPerDegree(double newtonmillimetersperdegree) => new RotationalStiffness(newtonmillimetersperdegree, RotationalStiffnessUnit.NewtonMillimeterPerDegree); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromNewtonMillimetersPerRadian(double newtonmillimetersperradian) => new RotationalStiffness(newtonmillimetersperradian, RotationalStiffnessUnit.NewtonMillimeterPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromPoundForceFeetPerRadian(double poundforcefeetperradian) => new RotationalStiffness(poundforcefeetperradian, RotationalStiffnessUnit.PoundForceFeetPerRadian); - - /// - /// Creates a from . - /// - public static RotationalStiffness FromPoundForceFeetPerDegrees(double poundforcefeetperdegrees) => new RotationalStiffness(poundforcefeetperdegrees, RotationalStiffnessUnit.PoundForceFootPerDegrees); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// RotationalStiffness unit value. - public static RotationalStiffness From(double value, RotationalStiffnessUnit fromUnit) - { - return new RotationalStiffness(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RotationalStiffnessUnit unit) => GetValueAs(unit); - - /// - /// Converts this RotationalStiffness to another RotationalStiffness with the unit representation . - /// - /// A RotationalStiffness with the specified unit. - public RotationalStiffness ToUnit(RotationalStiffnessUnit unit) - { - var convertedValue = GetValueAs(unit); - return new RotationalStiffness(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RotationalStiffnessUnit.CentinewtonMeterPerDegree => (_value * (180 / 3.1415926535897931)) * 1e-2d, - RotationalStiffnessUnit.CentinewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e-2d, - RotationalStiffnessUnit.CentinewtonMillimeterPerRadian => (_value * 0.001) * 1e-2d, - RotationalStiffnessUnit.DecanewtonMeterPerDegree => (_value * (180 / 3.1415926535897931)) * 1e1d, - RotationalStiffnessUnit.DecanewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e1d, - RotationalStiffnessUnit.DecanewtonMillimeterPerRadian => (_value * 0.001) * 1e1d, - RotationalStiffnessUnit.DecinewtonMeterPerDegree => (_value * (180 / 3.1415926535897931)) * 1e-1d, - RotationalStiffnessUnit.DecinewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e-1d, - RotationalStiffnessUnit.DecinewtonMillimeterPerRadian => (_value * 0.001) * 1e-1d, - RotationalStiffnessUnit.KilonewtonMeterPerDegree => (_value * (180 / 3.1415926535897931)) * 1e3d, - RotationalStiffnessUnit.KilonewtonMeterPerRadian => (_value) * 1e3d, - RotationalStiffnessUnit.KilonewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e3d, - RotationalStiffnessUnit.KilonewtonMillimeterPerRadian => (_value * 0.001) * 1e3d, - RotationalStiffnessUnit.KilopoundForceFootPerDegrees => _value * (4.4482216152605e3 * 0.3048 * 180 / 3.1415926535897931), - RotationalStiffnessUnit.KilopoundForceFootPerRadian => _value * 4.4482216152605e3 * 0.3048, - RotationalStiffnessUnit.MeganewtonMeterPerDegree => (_value * (180 / 3.1415926535897931)) * 1e6d, - RotationalStiffnessUnit.MeganewtonMeterPerRadian => (_value) * 1e6d, - RotationalStiffnessUnit.MeganewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e6d, - RotationalStiffnessUnit.MeganewtonMillimeterPerRadian => (_value * 0.001) * 1e6d, - RotationalStiffnessUnit.MicronewtonMeterPerDegree => (_value * (180 / 3.1415926535897931)) * 1e-6d, - RotationalStiffnessUnit.MicronewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e-6d, - RotationalStiffnessUnit.MicronewtonMillimeterPerRadian => (_value * 0.001) * 1e-6d, - RotationalStiffnessUnit.MillinewtonMeterPerDegree => (_value * (180 / 3.1415926535897931)) * 1e-3d, - RotationalStiffnessUnit.MillinewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e-3d, - RotationalStiffnessUnit.MillinewtonMillimeterPerRadian => (_value * 0.001) * 1e-3d, - RotationalStiffnessUnit.NanonewtonMeterPerDegree => (_value * (180 / 3.1415926535897931)) * 1e-9d, - RotationalStiffnessUnit.NanonewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e-9d, - RotationalStiffnessUnit.NanonewtonMillimeterPerRadian => (_value * 0.001) * 1e-9d, - RotationalStiffnessUnit.NewtonMeterPerDegree => _value * (180 / 3.1415926535897931), - RotationalStiffnessUnit.NewtonMeterPerRadian => _value, - RotationalStiffnessUnit.NewtonMillimeterPerDegree => _value * 180 / 3.1415926535897931 * 0.001, - RotationalStiffnessUnit.NewtonMillimeterPerRadian => _value * 0.001, - RotationalStiffnessUnit.PoundForceFeetPerRadian => _value * 4.4482216152605 * 0.3048, - RotationalStiffnessUnit.PoundForceFootPerDegrees => _value * (4.4482216152605 * 0.3048 * 180 / 3.1415926535897931), - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RotationalStiffnessUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RotationalStiffnessUnit.CentinewtonMeterPerDegree => (baseUnitValue / (180 / 3.1415926535897931)) / 1e-2d, - RotationalStiffnessUnit.CentinewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e-2d, - RotationalStiffnessUnit.CentinewtonMillimeterPerRadian => (baseUnitValue * 1000) / 1e-2d, - RotationalStiffnessUnit.DecanewtonMeterPerDegree => (baseUnitValue / (180 / 3.1415926535897931)) / 1e1d, - RotationalStiffnessUnit.DecanewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e1d, - RotationalStiffnessUnit.DecanewtonMillimeterPerRadian => (baseUnitValue * 1000) / 1e1d, - RotationalStiffnessUnit.DecinewtonMeterPerDegree => (baseUnitValue / (180 / 3.1415926535897931)) / 1e-1d, - RotationalStiffnessUnit.DecinewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e-1d, - RotationalStiffnessUnit.DecinewtonMillimeterPerRadian => (baseUnitValue * 1000) / 1e-1d, - RotationalStiffnessUnit.KilonewtonMeterPerDegree => (baseUnitValue / (180 / 3.1415926535897931)) / 1e3d, - RotationalStiffnessUnit.KilonewtonMeterPerRadian => (baseUnitValue) / 1e3d, - RotationalStiffnessUnit.KilonewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e3d, - RotationalStiffnessUnit.KilonewtonMillimeterPerRadian => (baseUnitValue * 1000) / 1e3d, - RotationalStiffnessUnit.KilopoundForceFootPerDegrees => baseUnitValue / (4.4482216152605e3 * 0.3048 * 180 / 3.1415926535897931), - RotationalStiffnessUnit.KilopoundForceFootPerRadian => baseUnitValue / (4.4482216152605e3 * 0.3048), - RotationalStiffnessUnit.MeganewtonMeterPerDegree => (baseUnitValue / (180 / 3.1415926535897931)) / 1e6d, - RotationalStiffnessUnit.MeganewtonMeterPerRadian => (baseUnitValue) / 1e6d, - RotationalStiffnessUnit.MeganewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e6d, - RotationalStiffnessUnit.MeganewtonMillimeterPerRadian => (baseUnitValue * 1000) / 1e6d, - RotationalStiffnessUnit.MicronewtonMeterPerDegree => (baseUnitValue / (180 / 3.1415926535897931)) / 1e-6d, - RotationalStiffnessUnit.MicronewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e-6d, - RotationalStiffnessUnit.MicronewtonMillimeterPerRadian => (baseUnitValue * 1000) / 1e-6d, - RotationalStiffnessUnit.MillinewtonMeterPerDegree => (baseUnitValue / (180 / 3.1415926535897931)) / 1e-3d, - RotationalStiffnessUnit.MillinewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e-3d, - RotationalStiffnessUnit.MillinewtonMillimeterPerRadian => (baseUnitValue * 1000) / 1e-3d, - RotationalStiffnessUnit.NanonewtonMeterPerDegree => (baseUnitValue / (180 / 3.1415926535897931)) / 1e-9d, - RotationalStiffnessUnit.NanonewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e-9d, - RotationalStiffnessUnit.NanonewtonMillimeterPerRadian => (baseUnitValue * 1000) / 1e-9d, - RotationalStiffnessUnit.NewtonMeterPerDegree => baseUnitValue / (180 / 3.1415926535897931), - RotationalStiffnessUnit.NewtonMeterPerRadian => baseUnitValue, - RotationalStiffnessUnit.NewtonMillimeterPerDegree => baseUnitValue / 180 * 3.1415926535897931 * 1000, - RotationalStiffnessUnit.NewtonMillimeterPerRadian => baseUnitValue * 1000, - RotationalStiffnessUnit.PoundForceFeetPerRadian => baseUnitValue / (4.4482216152605 * 0.3048), - RotationalStiffnessUnit.PoundForceFootPerDegrees => baseUnitValue / (4.4482216152605 * 0.3048 * 180 / 3.1415926535897931), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs deleted file mode 100644 index 9ace4bbc80..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs +++ /dev/null @@ -1,205 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// https://en.wikipedia.org/wiki/Stiffness#Rotational_stiffness - /// - public struct RotationalStiffnessPerLength - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly RotationalStiffnessPerLengthUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public RotationalStiffnessPerLengthUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public RotationalStiffnessPerLength(double value, RotationalStiffnessPerLengthUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of RotationalStiffnessPerLength, which is Second. All conversions go via this value. - /// - public static RotationalStiffnessPerLengthUnit BaseUnit { get; } = RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter; - - /// - /// Represents the largest possible value of RotationalStiffnessPerLength. - /// - public static RotationalStiffnessPerLength MaxValue { get; } = new RotationalStiffnessPerLength(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of RotationalStiffnessPerLength. - /// - public static RotationalStiffnessPerLength MinValue { get; } = new RotationalStiffnessPerLength(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static RotationalStiffnessPerLength Zero { get; } = new RotationalStiffnessPerLength(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonMetersPerRadianPerMeter => As(RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundForceFeetPerDegreesPerFeet => As(RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonMetersPerRadianPerMeter => As(RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonMetersPerRadianPerMeter => As(RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundForceFeetPerDegreesPerFeet => As(RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static RotationalStiffnessPerLength FromKilonewtonMetersPerRadianPerMeter(double kilonewtonmetersperradianpermeter) => new RotationalStiffnessPerLength(kilonewtonmetersperradianpermeter, RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter); - - /// - /// Creates a from . - /// - public static RotationalStiffnessPerLength FromKilopoundForceFeetPerDegreesPerFeet(double kilopoundforcefeetperdegreesperfeet) => new RotationalStiffnessPerLength(kilopoundforcefeetperdegreesperfeet, RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot); - - /// - /// Creates a from . - /// - public static RotationalStiffnessPerLength FromMeganewtonMetersPerRadianPerMeter(double meganewtonmetersperradianpermeter) => new RotationalStiffnessPerLength(meganewtonmetersperradianpermeter, RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter); - - /// - /// Creates a from . - /// - public static RotationalStiffnessPerLength FromNewtonMetersPerRadianPerMeter(double newtonmetersperradianpermeter) => new RotationalStiffnessPerLength(newtonmetersperradianpermeter, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter); - - /// - /// Creates a from . - /// - public static RotationalStiffnessPerLength FromPoundForceFeetPerDegreesPerFeet(double poundforcefeetperdegreesperfeet) => new RotationalStiffnessPerLength(poundforcefeetperdegreesperfeet, RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// RotationalStiffnessPerLength unit value. - public static RotationalStiffnessPerLength From(double value, RotationalStiffnessPerLengthUnit fromUnit) - { - return new RotationalStiffnessPerLength(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(RotationalStiffnessPerLengthUnit unit) => GetValueAs(unit); - - /// - /// Converts this RotationalStiffnessPerLength to another RotationalStiffnessPerLength with the unit representation . - /// - /// A RotationalStiffnessPerLength with the specified unit. - public RotationalStiffnessPerLength ToUnit(RotationalStiffnessPerLengthUnit unit) - { - var convertedValue = GetValueAs(unit); - return new RotationalStiffnessPerLength(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter => (_value) * 1e3d, - RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot => _value * (4.4482216152605e3 * 180 / 3.1415926535897931), - RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter => (_value) * 1e6d, - RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter => _value, - RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot => _value * (4.4482216152605 * 180 / 3.1415926535897931), - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(RotationalStiffnessPerLengthUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter => (baseUnitValue) / 1e3d, - RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot => baseUnitValue / (4.4482216152605e3 * 180 / 3.1415926535897931), - RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter => (baseUnitValue) / 1e6d, - RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter => baseUnitValue, - RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot => baseUnitValue / (4.4482216152605 * 180 / 3.1415926535897931), - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Scalar.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Scalar.g.cs deleted file mode 100644 index 2f39ceaf42..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Scalar.g.cs +++ /dev/null @@ -1,157 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A way of representing a number of items. - /// - public struct Scalar - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ScalarUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ScalarUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Scalar(double value, ScalarUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Scalar, which is Second. All conversions go via this value. - /// - public static ScalarUnit BaseUnit { get; } = ScalarUnit.Amount; - - /// - /// Represents the largest possible value of Scalar. - /// - public static Scalar MaxValue { get; } = new Scalar(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Scalar. - /// - public static Scalar MinValue { get; } = new Scalar(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Scalar Zero { get; } = new Scalar(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Amount => As(ScalarUnit.Amount); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Scalar FromAmount(double amount) => new Scalar(amount, ScalarUnit.Amount); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Scalar unit value. - public static Scalar From(double value, ScalarUnit fromUnit) - { - return new Scalar(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ScalarUnit unit) => GetValueAs(unit); - - /// - /// Converts this Scalar to another Scalar with the unit representation . - /// - /// A Scalar with the specified unit. - public Scalar ToUnit(ScalarUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Scalar(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ScalarUnit.Amount => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ScalarUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ScalarUnit.Amount => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SolidAngle.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SolidAngle.g.cs deleted file mode 100644 index 4f5508a823..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SolidAngle.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In geometry, a solid angle is the two-dimensional angle in three-dimensional space that an object subtends at a point. - /// - /// - /// https://en.wikipedia.org/wiki/Solid_angle - /// - public struct SolidAngle - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly SolidAngleUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public SolidAngleUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public SolidAngle(double value, SolidAngleUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of SolidAngle, which is Second. All conversions go via this value. - /// - public static SolidAngleUnit BaseUnit { get; } = SolidAngleUnit.Steradian; - - /// - /// Represents the largest possible value of SolidAngle. - /// - public static SolidAngle MaxValue { get; } = new SolidAngle(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of SolidAngle. - /// - public static SolidAngle MinValue { get; } = new SolidAngle(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static SolidAngle Zero { get; } = new SolidAngle(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double Steradians => As(SolidAngleUnit.Steradian); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static SolidAngle FromSteradians(double steradians) => new SolidAngle(steradians, SolidAngleUnit.Steradian); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// SolidAngle unit value. - public static SolidAngle From(double value, SolidAngleUnit fromUnit) - { - return new SolidAngle(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(SolidAngleUnit unit) => GetValueAs(unit); - - /// - /// Converts this SolidAngle to another SolidAngle with the unit representation . - /// - /// A SolidAngle with the specified unit. - public SolidAngle ToUnit(SolidAngleUnit unit) - { - var convertedValue = GetValueAs(unit); - return new SolidAngle(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - SolidAngleUnit.Steradian => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(SolidAngleUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - SolidAngleUnit.Steradian => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEnergy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEnergy.g.cs deleted file mode 100644 index 294728402a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEnergy.g.cs +++ /dev/null @@ -1,508 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The SpecificEnergy - /// - /// - /// https://en.wikipedia.org/wiki/Specific_energy - /// - public struct SpecificEnergy - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly SpecificEnergyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public SpecificEnergyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public SpecificEnergy(double value, SpecificEnergyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of SpecificEnergy, which is Second. All conversions go via this value. - /// - public static SpecificEnergyUnit BaseUnit { get; } = SpecificEnergyUnit.JoulePerKilogram; - - /// - /// Represents the largest possible value of SpecificEnergy. - /// - public static SpecificEnergy MaxValue { get; } = new SpecificEnergy(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of SpecificEnergy. - /// - public static SpecificEnergy MinValue { get; } = new SpecificEnergy(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static SpecificEnergy Zero { get; } = new SpecificEnergy(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BtuPerPound => As(SpecificEnergyUnit.BtuPerPound); - - /// - /// Gets a value of this quantity converted into - /// - public double CaloriesPerGram => As(SpecificEnergyUnit.CaloriePerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattDaysPerKilogram => As(SpecificEnergyUnit.GigawattDayPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattDaysPerShortTon => As(SpecificEnergyUnit.GigawattDayPerShortTon); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattDaysPerTonne => As(SpecificEnergyUnit.GigawattDayPerTonne); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattHoursPerKilogram => As(SpecificEnergyUnit.GigawattHourPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double GigawattHoursPerPound => As(SpecificEnergyUnit.GigawattHourPerPound); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerKilogram => As(SpecificEnergyUnit.JoulePerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocaloriesPerGram => As(SpecificEnergyUnit.KilocaloriePerGram); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerKilogram => As(SpecificEnergyUnit.KilojoulePerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattDaysPerKilogram => As(SpecificEnergyUnit.KilowattDayPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattDaysPerShortTon => As(SpecificEnergyUnit.KilowattDayPerShortTon); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattDaysPerTonne => As(SpecificEnergyUnit.KilowattDayPerTonne); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattHoursPerKilogram => As(SpecificEnergyUnit.KilowattHourPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double KilowattHoursPerPound => As(SpecificEnergyUnit.KilowattHourPerPound); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerKilogram => As(SpecificEnergyUnit.MegajoulePerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerTonne => As(SpecificEnergyUnit.MegajoulePerTonne); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattDaysPerKilogram => As(SpecificEnergyUnit.MegawattDayPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattDaysPerShortTon => As(SpecificEnergyUnit.MegawattDayPerShortTon); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattDaysPerTonne => As(SpecificEnergyUnit.MegawattDayPerTonne); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattHoursPerKilogram => As(SpecificEnergyUnit.MegawattHourPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double MegawattHoursPerPound => As(SpecificEnergyUnit.MegawattHourPerPound); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattDaysPerKilogram => As(SpecificEnergyUnit.TerawattDayPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattDaysPerShortTon => As(SpecificEnergyUnit.TerawattDayPerShortTon); - - /// - /// Gets a value of this quantity converted into - /// - public double TerawattDaysPerTonne => As(SpecificEnergyUnit.TerawattDayPerTonne); - - /// - /// Gets a value of this quantity converted into - /// - public double WattDaysPerKilogram => As(SpecificEnergyUnit.WattDayPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double WattDaysPerShortTon => As(SpecificEnergyUnit.WattDayPerShortTon); - - /// - /// Gets a value of this quantity converted into - /// - public double WattDaysPerTonne => As(SpecificEnergyUnit.WattDayPerTonne); - - /// - /// Gets a value of this quantity converted into - /// - public double WattHoursPerKilogram => As(SpecificEnergyUnit.WattHourPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double WattHoursPerPound => As(SpecificEnergyUnit.WattHourPerPound); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static SpecificEnergy FromBtuPerPound(double btuperpound) => new SpecificEnergy(btuperpound, SpecificEnergyUnit.BtuPerPound); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromCaloriesPerGram(double caloriespergram) => new SpecificEnergy(caloriespergram, SpecificEnergyUnit.CaloriePerGram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromGigawattDaysPerKilogram(double gigawattdaysperkilogram) => new SpecificEnergy(gigawattdaysperkilogram, SpecificEnergyUnit.GigawattDayPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromGigawattDaysPerShortTon(double gigawattdayspershortton) => new SpecificEnergy(gigawattdayspershortton, SpecificEnergyUnit.GigawattDayPerShortTon); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromGigawattDaysPerTonne(double gigawattdayspertonne) => new SpecificEnergy(gigawattdayspertonne, SpecificEnergyUnit.GigawattDayPerTonne); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromGigawattHoursPerKilogram(double gigawatthoursperkilogram) => new SpecificEnergy(gigawatthoursperkilogram, SpecificEnergyUnit.GigawattHourPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromGigawattHoursPerPound(double gigawatthoursperpound) => new SpecificEnergy(gigawatthoursperpound, SpecificEnergyUnit.GigawattHourPerPound); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromJoulesPerKilogram(double joulesperkilogram) => new SpecificEnergy(joulesperkilogram, SpecificEnergyUnit.JoulePerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromKilocaloriesPerGram(double kilocaloriespergram) => new SpecificEnergy(kilocaloriespergram, SpecificEnergyUnit.KilocaloriePerGram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromKilojoulesPerKilogram(double kilojoulesperkilogram) => new SpecificEnergy(kilojoulesperkilogram, SpecificEnergyUnit.KilojoulePerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromKilowattDaysPerKilogram(double kilowattdaysperkilogram) => new SpecificEnergy(kilowattdaysperkilogram, SpecificEnergyUnit.KilowattDayPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromKilowattDaysPerShortTon(double kilowattdayspershortton) => new SpecificEnergy(kilowattdayspershortton, SpecificEnergyUnit.KilowattDayPerShortTon); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromKilowattDaysPerTonne(double kilowattdayspertonne) => new SpecificEnergy(kilowattdayspertonne, SpecificEnergyUnit.KilowattDayPerTonne); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromKilowattHoursPerKilogram(double kilowatthoursperkilogram) => new SpecificEnergy(kilowatthoursperkilogram, SpecificEnergyUnit.KilowattHourPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromKilowattHoursPerPound(double kilowatthoursperpound) => new SpecificEnergy(kilowatthoursperpound, SpecificEnergyUnit.KilowattHourPerPound); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromMegajoulesPerKilogram(double megajoulesperkilogram) => new SpecificEnergy(megajoulesperkilogram, SpecificEnergyUnit.MegajoulePerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromMegajoulesPerTonne(double megajoulespertonne) => new SpecificEnergy(megajoulespertonne, SpecificEnergyUnit.MegajoulePerTonne); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromMegawattDaysPerKilogram(double megawattdaysperkilogram) => new SpecificEnergy(megawattdaysperkilogram, SpecificEnergyUnit.MegawattDayPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromMegawattDaysPerShortTon(double megawattdayspershortton) => new SpecificEnergy(megawattdayspershortton, SpecificEnergyUnit.MegawattDayPerShortTon); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromMegawattDaysPerTonne(double megawattdayspertonne) => new SpecificEnergy(megawattdayspertonne, SpecificEnergyUnit.MegawattDayPerTonne); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromMegawattHoursPerKilogram(double megawatthoursperkilogram) => new SpecificEnergy(megawatthoursperkilogram, SpecificEnergyUnit.MegawattHourPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromMegawattHoursPerPound(double megawatthoursperpound) => new SpecificEnergy(megawatthoursperpound, SpecificEnergyUnit.MegawattHourPerPound); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromTerawattDaysPerKilogram(double terawattdaysperkilogram) => new SpecificEnergy(terawattdaysperkilogram, SpecificEnergyUnit.TerawattDayPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromTerawattDaysPerShortTon(double terawattdayspershortton) => new SpecificEnergy(terawattdayspershortton, SpecificEnergyUnit.TerawattDayPerShortTon); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromTerawattDaysPerTonne(double terawattdayspertonne) => new SpecificEnergy(terawattdayspertonne, SpecificEnergyUnit.TerawattDayPerTonne); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromWattDaysPerKilogram(double wattdaysperkilogram) => new SpecificEnergy(wattdaysperkilogram, SpecificEnergyUnit.WattDayPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromWattDaysPerShortTon(double wattdayspershortton) => new SpecificEnergy(wattdayspershortton, SpecificEnergyUnit.WattDayPerShortTon); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromWattDaysPerTonne(double wattdayspertonne) => new SpecificEnergy(wattdayspertonne, SpecificEnergyUnit.WattDayPerTonne); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromWattHoursPerKilogram(double watthoursperkilogram) => new SpecificEnergy(watthoursperkilogram, SpecificEnergyUnit.WattHourPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificEnergy FromWattHoursPerPound(double watthoursperpound) => new SpecificEnergy(watthoursperpound, SpecificEnergyUnit.WattHourPerPound); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// SpecificEnergy unit value. - public static SpecificEnergy From(double value, SpecificEnergyUnit fromUnit) - { - return new SpecificEnergy(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(SpecificEnergyUnit unit) => GetValueAs(unit); - - /// - /// Converts this SpecificEnergy to another SpecificEnergy with the unit representation . - /// - /// A SpecificEnergy with the specified unit. - public SpecificEnergy ToUnit(SpecificEnergyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new SpecificEnergy(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - SpecificEnergyUnit.BtuPerPound => _value * 1055.05585262 / 0.45359237, - SpecificEnergyUnit.CaloriePerGram => _value * 4.184e3, - SpecificEnergyUnit.GigawattDayPerKilogram => (_value * (24 * 3.6e3)) * 1e9d, - SpecificEnergyUnit.GigawattDayPerShortTon => (_value * ((24 * 3.6e3) / 9.0718474e2)) * 1e9d, - SpecificEnergyUnit.GigawattDayPerTonne => (_value * ((24 * 3.6e3) / 1e3)) * 1e9d, - SpecificEnergyUnit.GigawattHourPerKilogram => (_value * 3.6e3) * 1e9d, - SpecificEnergyUnit.GigawattHourPerPound => (_value * 7.93664e3) * 1e9d, - SpecificEnergyUnit.JoulePerKilogram => _value, - SpecificEnergyUnit.KilocaloriePerGram => (_value * 4.184e3) * 1e3d, - SpecificEnergyUnit.KilojoulePerKilogram => (_value) * 1e3d, - SpecificEnergyUnit.KilowattDayPerKilogram => (_value * (24 * 3.6e3)) * 1e3d, - SpecificEnergyUnit.KilowattDayPerShortTon => (_value * ((24 * 3.6e3) / 9.0718474e2)) * 1e3d, - SpecificEnergyUnit.KilowattDayPerTonne => (_value * ((24 * 3.6e3) / 1e3)) * 1e3d, - SpecificEnergyUnit.KilowattHourPerKilogram => (_value * 3.6e3) * 1e3d, - SpecificEnergyUnit.KilowattHourPerPound => (_value * 7.93664e3) * 1e3d, - SpecificEnergyUnit.MegajoulePerKilogram => (_value) * 1e6d, - SpecificEnergyUnit.MegajoulePerTonne => _value * 1e3, - SpecificEnergyUnit.MegawattDayPerKilogram => (_value * (24 * 3.6e3)) * 1e6d, - SpecificEnergyUnit.MegawattDayPerShortTon => (_value * ((24 * 3.6e3) / 9.0718474e2)) * 1e6d, - SpecificEnergyUnit.MegawattDayPerTonne => (_value * ((24 * 3.6e3) / 1e3)) * 1e6d, - SpecificEnergyUnit.MegawattHourPerKilogram => (_value * 3.6e3) * 1e6d, - SpecificEnergyUnit.MegawattHourPerPound => (_value * 7.93664e3) * 1e6d, - SpecificEnergyUnit.TerawattDayPerKilogram => (_value * (24 * 3.6e3)) * 1e12d, - SpecificEnergyUnit.TerawattDayPerShortTon => (_value * ((24 * 3.6e3) / 9.0718474e2)) * 1e12d, - SpecificEnergyUnit.TerawattDayPerTonne => (_value * ((24 * 3.6e3) / 1e3)) * 1e12d, - SpecificEnergyUnit.WattDayPerKilogram => _value * (24 * 3.6e3), - SpecificEnergyUnit.WattDayPerShortTon => _value * ((24 * 3.6e3) / 9.0718474e2), - SpecificEnergyUnit.WattDayPerTonne => _value * ((24 * 3.6e3) / 1e3), - SpecificEnergyUnit.WattHourPerKilogram => _value * 3.6e3, - SpecificEnergyUnit.WattHourPerPound => _value * 7.93664e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(SpecificEnergyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - SpecificEnergyUnit.BtuPerPound => baseUnitValue * 0.45359237 / 1055.05585262, - SpecificEnergyUnit.CaloriePerGram => baseUnitValue / 4.184e3, - SpecificEnergyUnit.GigawattDayPerKilogram => (baseUnitValue / (24 * 3.6e3)) / 1e9d, - SpecificEnergyUnit.GigawattDayPerShortTon => (baseUnitValue / ((24 * 3.6e3) / 9.0718474e2)) / 1e9d, - SpecificEnergyUnit.GigawattDayPerTonne => (baseUnitValue / ((24 * 3.6e3) / 1e3)) / 1e9d, - SpecificEnergyUnit.GigawattHourPerKilogram => (baseUnitValue / 3.6e3) / 1e9d, - SpecificEnergyUnit.GigawattHourPerPound => (baseUnitValue / 7.93664e3) / 1e9d, - SpecificEnergyUnit.JoulePerKilogram => baseUnitValue, - SpecificEnergyUnit.KilocaloriePerGram => (baseUnitValue / 4.184e3) / 1e3d, - SpecificEnergyUnit.KilojoulePerKilogram => (baseUnitValue) / 1e3d, - SpecificEnergyUnit.KilowattDayPerKilogram => (baseUnitValue / (24 * 3.6e3)) / 1e3d, - SpecificEnergyUnit.KilowattDayPerShortTon => (baseUnitValue / ((24 * 3.6e3) / 9.0718474e2)) / 1e3d, - SpecificEnergyUnit.KilowattDayPerTonne => (baseUnitValue / ((24 * 3.6e3) / 1e3)) / 1e3d, - SpecificEnergyUnit.KilowattHourPerKilogram => (baseUnitValue / 3.6e3) / 1e3d, - SpecificEnergyUnit.KilowattHourPerPound => (baseUnitValue / 7.93664e3) / 1e3d, - SpecificEnergyUnit.MegajoulePerKilogram => (baseUnitValue) / 1e6d, - SpecificEnergyUnit.MegajoulePerTonne => baseUnitValue / 1e3, - SpecificEnergyUnit.MegawattDayPerKilogram => (baseUnitValue / (24 * 3.6e3)) / 1e6d, - SpecificEnergyUnit.MegawattDayPerShortTon => (baseUnitValue / ((24 * 3.6e3) / 9.0718474e2)) / 1e6d, - SpecificEnergyUnit.MegawattDayPerTonne => (baseUnitValue / ((24 * 3.6e3) / 1e3)) / 1e6d, - SpecificEnergyUnit.MegawattHourPerKilogram => (baseUnitValue / 3.6e3) / 1e6d, - SpecificEnergyUnit.MegawattHourPerPound => (baseUnitValue / 7.93664e3) / 1e6d, - SpecificEnergyUnit.TerawattDayPerKilogram => (baseUnitValue / (24 * 3.6e3)) / 1e12d, - SpecificEnergyUnit.TerawattDayPerShortTon => (baseUnitValue / ((24 * 3.6e3) / 9.0718474e2)) / 1e12d, - SpecificEnergyUnit.TerawattDayPerTonne => (baseUnitValue / ((24 * 3.6e3) / 1e3)) / 1e12d, - SpecificEnergyUnit.WattDayPerKilogram => baseUnitValue / (24 * 3.6e3), - SpecificEnergyUnit.WattDayPerShortTon => baseUnitValue / ((24 * 3.6e3) / 9.0718474e2), - SpecificEnergyUnit.WattDayPerTonne => baseUnitValue / ((24 * 3.6e3) / 1e3), - SpecificEnergyUnit.WattHourPerKilogram => baseUnitValue / 3.6e3, - SpecificEnergyUnit.WattHourPerPound => baseUnitValue / 7.93664e3, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEntropy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEntropy.g.cs deleted file mode 100644 index f904002032..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEntropy.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Specific entropy is an amount of energy required to raise temperature of a substance by 1 Kelvin per unit mass. - /// - public struct SpecificEntropy - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly SpecificEntropyUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public SpecificEntropyUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public SpecificEntropy(double value, SpecificEntropyUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of SpecificEntropy, which is Second. All conversions go via this value. - /// - public static SpecificEntropyUnit BaseUnit { get; } = SpecificEntropyUnit.JoulePerKilogramKelvin; - - /// - /// Represents the largest possible value of SpecificEntropy. - /// - public static SpecificEntropy MaxValue { get; } = new SpecificEntropy(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of SpecificEntropy. - /// - public static SpecificEntropy MinValue { get; } = new SpecificEntropy(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static SpecificEntropy Zero { get; } = new SpecificEntropy(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BtusPerPoundFahrenheit => As(SpecificEntropyUnit.BtuPerPoundFahrenheit); - - /// - /// Gets a value of this quantity converted into - /// - public double CaloriesPerGramKelvin => As(SpecificEntropyUnit.CaloriePerGramKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerKilogramDegreeCelsius => As(SpecificEntropyUnit.JoulePerKilogramDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerKilogramKelvin => As(SpecificEntropyUnit.JoulePerKilogramKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocaloriesPerGramKelvin => As(SpecificEntropyUnit.KilocaloriePerGramKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerKilogramDegreeCelsius => As(SpecificEntropyUnit.KilojoulePerKilogramDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerKilogramKelvin => As(SpecificEntropyUnit.KilojoulePerKilogramKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerKilogramDegreeCelsius => As(SpecificEntropyUnit.MegajoulePerKilogramDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerKilogramKelvin => As(SpecificEntropyUnit.MegajoulePerKilogramKelvin); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static SpecificEntropy FromBtusPerPoundFahrenheit(double btusperpoundfahrenheit) => new SpecificEntropy(btusperpoundfahrenheit, SpecificEntropyUnit.BtuPerPoundFahrenheit); - - /// - /// Creates a from . - /// - public static SpecificEntropy FromCaloriesPerGramKelvin(double caloriespergramkelvin) => new SpecificEntropy(caloriespergramkelvin, SpecificEntropyUnit.CaloriePerGramKelvin); - - /// - /// Creates a from . - /// - public static SpecificEntropy FromJoulesPerKilogramDegreeCelsius(double joulesperkilogramdegreecelsius) => new SpecificEntropy(joulesperkilogramdegreecelsius, SpecificEntropyUnit.JoulePerKilogramDegreeCelsius); - - /// - /// Creates a from . - /// - public static SpecificEntropy FromJoulesPerKilogramKelvin(double joulesperkilogramkelvin) => new SpecificEntropy(joulesperkilogramkelvin, SpecificEntropyUnit.JoulePerKilogramKelvin); - - /// - /// Creates a from . - /// - public static SpecificEntropy FromKilocaloriesPerGramKelvin(double kilocaloriespergramkelvin) => new SpecificEntropy(kilocaloriespergramkelvin, SpecificEntropyUnit.KilocaloriePerGramKelvin); - - /// - /// Creates a from . - /// - public static SpecificEntropy FromKilojoulesPerKilogramDegreeCelsius(double kilojoulesperkilogramdegreecelsius) => new SpecificEntropy(kilojoulesperkilogramdegreecelsius, SpecificEntropyUnit.KilojoulePerKilogramDegreeCelsius); - - /// - /// Creates a from . - /// - public static SpecificEntropy FromKilojoulesPerKilogramKelvin(double kilojoulesperkilogramkelvin) => new SpecificEntropy(kilojoulesperkilogramkelvin, SpecificEntropyUnit.KilojoulePerKilogramKelvin); - - /// - /// Creates a from . - /// - public static SpecificEntropy FromMegajoulesPerKilogramDegreeCelsius(double megajoulesperkilogramdegreecelsius) => new SpecificEntropy(megajoulesperkilogramdegreecelsius, SpecificEntropyUnit.MegajoulePerKilogramDegreeCelsius); - - /// - /// Creates a from . - /// - public static SpecificEntropy FromMegajoulesPerKilogramKelvin(double megajoulesperkilogramkelvin) => new SpecificEntropy(megajoulesperkilogramkelvin, SpecificEntropyUnit.MegajoulePerKilogramKelvin); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// SpecificEntropy unit value. - public static SpecificEntropy From(double value, SpecificEntropyUnit fromUnit) - { - return new SpecificEntropy(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(SpecificEntropyUnit unit) => GetValueAs(unit); - - /// - /// Converts this SpecificEntropy to another SpecificEntropy with the unit representation . - /// - /// A SpecificEntropy with the specified unit. - public SpecificEntropy ToUnit(SpecificEntropyUnit unit) - { - var convertedValue = GetValueAs(unit); - return new SpecificEntropy(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - SpecificEntropyUnit.BtuPerPoundFahrenheit => _value * 4.1868e3, - SpecificEntropyUnit.CaloriePerGramKelvin => _value * 4.184e3, - SpecificEntropyUnit.JoulePerKilogramDegreeCelsius => _value, - SpecificEntropyUnit.JoulePerKilogramKelvin => _value, - SpecificEntropyUnit.KilocaloriePerGramKelvin => (_value * 4.184e3) * 1e3d, - SpecificEntropyUnit.KilojoulePerKilogramDegreeCelsius => (_value) * 1e3d, - SpecificEntropyUnit.KilojoulePerKilogramKelvin => (_value) * 1e3d, - SpecificEntropyUnit.MegajoulePerKilogramDegreeCelsius => (_value) * 1e6d, - SpecificEntropyUnit.MegajoulePerKilogramKelvin => (_value) * 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(SpecificEntropyUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - SpecificEntropyUnit.BtuPerPoundFahrenheit => baseUnitValue / 4.1868e3, - SpecificEntropyUnit.CaloriePerGramKelvin => baseUnitValue / 4.184e3, - SpecificEntropyUnit.JoulePerKilogramDegreeCelsius => baseUnitValue, - SpecificEntropyUnit.JoulePerKilogramKelvin => baseUnitValue, - SpecificEntropyUnit.KilocaloriePerGramKelvin => (baseUnitValue / 4.184e3) / 1e3d, - SpecificEntropyUnit.KilojoulePerKilogramDegreeCelsius => (baseUnitValue) / 1e3d, - SpecificEntropyUnit.KilojoulePerKilogramKelvin => (baseUnitValue) / 1e3d, - SpecificEntropyUnit.MegajoulePerKilogramDegreeCelsius => (baseUnitValue) / 1e6d, - SpecificEntropyUnit.MegajoulePerKilogramKelvin => (baseUnitValue) / 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs deleted file mode 100644 index 21ca83be63..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificFuelConsumption.g.cs +++ /dev/null @@ -1,196 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// SFC is the fuel efficiency of an engine design with respect to thrust output - /// - /// - /// https://en.wikipedia.org/wiki/Thrust-specific_fuel_consumption - /// - public struct SpecificFuelConsumption - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly SpecificFuelConsumptionUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public SpecificFuelConsumptionUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public SpecificFuelConsumption(double value, SpecificFuelConsumptionUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of SpecificFuelConsumption, which is Second. All conversions go via this value. - /// - public static SpecificFuelConsumptionUnit BaseUnit { get; } = SpecificFuelConsumptionUnit.GramPerKilonewtonSecond; - - /// - /// Represents the largest possible value of SpecificFuelConsumption. - /// - public static SpecificFuelConsumption MaxValue { get; } = new SpecificFuelConsumption(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of SpecificFuelConsumption. - /// - public static SpecificFuelConsumption MinValue { get; } = new SpecificFuelConsumption(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static SpecificFuelConsumption Zero { get; } = new SpecificFuelConsumption(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GramsPerKilonewtonSecond => As(SpecificFuelConsumptionUnit.GramPerKilonewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerKilogramForceHour => As(SpecificFuelConsumptionUnit.KilogramPerKilogramForceHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsPerKilonewtonSecond => As(SpecificFuelConsumptionUnit.KilogramPerKilonewtonSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsMassPerPoundForceHour => As(SpecificFuelConsumptionUnit.PoundMassPerPoundForceHour); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static SpecificFuelConsumption FromGramsPerKilonewtonSecond(double gramsperkilonewtonsecond) => new SpecificFuelConsumption(gramsperkilonewtonsecond, SpecificFuelConsumptionUnit.GramPerKilonewtonSecond); - - /// - /// Creates a from . - /// - public static SpecificFuelConsumption FromKilogramsPerKilogramForceHour(double kilogramsperkilogramforcehour) => new SpecificFuelConsumption(kilogramsperkilogramforcehour, SpecificFuelConsumptionUnit.KilogramPerKilogramForceHour); - - /// - /// Creates a from . - /// - public static SpecificFuelConsumption FromKilogramsPerKilonewtonSecond(double kilogramsperkilonewtonsecond) => new SpecificFuelConsumption(kilogramsperkilonewtonsecond, SpecificFuelConsumptionUnit.KilogramPerKilonewtonSecond); - - /// - /// Creates a from . - /// - public static SpecificFuelConsumption FromPoundsMassPerPoundForceHour(double poundsmassperpoundforcehour) => new SpecificFuelConsumption(poundsmassperpoundforcehour, SpecificFuelConsumptionUnit.PoundMassPerPoundForceHour); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// SpecificFuelConsumption unit value. - public static SpecificFuelConsumption From(double value, SpecificFuelConsumptionUnit fromUnit) - { - return new SpecificFuelConsumption(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(SpecificFuelConsumptionUnit unit) => GetValueAs(unit); - - /// - /// Converts this SpecificFuelConsumption to another SpecificFuelConsumption with the unit representation . - /// - /// A SpecificFuelConsumption with the specified unit. - public SpecificFuelConsumption ToUnit(SpecificFuelConsumptionUnit unit) - { - var convertedValue = GetValueAs(unit); - return new SpecificFuelConsumption(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - SpecificFuelConsumptionUnit.GramPerKilonewtonSecond => _value, - SpecificFuelConsumptionUnit.KilogramPerKilogramForceHour => _value * 1000 / (9.80665e-3 * 3600), - SpecificFuelConsumptionUnit.KilogramPerKilonewtonSecond => (_value) * 1e3d, - SpecificFuelConsumptionUnit.PoundMassPerPoundForceHour => _value * 1000 / (9.80665e-3 * 3600), - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(SpecificFuelConsumptionUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - SpecificFuelConsumptionUnit.GramPerKilonewtonSecond => baseUnitValue, - SpecificFuelConsumptionUnit.KilogramPerKilogramForceHour => baseUnitValue * 9.80665e-3 * 3600 / 1000, - SpecificFuelConsumptionUnit.KilogramPerKilonewtonSecond => (baseUnitValue) / 1e3d, - SpecificFuelConsumptionUnit.PoundMassPerPoundForceHour => baseUnitValue * 9.80665e-3 * 3600 / 1000, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificVolume.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificVolume.g.cs deleted file mode 100644 index 05c9f8554e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificVolume.g.cs +++ /dev/null @@ -1,181 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In thermodynamics, the specific volume of a substance is the ratio of the substance's volume to its mass. It is the reciprocal of density and an intrinsic property of matter as well. - /// - public struct SpecificVolume - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly SpecificVolumeUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public SpecificVolumeUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public SpecificVolume(double value, SpecificVolumeUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of SpecificVolume, which is Second. All conversions go via this value. - /// - public static SpecificVolumeUnit BaseUnit { get; } = SpecificVolumeUnit.CubicMeterPerKilogram; - - /// - /// Represents the largest possible value of SpecificVolume. - /// - public static SpecificVolume MaxValue { get; } = new SpecificVolume(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of SpecificVolume. - /// - public static SpecificVolume MinValue { get; } = new SpecificVolume(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static SpecificVolume Zero { get; } = new SpecificVolume(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CubicFeetPerPound => As(SpecificVolumeUnit.CubicFootPerPound); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMetersPerKilogram => As(SpecificVolumeUnit.CubicMeterPerKilogram); - - /// - /// Gets a value of this quantity converted into - /// - public double MillicubicMetersPerKilogram => As(SpecificVolumeUnit.MillicubicMeterPerKilogram); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static SpecificVolume FromCubicFeetPerPound(double cubicfeetperpound) => new SpecificVolume(cubicfeetperpound, SpecificVolumeUnit.CubicFootPerPound); - - /// - /// Creates a from . - /// - public static SpecificVolume FromCubicMetersPerKilogram(double cubicmetersperkilogram) => new SpecificVolume(cubicmetersperkilogram, SpecificVolumeUnit.CubicMeterPerKilogram); - - /// - /// Creates a from . - /// - public static SpecificVolume FromMillicubicMetersPerKilogram(double millicubicmetersperkilogram) => new SpecificVolume(millicubicmetersperkilogram, SpecificVolumeUnit.MillicubicMeterPerKilogram); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// SpecificVolume unit value. - public static SpecificVolume From(double value, SpecificVolumeUnit fromUnit) - { - return new SpecificVolume(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(SpecificVolumeUnit unit) => GetValueAs(unit); - - /// - /// Converts this SpecificVolume to another SpecificVolume with the unit representation . - /// - /// A SpecificVolume with the specified unit. - public SpecificVolume ToUnit(SpecificVolumeUnit unit) - { - var convertedValue = GetValueAs(unit); - return new SpecificVolume(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - SpecificVolumeUnit.CubicFootPerPound => _value * 0.028316846592 / 0.45359237, - SpecificVolumeUnit.CubicMeterPerKilogram => _value, - SpecificVolumeUnit.MillicubicMeterPerKilogram => (_value) * 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(SpecificVolumeUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - SpecificVolumeUnit.CubicFootPerPound => baseUnitValue * 0.45359237 / 0.028316846592, - SpecificVolumeUnit.CubicMeterPerKilogram => baseUnitValue, - SpecificVolumeUnit.MillicubicMeterPerKilogram => (baseUnitValue) / 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificWeight.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificWeight.g.cs deleted file mode 100644 index 24c900aaee..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificWeight.g.cs +++ /dev/null @@ -1,352 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The SpecificWeight, or more precisely, the volumetric weight density, of a substance is its weight per unit volume. - /// - /// - /// https://en.wikipedia.org/wiki/Specific_weight - /// - public struct SpecificWeight - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly SpecificWeightUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public SpecificWeightUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public SpecificWeight(double value, SpecificWeightUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of SpecificWeight, which is Second. All conversions go via this value. - /// - public static SpecificWeightUnit BaseUnit { get; } = SpecificWeightUnit.NewtonPerCubicMeter; - - /// - /// Represents the largest possible value of SpecificWeight. - /// - public static SpecificWeight MaxValue { get; } = new SpecificWeight(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of SpecificWeight. - /// - public static SpecificWeight MinValue { get; } = new SpecificWeight(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static SpecificWeight Zero { get; } = new SpecificWeight(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForcePerCubicCentimeter => As(SpecificWeightUnit.KilogramForcePerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForcePerCubicMeter => As(SpecificWeightUnit.KilogramForcePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramsForcePerCubicMillimeter => As(SpecificWeightUnit.KilogramForcePerCubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerCubicCentimeter => As(SpecificWeightUnit.KilonewtonPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerCubicMeter => As(SpecificWeightUnit.KilonewtonPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonsPerCubicMillimeter => As(SpecificWeightUnit.KilonewtonPerCubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerCubicFoot => As(SpecificWeightUnit.KilopoundForcePerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundsForcePerCubicInch => As(SpecificWeightUnit.KilopoundForcePerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonsPerCubicMeter => As(SpecificWeightUnit.MeganewtonPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerCubicCentimeter => As(SpecificWeightUnit.NewtonPerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerCubicMeter => As(SpecificWeightUnit.NewtonPerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonsPerCubicMillimeter => As(SpecificWeightUnit.NewtonPerCubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerCubicFoot => As(SpecificWeightUnit.PoundForcePerCubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundsForcePerCubicInch => As(SpecificWeightUnit.PoundForcePerCubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForcePerCubicCentimeter => As(SpecificWeightUnit.TonneForcePerCubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForcePerCubicMeter => As(SpecificWeightUnit.TonneForcePerCubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonnesForcePerCubicMillimeter => As(SpecificWeightUnit.TonneForcePerCubicMillimeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static SpecificWeight FromKilogramsForcePerCubicCentimeter(double kilogramsforcepercubiccentimeter) => new SpecificWeight(kilogramsforcepercubiccentimeter, SpecificWeightUnit.KilogramForcePerCubicCentimeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromKilogramsForcePerCubicMeter(double kilogramsforcepercubicmeter) => new SpecificWeight(kilogramsforcepercubicmeter, SpecificWeightUnit.KilogramForcePerCubicMeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromKilogramsForcePerCubicMillimeter(double kilogramsforcepercubicmillimeter) => new SpecificWeight(kilogramsforcepercubicmillimeter, SpecificWeightUnit.KilogramForcePerCubicMillimeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromKilonewtonsPerCubicCentimeter(double kilonewtonspercubiccentimeter) => new SpecificWeight(kilonewtonspercubiccentimeter, SpecificWeightUnit.KilonewtonPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromKilonewtonsPerCubicMeter(double kilonewtonspercubicmeter) => new SpecificWeight(kilonewtonspercubicmeter, SpecificWeightUnit.KilonewtonPerCubicMeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromKilonewtonsPerCubicMillimeter(double kilonewtonspercubicmillimeter) => new SpecificWeight(kilonewtonspercubicmillimeter, SpecificWeightUnit.KilonewtonPerCubicMillimeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromKilopoundsForcePerCubicFoot(double kilopoundsforcepercubicfoot) => new SpecificWeight(kilopoundsforcepercubicfoot, SpecificWeightUnit.KilopoundForcePerCubicFoot); - - /// - /// Creates a from . - /// - public static SpecificWeight FromKilopoundsForcePerCubicInch(double kilopoundsforcepercubicinch) => new SpecificWeight(kilopoundsforcepercubicinch, SpecificWeightUnit.KilopoundForcePerCubicInch); - - /// - /// Creates a from . - /// - public static SpecificWeight FromMeganewtonsPerCubicMeter(double meganewtonspercubicmeter) => new SpecificWeight(meganewtonspercubicmeter, SpecificWeightUnit.MeganewtonPerCubicMeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromNewtonsPerCubicCentimeter(double newtonspercubiccentimeter) => new SpecificWeight(newtonspercubiccentimeter, SpecificWeightUnit.NewtonPerCubicCentimeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromNewtonsPerCubicMeter(double newtonspercubicmeter) => new SpecificWeight(newtonspercubicmeter, SpecificWeightUnit.NewtonPerCubicMeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromNewtonsPerCubicMillimeter(double newtonspercubicmillimeter) => new SpecificWeight(newtonspercubicmillimeter, SpecificWeightUnit.NewtonPerCubicMillimeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromPoundsForcePerCubicFoot(double poundsforcepercubicfoot) => new SpecificWeight(poundsforcepercubicfoot, SpecificWeightUnit.PoundForcePerCubicFoot); - - /// - /// Creates a from . - /// - public static SpecificWeight FromPoundsForcePerCubicInch(double poundsforcepercubicinch) => new SpecificWeight(poundsforcepercubicinch, SpecificWeightUnit.PoundForcePerCubicInch); - - /// - /// Creates a from . - /// - public static SpecificWeight FromTonnesForcePerCubicCentimeter(double tonnesforcepercubiccentimeter) => new SpecificWeight(tonnesforcepercubiccentimeter, SpecificWeightUnit.TonneForcePerCubicCentimeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromTonnesForcePerCubicMeter(double tonnesforcepercubicmeter) => new SpecificWeight(tonnesforcepercubicmeter, SpecificWeightUnit.TonneForcePerCubicMeter); - - /// - /// Creates a from . - /// - public static SpecificWeight FromTonnesForcePerCubicMillimeter(double tonnesforcepercubicmillimeter) => new SpecificWeight(tonnesforcepercubicmillimeter, SpecificWeightUnit.TonneForcePerCubicMillimeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// SpecificWeight unit value. - public static SpecificWeight From(double value, SpecificWeightUnit fromUnit) - { - return new SpecificWeight(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(SpecificWeightUnit unit) => GetValueAs(unit); - - /// - /// Converts this SpecificWeight to another SpecificWeight with the unit representation . - /// - /// A SpecificWeight with the specified unit. - public SpecificWeight ToUnit(SpecificWeightUnit unit) - { - var convertedValue = GetValueAs(unit); - return new SpecificWeight(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - SpecificWeightUnit.KilogramForcePerCubicCentimeter => _value * 9.80665e6, - SpecificWeightUnit.KilogramForcePerCubicMeter => _value * 9.80665, - SpecificWeightUnit.KilogramForcePerCubicMillimeter => _value * 9.80665e9, - SpecificWeightUnit.KilonewtonPerCubicCentimeter => (_value * 1000000) * 1e3d, - SpecificWeightUnit.KilonewtonPerCubicMeter => (_value) * 1e3d, - SpecificWeightUnit.KilonewtonPerCubicMillimeter => (_value * 1000000000) * 1e3d, - SpecificWeightUnit.KilopoundForcePerCubicFoot => (_value * 4.4482216152605 / 0.028316846592) * 1e3d, - SpecificWeightUnit.KilopoundForcePerCubicInch => (_value * 4.4482216152605 / 1.6387064e-5) * 1e3d, - SpecificWeightUnit.MeganewtonPerCubicMeter => (_value) * 1e6d, - SpecificWeightUnit.NewtonPerCubicCentimeter => _value * 1000000, - SpecificWeightUnit.NewtonPerCubicMeter => _value, - SpecificWeightUnit.NewtonPerCubicMillimeter => _value * 1000000000, - SpecificWeightUnit.PoundForcePerCubicFoot => _value * 4.4482216152605 / 0.028316846592, - SpecificWeightUnit.PoundForcePerCubicInch => _value * 4.4482216152605 / 1.6387064e-5, - SpecificWeightUnit.TonneForcePerCubicCentimeter => _value * 9.80665e9, - SpecificWeightUnit.TonneForcePerCubicMeter => _value * 9.80665e3, - SpecificWeightUnit.TonneForcePerCubicMillimeter => _value * 9.80665e12, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(SpecificWeightUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - SpecificWeightUnit.KilogramForcePerCubicCentimeter => baseUnitValue / 9.80665e6, - SpecificWeightUnit.KilogramForcePerCubicMeter => baseUnitValue / 9.80665, - SpecificWeightUnit.KilogramForcePerCubicMillimeter => baseUnitValue / 9.80665e9, - SpecificWeightUnit.KilonewtonPerCubicCentimeter => (baseUnitValue * 0.000001) / 1e3d, - SpecificWeightUnit.KilonewtonPerCubicMeter => (baseUnitValue) / 1e3d, - SpecificWeightUnit.KilonewtonPerCubicMillimeter => (baseUnitValue * 0.000000001) / 1e3d, - SpecificWeightUnit.KilopoundForcePerCubicFoot => (baseUnitValue * 0.028316846592 / 4.4482216152605) / 1e3d, - SpecificWeightUnit.KilopoundForcePerCubicInch => (baseUnitValue * 1.6387064e-5 / 4.4482216152605) / 1e3d, - SpecificWeightUnit.MeganewtonPerCubicMeter => (baseUnitValue) / 1e6d, - SpecificWeightUnit.NewtonPerCubicCentimeter => baseUnitValue * 0.000001, - SpecificWeightUnit.NewtonPerCubicMeter => baseUnitValue, - SpecificWeightUnit.NewtonPerCubicMillimeter => baseUnitValue * 0.000000001, - SpecificWeightUnit.PoundForcePerCubicFoot => baseUnitValue * 0.028316846592 / 4.4482216152605, - SpecificWeightUnit.PoundForcePerCubicInch => baseUnitValue * 1.6387064e-5 / 4.4482216152605, - SpecificWeightUnit.TonneForcePerCubicCentimeter => baseUnitValue / 9.80665e9, - SpecificWeightUnit.TonneForcePerCubicMeter => baseUnitValue / 9.80665e3, - SpecificWeightUnit.TonneForcePerCubicMillimeter => baseUnitValue / 9.80665e12, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Speed.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Speed.g.cs deleted file mode 100644 index 2532a96562..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Speed.g.cs +++ /dev/null @@ -1,541 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In everyday use and in kinematics, the speed of an object is the magnitude of its velocity (the rate of change of its position); it is thus a scalar quantity.[1] The average speed of an object in an interval of time is the distance travelled by the object divided by the duration of the interval;[2] the instantaneous speed is the limit of the average speed as the duration of the time interval approaches zero. - /// - public struct Speed - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly SpeedUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public SpeedUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Speed(double value, SpeedUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Speed, which is Second. All conversions go via this value. - /// - public static SpeedUnit BaseUnit { get; } = SpeedUnit.MeterPerSecond; - - /// - /// Represents the largest possible value of Speed. - /// - public static Speed MaxValue { get; } = new Speed(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Speed. - /// - public static Speed MinValue { get; } = new Speed(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Speed Zero { get; } = new Speed(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentimetersPerHour => As(SpeedUnit.CentimeterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double CentimetersPerMinute => As(SpeedUnit.CentimeterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double CentimetersPerSecond => As(SpeedUnit.CentimeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecimetersPerMinute => As(SpeedUnit.DecimeterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double DecimetersPerSecond => As(SpeedUnit.DecimeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double FeetPerHour => As(SpeedUnit.FootPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double FeetPerMinute => As(SpeedUnit.FootPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double FeetPerSecond => As(SpeedUnit.FootPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double InchesPerHour => As(SpeedUnit.InchPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double InchesPerMinute => As(SpeedUnit.InchPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double InchesPerSecond => As(SpeedUnit.InchPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilometersPerHour => As(SpeedUnit.KilometerPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KilometersPerMinute => As(SpeedUnit.KilometerPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KilometersPerSecond => As(SpeedUnit.KilometerPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double Knots => As(SpeedUnit.Knot); - - /// - /// Gets a value of this quantity converted into - /// - public double Mach => As(SpeedUnit.Mach); - - /// - /// Gets a value of this quantity converted into - /// - public double MetersPerHour => As(SpeedUnit.MeterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MetersPerMinute => As(SpeedUnit.MeterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MetersPerSecond => As(SpeedUnit.MeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrometersPerMinute => As(SpeedUnit.MicrometerPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrometersPerSecond => As(SpeedUnit.MicrometerPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MilesPerHour => As(SpeedUnit.MilePerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersPerHour => As(SpeedUnit.MillimeterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersPerMinute => As(SpeedUnit.MillimeterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersPerSecond => As(SpeedUnit.MillimeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NanometersPerMinute => As(SpeedUnit.NanometerPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double NanometersPerSecond => As(SpeedUnit.NanometerPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double UsSurveyFeetPerHour => As(SpeedUnit.UsSurveyFootPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double UsSurveyFeetPerMinute => As(SpeedUnit.UsSurveyFootPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double UsSurveyFeetPerSecond => As(SpeedUnit.UsSurveyFootPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double YardsPerHour => As(SpeedUnit.YardPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double YardsPerMinute => As(SpeedUnit.YardPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double YardsPerSecond => As(SpeedUnit.YardPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Speed FromCentimetersPerHour(double centimetersperhour) => new Speed(centimetersperhour, SpeedUnit.CentimeterPerHour); - - /// - /// Creates a from . - /// - public static Speed FromCentimetersPerMinute(double centimetersperminute) => new Speed(centimetersperminute, SpeedUnit.CentimeterPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromCentimetersPerSecond(double centimeterspersecond) => new Speed(centimeterspersecond, SpeedUnit.CentimeterPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromDecimetersPerMinute(double decimetersperminute) => new Speed(decimetersperminute, SpeedUnit.DecimeterPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromDecimetersPerSecond(double decimeterspersecond) => new Speed(decimeterspersecond, SpeedUnit.DecimeterPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromFeetPerHour(double feetperhour) => new Speed(feetperhour, SpeedUnit.FootPerHour); - - /// - /// Creates a from . - /// - public static Speed FromFeetPerMinute(double feetperminute) => new Speed(feetperminute, SpeedUnit.FootPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromFeetPerSecond(double feetpersecond) => new Speed(feetpersecond, SpeedUnit.FootPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromInchesPerHour(double inchesperhour) => new Speed(inchesperhour, SpeedUnit.InchPerHour); - - /// - /// Creates a from . - /// - public static Speed FromInchesPerMinute(double inchesperminute) => new Speed(inchesperminute, SpeedUnit.InchPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromInchesPerSecond(double inchespersecond) => new Speed(inchespersecond, SpeedUnit.InchPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromKilometersPerHour(double kilometersperhour) => new Speed(kilometersperhour, SpeedUnit.KilometerPerHour); - - /// - /// Creates a from . - /// - public static Speed FromKilometersPerMinute(double kilometersperminute) => new Speed(kilometersperminute, SpeedUnit.KilometerPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromKilometersPerSecond(double kilometerspersecond) => new Speed(kilometerspersecond, SpeedUnit.KilometerPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromKnots(double knots) => new Speed(knots, SpeedUnit.Knot); - - /// - /// Creates a from . - /// - public static Speed FromMach(double mach) => new Speed(mach, SpeedUnit.Mach); - - /// - /// Creates a from . - /// - public static Speed FromMetersPerHour(double metersperhour) => new Speed(metersperhour, SpeedUnit.MeterPerHour); - - /// - /// Creates a from . - /// - public static Speed FromMetersPerMinute(double metersperminute) => new Speed(metersperminute, SpeedUnit.MeterPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromMetersPerSecond(double meterspersecond) => new Speed(meterspersecond, SpeedUnit.MeterPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromMicrometersPerMinute(double micrometersperminute) => new Speed(micrometersperminute, SpeedUnit.MicrometerPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromMicrometersPerSecond(double micrometerspersecond) => new Speed(micrometerspersecond, SpeedUnit.MicrometerPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromMilesPerHour(double milesperhour) => new Speed(milesperhour, SpeedUnit.MilePerHour); - - /// - /// Creates a from . - /// - public static Speed FromMillimetersPerHour(double millimetersperhour) => new Speed(millimetersperhour, SpeedUnit.MillimeterPerHour); - - /// - /// Creates a from . - /// - public static Speed FromMillimetersPerMinute(double millimetersperminute) => new Speed(millimetersperminute, SpeedUnit.MillimeterPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromMillimetersPerSecond(double millimeterspersecond) => new Speed(millimeterspersecond, SpeedUnit.MillimeterPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromNanometersPerMinute(double nanometersperminute) => new Speed(nanometersperminute, SpeedUnit.NanometerPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromNanometersPerSecond(double nanometerspersecond) => new Speed(nanometerspersecond, SpeedUnit.NanometerPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromUsSurveyFeetPerHour(double ussurveyfeetperhour) => new Speed(ussurveyfeetperhour, SpeedUnit.UsSurveyFootPerHour); - - /// - /// Creates a from . - /// - public static Speed FromUsSurveyFeetPerMinute(double ussurveyfeetperminute) => new Speed(ussurveyfeetperminute, SpeedUnit.UsSurveyFootPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromUsSurveyFeetPerSecond(double ussurveyfeetpersecond) => new Speed(ussurveyfeetpersecond, SpeedUnit.UsSurveyFootPerSecond); - - /// - /// Creates a from . - /// - public static Speed FromYardsPerHour(double yardsperhour) => new Speed(yardsperhour, SpeedUnit.YardPerHour); - - /// - /// Creates a from . - /// - public static Speed FromYardsPerMinute(double yardsperminute) => new Speed(yardsperminute, SpeedUnit.YardPerMinute); - - /// - /// Creates a from . - /// - public static Speed FromYardsPerSecond(double yardspersecond) => new Speed(yardspersecond, SpeedUnit.YardPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Speed unit value. - public static Speed From(double value, SpeedUnit fromUnit) - { - return new Speed(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(SpeedUnit unit) => GetValueAs(unit); - - /// - /// Converts this Speed to another Speed with the unit representation . - /// - /// A Speed with the specified unit. - public Speed ToUnit(SpeedUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Speed(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - SpeedUnit.CentimeterPerHour => (_value / 3600) * 1e-2d, - SpeedUnit.CentimeterPerMinute => (_value / 60) * 1e-2d, - SpeedUnit.CentimeterPerSecond => (_value) * 1e-2d, - SpeedUnit.DecimeterPerMinute => (_value / 60) * 1e-1d, - SpeedUnit.DecimeterPerSecond => (_value) * 1e-1d, - SpeedUnit.FootPerHour => _value * 0.3048 / 3600, - SpeedUnit.FootPerMinute => _value * 0.3048 / 60, - SpeedUnit.FootPerSecond => _value * 0.3048, - SpeedUnit.InchPerHour => (_value / 3600) * 2.54e-2, - SpeedUnit.InchPerMinute => (_value / 60) * 2.54e-2, - SpeedUnit.InchPerSecond => _value * 2.54e-2, - SpeedUnit.KilometerPerHour => (_value / 3600) * 1e3d, - SpeedUnit.KilometerPerMinute => (_value / 60) * 1e3d, - SpeedUnit.KilometerPerSecond => (_value) * 1e3d, - SpeedUnit.Knot => _value * (1852.0 / 3600.0), - SpeedUnit.Mach => _value * 340.29, - SpeedUnit.MeterPerHour => _value / 3600, - SpeedUnit.MeterPerMinute => _value / 60, - SpeedUnit.MeterPerSecond => _value, - SpeedUnit.MicrometerPerMinute => (_value / 60) * 1e-6d, - SpeedUnit.MicrometerPerSecond => (_value) * 1e-6d, - SpeedUnit.MilePerHour => _value * 0.44704, - SpeedUnit.MillimeterPerHour => (_value / 3600) * 1e-3d, - SpeedUnit.MillimeterPerMinute => (_value / 60) * 1e-3d, - SpeedUnit.MillimeterPerSecond => (_value) * 1e-3d, - SpeedUnit.NanometerPerMinute => (_value / 60) * 1e-9d, - SpeedUnit.NanometerPerSecond => (_value) * 1e-9d, - SpeedUnit.UsSurveyFootPerHour => (_value * 1200 / 3937) / 3600, - SpeedUnit.UsSurveyFootPerMinute => (_value * 1200 / 3937) / 60, - SpeedUnit.UsSurveyFootPerSecond => _value * 1200 / 3937, - SpeedUnit.YardPerHour => _value * 0.9144 / 3600, - SpeedUnit.YardPerMinute => _value * 0.9144 / 60, - SpeedUnit.YardPerSecond => _value * 0.9144, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(SpeedUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - SpeedUnit.CentimeterPerHour => (baseUnitValue * 3600) / 1e-2d, - SpeedUnit.CentimeterPerMinute => (baseUnitValue * 60) / 1e-2d, - SpeedUnit.CentimeterPerSecond => (baseUnitValue) / 1e-2d, - SpeedUnit.DecimeterPerMinute => (baseUnitValue * 60) / 1e-1d, - SpeedUnit.DecimeterPerSecond => (baseUnitValue) / 1e-1d, - SpeedUnit.FootPerHour => baseUnitValue / 0.3048 * 3600, - SpeedUnit.FootPerMinute => baseUnitValue / 0.3048 * 60, - SpeedUnit.FootPerSecond => baseUnitValue / 0.3048, - SpeedUnit.InchPerHour => (baseUnitValue / 2.54e-2) * 3600, - SpeedUnit.InchPerMinute => (baseUnitValue / 2.54e-2) * 60, - SpeedUnit.InchPerSecond => baseUnitValue / 2.54e-2, - SpeedUnit.KilometerPerHour => (baseUnitValue * 3600) / 1e3d, - SpeedUnit.KilometerPerMinute => (baseUnitValue * 60) / 1e3d, - SpeedUnit.KilometerPerSecond => (baseUnitValue) / 1e3d, - SpeedUnit.Knot => baseUnitValue / (1852.0 / 3600.0), - SpeedUnit.Mach => baseUnitValue / 340.29, - SpeedUnit.MeterPerHour => baseUnitValue * 3600, - SpeedUnit.MeterPerMinute => baseUnitValue * 60, - SpeedUnit.MeterPerSecond => baseUnitValue, - SpeedUnit.MicrometerPerMinute => (baseUnitValue * 60) / 1e-6d, - SpeedUnit.MicrometerPerSecond => (baseUnitValue) / 1e-6d, - SpeedUnit.MilePerHour => baseUnitValue / 0.44704, - SpeedUnit.MillimeterPerHour => (baseUnitValue * 3600) / 1e-3d, - SpeedUnit.MillimeterPerMinute => (baseUnitValue * 60) / 1e-3d, - SpeedUnit.MillimeterPerSecond => (baseUnitValue) / 1e-3d, - SpeedUnit.NanometerPerMinute => (baseUnitValue * 60) / 1e-9d, - SpeedUnit.NanometerPerSecond => (baseUnitValue) / 1e-9d, - SpeedUnit.UsSurveyFootPerHour => (baseUnitValue * 3937 / 1200) * 3600, - SpeedUnit.UsSurveyFootPerMinute => (baseUnitValue * 3937 / 1200) * 60, - SpeedUnit.UsSurveyFootPerSecond => baseUnitValue * 3937 / 1200, - SpeedUnit.YardPerHour => baseUnitValue / 0.9144 * 3600, - SpeedUnit.YardPerMinute => baseUnitValue / 0.9144 * 60, - SpeedUnit.YardPerSecond => baseUnitValue / 0.9144, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/StandardVolumeFlow.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/StandardVolumeFlow.g.cs deleted file mode 100644 index 7b87faa2d6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/StandardVolumeFlow.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The molar flow rate of a gas corrected to standardized conditions of temperature and pressure thus representing a fixed number of moles of gas regardless of composition and actual flow conditions. - /// - public struct StandardVolumeFlow - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly StandardVolumeFlowUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public StandardVolumeFlowUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public StandardVolumeFlow(double value, StandardVolumeFlowUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of StandardVolumeFlow, which is Second. All conversions go via this value. - /// - public static StandardVolumeFlowUnit BaseUnit { get; } = StandardVolumeFlowUnit.StandardCubicMeterPerSecond; - - /// - /// Represents the largest possible value of StandardVolumeFlow. - /// - public static StandardVolumeFlow MaxValue { get; } = new StandardVolumeFlow(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of StandardVolumeFlow. - /// - public static StandardVolumeFlow MinValue { get; } = new StandardVolumeFlow(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static StandardVolumeFlow Zero { get; } = new StandardVolumeFlow(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double StandardCubicCentimetersPerMinute => As(StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardCubicFeetPerHour => As(StandardVolumeFlowUnit.StandardCubicFootPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardCubicFeetPerMinute => As(StandardVolumeFlowUnit.StandardCubicFootPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardCubicFeetPerSecond => As(StandardVolumeFlowUnit.StandardCubicFootPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardCubicMetersPerDay => As(StandardVolumeFlowUnit.StandardCubicMeterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardCubicMetersPerHour => As(StandardVolumeFlowUnit.StandardCubicMeterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardCubicMetersPerMinute => As(StandardVolumeFlowUnit.StandardCubicMeterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardCubicMetersPerSecond => As(StandardVolumeFlowUnit.StandardCubicMeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double StandardLitersPerMinute => As(StandardVolumeFlowUnit.StandardLiterPerMinute); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static StandardVolumeFlow FromStandardCubicCentimetersPerMinute(double standardcubiccentimetersperminute) => new StandardVolumeFlow(standardcubiccentimetersperminute, StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute); - - /// - /// Creates a from . - /// - public static StandardVolumeFlow FromStandardCubicFeetPerHour(double standardcubicfeetperhour) => new StandardVolumeFlow(standardcubicfeetperhour, StandardVolumeFlowUnit.StandardCubicFootPerHour); - - /// - /// Creates a from . - /// - public static StandardVolumeFlow FromStandardCubicFeetPerMinute(double standardcubicfeetperminute) => new StandardVolumeFlow(standardcubicfeetperminute, StandardVolumeFlowUnit.StandardCubicFootPerMinute); - - /// - /// Creates a from . - /// - public static StandardVolumeFlow FromStandardCubicFeetPerSecond(double standardcubicfeetpersecond) => new StandardVolumeFlow(standardcubicfeetpersecond, StandardVolumeFlowUnit.StandardCubicFootPerSecond); - - /// - /// Creates a from . - /// - public static StandardVolumeFlow FromStandardCubicMetersPerDay(double standardcubicmetersperday) => new StandardVolumeFlow(standardcubicmetersperday, StandardVolumeFlowUnit.StandardCubicMeterPerDay); - - /// - /// Creates a from . - /// - public static StandardVolumeFlow FromStandardCubicMetersPerHour(double standardcubicmetersperhour) => new StandardVolumeFlow(standardcubicmetersperhour, StandardVolumeFlowUnit.StandardCubicMeterPerHour); - - /// - /// Creates a from . - /// - public static StandardVolumeFlow FromStandardCubicMetersPerMinute(double standardcubicmetersperminute) => new StandardVolumeFlow(standardcubicmetersperminute, StandardVolumeFlowUnit.StandardCubicMeterPerMinute); - - /// - /// Creates a from . - /// - public static StandardVolumeFlow FromStandardCubicMetersPerSecond(double standardcubicmeterspersecond) => new StandardVolumeFlow(standardcubicmeterspersecond, StandardVolumeFlowUnit.StandardCubicMeterPerSecond); - - /// - /// Creates a from . - /// - public static StandardVolumeFlow FromStandardLitersPerMinute(double standardlitersperminute) => new StandardVolumeFlow(standardlitersperminute, StandardVolumeFlowUnit.StandardLiterPerMinute); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// StandardVolumeFlow unit value. - public static StandardVolumeFlow From(double value, StandardVolumeFlowUnit fromUnit) - { - return new StandardVolumeFlow(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(StandardVolumeFlowUnit unit) => GetValueAs(unit); - - /// - /// Converts this StandardVolumeFlow to another StandardVolumeFlow with the unit representation . - /// - /// A StandardVolumeFlow with the specified unit. - public StandardVolumeFlow ToUnit(StandardVolumeFlowUnit unit) - { - var convertedValue = GetValueAs(unit); - return new StandardVolumeFlow(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute => _value / 6e7, - StandardVolumeFlowUnit.StandardCubicFootPerHour => _value * 0.028316846592 / 3600, - StandardVolumeFlowUnit.StandardCubicFootPerMinute => _value * 0.028316846592 / 60, - StandardVolumeFlowUnit.StandardCubicFootPerSecond => _value * 0.028316846592, - StandardVolumeFlowUnit.StandardCubicMeterPerDay => _value / 86400, - StandardVolumeFlowUnit.StandardCubicMeterPerHour => _value / 3600, - StandardVolumeFlowUnit.StandardCubicMeterPerMinute => _value / 60, - StandardVolumeFlowUnit.StandardCubicMeterPerSecond => _value, - StandardVolumeFlowUnit.StandardLiterPerMinute => _value / 60000, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(StandardVolumeFlowUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute => baseUnitValue * 6e7, - StandardVolumeFlowUnit.StandardCubicFootPerHour => baseUnitValue / (0.028316846592 / 3600), - StandardVolumeFlowUnit.StandardCubicFootPerMinute => baseUnitValue / (0.028316846592 / 60), - StandardVolumeFlowUnit.StandardCubicFootPerSecond => baseUnitValue / 0.028316846592, - StandardVolumeFlowUnit.StandardCubicMeterPerDay => baseUnitValue * 86400, - StandardVolumeFlowUnit.StandardCubicMeterPerHour => baseUnitValue * 3600, - StandardVolumeFlowUnit.StandardCubicMeterPerMinute => baseUnitValue * 60, - StandardVolumeFlowUnit.StandardCubicMeterPerSecond => baseUnitValue, - StandardVolumeFlowUnit.StandardLiterPerMinute => baseUnitValue * 60000, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Temperature.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Temperature.g.cs deleted file mode 100644 index cc5e7103d4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Temperature.g.cs +++ /dev/null @@ -1,265 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A temperature is a numerical measure of hot or cold. Its measurement is by detection of heat radiation or particle velocity or kinetic energy, or by the bulk behavior of a thermometric material. It may be calibrated in any of various temperature scales, Celsius, Fahrenheit, Kelvin, etc. The fundamental physical definition of temperature is provided by thermodynamics. - /// - public struct Temperature - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly TemperatureUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public TemperatureUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Temperature(double value, TemperatureUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Temperature, which is Second. All conversions go via this value. - /// - public static TemperatureUnit BaseUnit { get; } = TemperatureUnit.Kelvin; - - /// - /// Represents the largest possible value of Temperature. - /// - public static Temperature MaxValue { get; } = new Temperature(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Temperature. - /// - public static Temperature MinValue { get; } = new Temperature(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Temperature Zero { get; } = new Temperature(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesCelsius => As(TemperatureUnit.DegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesDelisle => As(TemperatureUnit.DegreeDelisle); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesFahrenheit => As(TemperatureUnit.DegreeFahrenheit); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesNewton => As(TemperatureUnit.DegreeNewton); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesRankine => As(TemperatureUnit.DegreeRankine); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesReaumur => As(TemperatureUnit.DegreeReaumur); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesRoemer => As(TemperatureUnit.DegreeRoemer); - - /// - /// Gets a value of this quantity converted into - /// - public double Kelvins => As(TemperatureUnit.Kelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double MillidegreesCelsius => As(TemperatureUnit.MillidegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double SolarTemperatures => As(TemperatureUnit.SolarTemperature); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Temperature FromDegreesCelsius(double degreescelsius) => new Temperature(degreescelsius, TemperatureUnit.DegreeCelsius); - - /// - /// Creates a from . - /// - public static Temperature FromDegreesDelisle(double degreesdelisle) => new Temperature(degreesdelisle, TemperatureUnit.DegreeDelisle); - - /// - /// Creates a from . - /// - public static Temperature FromDegreesFahrenheit(double degreesfahrenheit) => new Temperature(degreesfahrenheit, TemperatureUnit.DegreeFahrenheit); - - /// - /// Creates a from . - /// - public static Temperature FromDegreesNewton(double degreesnewton) => new Temperature(degreesnewton, TemperatureUnit.DegreeNewton); - - /// - /// Creates a from . - /// - public static Temperature FromDegreesRankine(double degreesrankine) => new Temperature(degreesrankine, TemperatureUnit.DegreeRankine); - - /// - /// Creates a from . - /// - public static Temperature FromDegreesReaumur(double degreesreaumur) => new Temperature(degreesreaumur, TemperatureUnit.DegreeReaumur); - - /// - /// Creates a from . - /// - public static Temperature FromDegreesRoemer(double degreesroemer) => new Temperature(degreesroemer, TemperatureUnit.DegreeRoemer); - - /// - /// Creates a from . - /// - public static Temperature FromKelvins(double kelvins) => new Temperature(kelvins, TemperatureUnit.Kelvin); - - /// - /// Creates a from . - /// - public static Temperature FromMillidegreesCelsius(double millidegreescelsius) => new Temperature(millidegreescelsius, TemperatureUnit.MillidegreeCelsius); - - /// - /// Creates a from . - /// - public static Temperature FromSolarTemperatures(double solartemperatures) => new Temperature(solartemperatures, TemperatureUnit.SolarTemperature); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Temperature unit value. - public static Temperature From(double value, TemperatureUnit fromUnit) - { - return new Temperature(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(TemperatureUnit unit) => GetValueAs(unit); - - /// - /// Converts this Temperature to another Temperature with the unit representation . - /// - /// A Temperature with the specified unit. - public Temperature ToUnit(TemperatureUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Temperature(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - TemperatureUnit.DegreeCelsius => _value + 273.15, - TemperatureUnit.DegreeDelisle => _value * -2 / 3 + 373.15, - TemperatureUnit.DegreeFahrenheit => _value * 5 / 9 + 459.67 * 5 / 9, - TemperatureUnit.DegreeNewton => _value * 100 / 33 + 273.15, - TemperatureUnit.DegreeRankine => _value * 5 / 9, - TemperatureUnit.DegreeReaumur => _value * 5 / 4 + 273.15, - TemperatureUnit.DegreeRoemer => _value * 40 / 21 + 273.15 - 7.5 * 40d / 21, - TemperatureUnit.Kelvin => _value, - TemperatureUnit.MillidegreeCelsius => _value / 1000 + 273.15, - TemperatureUnit.SolarTemperature => _value * 5778, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(TemperatureUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - TemperatureUnit.DegreeCelsius => baseUnitValue - 273.15, - TemperatureUnit.DegreeDelisle => (baseUnitValue - 373.15) * -3 / 2, - TemperatureUnit.DegreeFahrenheit => (baseUnitValue - 459.67 * 5 / 9) * 9 / 5, - TemperatureUnit.DegreeNewton => (baseUnitValue - 273.15) * 33 / 100, - TemperatureUnit.DegreeRankine => baseUnitValue * 9 / 5, - TemperatureUnit.DegreeReaumur => (baseUnitValue - 273.15) * 4 / 5, - TemperatureUnit.DegreeRoemer => (baseUnitValue - (273.15 - 7.5 * 40d / 21)) * 21 / 40, - TemperatureUnit.Kelvin => baseUnitValue, - TemperatureUnit.MillidegreeCelsius => (baseUnitValue - 273.15) * 1000, - TemperatureUnit.SolarTemperature => baseUnitValue / 5778, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureChangeRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureChangeRate.g.cs deleted file mode 100644 index c2604b1c46..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureChangeRate.g.cs +++ /dev/null @@ -1,349 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Temperature change rate is the ratio of the temperature change to the time during which the change occurred (value of temperature changes per unit time). - /// - public struct TemperatureChangeRate - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly TemperatureChangeRateUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public TemperatureChangeRateUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public TemperatureChangeRate(double value, TemperatureChangeRateUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of TemperatureChangeRate, which is Second. All conversions go via this value. - /// - public static TemperatureChangeRateUnit BaseUnit { get; } = TemperatureChangeRateUnit.DegreeCelsiusPerSecond; - - /// - /// Represents the largest possible value of TemperatureChangeRate. - /// - public static TemperatureChangeRate MaxValue { get; } = new TemperatureChangeRate(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of TemperatureChangeRate. - /// - public static TemperatureChangeRate MinValue { get; } = new TemperatureChangeRate(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static TemperatureChangeRate Zero { get; } = new TemperatureChangeRate(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentidegreesCelsiusPerSecond => As(TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecadegreesCelsiusPerSecond => As(TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecidegreesCelsiusPerSecond => As(TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesCelsiusPerHour => As(TemperatureChangeRateUnit.DegreeCelsiusPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesCelsiusPerMinute => As(TemperatureChangeRateUnit.DegreeCelsiusPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesCelsiusPerSecond => As(TemperatureChangeRateUnit.DegreeCelsiusPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesFahrenheitPerHour => As(TemperatureChangeRateUnit.DegreeFahrenheitPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesFahrenheitPerMinute => As(TemperatureChangeRateUnit.DegreeFahrenheitPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesFahrenheitPerSecond => As(TemperatureChangeRateUnit.DegreeFahrenheitPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesKelvinPerHour => As(TemperatureChangeRateUnit.DegreeKelvinPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesKelvinPerMinute => As(TemperatureChangeRateUnit.DegreeKelvinPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesKelvinPerSecond => As(TemperatureChangeRateUnit.DegreeKelvinPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double HectodegreesCelsiusPerSecond => As(TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilodegreesCelsiusPerSecond => As(TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrodegreesCelsiusPerSecond => As(TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillidegreesCelsiusPerSecond => As(TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double NanodegreesCelsiusPerSecond => As(TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromCentidegreesCelsiusPerSecond(double centidegreescelsiuspersecond) => new TemperatureChangeRate(centidegreescelsiuspersecond, TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDecadegreesCelsiusPerSecond(double decadegreescelsiuspersecond) => new TemperatureChangeRate(decadegreescelsiuspersecond, TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDecidegreesCelsiusPerSecond(double decidegreescelsiuspersecond) => new TemperatureChangeRate(decidegreescelsiuspersecond, TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDegreesCelsiusPerHour(double degreescelsiusperhour) => new TemperatureChangeRate(degreescelsiusperhour, TemperatureChangeRateUnit.DegreeCelsiusPerHour); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDegreesCelsiusPerMinute(double degreescelsiusperminute) => new TemperatureChangeRate(degreescelsiusperminute, TemperatureChangeRateUnit.DegreeCelsiusPerMinute); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDegreesCelsiusPerSecond(double degreescelsiuspersecond) => new TemperatureChangeRate(degreescelsiuspersecond, TemperatureChangeRateUnit.DegreeCelsiusPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDegreesFahrenheitPerHour(double degreesfahrenheitperhour) => new TemperatureChangeRate(degreesfahrenheitperhour, TemperatureChangeRateUnit.DegreeFahrenheitPerHour); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDegreesFahrenheitPerMinute(double degreesfahrenheitperminute) => new TemperatureChangeRate(degreesfahrenheitperminute, TemperatureChangeRateUnit.DegreeFahrenheitPerMinute); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDegreesFahrenheitPerSecond(double degreesfahrenheitpersecond) => new TemperatureChangeRate(degreesfahrenheitpersecond, TemperatureChangeRateUnit.DegreeFahrenheitPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDegreesKelvinPerHour(double degreeskelvinperhour) => new TemperatureChangeRate(degreeskelvinperhour, TemperatureChangeRateUnit.DegreeKelvinPerHour); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDegreesKelvinPerMinute(double degreeskelvinperminute) => new TemperatureChangeRate(degreeskelvinperminute, TemperatureChangeRateUnit.DegreeKelvinPerMinute); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromDegreesKelvinPerSecond(double degreeskelvinpersecond) => new TemperatureChangeRate(degreeskelvinpersecond, TemperatureChangeRateUnit.DegreeKelvinPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromHectodegreesCelsiusPerSecond(double hectodegreescelsiuspersecond) => new TemperatureChangeRate(hectodegreescelsiuspersecond, TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromKilodegreesCelsiusPerSecond(double kilodegreescelsiuspersecond) => new TemperatureChangeRate(kilodegreescelsiuspersecond, TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromMicrodegreesCelsiusPerSecond(double microdegreescelsiuspersecond) => new TemperatureChangeRate(microdegreescelsiuspersecond, TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromMillidegreesCelsiusPerSecond(double millidegreescelsiuspersecond) => new TemperatureChangeRate(millidegreescelsiuspersecond, TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond); - - /// - /// Creates a from . - /// - public static TemperatureChangeRate FromNanodegreesCelsiusPerSecond(double nanodegreescelsiuspersecond) => new TemperatureChangeRate(nanodegreescelsiuspersecond, TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// TemperatureChangeRate unit value. - public static TemperatureChangeRate From(double value, TemperatureChangeRateUnit fromUnit) - { - return new TemperatureChangeRate(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(TemperatureChangeRateUnit unit) => GetValueAs(unit); - - /// - /// Converts this TemperatureChangeRate to another TemperatureChangeRate with the unit representation . - /// - /// A TemperatureChangeRate with the specified unit. - public TemperatureChangeRate ToUnit(TemperatureChangeRateUnit unit) - { - var convertedValue = GetValueAs(unit); - return new TemperatureChangeRate(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond => (_value) * 1e-2d, - TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond => (_value) * 1e1d, - TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond => (_value) * 1e-1d, - TemperatureChangeRateUnit.DegreeCelsiusPerHour => _value / 3600, - TemperatureChangeRateUnit.DegreeCelsiusPerMinute => _value / 60, - TemperatureChangeRateUnit.DegreeCelsiusPerSecond => _value, - TemperatureChangeRateUnit.DegreeFahrenheitPerHour => _value * 5 / 9 / 3600, - TemperatureChangeRateUnit.DegreeFahrenheitPerMinute => _value * 5 / 9 / 60, - TemperatureChangeRateUnit.DegreeFahrenheitPerSecond => _value * 5 / 9, - TemperatureChangeRateUnit.DegreeKelvinPerHour => _value / 3600, - TemperatureChangeRateUnit.DegreeKelvinPerMinute => _value / 60, - TemperatureChangeRateUnit.DegreeKelvinPerSecond => _value, - TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond => (_value) * 1e2d, - TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond => (_value) * 1e3d, - TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond => (_value) * 1e-6d, - TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond => (_value) * 1e-3d, - TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond => (_value) * 1e-9d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(TemperatureChangeRateUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond => (baseUnitValue) / 1e-2d, - TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond => (baseUnitValue) / 1e1d, - TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond => (baseUnitValue) / 1e-1d, - TemperatureChangeRateUnit.DegreeCelsiusPerHour => baseUnitValue * 3600, - TemperatureChangeRateUnit.DegreeCelsiusPerMinute => baseUnitValue * 60, - TemperatureChangeRateUnit.DegreeCelsiusPerSecond => baseUnitValue, - TemperatureChangeRateUnit.DegreeFahrenheitPerHour => baseUnitValue * 9 / 5 * 3600, - TemperatureChangeRateUnit.DegreeFahrenheitPerMinute => baseUnitValue * 9 / 5 * 60, - TemperatureChangeRateUnit.DegreeFahrenheitPerSecond => baseUnitValue * 9 / 5, - TemperatureChangeRateUnit.DegreeKelvinPerHour => baseUnitValue * 3600, - TemperatureChangeRateUnit.DegreeKelvinPerMinute => baseUnitValue * 60, - TemperatureChangeRateUnit.DegreeKelvinPerSecond => baseUnitValue, - TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond => (baseUnitValue) / 1e2d, - TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond => (baseUnitValue) / 1e3d, - TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond => (baseUnitValue) / 1e-6d, - TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond => (baseUnitValue) / 1e-3d, - TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond => (baseUnitValue) / 1e-9d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureDelta.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureDelta.g.cs deleted file mode 100644 index d167f59008..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureDelta.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Difference between two temperatures. The conversions are different than for Temperature. - /// - public struct TemperatureDelta - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly TemperatureDeltaUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public TemperatureDeltaUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public TemperatureDelta(double value, TemperatureDeltaUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of TemperatureDelta, which is Second. All conversions go via this value. - /// - public static TemperatureDeltaUnit BaseUnit { get; } = TemperatureDeltaUnit.Kelvin; - - /// - /// Represents the largest possible value of TemperatureDelta. - /// - public static TemperatureDelta MaxValue { get; } = new TemperatureDelta(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of TemperatureDelta. - /// - public static TemperatureDelta MinValue { get; } = new TemperatureDelta(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static TemperatureDelta Zero { get; } = new TemperatureDelta(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesCelsius => As(TemperatureDeltaUnit.DegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesDelisle => As(TemperatureDeltaUnit.DegreeDelisle); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesFahrenheit => As(TemperatureDeltaUnit.DegreeFahrenheit); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesNewton => As(TemperatureDeltaUnit.DegreeNewton); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesRankine => As(TemperatureDeltaUnit.DegreeRankine); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesReaumur => As(TemperatureDeltaUnit.DegreeReaumur); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesRoemer => As(TemperatureDeltaUnit.DegreeRoemer); - - /// - /// Gets a value of this quantity converted into - /// - public double Kelvins => As(TemperatureDeltaUnit.Kelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double MillidegreesCelsius => As(TemperatureDeltaUnit.MillidegreeCelsius); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static TemperatureDelta FromDegreesCelsius(double degreescelsius) => new TemperatureDelta(degreescelsius, TemperatureDeltaUnit.DegreeCelsius); - - /// - /// Creates a from . - /// - public static TemperatureDelta FromDegreesDelisle(double degreesdelisle) => new TemperatureDelta(degreesdelisle, TemperatureDeltaUnit.DegreeDelisle); - - /// - /// Creates a from . - /// - public static TemperatureDelta FromDegreesFahrenheit(double degreesfahrenheit) => new TemperatureDelta(degreesfahrenheit, TemperatureDeltaUnit.DegreeFahrenheit); - - /// - /// Creates a from . - /// - public static TemperatureDelta FromDegreesNewton(double degreesnewton) => new TemperatureDelta(degreesnewton, TemperatureDeltaUnit.DegreeNewton); - - /// - /// Creates a from . - /// - public static TemperatureDelta FromDegreesRankine(double degreesrankine) => new TemperatureDelta(degreesrankine, TemperatureDeltaUnit.DegreeRankine); - - /// - /// Creates a from . - /// - public static TemperatureDelta FromDegreesReaumur(double degreesreaumur) => new TemperatureDelta(degreesreaumur, TemperatureDeltaUnit.DegreeReaumur); - - /// - /// Creates a from . - /// - public static TemperatureDelta FromDegreesRoemer(double degreesroemer) => new TemperatureDelta(degreesroemer, TemperatureDeltaUnit.DegreeRoemer); - - /// - /// Creates a from . - /// - public static TemperatureDelta FromKelvins(double kelvins) => new TemperatureDelta(kelvins, TemperatureDeltaUnit.Kelvin); - - /// - /// Creates a from . - /// - public static TemperatureDelta FromMillidegreesCelsius(double millidegreescelsius) => new TemperatureDelta(millidegreescelsius, TemperatureDeltaUnit.MillidegreeCelsius); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// TemperatureDelta unit value. - public static TemperatureDelta From(double value, TemperatureDeltaUnit fromUnit) - { - return new TemperatureDelta(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(TemperatureDeltaUnit unit) => GetValueAs(unit); - - /// - /// Converts this TemperatureDelta to another TemperatureDelta with the unit representation . - /// - /// A TemperatureDelta with the specified unit. - public TemperatureDelta ToUnit(TemperatureDeltaUnit unit) - { - var convertedValue = GetValueAs(unit); - return new TemperatureDelta(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - TemperatureDeltaUnit.DegreeCelsius => _value, - TemperatureDeltaUnit.DegreeDelisle => _value * -2 / 3, - TemperatureDeltaUnit.DegreeFahrenheit => _value * 5 / 9, - TemperatureDeltaUnit.DegreeNewton => _value * 100 / 33, - TemperatureDeltaUnit.DegreeRankine => _value * 5 / 9, - TemperatureDeltaUnit.DegreeReaumur => _value * 5 / 4, - TemperatureDeltaUnit.DegreeRoemer => _value * 40 / 21, - TemperatureDeltaUnit.Kelvin => _value, - TemperatureDeltaUnit.MillidegreeCelsius => (_value) * 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(TemperatureDeltaUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - TemperatureDeltaUnit.DegreeCelsius => baseUnitValue, - TemperatureDeltaUnit.DegreeDelisle => baseUnitValue * -3 / 2, - TemperatureDeltaUnit.DegreeFahrenheit => baseUnitValue * 9 / 5, - TemperatureDeltaUnit.DegreeNewton => baseUnitValue * 33 / 100, - TemperatureDeltaUnit.DegreeRankine => baseUnitValue * 9 / 5, - TemperatureDeltaUnit.DegreeReaumur => baseUnitValue * 4 / 5, - TemperatureDeltaUnit.DegreeRoemer => baseUnitValue * 21 / 40, - TemperatureDeltaUnit.Kelvin => baseUnitValue, - TemperatureDeltaUnit.MillidegreeCelsius => (baseUnitValue) / 1e-3d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureGradient.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureGradient.g.cs deleted file mode 100644 index 9af36c2657..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/TemperatureGradient.g.cs +++ /dev/null @@ -1,193 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// - /// - public struct TemperatureGradient - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly TemperatureGradientUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public TemperatureGradientUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public TemperatureGradient(double value, TemperatureGradientUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of TemperatureGradient, which is Second. All conversions go via this value. - /// - public static TemperatureGradientUnit BaseUnit { get; } = TemperatureGradientUnit.KelvinPerMeter; - - /// - /// Represents the largest possible value of TemperatureGradient. - /// - public static TemperatureGradient MaxValue { get; } = new TemperatureGradient(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of TemperatureGradient. - /// - public static TemperatureGradient MinValue { get; } = new TemperatureGradient(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static TemperatureGradient Zero { get; } = new TemperatureGradient(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesCelsiusPerKilometer => As(TemperatureGradientUnit.DegreeCelsiusPerKilometer); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesCelsiusPerMeter => As(TemperatureGradientUnit.DegreeCelsiusPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesFahrenheitPerFoot => As(TemperatureGradientUnit.DegreeFahrenheitPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KelvinsPerMeter => As(TemperatureGradientUnit.KelvinPerMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static TemperatureGradient FromDegreesCelsiusPerKilometer(double degreescelsiusperkilometer) => new TemperatureGradient(degreescelsiusperkilometer, TemperatureGradientUnit.DegreeCelsiusPerKilometer); - - /// - /// Creates a from . - /// - public static TemperatureGradient FromDegreesCelsiusPerMeter(double degreescelsiuspermeter) => new TemperatureGradient(degreescelsiuspermeter, TemperatureGradientUnit.DegreeCelsiusPerMeter); - - /// - /// Creates a from . - /// - public static TemperatureGradient FromDegreesFahrenheitPerFoot(double degreesfahrenheitperfoot) => new TemperatureGradient(degreesfahrenheitperfoot, TemperatureGradientUnit.DegreeFahrenheitPerFoot); - - /// - /// Creates a from . - /// - public static TemperatureGradient FromKelvinsPerMeter(double kelvinspermeter) => new TemperatureGradient(kelvinspermeter, TemperatureGradientUnit.KelvinPerMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// TemperatureGradient unit value. - public static TemperatureGradient From(double value, TemperatureGradientUnit fromUnit) - { - return new TemperatureGradient(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(TemperatureGradientUnit unit) => GetValueAs(unit); - - /// - /// Converts this TemperatureGradient to another TemperatureGradient with the unit representation . - /// - /// A TemperatureGradient with the specified unit. - public TemperatureGradient ToUnit(TemperatureGradientUnit unit) - { - var convertedValue = GetValueAs(unit); - return new TemperatureGradient(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - TemperatureGradientUnit.DegreeCelsiusPerKilometer => _value / 1e3, - TemperatureGradientUnit.DegreeCelsiusPerMeter => _value, - TemperatureGradientUnit.DegreeFahrenheitPerFoot => (_value / 0.3048) * 5 / 9, - TemperatureGradientUnit.KelvinPerMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(TemperatureGradientUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - TemperatureGradientUnit.DegreeCelsiusPerKilometer => baseUnitValue * 1e3, - TemperatureGradientUnit.DegreeCelsiusPerMeter => baseUnitValue, - TemperatureGradientUnit.DegreeFahrenheitPerFoot => (baseUnitValue * 0.3048) * 9 / 5, - TemperatureGradientUnit.KelvinPerMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs deleted file mode 100644 index 8e5e367335..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs +++ /dev/null @@ -1,172 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Thermal conductivity is the property of a material to conduct heat. - /// - /// - /// https://en.wikipedia.org/wiki/Thermal_Conductivity - /// - public struct ThermalConductivity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ThermalConductivityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ThermalConductivityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ThermalConductivity(double value, ThermalConductivityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ThermalConductivity, which is Second. All conversions go via this value. - /// - public static ThermalConductivityUnit BaseUnit { get; } = ThermalConductivityUnit.WattPerMeterKelvin; - - /// - /// Represents the largest possible value of ThermalConductivity. - /// - public static ThermalConductivity MaxValue { get; } = new ThermalConductivity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ThermalConductivity. - /// - public static ThermalConductivity MinValue { get; } = new ThermalConductivity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ThermalConductivity Zero { get; } = new ThermalConductivity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BtusPerHourFootFahrenheit => As(ThermalConductivityUnit.BtuPerHourFootFahrenheit); - - /// - /// Gets a value of this quantity converted into - /// - public double WattsPerMeterKelvin => As(ThermalConductivityUnit.WattPerMeterKelvin); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ThermalConductivity FromBtusPerHourFootFahrenheit(double btusperhourfootfahrenheit) => new ThermalConductivity(btusperhourfootfahrenheit, ThermalConductivityUnit.BtuPerHourFootFahrenheit); - - /// - /// Creates a from . - /// - public static ThermalConductivity FromWattsPerMeterKelvin(double wattspermeterkelvin) => new ThermalConductivity(wattspermeterkelvin, ThermalConductivityUnit.WattPerMeterKelvin); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ThermalConductivity unit value. - public static ThermalConductivity From(double value, ThermalConductivityUnit fromUnit) - { - return new ThermalConductivity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ThermalConductivityUnit unit) => GetValueAs(unit); - - /// - /// Converts this ThermalConductivity to another ThermalConductivity with the unit representation . - /// - /// A ThermalConductivity with the specified unit. - public ThermalConductivity ToUnit(ThermalConductivityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ThermalConductivity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ThermalConductivityUnit.BtuPerHourFootFahrenheit => _value * ((1055.05585262 / (0.3048 * 3600)) * 1.8), - ThermalConductivityUnit.WattPerMeterKelvin => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ThermalConductivityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ThermalConductivityUnit.BtuPerHourFootFahrenheit => baseUnitValue / ((1055.05585262 / (0.3048 * 3600)) * 1.8), - ThermalConductivityUnit.WattPerMeterKelvin => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalInsulance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalInsulance.g.cs deleted file mode 100644 index 90ca81b96f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalInsulance.g.cs +++ /dev/null @@ -1,229 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Thermal insulance (R-value) is a measure of a material's resistance to the heat current. It quantifies how effectively a material can resist the transfer of heat through conduction, convection, and radiation. It has the units square metre kelvins per watt (m2⋅K/W) in SI units or square foot degree Fahrenheit–hours per British thermal unit (ft2⋅°F⋅h/Btu) in imperial units. The higher the thermal insulance, the better a material insulates against heat transfer. It is commonly used in construction to assess the insulation properties of materials such as walls, roofs, and insulation products. - /// - public struct ThermalInsulance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ThermalInsulanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ThermalInsulanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ThermalInsulance(double value, ThermalInsulanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ThermalInsulance, which is Second. All conversions go via this value. - /// - public static ThermalInsulanceUnit BaseUnit { get; } = ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt; - - /// - /// Represents the largest possible value of ThermalInsulance. - /// - public static ThermalInsulance MaxValue { get; } = new ThermalInsulance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ThermalInsulance. - /// - public static ThermalInsulance MinValue { get; } = new ThermalInsulance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ThermalInsulance Zero { get; } = new ThermalInsulance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double HourSquareFeetDegreesFahrenheitPerBtu => As(ThermalInsulanceUnit.HourSquareFeetDegreeFahrenheitPerBtu); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareCentimeterHourDegreesCelsiusPerKilocalorie => As(ThermalInsulanceUnit.SquareCentimeterHourDegreeCelsiusPerKilocalorie); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareCentimeterKelvinsPerWatt => As(ThermalInsulanceUnit.SquareCentimeterKelvinPerWatt); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMeterDegreesCelsiusPerWatt => As(ThermalInsulanceUnit.SquareMeterDegreeCelsiusPerWatt); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMeterKelvinsPerKilowatt => As(ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMeterKelvinsPerWatt => As(ThermalInsulanceUnit.SquareMeterKelvinPerWatt); - - /// - /// Gets a value of this quantity converted into - /// - public double SquareMillimeterKelvinsPerWatt => As(ThermalInsulanceUnit.SquareMillimeterKelvinPerWatt); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ThermalInsulance FromHourSquareFeetDegreesFahrenheitPerBtu(double hoursquarefeetdegreesfahrenheitperbtu) => new ThermalInsulance(hoursquarefeetdegreesfahrenheitperbtu, ThermalInsulanceUnit.HourSquareFeetDegreeFahrenheitPerBtu); - - /// - /// Creates a from . - /// - public static ThermalInsulance FromSquareCentimeterHourDegreesCelsiusPerKilocalorie(double squarecentimeterhourdegreescelsiusperkilocalorie) => new ThermalInsulance(squarecentimeterhourdegreescelsiusperkilocalorie, ThermalInsulanceUnit.SquareCentimeterHourDegreeCelsiusPerKilocalorie); - - /// - /// Creates a from . - /// - public static ThermalInsulance FromSquareCentimeterKelvinsPerWatt(double squarecentimeterkelvinsperwatt) => new ThermalInsulance(squarecentimeterkelvinsperwatt, ThermalInsulanceUnit.SquareCentimeterKelvinPerWatt); - - /// - /// Creates a from . - /// - public static ThermalInsulance FromSquareMeterDegreesCelsiusPerWatt(double squaremeterdegreescelsiusperwatt) => new ThermalInsulance(squaremeterdegreescelsiusperwatt, ThermalInsulanceUnit.SquareMeterDegreeCelsiusPerWatt); - - /// - /// Creates a from . - /// - public static ThermalInsulance FromSquareMeterKelvinsPerKilowatt(double squaremeterkelvinsperkilowatt) => new ThermalInsulance(squaremeterkelvinsperkilowatt, ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt); - - /// - /// Creates a from . - /// - public static ThermalInsulance FromSquareMeterKelvinsPerWatt(double squaremeterkelvinsperwatt) => new ThermalInsulance(squaremeterkelvinsperwatt, ThermalInsulanceUnit.SquareMeterKelvinPerWatt); - - /// - /// Creates a from . - /// - public static ThermalInsulance FromSquareMillimeterKelvinsPerWatt(double squaremillimeterkelvinsperwatt) => new ThermalInsulance(squaremillimeterkelvinsperwatt, ThermalInsulanceUnit.SquareMillimeterKelvinPerWatt); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ThermalInsulance unit value. - public static ThermalInsulance From(double value, ThermalInsulanceUnit fromUnit) - { - return new ThermalInsulance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ThermalInsulanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ThermalInsulance to another ThermalInsulance with the unit representation . - /// - /// A ThermalInsulance with the specified unit. - public ThermalInsulance ToUnit(ThermalInsulanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ThermalInsulance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ThermalInsulanceUnit.HourSquareFeetDegreeFahrenheitPerBtu => _value * (1000 * 0.3048 * 0.3048 * 3600) / (1055.05585262 * 1.8), - ThermalInsulanceUnit.SquareCentimeterHourDegreeCelsiusPerKilocalorie => _value * (0.0001 * 3600) / 4.184, - ThermalInsulanceUnit.SquareCentimeterKelvinPerWatt => _value * 0.1, - ThermalInsulanceUnit.SquareMeterDegreeCelsiusPerWatt => _value * 1000.0, - ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt => _value, - ThermalInsulanceUnit.SquareMeterKelvinPerWatt => _value * 1000, - ThermalInsulanceUnit.SquareMillimeterKelvinPerWatt => _value * 0.001, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ThermalInsulanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ThermalInsulanceUnit.HourSquareFeetDegreeFahrenheitPerBtu => baseUnitValue * (1055.05585262 * 1.8) / (1000 * 0.3048 * 0.3048 * 3600), - ThermalInsulanceUnit.SquareCentimeterHourDegreeCelsiusPerKilocalorie => baseUnitValue * 4.184 / (0.0001 * 3600), - ThermalInsulanceUnit.SquareCentimeterKelvinPerWatt => baseUnitValue / 0.1, - ThermalInsulanceUnit.SquareMeterDegreeCelsiusPerWatt => baseUnitValue / 1000.0, - ThermalInsulanceUnit.SquareMeterKelvinPerKilowatt => baseUnitValue, - ThermalInsulanceUnit.SquareMeterKelvinPerWatt => baseUnitValue / 1000, - ThermalInsulanceUnit.SquareMillimeterKelvinPerWatt => baseUnitValue / 0.001, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalResistance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalResistance.g.cs deleted file mode 100644 index 017f74e807..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalResistance.g.cs +++ /dev/null @@ -1,169 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Thermal resistance (R) measures the opposition to the heat current in a material or system. It is measured in units of kelvins per watt (K/W) and indicates how much temperature difference (in kelvins) is required to transfer a unit of heat current (in watts) through the material or object. It is essential to optimize the building insulation, evaluate the efficiency of electronic devices, and enhance the performance of heat sinks in various applications. - /// - public struct ThermalResistance - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly ThermalResistanceUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public ThermalResistanceUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public ThermalResistance(double value, ThermalResistanceUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of ThermalResistance, which is Second. All conversions go via this value. - /// - public static ThermalResistanceUnit BaseUnit { get; } = ThermalResistanceUnit.KelvinPerWatt; - - /// - /// Represents the largest possible value of ThermalResistance. - /// - public static ThermalResistance MaxValue { get; } = new ThermalResistance(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of ThermalResistance. - /// - public static ThermalResistance MinValue { get; } = new ThermalResistance(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static ThermalResistance Zero { get; } = new ThermalResistance(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double DegreesCelsiusPerWatt => As(ThermalResistanceUnit.DegreeCelsiusPerWatt); - - /// - /// Gets a value of this quantity converted into - /// - public double KelvinsPerWatt => As(ThermalResistanceUnit.KelvinPerWatt); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static ThermalResistance FromDegreesCelsiusPerWatt(double degreescelsiusperwatt) => new ThermalResistance(degreescelsiusperwatt, ThermalResistanceUnit.DegreeCelsiusPerWatt); - - /// - /// Creates a from . - /// - public static ThermalResistance FromKelvinsPerWatt(double kelvinsperwatt) => new ThermalResistance(kelvinsperwatt, ThermalResistanceUnit.KelvinPerWatt); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// ThermalResistance unit value. - public static ThermalResistance From(double value, ThermalResistanceUnit fromUnit) - { - return new ThermalResistance(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(ThermalResistanceUnit unit) => GetValueAs(unit); - - /// - /// Converts this ThermalResistance to another ThermalResistance with the unit representation . - /// - /// A ThermalResistance with the specified unit. - public ThermalResistance ToUnit(ThermalResistanceUnit unit) - { - var convertedValue = GetValueAs(unit); - return new ThermalResistance(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - ThermalResistanceUnit.DegreeCelsiusPerWatt => _value, - ThermalResistanceUnit.KelvinPerWatt => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(ThermalResistanceUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - ThermalResistanceUnit.DegreeCelsiusPerWatt => baseUnitValue, - ThermalResistanceUnit.KelvinPerWatt => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Torque.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Torque.g.cs deleted file mode 100644 index 07631ceb61..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Torque.g.cs +++ /dev/null @@ -1,445 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Torque, moment or moment of force (see the terminology below), is the tendency of a force to rotate an object about an axis,[1] fulcrum, or pivot. Just as a force is a push or a pull, a torque can be thought of as a twist to an object. Mathematically, torque is defined as the cross product of the lever-arm distance and force, which tends to produce rotation. Loosely speaking, torque is a measure of the turning force on an object such as a bolt or a flywheel. For example, pushing or pulling the handle of a wrench connected to a nut or bolt produces a torque (turning force) that loosens or tightens the nut or bolt. - /// - public struct Torque - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly TorqueUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public TorqueUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Torque(double value, TorqueUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Torque, which is Second. All conversions go via this value. - /// - public static TorqueUnit BaseUnit { get; } = TorqueUnit.NewtonMeter; - - /// - /// Represents the largest possible value of Torque. - /// - public static Torque MaxValue { get; } = new Torque(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Torque. - /// - public static Torque MinValue { get; } = new Torque(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Torque Zero { get; } = new Torque(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double GramForceCentimeters => As(TorqueUnit.GramForceCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramForceMeters => As(TorqueUnit.GramForceMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double GramForceMillimeters => As(TorqueUnit.GramForceMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramForceCentimeters => As(TorqueUnit.KilogramForceCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramForceMeters => As(TorqueUnit.KilogramForceMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilogramForceMillimeters => As(TorqueUnit.KilogramForceMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonCentimeters => As(TorqueUnit.KilonewtonCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonMeters => As(TorqueUnit.KilonewtonMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilonewtonMillimeters => As(TorqueUnit.KilonewtonMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundForceFeet => As(TorqueUnit.KilopoundForceFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilopoundForceInches => As(TorqueUnit.KilopoundForceInch); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonCentimeters => As(TorqueUnit.MeganewtonCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonMeters => As(TorqueUnit.MeganewtonMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MeganewtonMillimeters => As(TorqueUnit.MeganewtonMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapoundForceFeet => As(TorqueUnit.MegapoundForceFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MegapoundForceInches => As(TorqueUnit.MegapoundForceInch); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonCentimeters => As(TorqueUnit.NewtonCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonMeters => As(TorqueUnit.NewtonMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double NewtonMillimeters => As(TorqueUnit.NewtonMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundalFeet => As(TorqueUnit.PoundalFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundForceFeet => As(TorqueUnit.PoundForceFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double PoundForceInches => As(TorqueUnit.PoundForceInch); - - /// - /// Gets a value of this quantity converted into - /// - public double TonneForceCentimeters => As(TorqueUnit.TonneForceCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonneForceMeters => As(TorqueUnit.TonneForceMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double TonneForceMillimeters => As(TorqueUnit.TonneForceMillimeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Torque FromGramForceCentimeters(double gramforcecentimeters) => new Torque(gramforcecentimeters, TorqueUnit.GramForceCentimeter); - - /// - /// Creates a from . - /// - public static Torque FromGramForceMeters(double gramforcemeters) => new Torque(gramforcemeters, TorqueUnit.GramForceMeter); - - /// - /// Creates a from . - /// - public static Torque FromGramForceMillimeters(double gramforcemillimeters) => new Torque(gramforcemillimeters, TorqueUnit.GramForceMillimeter); - - /// - /// Creates a from . - /// - public static Torque FromKilogramForceCentimeters(double kilogramforcecentimeters) => new Torque(kilogramforcecentimeters, TorqueUnit.KilogramForceCentimeter); - - /// - /// Creates a from . - /// - public static Torque FromKilogramForceMeters(double kilogramforcemeters) => new Torque(kilogramforcemeters, TorqueUnit.KilogramForceMeter); - - /// - /// Creates a from . - /// - public static Torque FromKilogramForceMillimeters(double kilogramforcemillimeters) => new Torque(kilogramforcemillimeters, TorqueUnit.KilogramForceMillimeter); - - /// - /// Creates a from . - /// - public static Torque FromKilonewtonCentimeters(double kilonewtoncentimeters) => new Torque(kilonewtoncentimeters, TorqueUnit.KilonewtonCentimeter); - - /// - /// Creates a from . - /// - public static Torque FromKilonewtonMeters(double kilonewtonmeters) => new Torque(kilonewtonmeters, TorqueUnit.KilonewtonMeter); - - /// - /// Creates a from . - /// - public static Torque FromKilonewtonMillimeters(double kilonewtonmillimeters) => new Torque(kilonewtonmillimeters, TorqueUnit.KilonewtonMillimeter); - - /// - /// Creates a from . - /// - public static Torque FromKilopoundForceFeet(double kilopoundforcefeet) => new Torque(kilopoundforcefeet, TorqueUnit.KilopoundForceFoot); - - /// - /// Creates a from . - /// - public static Torque FromKilopoundForceInches(double kilopoundforceinches) => new Torque(kilopoundforceinches, TorqueUnit.KilopoundForceInch); - - /// - /// Creates a from . - /// - public static Torque FromMeganewtonCentimeters(double meganewtoncentimeters) => new Torque(meganewtoncentimeters, TorqueUnit.MeganewtonCentimeter); - - /// - /// Creates a from . - /// - public static Torque FromMeganewtonMeters(double meganewtonmeters) => new Torque(meganewtonmeters, TorqueUnit.MeganewtonMeter); - - /// - /// Creates a from . - /// - public static Torque FromMeganewtonMillimeters(double meganewtonmillimeters) => new Torque(meganewtonmillimeters, TorqueUnit.MeganewtonMillimeter); - - /// - /// Creates a from . - /// - public static Torque FromMegapoundForceFeet(double megapoundforcefeet) => new Torque(megapoundforcefeet, TorqueUnit.MegapoundForceFoot); - - /// - /// Creates a from . - /// - public static Torque FromMegapoundForceInches(double megapoundforceinches) => new Torque(megapoundforceinches, TorqueUnit.MegapoundForceInch); - - /// - /// Creates a from . - /// - public static Torque FromNewtonCentimeters(double newtoncentimeters) => new Torque(newtoncentimeters, TorqueUnit.NewtonCentimeter); - - /// - /// Creates a from . - /// - public static Torque FromNewtonMeters(double newtonmeters) => new Torque(newtonmeters, TorqueUnit.NewtonMeter); - - /// - /// Creates a from . - /// - public static Torque FromNewtonMillimeters(double newtonmillimeters) => new Torque(newtonmillimeters, TorqueUnit.NewtonMillimeter); - - /// - /// Creates a from . - /// - public static Torque FromPoundalFeet(double poundalfeet) => new Torque(poundalfeet, TorqueUnit.PoundalFoot); - - /// - /// Creates a from . - /// - public static Torque FromPoundForceFeet(double poundforcefeet) => new Torque(poundforcefeet, TorqueUnit.PoundForceFoot); - - /// - /// Creates a from . - /// - public static Torque FromPoundForceInches(double poundforceinches) => new Torque(poundforceinches, TorqueUnit.PoundForceInch); - - /// - /// Creates a from . - /// - public static Torque FromTonneForceCentimeters(double tonneforcecentimeters) => new Torque(tonneforcecentimeters, TorqueUnit.TonneForceCentimeter); - - /// - /// Creates a from . - /// - public static Torque FromTonneForceMeters(double tonneforcemeters) => new Torque(tonneforcemeters, TorqueUnit.TonneForceMeter); - - /// - /// Creates a from . - /// - public static Torque FromTonneForceMillimeters(double tonneforcemillimeters) => new Torque(tonneforcemillimeters, TorqueUnit.TonneForceMillimeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Torque unit value. - public static Torque From(double value, TorqueUnit fromUnit) - { - return new Torque(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(TorqueUnit unit) => GetValueAs(unit); - - /// - /// Converts this Torque to another Torque with the unit representation . - /// - /// A Torque with the specified unit. - public Torque ToUnit(TorqueUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Torque(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - TorqueUnit.GramForceCentimeter => _value * 9.80665e-5, - TorqueUnit.GramForceMeter => _value * 9.80665e-3, - TorqueUnit.GramForceMillimeter => _value * 9.80665e-6, - TorqueUnit.KilogramForceCentimeter => _value * 9.80665e-2, - TorqueUnit.KilogramForceMeter => _value * 9.80665, - TorqueUnit.KilogramForceMillimeter => _value * 9.80665e-3, - TorqueUnit.KilonewtonCentimeter => (_value * 0.01) * 1e3d, - TorqueUnit.KilonewtonMeter => (_value) * 1e3d, - TorqueUnit.KilonewtonMillimeter => (_value * 0.001) * 1e3d, - TorqueUnit.KilopoundForceFoot => (_value * 4.4482216152605 * 0.3048) * 1e3d, - TorqueUnit.KilopoundForceInch => (_value * 4.4482216152605 * 2.54e-2) * 1e3d, - TorqueUnit.MeganewtonCentimeter => (_value * 0.01) * 1e6d, - TorqueUnit.MeganewtonMeter => (_value) * 1e6d, - TorqueUnit.MeganewtonMillimeter => (_value * 0.001) * 1e6d, - TorqueUnit.MegapoundForceFoot => (_value * 4.4482216152605 * 0.3048) * 1e6d, - TorqueUnit.MegapoundForceInch => (_value * 4.4482216152605 * 2.54e-2) * 1e6d, - TorqueUnit.NewtonCentimeter => _value * 0.01, - TorqueUnit.NewtonMeter => _value, - TorqueUnit.NewtonMillimeter => _value * 0.001, - TorqueUnit.PoundalFoot => _value * 0.138254954376 * 0.3048, - TorqueUnit.PoundForceFoot => _value * 4.4482216152605 * 0.3048, - TorqueUnit.PoundForceInch => _value * 4.4482216152605 * 2.54e-2, - TorqueUnit.TonneForceCentimeter => _value * 9.80665e1, - TorqueUnit.TonneForceMeter => _value * 9.80665e3, - TorqueUnit.TonneForceMillimeter => _value * 9.80665, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(TorqueUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - TorqueUnit.GramForceCentimeter => baseUnitValue / 9.80665e-5, - TorqueUnit.GramForceMeter => baseUnitValue / 9.80665e-3, - TorqueUnit.GramForceMillimeter => baseUnitValue / 9.80665e-6, - TorqueUnit.KilogramForceCentimeter => baseUnitValue / 9.80665e-2, - TorqueUnit.KilogramForceMeter => baseUnitValue / 9.80665, - TorqueUnit.KilogramForceMillimeter => baseUnitValue / 9.80665e-3, - TorqueUnit.KilonewtonCentimeter => (baseUnitValue * 100) / 1e3d, - TorqueUnit.KilonewtonMeter => (baseUnitValue) / 1e3d, - TorqueUnit.KilonewtonMillimeter => (baseUnitValue * 1000) / 1e3d, - TorqueUnit.KilopoundForceFoot => (baseUnitValue / (4.4482216152605 * 0.3048)) / 1e3d, - TorqueUnit.KilopoundForceInch => (baseUnitValue / (4.4482216152605 * 2.54e-2)) / 1e3d, - TorqueUnit.MeganewtonCentimeter => (baseUnitValue * 100) / 1e6d, - TorqueUnit.MeganewtonMeter => (baseUnitValue) / 1e6d, - TorqueUnit.MeganewtonMillimeter => (baseUnitValue * 1000) / 1e6d, - TorqueUnit.MegapoundForceFoot => (baseUnitValue / (4.4482216152605 * 0.3048)) / 1e6d, - TorqueUnit.MegapoundForceInch => (baseUnitValue / (4.4482216152605 * 2.54e-2)) / 1e6d, - TorqueUnit.NewtonCentimeter => baseUnitValue * 100, - TorqueUnit.NewtonMeter => baseUnitValue, - TorqueUnit.NewtonMillimeter => baseUnitValue * 1000, - TorqueUnit.PoundalFoot => baseUnitValue / (0.138254954376 * 0.3048), - TorqueUnit.PoundForceFoot => baseUnitValue / (4.4482216152605 * 0.3048), - TorqueUnit.PoundForceInch => baseUnitValue / (4.4482216152605 * 2.54e-2), - TorqueUnit.TonneForceCentimeter => baseUnitValue / 9.80665e1, - TorqueUnit.TonneForceMeter => baseUnitValue / 9.80665e3, - TorqueUnit.TonneForceMillimeter => baseUnitValue / 9.80665, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Turbidity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Turbidity.g.cs deleted file mode 100644 index 3eef53cc6c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Turbidity.g.cs +++ /dev/null @@ -1,160 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Turbidity is the cloudiness or haziness of a fluid caused by large numbers of individual particles that are generally invisible to the naked eye, similar to smoke in air. The measurement of turbidity is a key test of water quality. - /// - /// - /// https://en.wikipedia.org/wiki/Turbidity - /// - public struct Turbidity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly TurbidityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public TurbidityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Turbidity(double value, TurbidityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Turbidity, which is Second. All conversions go via this value. - /// - public static TurbidityUnit BaseUnit { get; } = TurbidityUnit.NTU; - - /// - /// Represents the largest possible value of Turbidity. - /// - public static Turbidity MaxValue { get; } = new Turbidity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Turbidity. - /// - public static Turbidity MinValue { get; } = new Turbidity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Turbidity Zero { get; } = new Turbidity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double NTU => As(TurbidityUnit.NTU); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Turbidity FromNTU(double ntu) => new Turbidity(ntu, TurbidityUnit.NTU); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Turbidity unit value. - public static Turbidity From(double value, TurbidityUnit fromUnit) - { - return new Turbidity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(TurbidityUnit unit) => GetValueAs(unit); - - /// - /// Converts this Turbidity to another Turbidity with the unit representation . - /// - /// A Turbidity with the specified unit. - public Turbidity ToUnit(TurbidityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Turbidity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - TurbidityUnit.NTU => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(TurbidityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - TurbidityUnit.NTU => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VitaminA.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VitaminA.g.cs deleted file mode 100644 index 3c742f9119..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VitaminA.g.cs +++ /dev/null @@ -1,157 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Vitamin A: 1 IU is the biological equivalent of 0.3 µg retinol, or of 0.6 µg beta-carotene. - /// - public struct VitaminA - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly VitaminAUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public VitaminAUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public VitaminA(double value, VitaminAUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of VitaminA, which is Second. All conversions go via this value. - /// - public static VitaminAUnit BaseUnit { get; } = VitaminAUnit.InternationalUnit; - - /// - /// Represents the largest possible value of VitaminA. - /// - public static VitaminA MaxValue { get; } = new VitaminA(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of VitaminA. - /// - public static VitaminA MinValue { get; } = new VitaminA(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static VitaminA Zero { get; } = new VitaminA(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double InternationalUnits => As(VitaminAUnit.InternationalUnit); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static VitaminA FromInternationalUnits(double internationalunits) => new VitaminA(internationalunits, VitaminAUnit.InternationalUnit); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// VitaminA unit value. - public static VitaminA From(double value, VitaminAUnit fromUnit) - { - return new VitaminA(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(VitaminAUnit unit) => GetValueAs(unit); - - /// - /// Converts this VitaminA to another VitaminA with the unit representation . - /// - /// A VitaminA with the specified unit. - public VitaminA ToUnit(VitaminAUnit unit) - { - var convertedValue = GetValueAs(unit); - return new VitaminA(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - VitaminAUnit.InternationalUnit => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(VitaminAUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - VitaminAUnit.InternationalUnit => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Volume.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Volume.g.cs deleted file mode 100644 index 11217d2cf9..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Volume.g.cs +++ /dev/null @@ -1,805 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Volume is the quantity of three-dimensional space enclosed by some closed boundary, for example, the space that a substance (solid, liquid, gas, or plasma) or shape occupies or contains.[1] Volume is often quantified numerically using the SI derived unit, the cubic metre. The volume of a container is generally understood to be the capacity of the container, i. e. the amount of fluid (gas or liquid) that the container could hold, rather than the amount of space the container itself displaces. - /// - public struct Volume - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly VolumeUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public VolumeUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public Volume(double value, VolumeUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of Volume, which is Second. All conversions go via this value. - /// - public static VolumeUnit BaseUnit { get; } = VolumeUnit.CubicMeter; - - /// - /// Represents the largest possible value of Volume. - /// - public static Volume MaxValue { get; } = new Volume(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of Volume. - /// - public static Volume MinValue { get; } = new Volume(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static Volume Zero { get; } = new Volume(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double AcreFeet => As(VolumeUnit.AcreFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double AuTablespoons => As(VolumeUnit.AuTablespoon); - - /// - /// Gets a value of this quantity converted into - /// - public double BoardFeet => As(VolumeUnit.BoardFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double Centiliters => As(VolumeUnit.Centiliter); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicCentimeters => As(VolumeUnit.CubicCentimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicDecimeters => As(VolumeUnit.CubicDecimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicFeet => As(VolumeUnit.CubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicHectometers => As(VolumeUnit.CubicHectometer); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicInches => As(VolumeUnit.CubicInch); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicKilometers => As(VolumeUnit.CubicKilometer); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMeters => As(VolumeUnit.CubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMicrometers => As(VolumeUnit.CubicMicrometer); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMiles => As(VolumeUnit.CubicMile); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMillimeters => As(VolumeUnit.CubicMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicYards => As(VolumeUnit.CubicYard); - - /// - /// Gets a value of this quantity converted into - /// - public double Decaliters => As(VolumeUnit.Decaliter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecausGallons => As(VolumeUnit.DecausGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double Deciliters => As(VolumeUnit.Deciliter); - - /// - /// Gets a value of this quantity converted into - /// - public double DeciusGallons => As(VolumeUnit.DeciusGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double HectocubicFeet => As(VolumeUnit.HectocubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double HectocubicMeters => As(VolumeUnit.HectocubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double Hectoliters => As(VolumeUnit.Hectoliter); - - /// - /// Gets a value of this quantity converted into - /// - public double HectousGallons => As(VolumeUnit.HectousGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double ImperialBeerBarrels => As(VolumeUnit.ImperialBeerBarrel); - - /// - /// Gets a value of this quantity converted into - /// - public double ImperialGallons => As(VolumeUnit.ImperialGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double ImperialOunces => As(VolumeUnit.ImperialOunce); - - /// - /// Gets a value of this quantity converted into - /// - public double ImperialPints => As(VolumeUnit.ImperialPint); - - /// - /// Gets a value of this quantity converted into - /// - public double ImperialQuarts => As(VolumeUnit.ImperialQuart); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocubicFeet => As(VolumeUnit.KilocubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocubicMeters => As(VolumeUnit.KilocubicMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double KiloimperialGallons => As(VolumeUnit.KiloimperialGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double Kiloliters => As(VolumeUnit.Kiloliter); - - /// - /// Gets a value of this quantity converted into - /// - public double KilousGallons => As(VolumeUnit.KilousGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double Liters => As(VolumeUnit.Liter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegacubicFeet => As(VolumeUnit.MegacubicFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double MegaimperialGallons => As(VolumeUnit.MegaimperialGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double Megaliters => As(VolumeUnit.Megaliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MegausGallons => As(VolumeUnit.MegausGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double MetricCups => As(VolumeUnit.MetricCup); - - /// - /// Gets a value of this quantity converted into - /// - public double MetricTablespoons => As(VolumeUnit.MetricTablespoon); - - /// - /// Gets a value of this quantity converted into - /// - public double MetricTeaspoons => As(VolumeUnit.MetricTeaspoon); - - /// - /// Gets a value of this quantity converted into - /// - public double Microliters => As(VolumeUnit.Microliter); - - /// - /// Gets a value of this quantity converted into - /// - public double Milliliters => As(VolumeUnit.Milliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double Nanoliters => As(VolumeUnit.Nanoliter); - - /// - /// Gets a value of this quantity converted into - /// - public double OilBarrels => As(VolumeUnit.OilBarrel); - - /// - /// Gets a value of this quantity converted into - /// - public double UkTablespoons => As(VolumeUnit.UkTablespoon); - - /// - /// Gets a value of this quantity converted into - /// - public double UsBeerBarrels => As(VolumeUnit.UsBeerBarrel); - - /// - /// Gets a value of this quantity converted into - /// - public double UsCustomaryCups => As(VolumeUnit.UsCustomaryCup); - - /// - /// Gets a value of this quantity converted into - /// - public double UsGallons => As(VolumeUnit.UsGallon); - - /// - /// Gets a value of this quantity converted into - /// - public double UsLegalCups => As(VolumeUnit.UsLegalCup); - - /// - /// Gets a value of this quantity converted into - /// - public double UsOunces => As(VolumeUnit.UsOunce); - - /// - /// Gets a value of this quantity converted into - /// - public double UsPints => As(VolumeUnit.UsPint); - - /// - /// Gets a value of this quantity converted into - /// - public double UsQuarts => As(VolumeUnit.UsQuart); - - /// - /// Gets a value of this quantity converted into - /// - public double UsTablespoons => As(VolumeUnit.UsTablespoon); - - /// - /// Gets a value of this quantity converted into - /// - public double UsTeaspoons => As(VolumeUnit.UsTeaspoon); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static Volume FromAcreFeet(double acrefeet) => new Volume(acrefeet, VolumeUnit.AcreFoot); - - /// - /// Creates a from . - /// - public static Volume FromAuTablespoons(double autablespoons) => new Volume(autablespoons, VolumeUnit.AuTablespoon); - - /// - /// Creates a from . - /// - public static Volume FromBoardFeet(double boardfeet) => new Volume(boardfeet, VolumeUnit.BoardFoot); - - /// - /// Creates a from . - /// - public static Volume FromCentiliters(double centiliters) => new Volume(centiliters, VolumeUnit.Centiliter); - - /// - /// Creates a from . - /// - public static Volume FromCubicCentimeters(double cubiccentimeters) => new Volume(cubiccentimeters, VolumeUnit.CubicCentimeter); - - /// - /// Creates a from . - /// - public static Volume FromCubicDecimeters(double cubicdecimeters) => new Volume(cubicdecimeters, VolumeUnit.CubicDecimeter); - - /// - /// Creates a from . - /// - public static Volume FromCubicFeet(double cubicfeet) => new Volume(cubicfeet, VolumeUnit.CubicFoot); - - /// - /// Creates a from . - /// - public static Volume FromCubicHectometers(double cubichectometers) => new Volume(cubichectometers, VolumeUnit.CubicHectometer); - - /// - /// Creates a from . - /// - public static Volume FromCubicInches(double cubicinches) => new Volume(cubicinches, VolumeUnit.CubicInch); - - /// - /// Creates a from . - /// - public static Volume FromCubicKilometers(double cubickilometers) => new Volume(cubickilometers, VolumeUnit.CubicKilometer); - - /// - /// Creates a from . - /// - public static Volume FromCubicMeters(double cubicmeters) => new Volume(cubicmeters, VolumeUnit.CubicMeter); - - /// - /// Creates a from . - /// - public static Volume FromCubicMicrometers(double cubicmicrometers) => new Volume(cubicmicrometers, VolumeUnit.CubicMicrometer); - - /// - /// Creates a from . - /// - public static Volume FromCubicMiles(double cubicmiles) => new Volume(cubicmiles, VolumeUnit.CubicMile); - - /// - /// Creates a from . - /// - public static Volume FromCubicMillimeters(double cubicmillimeters) => new Volume(cubicmillimeters, VolumeUnit.CubicMillimeter); - - /// - /// Creates a from . - /// - public static Volume FromCubicYards(double cubicyards) => new Volume(cubicyards, VolumeUnit.CubicYard); - - /// - /// Creates a from . - /// - public static Volume FromDecaliters(double decaliters) => new Volume(decaliters, VolumeUnit.Decaliter); - - /// - /// Creates a from . - /// - public static Volume FromDecausGallons(double decausgallons) => new Volume(decausgallons, VolumeUnit.DecausGallon); - - /// - /// Creates a from . - /// - public static Volume FromDeciliters(double deciliters) => new Volume(deciliters, VolumeUnit.Deciliter); - - /// - /// Creates a from . - /// - public static Volume FromDeciusGallons(double deciusgallons) => new Volume(deciusgallons, VolumeUnit.DeciusGallon); - - /// - /// Creates a from . - /// - public static Volume FromHectocubicFeet(double hectocubicfeet) => new Volume(hectocubicfeet, VolumeUnit.HectocubicFoot); - - /// - /// Creates a from . - /// - public static Volume FromHectocubicMeters(double hectocubicmeters) => new Volume(hectocubicmeters, VolumeUnit.HectocubicMeter); - - /// - /// Creates a from . - /// - public static Volume FromHectoliters(double hectoliters) => new Volume(hectoliters, VolumeUnit.Hectoliter); - - /// - /// Creates a from . - /// - public static Volume FromHectousGallons(double hectousgallons) => new Volume(hectousgallons, VolumeUnit.HectousGallon); - - /// - /// Creates a from . - /// - public static Volume FromImperialBeerBarrels(double imperialbeerbarrels) => new Volume(imperialbeerbarrels, VolumeUnit.ImperialBeerBarrel); - - /// - /// Creates a from . - /// - public static Volume FromImperialGallons(double imperialgallons) => new Volume(imperialgallons, VolumeUnit.ImperialGallon); - - /// - /// Creates a from . - /// - public static Volume FromImperialOunces(double imperialounces) => new Volume(imperialounces, VolumeUnit.ImperialOunce); - - /// - /// Creates a from . - /// - public static Volume FromImperialPints(double imperialpints) => new Volume(imperialpints, VolumeUnit.ImperialPint); - - /// - /// Creates a from . - /// - public static Volume FromImperialQuarts(double imperialquarts) => new Volume(imperialquarts, VolumeUnit.ImperialQuart); - - /// - /// Creates a from . - /// - public static Volume FromKilocubicFeet(double kilocubicfeet) => new Volume(kilocubicfeet, VolumeUnit.KilocubicFoot); - - /// - /// Creates a from . - /// - public static Volume FromKilocubicMeters(double kilocubicmeters) => new Volume(kilocubicmeters, VolumeUnit.KilocubicMeter); - - /// - /// Creates a from . - /// - public static Volume FromKiloimperialGallons(double kiloimperialgallons) => new Volume(kiloimperialgallons, VolumeUnit.KiloimperialGallon); - - /// - /// Creates a from . - /// - public static Volume FromKiloliters(double kiloliters) => new Volume(kiloliters, VolumeUnit.Kiloliter); - - /// - /// Creates a from . - /// - public static Volume FromKilousGallons(double kilousgallons) => new Volume(kilousgallons, VolumeUnit.KilousGallon); - - /// - /// Creates a from . - /// - public static Volume FromLiters(double liters) => new Volume(liters, VolumeUnit.Liter); - - /// - /// Creates a from . - /// - public static Volume FromMegacubicFeet(double megacubicfeet) => new Volume(megacubicfeet, VolumeUnit.MegacubicFoot); - - /// - /// Creates a from . - /// - public static Volume FromMegaimperialGallons(double megaimperialgallons) => new Volume(megaimperialgallons, VolumeUnit.MegaimperialGallon); - - /// - /// Creates a from . - /// - public static Volume FromMegaliters(double megaliters) => new Volume(megaliters, VolumeUnit.Megaliter); - - /// - /// Creates a from . - /// - public static Volume FromMegausGallons(double megausgallons) => new Volume(megausgallons, VolumeUnit.MegausGallon); - - /// - /// Creates a from . - /// - public static Volume FromMetricCups(double metriccups) => new Volume(metriccups, VolumeUnit.MetricCup); - - /// - /// Creates a from . - /// - public static Volume FromMetricTablespoons(double metrictablespoons) => new Volume(metrictablespoons, VolumeUnit.MetricTablespoon); - - /// - /// Creates a from . - /// - public static Volume FromMetricTeaspoons(double metricteaspoons) => new Volume(metricteaspoons, VolumeUnit.MetricTeaspoon); - - /// - /// Creates a from . - /// - public static Volume FromMicroliters(double microliters) => new Volume(microliters, VolumeUnit.Microliter); - - /// - /// Creates a from . - /// - public static Volume FromMilliliters(double milliliters) => new Volume(milliliters, VolumeUnit.Milliliter); - - /// - /// Creates a from . - /// - public static Volume FromNanoliters(double nanoliters) => new Volume(nanoliters, VolumeUnit.Nanoliter); - - /// - /// Creates a from . - /// - public static Volume FromOilBarrels(double oilbarrels) => new Volume(oilbarrels, VolumeUnit.OilBarrel); - - /// - /// Creates a from . - /// - public static Volume FromUkTablespoons(double uktablespoons) => new Volume(uktablespoons, VolumeUnit.UkTablespoon); - - /// - /// Creates a from . - /// - public static Volume FromUsBeerBarrels(double usbeerbarrels) => new Volume(usbeerbarrels, VolumeUnit.UsBeerBarrel); - - /// - /// Creates a from . - /// - public static Volume FromUsCustomaryCups(double uscustomarycups) => new Volume(uscustomarycups, VolumeUnit.UsCustomaryCup); - - /// - /// Creates a from . - /// - public static Volume FromUsGallons(double usgallons) => new Volume(usgallons, VolumeUnit.UsGallon); - - /// - /// Creates a from . - /// - public static Volume FromUsLegalCups(double uslegalcups) => new Volume(uslegalcups, VolumeUnit.UsLegalCup); - - /// - /// Creates a from . - /// - public static Volume FromUsOunces(double usounces) => new Volume(usounces, VolumeUnit.UsOunce); - - /// - /// Creates a from . - /// - public static Volume FromUsPints(double uspints) => new Volume(uspints, VolumeUnit.UsPint); - - /// - /// Creates a from . - /// - public static Volume FromUsQuarts(double usquarts) => new Volume(usquarts, VolumeUnit.UsQuart); - - /// - /// Creates a from . - /// - public static Volume FromUsTablespoons(double ustablespoons) => new Volume(ustablespoons, VolumeUnit.UsTablespoon); - - /// - /// Creates a from . - /// - public static Volume FromUsTeaspoons(double usteaspoons) => new Volume(usteaspoons, VolumeUnit.UsTeaspoon); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// Volume unit value. - public static Volume From(double value, VolumeUnit fromUnit) - { - return new Volume(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(VolumeUnit unit) => GetValueAs(unit); - - /// - /// Converts this Volume to another Volume with the unit representation . - /// - /// A Volume with the specified unit. - public Volume ToUnit(VolumeUnit unit) - { - var convertedValue = GetValueAs(unit); - return new Volume(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - VolumeUnit.AcreFoot => _value * 1233.48183754752, - VolumeUnit.AuTablespoon => _value * 2e-5, - VolumeUnit.BoardFoot => _value * (0.028316846592 / 12), - VolumeUnit.Centiliter => (_value / 1e3) * 1e-2d, - VolumeUnit.CubicCentimeter => _value / 1e6, - VolumeUnit.CubicDecimeter => _value / 1e3, - VolumeUnit.CubicFoot => _value * 0.028316846592, - VolumeUnit.CubicHectometer => _value * 1e6, - VolumeUnit.CubicInch => _value * 1.6387064e-5, - VolumeUnit.CubicKilometer => _value * 1e9, - VolumeUnit.CubicMeter => _value, - VolumeUnit.CubicMicrometer => _value / 1e18, - VolumeUnit.CubicMile => _value * 4.168181825440579584e9, - VolumeUnit.CubicMillimeter => _value / 1e9, - VolumeUnit.CubicYard => _value * 0.764554857984, - VolumeUnit.Decaliter => (_value / 1e3) * 1e1d, - VolumeUnit.DecausGallon => (_value * 0.003785411784) * 1e1d, - VolumeUnit.Deciliter => (_value / 1e3) * 1e-1d, - VolumeUnit.DeciusGallon => (_value * 0.003785411784) * 1e-1d, - VolumeUnit.HectocubicFoot => (_value * 0.028316846592) * 1e2d, - VolumeUnit.HectocubicMeter => (_value) * 1e2d, - VolumeUnit.Hectoliter => (_value / 1e3) * 1e2d, - VolumeUnit.HectousGallon => (_value * 0.003785411784) * 1e2d, - VolumeUnit.ImperialBeerBarrel => _value * 0.16365924, - VolumeUnit.ImperialGallon => _value * 0.00454609, - VolumeUnit.ImperialOunce => _value * 2.84130625e-5, - VolumeUnit.ImperialPint => _value * 5.6826125e-4, - VolumeUnit.ImperialQuart => _value * 1.1365225e-3, - VolumeUnit.KilocubicFoot => (_value * 0.028316846592) * 1e3d, - VolumeUnit.KilocubicMeter => (_value) * 1e3d, - VolumeUnit.KiloimperialGallon => (_value * 0.00454609) * 1e3d, - VolumeUnit.Kiloliter => (_value / 1e3) * 1e3d, - VolumeUnit.KilousGallon => (_value * 0.003785411784) * 1e3d, - VolumeUnit.Liter => _value / 1e3, - VolumeUnit.MegacubicFoot => (_value * 0.028316846592) * 1e6d, - VolumeUnit.MegaimperialGallon => (_value * 0.00454609) * 1e6d, - VolumeUnit.Megaliter => (_value / 1e3) * 1e6d, - VolumeUnit.MegausGallon => (_value * 0.003785411784) * 1e6d, - VolumeUnit.MetricCup => _value * 0.00025, - VolumeUnit.MetricTablespoon => _value * 1.5e-5, - VolumeUnit.MetricTeaspoon => _value * 0.5e-5, - VolumeUnit.Microliter => (_value / 1e3) * 1e-6d, - VolumeUnit.Milliliter => (_value / 1e3) * 1e-3d, - VolumeUnit.Nanoliter => (_value / 1e3) * 1e-9d, - VolumeUnit.OilBarrel => _value * 0.158987294928, - VolumeUnit.UkTablespoon => _value * 1.5e-5, - VolumeUnit.UsBeerBarrel => _value * 0.117347765304, - VolumeUnit.UsCustomaryCup => _value * 0.0002365882365, - VolumeUnit.UsGallon => _value * 0.003785411784, - VolumeUnit.UsLegalCup => _value * 0.00024, - VolumeUnit.UsOunce => _value * 2.95735295625e-5, - VolumeUnit.UsPint => _value * 4.73176473e-4, - VolumeUnit.UsQuart => _value * 9.46352946e-4, - VolumeUnit.UsTablespoon => _value * 1.478676478125e-5, - VolumeUnit.UsTeaspoon => _value * 4.92892159375e-6, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(VolumeUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - VolumeUnit.AcreFoot => baseUnitValue / 1233.48183754752, - VolumeUnit.AuTablespoon => baseUnitValue / 2e-5, - VolumeUnit.BoardFoot => baseUnitValue / (0.028316846592 / 12), - VolumeUnit.Centiliter => (baseUnitValue * 1e3) / 1e-2d, - VolumeUnit.CubicCentimeter => baseUnitValue * 1e6, - VolumeUnit.CubicDecimeter => baseUnitValue * 1e3, - VolumeUnit.CubicFoot => baseUnitValue / 0.028316846592, - VolumeUnit.CubicHectometer => baseUnitValue / 1e6, - VolumeUnit.CubicInch => baseUnitValue / 1.6387064e-5, - VolumeUnit.CubicKilometer => baseUnitValue / 1e9, - VolumeUnit.CubicMeter => baseUnitValue, - VolumeUnit.CubicMicrometer => baseUnitValue * 1e18, - VolumeUnit.CubicMile => baseUnitValue / 4.168181825440579584e9, - VolumeUnit.CubicMillimeter => baseUnitValue * 1e9, - VolumeUnit.CubicYard => baseUnitValue / 0.764554857984, - VolumeUnit.Decaliter => (baseUnitValue * 1e3) / 1e1d, - VolumeUnit.DecausGallon => (baseUnitValue / 0.003785411784) / 1e1d, - VolumeUnit.Deciliter => (baseUnitValue * 1e3) / 1e-1d, - VolumeUnit.DeciusGallon => (baseUnitValue / 0.003785411784) / 1e-1d, - VolumeUnit.HectocubicFoot => (baseUnitValue / 0.028316846592) / 1e2d, - VolumeUnit.HectocubicMeter => (baseUnitValue) / 1e2d, - VolumeUnit.Hectoliter => (baseUnitValue * 1e3) / 1e2d, - VolumeUnit.HectousGallon => (baseUnitValue / 0.003785411784) / 1e2d, - VolumeUnit.ImperialBeerBarrel => baseUnitValue / 0.16365924, - VolumeUnit.ImperialGallon => baseUnitValue / 0.00454609, - VolumeUnit.ImperialOunce => baseUnitValue / 2.84130625e-5, - VolumeUnit.ImperialPint => baseUnitValue / 5.6826125e-4, - VolumeUnit.ImperialQuart => baseUnitValue / 1.1365225e-3, - VolumeUnit.KilocubicFoot => (baseUnitValue / 0.028316846592) / 1e3d, - VolumeUnit.KilocubicMeter => (baseUnitValue) / 1e3d, - VolumeUnit.KiloimperialGallon => (baseUnitValue / 0.00454609) / 1e3d, - VolumeUnit.Kiloliter => (baseUnitValue * 1e3) / 1e3d, - VolumeUnit.KilousGallon => (baseUnitValue / 0.003785411784) / 1e3d, - VolumeUnit.Liter => baseUnitValue * 1e3, - VolumeUnit.MegacubicFoot => (baseUnitValue / 0.028316846592) / 1e6d, - VolumeUnit.MegaimperialGallon => (baseUnitValue / 0.00454609) / 1e6d, - VolumeUnit.Megaliter => (baseUnitValue * 1e3) / 1e6d, - VolumeUnit.MegausGallon => (baseUnitValue / 0.003785411784) / 1e6d, - VolumeUnit.MetricCup => baseUnitValue / 0.00025, - VolumeUnit.MetricTablespoon => baseUnitValue / 1.5e-5, - VolumeUnit.MetricTeaspoon => baseUnitValue / 0.5e-5, - VolumeUnit.Microliter => (baseUnitValue * 1e3) / 1e-6d, - VolumeUnit.Milliliter => (baseUnitValue * 1e3) / 1e-3d, - VolumeUnit.Nanoliter => (baseUnitValue * 1e3) / 1e-9d, - VolumeUnit.OilBarrel => baseUnitValue / 0.158987294928, - VolumeUnit.UkTablespoon => baseUnitValue / 1.5e-5, - VolumeUnit.UsBeerBarrel => baseUnitValue / 0.117347765304, - VolumeUnit.UsCustomaryCup => baseUnitValue / 0.0002365882365, - VolumeUnit.UsGallon => baseUnitValue / 0.003785411784, - VolumeUnit.UsLegalCup => baseUnitValue / 0.00024, - VolumeUnit.UsOunce => baseUnitValue / 2.95735295625e-5, - VolumeUnit.UsPint => baseUnitValue / 4.73176473e-4, - VolumeUnit.UsQuart => baseUnitValue / 9.46352946e-4, - VolumeUnit.UsTablespoon => baseUnitValue / 1.478676478125e-5, - VolumeUnit.UsTeaspoon => baseUnitValue / 4.92892159375e-6, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeConcentration.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeConcentration.g.cs deleted file mode 100644 index cd2516f36d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeConcentration.g.cs +++ /dev/null @@ -1,388 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The volume concentration (not to be confused with volume fraction) is defined as the volume of a constituent divided by the total volume of the mixture. - /// - /// - /// https://en.wikipedia.org/wiki/Concentration#Volume_concentration - /// - public struct VolumeConcentration - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly VolumeConcentrationUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public VolumeConcentrationUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public VolumeConcentration(double value, VolumeConcentrationUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of VolumeConcentration, which is Second. All conversions go via this value. - /// - public static VolumeConcentrationUnit BaseUnit { get; } = VolumeConcentrationUnit.DecimalFraction; - - /// - /// Represents the largest possible value of VolumeConcentration. - /// - public static VolumeConcentration MaxValue { get; } = new VolumeConcentration(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of VolumeConcentration. - /// - public static VolumeConcentration MinValue { get; } = new VolumeConcentration(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static VolumeConcentration Zero { get; } = new VolumeConcentration(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentilitersPerLiter => As(VolumeConcentrationUnit.CentiliterPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double CentilitersPerMilliliter => As(VolumeConcentrationUnit.CentiliterPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecilitersPerLiter => As(VolumeConcentrationUnit.DeciliterPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecilitersPerMilliliter => As(VolumeConcentrationUnit.DeciliterPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double DecimalFractions => As(VolumeConcentrationUnit.DecimalFraction); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPerLiter => As(VolumeConcentrationUnit.LiterPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPerMilliliter => As(VolumeConcentrationUnit.LiterPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrolitersPerLiter => As(VolumeConcentrationUnit.MicroliterPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrolitersPerMilliliter => As(VolumeConcentrationUnit.MicroliterPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillilitersPerLiter => As(VolumeConcentrationUnit.MilliliterPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double MillilitersPerMilliliter => As(VolumeConcentrationUnit.MilliliterPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanolitersPerLiter => As(VolumeConcentrationUnit.NanoliterPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double NanolitersPerMilliliter => As(VolumeConcentrationUnit.NanoliterPerMilliliter); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerBillion => As(VolumeConcentrationUnit.PartPerBillion); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerMillion => As(VolumeConcentrationUnit.PartPerMillion); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerThousand => As(VolumeConcentrationUnit.PartPerThousand); - - /// - /// Gets a value of this quantity converted into - /// - public double PartsPerTrillion => As(VolumeConcentrationUnit.PartPerTrillion); - - /// - /// Gets a value of this quantity converted into - /// - public double Percent => As(VolumeConcentrationUnit.Percent); - - /// - /// Gets a value of this quantity converted into - /// - public double PicolitersPerLiter => As(VolumeConcentrationUnit.PicoliterPerLiter); - - /// - /// Gets a value of this quantity converted into - /// - public double PicolitersPerMilliliter => As(VolumeConcentrationUnit.PicoliterPerMilliliter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static VolumeConcentration FromCentilitersPerLiter(double centilitersperliter) => new VolumeConcentration(centilitersperliter, VolumeConcentrationUnit.CentiliterPerLiter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromCentilitersPerMilliliter(double centiliterspermilliliter) => new VolumeConcentration(centiliterspermilliliter, VolumeConcentrationUnit.CentiliterPerMilliliter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromDecilitersPerLiter(double decilitersperliter) => new VolumeConcentration(decilitersperliter, VolumeConcentrationUnit.DeciliterPerLiter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromDecilitersPerMilliliter(double deciliterspermilliliter) => new VolumeConcentration(deciliterspermilliliter, VolumeConcentrationUnit.DeciliterPerMilliliter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromDecimalFractions(double decimalfractions) => new VolumeConcentration(decimalfractions, VolumeConcentrationUnit.DecimalFraction); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromLitersPerLiter(double litersperliter) => new VolumeConcentration(litersperliter, VolumeConcentrationUnit.LiterPerLiter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromLitersPerMilliliter(double literspermilliliter) => new VolumeConcentration(literspermilliliter, VolumeConcentrationUnit.LiterPerMilliliter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromMicrolitersPerLiter(double microlitersperliter) => new VolumeConcentration(microlitersperliter, VolumeConcentrationUnit.MicroliterPerLiter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromMicrolitersPerMilliliter(double microliterspermilliliter) => new VolumeConcentration(microliterspermilliliter, VolumeConcentrationUnit.MicroliterPerMilliliter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromMillilitersPerLiter(double millilitersperliter) => new VolumeConcentration(millilitersperliter, VolumeConcentrationUnit.MilliliterPerLiter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromMillilitersPerMilliliter(double milliliterspermilliliter) => new VolumeConcentration(milliliterspermilliliter, VolumeConcentrationUnit.MilliliterPerMilliliter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromNanolitersPerLiter(double nanolitersperliter) => new VolumeConcentration(nanolitersperliter, VolumeConcentrationUnit.NanoliterPerLiter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromNanolitersPerMilliliter(double nanoliterspermilliliter) => new VolumeConcentration(nanoliterspermilliliter, VolumeConcentrationUnit.NanoliterPerMilliliter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromPartsPerBillion(double partsperbillion) => new VolumeConcentration(partsperbillion, VolumeConcentrationUnit.PartPerBillion); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromPartsPerMillion(double partspermillion) => new VolumeConcentration(partspermillion, VolumeConcentrationUnit.PartPerMillion); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromPartsPerThousand(double partsperthousand) => new VolumeConcentration(partsperthousand, VolumeConcentrationUnit.PartPerThousand); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromPartsPerTrillion(double partspertrillion) => new VolumeConcentration(partspertrillion, VolumeConcentrationUnit.PartPerTrillion); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromPercent(double percent) => new VolumeConcentration(percent, VolumeConcentrationUnit.Percent); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromPicolitersPerLiter(double picolitersperliter) => new VolumeConcentration(picolitersperliter, VolumeConcentrationUnit.PicoliterPerLiter); - - /// - /// Creates a from . - /// - public static VolumeConcentration FromPicolitersPerMilliliter(double picoliterspermilliliter) => new VolumeConcentration(picoliterspermilliliter, VolumeConcentrationUnit.PicoliterPerMilliliter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// VolumeConcentration unit value. - public static VolumeConcentration From(double value, VolumeConcentrationUnit fromUnit) - { - return new VolumeConcentration(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(VolumeConcentrationUnit unit) => GetValueAs(unit); - - /// - /// Converts this VolumeConcentration to another VolumeConcentration with the unit representation . - /// - /// A VolumeConcentration with the specified unit. - public VolumeConcentration ToUnit(VolumeConcentrationUnit unit) - { - var convertedValue = GetValueAs(unit); - return new VolumeConcentration(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - VolumeConcentrationUnit.CentiliterPerLiter => (_value) * 1e-2d, - VolumeConcentrationUnit.CentiliterPerMilliliter => (_value / 1e-3) * 1e-2d, - VolumeConcentrationUnit.DeciliterPerLiter => (_value) * 1e-1d, - VolumeConcentrationUnit.DeciliterPerMilliliter => (_value / 1e-3) * 1e-1d, - VolumeConcentrationUnit.DecimalFraction => _value, - VolumeConcentrationUnit.LiterPerLiter => _value, - VolumeConcentrationUnit.LiterPerMilliliter => _value / 1e-3, - VolumeConcentrationUnit.MicroliterPerLiter => (_value) * 1e-6d, - VolumeConcentrationUnit.MicroliterPerMilliliter => (_value / 1e-3) * 1e-6d, - VolumeConcentrationUnit.MilliliterPerLiter => (_value) * 1e-3d, - VolumeConcentrationUnit.MilliliterPerMilliliter => (_value / 1e-3) * 1e-3d, - VolumeConcentrationUnit.NanoliterPerLiter => (_value) * 1e-9d, - VolumeConcentrationUnit.NanoliterPerMilliliter => (_value / 1e-3) * 1e-9d, - VolumeConcentrationUnit.PartPerBillion => _value / 1e9, - VolumeConcentrationUnit.PartPerMillion => _value / 1e6, - VolumeConcentrationUnit.PartPerThousand => _value / 1e3, - VolumeConcentrationUnit.PartPerTrillion => _value / 1e12, - VolumeConcentrationUnit.Percent => _value / 1e2, - VolumeConcentrationUnit.PicoliterPerLiter => (_value) * 1e-12d, - VolumeConcentrationUnit.PicoliterPerMilliliter => (_value / 1e-3) * 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(VolumeConcentrationUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - VolumeConcentrationUnit.CentiliterPerLiter => (baseUnitValue) / 1e-2d, - VolumeConcentrationUnit.CentiliterPerMilliliter => (baseUnitValue * 1e-3) / 1e-2d, - VolumeConcentrationUnit.DeciliterPerLiter => (baseUnitValue) / 1e-1d, - VolumeConcentrationUnit.DeciliterPerMilliliter => (baseUnitValue * 1e-3) / 1e-1d, - VolumeConcentrationUnit.DecimalFraction => baseUnitValue, - VolumeConcentrationUnit.LiterPerLiter => baseUnitValue, - VolumeConcentrationUnit.LiterPerMilliliter => baseUnitValue * 1e-3, - VolumeConcentrationUnit.MicroliterPerLiter => (baseUnitValue) / 1e-6d, - VolumeConcentrationUnit.MicroliterPerMilliliter => (baseUnitValue * 1e-3) / 1e-6d, - VolumeConcentrationUnit.MilliliterPerLiter => (baseUnitValue) / 1e-3d, - VolumeConcentrationUnit.MilliliterPerMilliliter => (baseUnitValue * 1e-3) / 1e-3d, - VolumeConcentrationUnit.NanoliterPerLiter => (baseUnitValue) / 1e-9d, - VolumeConcentrationUnit.NanoliterPerMilliliter => (baseUnitValue * 1e-3) / 1e-9d, - VolumeConcentrationUnit.PartPerBillion => baseUnitValue * 1e9, - VolumeConcentrationUnit.PartPerMillion => baseUnitValue * 1e6, - VolumeConcentrationUnit.PartPerThousand => baseUnitValue * 1e3, - VolumeConcentrationUnit.PartPerTrillion => baseUnitValue * 1e12, - VolumeConcentrationUnit.Percent => baseUnitValue * 1e2, - VolumeConcentrationUnit.PicoliterPerLiter => (baseUnitValue) / 1e-12d, - VolumeConcentrationUnit.PicoliterPerMilliliter => (baseUnitValue * 1e-3) / 1e-12d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs deleted file mode 100644 index 4fdde0e38d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs +++ /dev/null @@ -1,1045 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// In physics and engineering, in particular fluid dynamics and hydrometry, the volumetric flow rate, (also known as volume flow rate, rate of fluid flow or volume velocity) is the volume of fluid which passes through a given surface per unit time. The SI unit is m³/s (cubic meters per second). In US Customary Units and British Imperial Units, volumetric flow rate is often expressed as ft³/s (cubic feet per second). It is usually represented by the symbol Q. - /// - public struct VolumeFlow - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly VolumeFlowUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public VolumeFlowUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public VolumeFlow(double value, VolumeFlowUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of VolumeFlow, which is Second. All conversions go via this value. - /// - public static VolumeFlowUnit BaseUnit { get; } = VolumeFlowUnit.CubicMeterPerSecond; - - /// - /// Represents the largest possible value of VolumeFlow. - /// - public static VolumeFlow MaxValue { get; } = new VolumeFlow(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of VolumeFlow. - /// - public static VolumeFlow MinValue { get; } = new VolumeFlow(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static VolumeFlow Zero { get; } = new VolumeFlow(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double AcreFeetPerDay => As(VolumeFlowUnit.AcreFootPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double AcreFeetPerHour => As(VolumeFlowUnit.AcreFootPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double AcreFeetPerMinute => As(VolumeFlowUnit.AcreFootPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double AcreFeetPerSecond => As(VolumeFlowUnit.AcreFootPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double CentilitersPerDay => As(VolumeFlowUnit.CentiliterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double CentilitersPerHour => As(VolumeFlowUnit.CentiliterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double CentilitersPerMinute => As(VolumeFlowUnit.CentiliterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double CentilitersPerSecond => As(VolumeFlowUnit.CentiliterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicCentimetersPerMinute => As(VolumeFlowUnit.CubicCentimeterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicDecimetersPerMinute => As(VolumeFlowUnit.CubicDecimeterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicFeetPerHour => As(VolumeFlowUnit.CubicFootPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicFeetPerMinute => As(VolumeFlowUnit.CubicFootPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicFeetPerSecond => As(VolumeFlowUnit.CubicFootPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMetersPerDay => As(VolumeFlowUnit.CubicMeterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMetersPerHour => As(VolumeFlowUnit.CubicMeterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMetersPerMinute => As(VolumeFlowUnit.CubicMeterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMetersPerSecond => As(VolumeFlowUnit.CubicMeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMillimetersPerSecond => As(VolumeFlowUnit.CubicMillimeterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicYardsPerDay => As(VolumeFlowUnit.CubicYardPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicYardsPerHour => As(VolumeFlowUnit.CubicYardPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicYardsPerMinute => As(VolumeFlowUnit.CubicYardPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicYardsPerSecond => As(VolumeFlowUnit.CubicYardPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecalitersPerDay => As(VolumeFlowUnit.DecaliterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double DecalitersPerHour => As(VolumeFlowUnit.DecaliterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double DecalitersPerMinute => As(VolumeFlowUnit.DecaliterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double DecalitersPerSecond => As(VolumeFlowUnit.DecaliterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double DecilitersPerDay => As(VolumeFlowUnit.DeciliterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double DecilitersPerHour => As(VolumeFlowUnit.DeciliterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double DecilitersPerMinute => As(VolumeFlowUnit.DeciliterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double DecilitersPerSecond => As(VolumeFlowUnit.DeciliterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double HectolitersPerDay => As(VolumeFlowUnit.HectoliterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double HectolitersPerHour => As(VolumeFlowUnit.HectoliterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double HectolitersPerMinute => As(VolumeFlowUnit.HectoliterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double HectolitersPerSecond => As(VolumeFlowUnit.HectoliterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilolitersPerDay => As(VolumeFlowUnit.KiloliterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double KilolitersPerHour => As(VolumeFlowUnit.KiloliterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double KilolitersPerMinute => As(VolumeFlowUnit.KiloliterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double KilolitersPerSecond => As(VolumeFlowUnit.KiloliterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double KilousGallonsPerMinute => As(VolumeFlowUnit.KilousGallonPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPerDay => As(VolumeFlowUnit.LiterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPerHour => As(VolumeFlowUnit.LiterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPerMinute => As(VolumeFlowUnit.LiterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPerSecond => As(VolumeFlowUnit.LiterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegalitersPerDay => As(VolumeFlowUnit.MegaliterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MegalitersPerHour => As(VolumeFlowUnit.MegaliterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MegalitersPerMinute => As(VolumeFlowUnit.MegaliterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MegalitersPerSecond => As(VolumeFlowUnit.MegaliterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegaukGallonsPerDay => As(VolumeFlowUnit.MegaukGallonPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MegaukGallonsPerSecond => As(VolumeFlowUnit.MegaukGallonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MegausGallonsPerDay => As(VolumeFlowUnit.MegausGallonPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrolitersPerDay => As(VolumeFlowUnit.MicroliterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrolitersPerHour => As(VolumeFlowUnit.MicroliterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrolitersPerMinute => As(VolumeFlowUnit.MicroliterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MicrolitersPerSecond => As(VolumeFlowUnit.MicroliterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillilitersPerDay => As(VolumeFlowUnit.MilliliterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double MillilitersPerHour => As(VolumeFlowUnit.MilliliterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double MillilitersPerMinute => As(VolumeFlowUnit.MilliliterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double MillilitersPerSecond => As(VolumeFlowUnit.MilliliterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double MillionUsGallonsPerDay => As(VolumeFlowUnit.MillionUsGallonPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double NanolitersPerDay => As(VolumeFlowUnit.NanoliterPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double NanolitersPerHour => As(VolumeFlowUnit.NanoliterPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double NanolitersPerMinute => As(VolumeFlowUnit.NanoliterPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double NanolitersPerSecond => As(VolumeFlowUnit.NanoliterPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double OilBarrelsPerDay => As(VolumeFlowUnit.OilBarrelPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double OilBarrelsPerHour => As(VolumeFlowUnit.OilBarrelPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double OilBarrelsPerMinute => As(VolumeFlowUnit.OilBarrelPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double OilBarrelsPerSecond => As(VolumeFlowUnit.OilBarrelPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double UkGallonsPerDay => As(VolumeFlowUnit.UkGallonPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double UkGallonsPerHour => As(VolumeFlowUnit.UkGallonPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double UkGallonsPerMinute => As(VolumeFlowUnit.UkGallonPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double UkGallonsPerSecond => As(VolumeFlowUnit.UkGallonPerSecond); - - /// - /// Gets a value of this quantity converted into - /// - public double UsGallonsPerDay => As(VolumeFlowUnit.UsGallonPerDay); - - /// - /// Gets a value of this quantity converted into - /// - public double UsGallonsPerHour => As(VolumeFlowUnit.UsGallonPerHour); - - /// - /// Gets a value of this quantity converted into - /// - public double UsGallonsPerMinute => As(VolumeFlowUnit.UsGallonPerMinute); - - /// - /// Gets a value of this quantity converted into - /// - public double UsGallonsPerSecond => As(VolumeFlowUnit.UsGallonPerSecond); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static VolumeFlow FromAcreFeetPerDay(double acrefeetperday) => new VolumeFlow(acrefeetperday, VolumeFlowUnit.AcreFootPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromAcreFeetPerHour(double acrefeetperhour) => new VolumeFlow(acrefeetperhour, VolumeFlowUnit.AcreFootPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromAcreFeetPerMinute(double acrefeetperminute) => new VolumeFlow(acrefeetperminute, VolumeFlowUnit.AcreFootPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromAcreFeetPerSecond(double acrefeetpersecond) => new VolumeFlow(acrefeetpersecond, VolumeFlowUnit.AcreFootPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCentilitersPerDay(double centilitersperday) => new VolumeFlow(centilitersperday, VolumeFlowUnit.CentiliterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCentilitersPerHour(double centilitersperhour) => new VolumeFlow(centilitersperhour, VolumeFlowUnit.CentiliterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCentilitersPerMinute(double centilitersperminute) => new VolumeFlow(centilitersperminute, VolumeFlowUnit.CentiliterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCentilitersPerSecond(double centiliterspersecond) => new VolumeFlow(centiliterspersecond, VolumeFlowUnit.CentiliterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicCentimetersPerMinute(double cubiccentimetersperminute) => new VolumeFlow(cubiccentimetersperminute, VolumeFlowUnit.CubicCentimeterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicDecimetersPerMinute(double cubicdecimetersperminute) => new VolumeFlow(cubicdecimetersperminute, VolumeFlowUnit.CubicDecimeterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicFeetPerHour(double cubicfeetperhour) => new VolumeFlow(cubicfeetperhour, VolumeFlowUnit.CubicFootPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicFeetPerMinute(double cubicfeetperminute) => new VolumeFlow(cubicfeetperminute, VolumeFlowUnit.CubicFootPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicFeetPerSecond(double cubicfeetpersecond) => new VolumeFlow(cubicfeetpersecond, VolumeFlowUnit.CubicFootPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicMetersPerDay(double cubicmetersperday) => new VolumeFlow(cubicmetersperday, VolumeFlowUnit.CubicMeterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicMetersPerHour(double cubicmetersperhour) => new VolumeFlow(cubicmetersperhour, VolumeFlowUnit.CubicMeterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicMetersPerMinute(double cubicmetersperminute) => new VolumeFlow(cubicmetersperminute, VolumeFlowUnit.CubicMeterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicMetersPerSecond(double cubicmeterspersecond) => new VolumeFlow(cubicmeterspersecond, VolumeFlowUnit.CubicMeterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicMillimetersPerSecond(double cubicmillimeterspersecond) => new VolumeFlow(cubicmillimeterspersecond, VolumeFlowUnit.CubicMillimeterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicYardsPerDay(double cubicyardsperday) => new VolumeFlow(cubicyardsperday, VolumeFlowUnit.CubicYardPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicYardsPerHour(double cubicyardsperhour) => new VolumeFlow(cubicyardsperhour, VolumeFlowUnit.CubicYardPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicYardsPerMinute(double cubicyardsperminute) => new VolumeFlow(cubicyardsperminute, VolumeFlowUnit.CubicYardPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromCubicYardsPerSecond(double cubicyardspersecond) => new VolumeFlow(cubicyardspersecond, VolumeFlowUnit.CubicYardPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromDecalitersPerDay(double decalitersperday) => new VolumeFlow(decalitersperday, VolumeFlowUnit.DecaliterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromDecalitersPerHour(double decalitersperhour) => new VolumeFlow(decalitersperhour, VolumeFlowUnit.DecaliterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromDecalitersPerMinute(double decalitersperminute) => new VolumeFlow(decalitersperminute, VolumeFlowUnit.DecaliterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromDecalitersPerSecond(double decaliterspersecond) => new VolumeFlow(decaliterspersecond, VolumeFlowUnit.DecaliterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromDecilitersPerDay(double decilitersperday) => new VolumeFlow(decilitersperday, VolumeFlowUnit.DeciliterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromDecilitersPerHour(double decilitersperhour) => new VolumeFlow(decilitersperhour, VolumeFlowUnit.DeciliterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromDecilitersPerMinute(double decilitersperminute) => new VolumeFlow(decilitersperminute, VolumeFlowUnit.DeciliterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromDecilitersPerSecond(double deciliterspersecond) => new VolumeFlow(deciliterspersecond, VolumeFlowUnit.DeciliterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromHectolitersPerDay(double hectolitersperday) => new VolumeFlow(hectolitersperday, VolumeFlowUnit.HectoliterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromHectolitersPerHour(double hectolitersperhour) => new VolumeFlow(hectolitersperhour, VolumeFlowUnit.HectoliterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromHectolitersPerMinute(double hectolitersperminute) => new VolumeFlow(hectolitersperminute, VolumeFlowUnit.HectoliterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromHectolitersPerSecond(double hectoliterspersecond) => new VolumeFlow(hectoliterspersecond, VolumeFlowUnit.HectoliterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromKilolitersPerDay(double kilolitersperday) => new VolumeFlow(kilolitersperday, VolumeFlowUnit.KiloliterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromKilolitersPerHour(double kilolitersperhour) => new VolumeFlow(kilolitersperhour, VolumeFlowUnit.KiloliterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromKilolitersPerMinute(double kilolitersperminute) => new VolumeFlow(kilolitersperminute, VolumeFlowUnit.KiloliterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromKilolitersPerSecond(double kiloliterspersecond) => new VolumeFlow(kiloliterspersecond, VolumeFlowUnit.KiloliterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromKilousGallonsPerMinute(double kilousgallonsperminute) => new VolumeFlow(kilousgallonsperminute, VolumeFlowUnit.KilousGallonPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromLitersPerDay(double litersperday) => new VolumeFlow(litersperday, VolumeFlowUnit.LiterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromLitersPerHour(double litersperhour) => new VolumeFlow(litersperhour, VolumeFlowUnit.LiterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromLitersPerMinute(double litersperminute) => new VolumeFlow(litersperminute, VolumeFlowUnit.LiterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromLitersPerSecond(double literspersecond) => new VolumeFlow(literspersecond, VolumeFlowUnit.LiterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMegalitersPerDay(double megalitersperday) => new VolumeFlow(megalitersperday, VolumeFlowUnit.MegaliterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMegalitersPerHour(double megalitersperhour) => new VolumeFlow(megalitersperhour, VolumeFlowUnit.MegaliterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMegalitersPerMinute(double megalitersperminute) => new VolumeFlow(megalitersperminute, VolumeFlowUnit.MegaliterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMegalitersPerSecond(double megaliterspersecond) => new VolumeFlow(megaliterspersecond, VolumeFlowUnit.MegaliterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMegaukGallonsPerDay(double megaukgallonsperday) => new VolumeFlow(megaukgallonsperday, VolumeFlowUnit.MegaukGallonPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMegaukGallonsPerSecond(double megaukgallonspersecond) => new VolumeFlow(megaukgallonspersecond, VolumeFlowUnit.MegaukGallonPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMegausGallonsPerDay(double megausgallonsperday) => new VolumeFlow(megausgallonsperday, VolumeFlowUnit.MegausGallonPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMicrolitersPerDay(double microlitersperday) => new VolumeFlow(microlitersperday, VolumeFlowUnit.MicroliterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMicrolitersPerHour(double microlitersperhour) => new VolumeFlow(microlitersperhour, VolumeFlowUnit.MicroliterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMicrolitersPerMinute(double microlitersperminute) => new VolumeFlow(microlitersperminute, VolumeFlowUnit.MicroliterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMicrolitersPerSecond(double microliterspersecond) => new VolumeFlow(microliterspersecond, VolumeFlowUnit.MicroliterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMillilitersPerDay(double millilitersperday) => new VolumeFlow(millilitersperday, VolumeFlowUnit.MilliliterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMillilitersPerHour(double millilitersperhour) => new VolumeFlow(millilitersperhour, VolumeFlowUnit.MilliliterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMillilitersPerMinute(double millilitersperminute) => new VolumeFlow(millilitersperminute, VolumeFlowUnit.MilliliterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMillilitersPerSecond(double milliliterspersecond) => new VolumeFlow(milliliterspersecond, VolumeFlowUnit.MilliliterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromMillionUsGallonsPerDay(double millionusgallonsperday) => new VolumeFlow(millionusgallonsperday, VolumeFlowUnit.MillionUsGallonPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromNanolitersPerDay(double nanolitersperday) => new VolumeFlow(nanolitersperday, VolumeFlowUnit.NanoliterPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromNanolitersPerHour(double nanolitersperhour) => new VolumeFlow(nanolitersperhour, VolumeFlowUnit.NanoliterPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromNanolitersPerMinute(double nanolitersperminute) => new VolumeFlow(nanolitersperminute, VolumeFlowUnit.NanoliterPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromNanolitersPerSecond(double nanoliterspersecond) => new VolumeFlow(nanoliterspersecond, VolumeFlowUnit.NanoliterPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromOilBarrelsPerDay(double oilbarrelsperday) => new VolumeFlow(oilbarrelsperday, VolumeFlowUnit.OilBarrelPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromOilBarrelsPerHour(double oilbarrelsperhour) => new VolumeFlow(oilbarrelsperhour, VolumeFlowUnit.OilBarrelPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromOilBarrelsPerMinute(double oilbarrelsperminute) => new VolumeFlow(oilbarrelsperminute, VolumeFlowUnit.OilBarrelPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromOilBarrelsPerSecond(double oilbarrelspersecond) => new VolumeFlow(oilbarrelspersecond, VolumeFlowUnit.OilBarrelPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromUkGallonsPerDay(double ukgallonsperday) => new VolumeFlow(ukgallonsperday, VolumeFlowUnit.UkGallonPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromUkGallonsPerHour(double ukgallonsperhour) => new VolumeFlow(ukgallonsperhour, VolumeFlowUnit.UkGallonPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromUkGallonsPerMinute(double ukgallonsperminute) => new VolumeFlow(ukgallonsperminute, VolumeFlowUnit.UkGallonPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromUkGallonsPerSecond(double ukgallonspersecond) => new VolumeFlow(ukgallonspersecond, VolumeFlowUnit.UkGallonPerSecond); - - /// - /// Creates a from . - /// - public static VolumeFlow FromUsGallonsPerDay(double usgallonsperday) => new VolumeFlow(usgallonsperday, VolumeFlowUnit.UsGallonPerDay); - - /// - /// Creates a from . - /// - public static VolumeFlow FromUsGallonsPerHour(double usgallonsperhour) => new VolumeFlow(usgallonsperhour, VolumeFlowUnit.UsGallonPerHour); - - /// - /// Creates a from . - /// - public static VolumeFlow FromUsGallonsPerMinute(double usgallonsperminute) => new VolumeFlow(usgallonsperminute, VolumeFlowUnit.UsGallonPerMinute); - - /// - /// Creates a from . - /// - public static VolumeFlow FromUsGallonsPerSecond(double usgallonspersecond) => new VolumeFlow(usgallonspersecond, VolumeFlowUnit.UsGallonPerSecond); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// VolumeFlow unit value. - public static VolumeFlow From(double value, VolumeFlowUnit fromUnit) - { - return new VolumeFlow(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(VolumeFlowUnit unit) => GetValueAs(unit); - - /// - /// Converts this VolumeFlow to another VolumeFlow with the unit representation . - /// - /// A VolumeFlow with the specified unit. - public VolumeFlow ToUnit(VolumeFlowUnit unit) - { - var convertedValue = GetValueAs(unit); - return new VolumeFlow(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - VolumeFlowUnit.AcreFootPerDay => _value * 1233.48183754752 / 86400, - VolumeFlowUnit.AcreFootPerHour => _value * 1233.48183754752 / 3600, - VolumeFlowUnit.AcreFootPerMinute => _value * 1233.48183754752 / 60, - VolumeFlowUnit.AcreFootPerSecond => _value * 1233.48183754752, - VolumeFlowUnit.CentiliterPerDay => (_value / (1000 * 86400)) * 1e-2d, - VolumeFlowUnit.CentiliterPerHour => (_value / (1000 * 3600)) * 1e-2d, - VolumeFlowUnit.CentiliterPerMinute => (_value / (1000 * 60)) * 1e-2d, - VolumeFlowUnit.CentiliterPerSecond => (_value / 1000) * 1e-2d, - VolumeFlowUnit.CubicCentimeterPerMinute => _value * 1e-6 / 60, - VolumeFlowUnit.CubicDecimeterPerMinute => _value / 60000.00000, - VolumeFlowUnit.CubicFootPerHour => _value * 0.028316846592 / 3600, - VolumeFlowUnit.CubicFootPerMinute => _value * 0.028316846592 / 60, - VolumeFlowUnit.CubicFootPerSecond => _value * 0.028316846592, - VolumeFlowUnit.CubicMeterPerDay => _value / 86400, - VolumeFlowUnit.CubicMeterPerHour => _value / 3600, - VolumeFlowUnit.CubicMeterPerMinute => _value / 60, - VolumeFlowUnit.CubicMeterPerSecond => _value, - VolumeFlowUnit.CubicMillimeterPerSecond => _value * 1e-9, - VolumeFlowUnit.CubicYardPerDay => _value * 0.764554857984 / 86400, - VolumeFlowUnit.CubicYardPerHour => _value * 0.764554857984 / 3600, - VolumeFlowUnit.CubicYardPerMinute => _value * 0.764554857984 / 60, - VolumeFlowUnit.CubicYardPerSecond => _value * 0.764554857984, - VolumeFlowUnit.DecaliterPerDay => (_value / (1000 * 86400)) * 1e1d, - VolumeFlowUnit.DecaliterPerHour => (_value / (1000 * 3600)) * 1e1d, - VolumeFlowUnit.DecaliterPerMinute => (_value / (1000 * 60)) * 1e1d, - VolumeFlowUnit.DecaliterPerSecond => (_value / 1000) * 1e1d, - VolumeFlowUnit.DeciliterPerDay => (_value / (1000 * 86400)) * 1e-1d, - VolumeFlowUnit.DeciliterPerHour => (_value / (1000 * 3600)) * 1e-1d, - VolumeFlowUnit.DeciliterPerMinute => (_value / (1000 * 60)) * 1e-1d, - VolumeFlowUnit.DeciliterPerSecond => (_value / 1000) * 1e-1d, - VolumeFlowUnit.HectoliterPerDay => (_value / (1000 * 86400)) * 1e2d, - VolumeFlowUnit.HectoliterPerHour => (_value / (1000 * 3600)) * 1e2d, - VolumeFlowUnit.HectoliterPerMinute => (_value / (1000 * 60)) * 1e2d, - VolumeFlowUnit.HectoliterPerSecond => (_value / 1000) * 1e2d, - VolumeFlowUnit.KiloliterPerDay => (_value / (1000 * 86400)) * 1e3d, - VolumeFlowUnit.KiloliterPerHour => (_value / (1000 * 3600)) * 1e3d, - VolumeFlowUnit.KiloliterPerMinute => (_value / (1000 * 60)) * 1e3d, - VolumeFlowUnit.KiloliterPerSecond => (_value / 1000) * 1e3d, - VolumeFlowUnit.KilousGallonPerMinute => _value * 1000 * 0.003785411784 / 60, - VolumeFlowUnit.LiterPerDay => _value / (1000 * 86400), - VolumeFlowUnit.LiterPerHour => _value / (1000 * 3600), - VolumeFlowUnit.LiterPerMinute => _value / (1000 * 60), - VolumeFlowUnit.LiterPerSecond => _value / 1000, - VolumeFlowUnit.MegaliterPerDay => (_value / (1000 * 86400)) * 1e6d, - VolumeFlowUnit.MegaliterPerHour => (_value / (1000 * 3600)) * 1e6d, - VolumeFlowUnit.MegaliterPerMinute => (_value / (1000 * 60)) * 1e6d, - VolumeFlowUnit.MegaliterPerSecond => (_value / 1000) * 1e6d, - VolumeFlowUnit.MegaukGallonPerDay => (_value * 0.00454609 / 86400) * 1e6d, - VolumeFlowUnit.MegaukGallonPerSecond => (_value * 0.00454609) * 1e6d, - VolumeFlowUnit.MegausGallonPerDay => (_value * 0.003785411784 / 86400) * 1e6d, - VolumeFlowUnit.MicroliterPerDay => (_value / (1000 * 86400)) * 1e-6d, - VolumeFlowUnit.MicroliterPerHour => (_value / (1000 * 3600)) * 1e-6d, - VolumeFlowUnit.MicroliterPerMinute => (_value / (1000 * 60)) * 1e-6d, - VolumeFlowUnit.MicroliterPerSecond => (_value / 1000) * 1e-6d, - VolumeFlowUnit.MilliliterPerDay => (_value / (1000 * 86400)) * 1e-3d, - VolumeFlowUnit.MilliliterPerHour => (_value / (1000 * 3600)) * 1e-3d, - VolumeFlowUnit.MilliliterPerMinute => (_value / (1000 * 60)) * 1e-3d, - VolumeFlowUnit.MilliliterPerSecond => (_value / 1000) * 1e-3d, - VolumeFlowUnit.MillionUsGallonPerDay => _value * 1e6 * 0.003785411784 / 86400, - VolumeFlowUnit.NanoliterPerDay => (_value / (1000 * 86400)) * 1e-9d, - VolumeFlowUnit.NanoliterPerHour => (_value / (1000 * 3600)) * 1e-9d, - VolumeFlowUnit.NanoliterPerMinute => (_value / (1000 * 60)) * 1e-9d, - VolumeFlowUnit.NanoliterPerSecond => (_value / 1000) * 1e-9d, - VolumeFlowUnit.OilBarrelPerDay => _value * 0.158987294928 / 86400, - VolumeFlowUnit.OilBarrelPerHour => _value * 0.158987294928 / 3600, - VolumeFlowUnit.OilBarrelPerMinute => _value * 0.158987294928 / 60, - VolumeFlowUnit.OilBarrelPerSecond => _value * 0.158987294928, - VolumeFlowUnit.UkGallonPerDay => _value * 0.00454609 / 86400, - VolumeFlowUnit.UkGallonPerHour => _value * 0.00454609 / 3600, - VolumeFlowUnit.UkGallonPerMinute => _value * 0.00454609 / 60, - VolumeFlowUnit.UkGallonPerSecond => _value * 0.00454609, - VolumeFlowUnit.UsGallonPerDay => _value * 0.003785411784 / 86400, - VolumeFlowUnit.UsGallonPerHour => _value * 0.003785411784 / 3600, - VolumeFlowUnit.UsGallonPerMinute => _value * 0.003785411784 / 60, - VolumeFlowUnit.UsGallonPerSecond => _value * 0.003785411784, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(VolumeFlowUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - VolumeFlowUnit.AcreFootPerDay => baseUnitValue / (1233.48183754752 / 86400), - VolumeFlowUnit.AcreFootPerHour => baseUnitValue / (1233.48183754752 / 3600), - VolumeFlowUnit.AcreFootPerMinute => baseUnitValue / (1233.48183754752 / 60), - VolumeFlowUnit.AcreFootPerSecond => baseUnitValue / 1233.48183754752, - VolumeFlowUnit.CentiliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-2d, - VolumeFlowUnit.CentiliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-2d, - VolumeFlowUnit.CentiliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-2d, - VolumeFlowUnit.CentiliterPerSecond => (baseUnitValue * 1000) / 1e-2d, - VolumeFlowUnit.CubicCentimeterPerMinute => baseUnitValue / (1e-6 / 60), - VolumeFlowUnit.CubicDecimeterPerMinute => baseUnitValue * 60000.00000, - VolumeFlowUnit.CubicFootPerHour => baseUnitValue / (0.028316846592 / 3600), - VolumeFlowUnit.CubicFootPerMinute => baseUnitValue / (0.028316846592 / 60), - VolumeFlowUnit.CubicFootPerSecond => baseUnitValue / 0.028316846592, - VolumeFlowUnit.CubicMeterPerDay => baseUnitValue * 86400, - VolumeFlowUnit.CubicMeterPerHour => baseUnitValue * 3600, - VolumeFlowUnit.CubicMeterPerMinute => baseUnitValue * 60, - VolumeFlowUnit.CubicMeterPerSecond => baseUnitValue, - VolumeFlowUnit.CubicMillimeterPerSecond => baseUnitValue / 1e-9, - VolumeFlowUnit.CubicYardPerDay => baseUnitValue / (0.764554857984 / 86400), - VolumeFlowUnit.CubicYardPerHour => baseUnitValue / (0.764554857984 / 3600), - VolumeFlowUnit.CubicYardPerMinute => baseUnitValue / (0.764554857984 / 60), - VolumeFlowUnit.CubicYardPerSecond => baseUnitValue / 0.764554857984, - VolumeFlowUnit.DecaliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e1d, - VolumeFlowUnit.DecaliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e1d, - VolumeFlowUnit.DecaliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e1d, - VolumeFlowUnit.DecaliterPerSecond => (baseUnitValue * 1000) / 1e1d, - VolumeFlowUnit.DeciliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-1d, - VolumeFlowUnit.DeciliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-1d, - VolumeFlowUnit.DeciliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-1d, - VolumeFlowUnit.DeciliterPerSecond => (baseUnitValue * 1000) / 1e-1d, - VolumeFlowUnit.HectoliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e2d, - VolumeFlowUnit.HectoliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e2d, - VolumeFlowUnit.HectoliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e2d, - VolumeFlowUnit.HectoliterPerSecond => (baseUnitValue * 1000) / 1e2d, - VolumeFlowUnit.KiloliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e3d, - VolumeFlowUnit.KiloliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e3d, - VolumeFlowUnit.KiloliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e3d, - VolumeFlowUnit.KiloliterPerSecond => (baseUnitValue * 1000) / 1e3d, - VolumeFlowUnit.KilousGallonPerMinute => baseUnitValue / (1000 * 0.003785411784 / 60), - VolumeFlowUnit.LiterPerDay => baseUnitValue * (1000 * 86400), - VolumeFlowUnit.LiterPerHour => baseUnitValue * (1000 * 3600), - VolumeFlowUnit.LiterPerMinute => baseUnitValue * (1000 * 60), - VolumeFlowUnit.LiterPerSecond => baseUnitValue * 1000, - VolumeFlowUnit.MegaliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e6d, - VolumeFlowUnit.MegaliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e6d, - VolumeFlowUnit.MegaliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e6d, - VolumeFlowUnit.MegaliterPerSecond => (baseUnitValue * 1000) / 1e6d, - VolumeFlowUnit.MegaukGallonPerDay => (baseUnitValue / (0.00454609 / 86400)) / 1e6d, - VolumeFlowUnit.MegaukGallonPerSecond => (baseUnitValue / 0.00454609) / 1e6d, - VolumeFlowUnit.MegausGallonPerDay => (baseUnitValue / (0.003785411784 / 86400)) / 1e6d, - VolumeFlowUnit.MicroliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-6d, - VolumeFlowUnit.MicroliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-6d, - VolumeFlowUnit.MicroliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-6d, - VolumeFlowUnit.MicroliterPerSecond => (baseUnitValue * 1000) / 1e-6d, - VolumeFlowUnit.MilliliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-3d, - VolumeFlowUnit.MilliliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-3d, - VolumeFlowUnit.MilliliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-3d, - VolumeFlowUnit.MilliliterPerSecond => (baseUnitValue * 1000) / 1e-3d, - VolumeFlowUnit.MillionUsGallonPerDay => baseUnitValue / (1e6 * 0.003785411784 / 86400), - VolumeFlowUnit.NanoliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-9d, - VolumeFlowUnit.NanoliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-9d, - VolumeFlowUnit.NanoliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-9d, - VolumeFlowUnit.NanoliterPerSecond => (baseUnitValue * 1000) / 1e-9d, - VolumeFlowUnit.OilBarrelPerDay => baseUnitValue / (0.158987294928 / 86400), - VolumeFlowUnit.OilBarrelPerHour => baseUnitValue / (0.158987294928 / 3600), - VolumeFlowUnit.OilBarrelPerMinute => baseUnitValue / (0.158987294928 / 60), - VolumeFlowUnit.OilBarrelPerSecond => baseUnitValue / 0.158987294928, - VolumeFlowUnit.UkGallonPerDay => baseUnitValue / (0.00454609 / 86400), - VolumeFlowUnit.UkGallonPerHour => baseUnitValue / (0.00454609 / 3600), - VolumeFlowUnit.UkGallonPerMinute => baseUnitValue / (0.00454609 / 60), - VolumeFlowUnit.UkGallonPerSecond => baseUnitValue / 0.00454609, - VolumeFlowUnit.UsGallonPerDay => baseUnitValue / (0.003785411784 / 86400), - VolumeFlowUnit.UsGallonPerHour => baseUnitValue / (0.003785411784 / 3600), - VolumeFlowUnit.UsGallonPerMinute => baseUnitValue / (0.003785411784 / 60), - VolumeFlowUnit.UsGallonPerSecond => baseUnitValue / 0.003785411784, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs deleted file mode 100644 index 1da095f1c0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs +++ /dev/null @@ -1,169 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// - /// - public struct VolumeFlowPerArea - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly VolumeFlowPerAreaUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public VolumeFlowPerAreaUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public VolumeFlowPerArea(double value, VolumeFlowPerAreaUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of VolumeFlowPerArea, which is Second. All conversions go via this value. - /// - public static VolumeFlowPerAreaUnit BaseUnit { get; } = VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter; - - /// - /// Represents the largest possible value of VolumeFlowPerArea. - /// - public static VolumeFlowPerArea MaxValue { get; } = new VolumeFlowPerArea(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of VolumeFlowPerArea. - /// - public static VolumeFlowPerArea MinValue { get; } = new VolumeFlowPerArea(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static VolumeFlowPerArea Zero { get; } = new VolumeFlowPerArea(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CubicFeetPerMinutePerSquareFoot => As(VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMetersPerSecondPerSquareMeter => As(VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static VolumeFlowPerArea FromCubicFeetPerMinutePerSquareFoot(double cubicfeetperminutepersquarefoot) => new VolumeFlowPerArea(cubicfeetperminutepersquarefoot, VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot); - - /// - /// Creates a from . - /// - public static VolumeFlowPerArea FromCubicMetersPerSecondPerSquareMeter(double cubicmeterspersecondpersquaremeter) => new VolumeFlowPerArea(cubicmeterspersecondpersquaremeter, VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// VolumeFlowPerArea unit value. - public static VolumeFlowPerArea From(double value, VolumeFlowPerAreaUnit fromUnit) - { - return new VolumeFlowPerArea(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(VolumeFlowPerAreaUnit unit) => GetValueAs(unit); - - /// - /// Converts this VolumeFlowPerArea to another VolumeFlowPerArea with the unit representation . - /// - /// A VolumeFlowPerArea with the specified unit. - public VolumeFlowPerArea ToUnit(VolumeFlowPerAreaUnit unit) - { - var convertedValue = GetValueAs(unit); - return new VolumeFlowPerArea(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot => _value * (0.028316846592 / 60) / 9.290304e-2, - VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter => _value, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(VolumeFlowPerAreaUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot => baseUnitValue * 9.290304e-2 / (0.028316846592 / 60), - VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter => baseUnitValue, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumePerLength.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumePerLength.g.cs deleted file mode 100644 index 5e103e7663..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumePerLength.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// Volume, typically of fluid, that a container can hold within a unit of length. - /// - public struct VolumePerLength - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly VolumePerLengthUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public VolumePerLengthUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public VolumePerLength(double value, VolumePerLengthUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of VolumePerLength, which is Second. All conversions go via this value. - /// - public static VolumePerLengthUnit BaseUnit { get; } = VolumePerLengthUnit.CubicMeterPerMeter; - - /// - /// Represents the largest possible value of VolumePerLength. - /// - public static VolumePerLength MaxValue { get; } = new VolumePerLength(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of VolumePerLength. - /// - public static VolumePerLength MinValue { get; } = new VolumePerLength(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static VolumePerLength Zero { get; } = new VolumePerLength(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CubicMetersPerMeter => As(VolumePerLengthUnit.CubicMeterPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicYardsPerFoot => As(VolumePerLengthUnit.CubicYardPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double CubicYardsPerUsSurveyFoot => As(VolumePerLengthUnit.CubicYardPerUsSurveyFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double ImperialGallonsPerMile => As(VolumePerLengthUnit.ImperialGallonPerMile); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPerKilometer => As(VolumePerLengthUnit.LiterPerKilometer); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPerMeter => As(VolumePerLengthUnit.LiterPerMeter); - - /// - /// Gets a value of this quantity converted into - /// - public double LitersPerMillimeter => As(VolumePerLengthUnit.LiterPerMillimeter); - - /// - /// Gets a value of this quantity converted into - /// - public double OilBarrelsPerFoot => As(VolumePerLengthUnit.OilBarrelPerFoot); - - /// - /// Gets a value of this quantity converted into - /// - public double UsGallonsPerMile => As(VolumePerLengthUnit.UsGallonPerMile); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static VolumePerLength FromCubicMetersPerMeter(double cubicmeterspermeter) => new VolumePerLength(cubicmeterspermeter, VolumePerLengthUnit.CubicMeterPerMeter); - - /// - /// Creates a from . - /// - public static VolumePerLength FromCubicYardsPerFoot(double cubicyardsperfoot) => new VolumePerLength(cubicyardsperfoot, VolumePerLengthUnit.CubicYardPerFoot); - - /// - /// Creates a from . - /// - public static VolumePerLength FromCubicYardsPerUsSurveyFoot(double cubicyardsperussurveyfoot) => new VolumePerLength(cubicyardsperussurveyfoot, VolumePerLengthUnit.CubicYardPerUsSurveyFoot); - - /// - /// Creates a from . - /// - public static VolumePerLength FromImperialGallonsPerMile(double imperialgallonspermile) => new VolumePerLength(imperialgallonspermile, VolumePerLengthUnit.ImperialGallonPerMile); - - /// - /// Creates a from . - /// - public static VolumePerLength FromLitersPerKilometer(double litersperkilometer) => new VolumePerLength(litersperkilometer, VolumePerLengthUnit.LiterPerKilometer); - - /// - /// Creates a from . - /// - public static VolumePerLength FromLitersPerMeter(double literspermeter) => new VolumePerLength(literspermeter, VolumePerLengthUnit.LiterPerMeter); - - /// - /// Creates a from . - /// - public static VolumePerLength FromLitersPerMillimeter(double literspermillimeter) => new VolumePerLength(literspermillimeter, VolumePerLengthUnit.LiterPerMillimeter); - - /// - /// Creates a from . - /// - public static VolumePerLength FromOilBarrelsPerFoot(double oilbarrelsperfoot) => new VolumePerLength(oilbarrelsperfoot, VolumePerLengthUnit.OilBarrelPerFoot); - - /// - /// Creates a from . - /// - public static VolumePerLength FromUsGallonsPerMile(double usgallonspermile) => new VolumePerLength(usgallonspermile, VolumePerLengthUnit.UsGallonPerMile); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// VolumePerLength unit value. - public static VolumePerLength From(double value, VolumePerLengthUnit fromUnit) - { - return new VolumePerLength(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(VolumePerLengthUnit unit) => GetValueAs(unit); - - /// - /// Converts this VolumePerLength to another VolumePerLength with the unit representation . - /// - /// A VolumePerLength with the specified unit. - public VolumePerLength ToUnit(VolumePerLengthUnit unit) - { - var convertedValue = GetValueAs(unit); - return new VolumePerLength(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - VolumePerLengthUnit.CubicMeterPerMeter => _value, - VolumePerLengthUnit.CubicYardPerFoot => _value * 0.764554857984 / 0.3048, - VolumePerLengthUnit.CubicYardPerUsSurveyFoot => _value * 0.764554857984 * 3937 / 1200, - VolumePerLengthUnit.ImperialGallonPerMile => _value * 0.00454609 / 1609.344, - VolumePerLengthUnit.LiterPerKilometer => _value / 1e6, - VolumePerLengthUnit.LiterPerMeter => _value / 1000, - VolumePerLengthUnit.LiterPerMillimeter => _value, - VolumePerLengthUnit.OilBarrelPerFoot => _value * 0.158987294928 / 0.3048, - VolumePerLengthUnit.UsGallonPerMile => _value * 0.003785411784 / 1609.344, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(VolumePerLengthUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - VolumePerLengthUnit.CubicMeterPerMeter => baseUnitValue, - VolumePerLengthUnit.CubicYardPerFoot => baseUnitValue * 0.3048 / 0.764554857984, - VolumePerLengthUnit.CubicYardPerUsSurveyFoot => baseUnitValue * 1200 / (0.764554857984 * 3937), - VolumePerLengthUnit.ImperialGallonPerMile => baseUnitValue * 1609.344 / 0.00454609, - VolumePerLengthUnit.LiterPerKilometer => baseUnitValue * 1e6, - VolumePerLengthUnit.LiterPerMeter => baseUnitValue * 1000, - VolumePerLengthUnit.LiterPerMillimeter => baseUnitValue, - VolumePerLengthUnit.OilBarrelPerFoot => baseUnitValue * 0.3048 / 0.158987294928, - VolumePerLengthUnit.UsGallonPerMile => baseUnitValue * 1609.344 / 0.003785411784, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs deleted file mode 100644 index 203048c263..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumetricHeatCapacity.g.cs +++ /dev/null @@ -1,256 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// The volumetric heat capacity is the amount of energy that must be added, in the form of heat, to one unit of volume of the material in order to cause an increase of one unit in its temperature. - /// - /// - /// https://en.wikipedia.org/wiki/Volumetric_heat_capacity - /// - public struct VolumetricHeatCapacity - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly VolumetricHeatCapacityUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public VolumetricHeatCapacityUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public VolumetricHeatCapacity(double value, VolumetricHeatCapacityUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of VolumetricHeatCapacity, which is Second. All conversions go via this value. - /// - public static VolumetricHeatCapacityUnit BaseUnit { get; } = VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin; - - /// - /// Represents the largest possible value of VolumetricHeatCapacity. - /// - public static VolumetricHeatCapacity MaxValue { get; } = new VolumetricHeatCapacity(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of VolumetricHeatCapacity. - /// - public static VolumetricHeatCapacity MinValue { get; } = new VolumetricHeatCapacity(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static VolumetricHeatCapacity Zero { get; } = new VolumetricHeatCapacity(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double BtusPerCubicFootDegreeFahrenheit => As(VolumetricHeatCapacityUnit.BtuPerCubicFootDegreeFahrenheit); - - /// - /// Gets a value of this quantity converted into - /// - public double CaloriesPerCubicCentimeterDegreeCelsius => As(VolumetricHeatCapacityUnit.CaloriePerCubicCentimeterDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerCubicMeterDegreeCelsius => As(VolumetricHeatCapacityUnit.JoulePerCubicMeterDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double JoulesPerCubicMeterKelvin => As(VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double KilocaloriesPerCubicCentimeterDegreeCelsius => As(VolumetricHeatCapacityUnit.KilocaloriePerCubicCentimeterDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerCubicMeterDegreeCelsius => As(VolumetricHeatCapacityUnit.KilojoulePerCubicMeterDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double KilojoulesPerCubicMeterKelvin => As(VolumetricHeatCapacityUnit.KilojoulePerCubicMeterKelvin); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerCubicMeterDegreeCelsius => As(VolumetricHeatCapacityUnit.MegajoulePerCubicMeterDegreeCelsius); - - /// - /// Gets a value of this quantity converted into - /// - public double MegajoulesPerCubicMeterKelvin => As(VolumetricHeatCapacityUnit.MegajoulePerCubicMeterKelvin); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static VolumetricHeatCapacity FromBtusPerCubicFootDegreeFahrenheit(double btuspercubicfootdegreefahrenheit) => new VolumetricHeatCapacity(btuspercubicfootdegreefahrenheit, VolumetricHeatCapacityUnit.BtuPerCubicFootDegreeFahrenheit); - - /// - /// Creates a from . - /// - public static VolumetricHeatCapacity FromCaloriesPerCubicCentimeterDegreeCelsius(double caloriespercubiccentimeterdegreecelsius) => new VolumetricHeatCapacity(caloriespercubiccentimeterdegreecelsius, VolumetricHeatCapacityUnit.CaloriePerCubicCentimeterDegreeCelsius); - - /// - /// Creates a from . - /// - public static VolumetricHeatCapacity FromJoulesPerCubicMeterDegreeCelsius(double joulespercubicmeterdegreecelsius) => new VolumetricHeatCapacity(joulespercubicmeterdegreecelsius, VolumetricHeatCapacityUnit.JoulePerCubicMeterDegreeCelsius); - - /// - /// Creates a from . - /// - public static VolumetricHeatCapacity FromJoulesPerCubicMeterKelvin(double joulespercubicmeterkelvin) => new VolumetricHeatCapacity(joulespercubicmeterkelvin, VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin); - - /// - /// Creates a from . - /// - public static VolumetricHeatCapacity FromKilocaloriesPerCubicCentimeterDegreeCelsius(double kilocaloriespercubiccentimeterdegreecelsius) => new VolumetricHeatCapacity(kilocaloriespercubiccentimeterdegreecelsius, VolumetricHeatCapacityUnit.KilocaloriePerCubicCentimeterDegreeCelsius); - - /// - /// Creates a from . - /// - public static VolumetricHeatCapacity FromKilojoulesPerCubicMeterDegreeCelsius(double kilojoulespercubicmeterdegreecelsius) => new VolumetricHeatCapacity(kilojoulespercubicmeterdegreecelsius, VolumetricHeatCapacityUnit.KilojoulePerCubicMeterDegreeCelsius); - - /// - /// Creates a from . - /// - public static VolumetricHeatCapacity FromKilojoulesPerCubicMeterKelvin(double kilojoulespercubicmeterkelvin) => new VolumetricHeatCapacity(kilojoulespercubicmeterkelvin, VolumetricHeatCapacityUnit.KilojoulePerCubicMeterKelvin); - - /// - /// Creates a from . - /// - public static VolumetricHeatCapacity FromMegajoulesPerCubicMeterDegreeCelsius(double megajoulespercubicmeterdegreecelsius) => new VolumetricHeatCapacity(megajoulespercubicmeterdegreecelsius, VolumetricHeatCapacityUnit.MegajoulePerCubicMeterDegreeCelsius); - - /// - /// Creates a from . - /// - public static VolumetricHeatCapacity FromMegajoulesPerCubicMeterKelvin(double megajoulespercubicmeterkelvin) => new VolumetricHeatCapacity(megajoulespercubicmeterkelvin, VolumetricHeatCapacityUnit.MegajoulePerCubicMeterKelvin); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// VolumetricHeatCapacity unit value. - public static VolumetricHeatCapacity From(double value, VolumetricHeatCapacityUnit fromUnit) - { - return new VolumetricHeatCapacity(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(VolumetricHeatCapacityUnit unit) => GetValueAs(unit); - - /// - /// Converts this VolumetricHeatCapacity to another VolumetricHeatCapacity with the unit representation . - /// - /// A VolumetricHeatCapacity with the specified unit. - public VolumetricHeatCapacity ToUnit(VolumetricHeatCapacityUnit unit) - { - var convertedValue = GetValueAs(unit); - return new VolumetricHeatCapacity(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - VolumetricHeatCapacityUnit.BtuPerCubicFootDegreeFahrenheit => _value * (1055.05585262 / 0.028316846592) * 1.8, - VolumetricHeatCapacityUnit.CaloriePerCubicCentimeterDegreeCelsius => _value * 4.184e6, - VolumetricHeatCapacityUnit.JoulePerCubicMeterDegreeCelsius => _value, - VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin => _value, - VolumetricHeatCapacityUnit.KilocaloriePerCubicCentimeterDegreeCelsius => (_value * 4.184e6) * 1e3d, - VolumetricHeatCapacityUnit.KilojoulePerCubicMeterDegreeCelsius => (_value) * 1e3d, - VolumetricHeatCapacityUnit.KilojoulePerCubicMeterKelvin => (_value) * 1e3d, - VolumetricHeatCapacityUnit.MegajoulePerCubicMeterDegreeCelsius => (_value) * 1e6d, - VolumetricHeatCapacityUnit.MegajoulePerCubicMeterKelvin => (_value) * 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(VolumetricHeatCapacityUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - VolumetricHeatCapacityUnit.BtuPerCubicFootDegreeFahrenheit => baseUnitValue / ((1055.05585262 / 0.028316846592) * 1.8), - VolumetricHeatCapacityUnit.CaloriePerCubicCentimeterDegreeCelsius => baseUnitValue / 4.184e6, - VolumetricHeatCapacityUnit.JoulePerCubicMeterDegreeCelsius => baseUnitValue, - VolumetricHeatCapacityUnit.JoulePerCubicMeterKelvin => baseUnitValue, - VolumetricHeatCapacityUnit.KilocaloriePerCubicCentimeterDegreeCelsius => (baseUnitValue / 4.184e6) / 1e3d, - VolumetricHeatCapacityUnit.KilojoulePerCubicMeterDegreeCelsius => (baseUnitValue) / 1e3d, - VolumetricHeatCapacityUnit.KilojoulePerCubicMeterKelvin => (baseUnitValue) / 1e3d, - VolumetricHeatCapacityUnit.MegajoulePerCubicMeterDegreeCelsius => (baseUnitValue) / 1e6d, - VolumetricHeatCapacityUnit.MegajoulePerCubicMeterKelvin => (baseUnitValue) / 1e6d, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs deleted file mode 100644 index 86f06ab93a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs +++ /dev/null @@ -1,217 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -using System; -using UnitsNet.Units; - -namespace UnitsNet -{ - /// - /// - /// A geometric property of an area that is used to determine the warping stress. - /// - public struct WarpingMomentOfInertia - { - /// - /// The numeric value this quantity was constructed with. - /// - private readonly double _value; - - /// - /// The unit this quantity was constructed with. - /// - private readonly WarpingMomentOfInertiaUnit _unit; - - /// - /// The numeric value this quantity was constructed with. - /// - public double Value => _value; - - /// - public WarpingMomentOfInertiaUnit Unit => _unit; - - /// - /// Creates the quantity with the given numeric value and unit. - /// - /// The numeric value to construct this quantity with. - /// The unit representation to construct this quantity with. - public WarpingMomentOfInertia(double value, WarpingMomentOfInertiaUnit unit) - { - _value = value; - _unit = unit; - } - - /// - /// The base unit of WarpingMomentOfInertia, which is Second. All conversions go via this value. - /// - public static WarpingMomentOfInertiaUnit BaseUnit { get; } = WarpingMomentOfInertiaUnit.MeterToTheSixth; - - /// - /// Represents the largest possible value of WarpingMomentOfInertia. - /// - public static WarpingMomentOfInertia MaxValue { get; } = new WarpingMomentOfInertia(double.MaxValue, BaseUnit); - - /// - /// Represents the smallest possible value of WarpingMomentOfInertia. - /// - public static WarpingMomentOfInertia MinValue { get; } = new WarpingMomentOfInertia(double.MinValue, BaseUnit); - - /// - /// Gets an instance of this quantity with a value of 0 in the base unit Second. - /// - public static WarpingMomentOfInertia Zero { get; } = new WarpingMomentOfInertia(0, BaseUnit); - #region Conversion Properties - - /// - /// Gets a value of this quantity converted into - /// - public double CentimetersToTheSixth => As(WarpingMomentOfInertiaUnit.CentimeterToTheSixth); - - /// - /// Gets a value of this quantity converted into - /// - public double DecimetersToTheSixth => As(WarpingMomentOfInertiaUnit.DecimeterToTheSixth); - - /// - /// Gets a value of this quantity converted into - /// - public double FeetToTheSixth => As(WarpingMomentOfInertiaUnit.FootToTheSixth); - - /// - /// Gets a value of this quantity converted into - /// - public double InchesToTheSixth => As(WarpingMomentOfInertiaUnit.InchToTheSixth); - - /// - /// Gets a value of this quantity converted into - /// - public double MetersToTheSixth => As(WarpingMomentOfInertiaUnit.MeterToTheSixth); - - /// - /// Gets a value of this quantity converted into - /// - public double MillimetersToTheSixth => As(WarpingMomentOfInertiaUnit.MillimeterToTheSixth); - - #endregion - - #region Static Factory Methods - - /// - /// Creates a from . - /// - public static WarpingMomentOfInertia FromCentimetersToTheSixth(double centimeterstothesixth) => new WarpingMomentOfInertia(centimeterstothesixth, WarpingMomentOfInertiaUnit.CentimeterToTheSixth); - - /// - /// Creates a from . - /// - public static WarpingMomentOfInertia FromDecimetersToTheSixth(double decimeterstothesixth) => new WarpingMomentOfInertia(decimeterstothesixth, WarpingMomentOfInertiaUnit.DecimeterToTheSixth); - - /// - /// Creates a from . - /// - public static WarpingMomentOfInertia FromFeetToTheSixth(double feettothesixth) => new WarpingMomentOfInertia(feettothesixth, WarpingMomentOfInertiaUnit.FootToTheSixth); - - /// - /// Creates a from . - /// - public static WarpingMomentOfInertia FromInchesToTheSixth(double inchestothesixth) => new WarpingMomentOfInertia(inchestothesixth, WarpingMomentOfInertiaUnit.InchToTheSixth); - - /// - /// Creates a from . - /// - public static WarpingMomentOfInertia FromMetersToTheSixth(double meterstothesixth) => new WarpingMomentOfInertia(meterstothesixth, WarpingMomentOfInertiaUnit.MeterToTheSixth); - - /// - /// Creates a from . - /// - public static WarpingMomentOfInertia FromMillimetersToTheSixth(double millimeterstothesixth) => new WarpingMomentOfInertia(millimeterstothesixth, WarpingMomentOfInertiaUnit.MillimeterToTheSixth); - - /// - /// Dynamically convert from value and unit enum to . - /// - /// Value to convert from. - /// Unit to convert from. - /// WarpingMomentOfInertia unit value. - public static WarpingMomentOfInertia From(double value, WarpingMomentOfInertiaUnit fromUnit) - { - return new WarpingMomentOfInertia(value, fromUnit); - } - - #endregion - - #region Conversion Methods - - /// - /// Convert to the unit representation . - /// - /// Value converted to the specified unit. - public double As(WarpingMomentOfInertiaUnit unit) => GetValueAs(unit); - - /// - /// Converts this WarpingMomentOfInertia to another WarpingMomentOfInertia with the unit representation . - /// - /// A WarpingMomentOfInertia with the specified unit. - public WarpingMomentOfInertia ToUnit(WarpingMomentOfInertiaUnit unit) - { - var convertedValue = GetValueAs(unit); - return new WarpingMomentOfInertia(convertedValue, unit); - } - - /// - /// Converts the current value + unit to the base unit. - /// This is typically the first step in converting from one unit to another. - /// - /// The value in the base unit representation. - private double GetValueInBaseUnit() - { - return Unit switch - { - WarpingMomentOfInertiaUnit.CentimeterToTheSixth => _value / 1e12, - WarpingMomentOfInertiaUnit.DecimeterToTheSixth => _value / 1e6, - WarpingMomentOfInertiaUnit.FootToTheSixth => _value * 0.000801843800914862014464, - WarpingMomentOfInertiaUnit.InchToTheSixth => _value * 0.000000000268535866540096, - WarpingMomentOfInertiaUnit.MeterToTheSixth => _value, - WarpingMomentOfInertiaUnit.MillimeterToTheSixth => _value / 1e18, - _ => throw new NotImplementedException($"Can't convert {Unit} to base units.") - }; - } - - private double GetValueAs(WarpingMomentOfInertiaUnit unit) - { - if (Unit == unit) - return _value; - - var baseUnitValue = GetValueInBaseUnit(); - - return unit switch - { - WarpingMomentOfInertiaUnit.CentimeterToTheSixth => baseUnitValue * 1e12, - WarpingMomentOfInertiaUnit.DecimeterToTheSixth => baseUnitValue * 1e6, - WarpingMomentOfInertiaUnit.FootToTheSixth => baseUnitValue / 0.000801843800914862014464, - WarpingMomentOfInertiaUnit.InchToTheSixth => baseUnitValue / 0.000000000268535866540096, - WarpingMomentOfInertiaUnit.MeterToTheSixth => baseUnitValue, - WarpingMomentOfInertiaUnit.MillimeterToTheSixth => baseUnitValue * 1e18, - _ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.") - }; - } - - #endregion - } -} - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/RadiationEquivalentDose.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/RadiationEquivalentDose.nfproj deleted file mode 100644 index 552e257f67..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/RadiationEquivalentDose.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {dcdccf04-c930-b455-77a4-d9d4a7df8723} - Library - Properties - 512 - UnitsNet - UnitsNet.RadiationEquivalentDose - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/UnitsNet.NanoFramework.RadiationEquivalentDose.nuspec b/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/UnitsNet.NanoFramework.RadiationEquivalentDose.nuspec deleted file mode 100644 index 90fdb4bff5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/UnitsNet.NanoFramework.RadiationEquivalentDose.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.RadiationEquivalentDose - 6.0.0-pre019 - Units.NET RadiationEquivalentDose - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds RadiationEquivalentDose units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework radiationequivalentdose unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDose/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/RadiationEquivalentDoseRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/RadiationEquivalentDoseRate.nfproj deleted file mode 100644 index a764c389bd..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/RadiationEquivalentDoseRate.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {8eec9904-f4bb-c601-86ac-80fb153599f9} - Library - Properties - 512 - UnitsNet - UnitsNet.RadiationEquivalentDoseRate - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/UnitsNet.NanoFramework.RadiationEquivalentDoseRate.nuspec b/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/UnitsNet.NanoFramework.RadiationEquivalentDoseRate.nuspec deleted file mode 100644 index 8d33db4cc5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/UnitsNet.NanoFramework.RadiationEquivalentDoseRate.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.RadiationEquivalentDoseRate - 6.0.0-pre019 - Units.NET RadiationEquivalentDoseRate - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds RadiationEquivalentDoseRate units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework radiationequivalentdoserate unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/RadiationExposure.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/RadiationExposure.nfproj deleted file mode 100644 index f2b96d78df..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/RadiationExposure.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {69b383c7-828a-1857-cbe2-f11b9ba77320} - Library - Properties - 512 - UnitsNet - UnitsNet.RadiationExposure - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/UnitsNet.NanoFramework.RadiationExposure.nuspec b/UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/UnitsNet.NanoFramework.RadiationExposure.nuspec deleted file mode 100644 index d3de198942..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/UnitsNet.NanoFramework.RadiationExposure.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.RadiationExposure - 6.0.0-pre019 - Units.NET RadiationExposure - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds RadiationExposure units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework radiationexposure unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RadiationExposure/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Radioactivity/Radioactivity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Radioactivity/Radioactivity.nfproj deleted file mode 100644 index 760702039e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Radioactivity/Radioactivity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {abf4b42f-e999-2a78-403f-fb09524f186a} - Library - Properties - 512 - UnitsNet - UnitsNet.Radioactivity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Radioactivity/UnitsNet.NanoFramework.Radioactivity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Radioactivity/UnitsNet.NanoFramework.Radioactivity.nuspec deleted file mode 100644 index f718c1e20c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Radioactivity/UnitsNet.NanoFramework.Radioactivity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Radioactivity - 6.0.0-pre019 - Units.NET Radioactivity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Radioactivity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework radioactivity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Radioactivity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Radioactivity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Radioactivity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Ratio/Ratio.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Ratio/Ratio.nfproj deleted file mode 100644 index 64a1647f49..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Ratio/Ratio.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {b0be4813-d93e-7b06-d422-23ca28adf22a} - Library - Properties - 512 - UnitsNet - UnitsNet.Ratio - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Ratio/UnitsNet.NanoFramework.Ratio.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Ratio/UnitsNet.NanoFramework.Ratio.nuspec deleted file mode 100644 index 829a49f7e0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Ratio/UnitsNet.NanoFramework.Ratio.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Ratio - 6.0.0-pre019 - Units.NET Ratio - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Ratio units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework ratio unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Ratio/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Ratio/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Ratio/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/RatioChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/RatioChangeRate.nfproj deleted file mode 100644 index 7d1b463f9b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/RatioChangeRate.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {c028861d-f9e8-8231-2b6a-bc3b3fba349c} - Library - Properties - 512 - UnitsNet - UnitsNet.RatioChangeRate - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/UnitsNet.NanoFramework.RatioChangeRate.nuspec b/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/UnitsNet.NanoFramework.RatioChangeRate.nuspec deleted file mode 100644 index beca92e395..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/UnitsNet.NanoFramework.RatioChangeRate.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.RatioChangeRate - 6.0.0-pre019 - Units.NET RatioChangeRate - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds RatioChangeRate units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework ratiochangerate unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RatioChangeRate/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/ReciprocalArea.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/ReciprocalArea.nfproj deleted file mode 100644 index 55a25d5668..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/ReciprocalArea.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {30fee563-a3f0-9c50-bfd1-1af707aaf3c4} - Library - Properties - 512 - UnitsNet - UnitsNet.ReciprocalArea - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/UnitsNet.NanoFramework.ReciprocalArea.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/UnitsNet.NanoFramework.ReciprocalArea.nuspec deleted file mode 100644 index bbccc6e1df..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/UnitsNet.NanoFramework.ReciprocalArea.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ReciprocalArea - 6.0.0-pre019 - Units.NET ReciprocalArea - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ReciprocalArea units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework reciprocalarea unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalArea/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/ReciprocalLength.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/ReciprocalLength.nfproj deleted file mode 100644 index 048d0f98c9..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/ReciprocalLength.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {83d6c79a-c71a-d467-284c-28edbbd059d2} - Library - Properties - 512 - UnitsNet - UnitsNet.ReciprocalLength - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/UnitsNet.NanoFramework.ReciprocalLength.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/UnitsNet.NanoFramework.ReciprocalLength.nuspec deleted file mode 100644 index d9162a91ec..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/UnitsNet.NanoFramework.ReciprocalLength.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ReciprocalLength - 6.0.0-pre019 - Units.NET ReciprocalLength - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ReciprocalLength units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework reciprocallength unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ReciprocalLength/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/RelativeHumidity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/RelativeHumidity.nfproj deleted file mode 100644 index 0e8a0f01e6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/RelativeHumidity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {4ac05c74-08c5-2153-f38c-976975747b5c} - Library - Properties - 512 - UnitsNet - UnitsNet.RelativeHumidity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/UnitsNet.NanoFramework.RelativeHumidity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/UnitsNet.NanoFramework.RelativeHumidity.nuspec deleted file mode 100644 index 3fc2d9dc62..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/UnitsNet.NanoFramework.RelativeHumidity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.RelativeHumidity - 6.0.0-pre019 - Units.NET RelativeHumidity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds RelativeHumidity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework relativehumidity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RelativeHumidity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/RotationalAcceleration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/RotationalAcceleration.nfproj deleted file mode 100644 index 5aa8a5f088..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/RotationalAcceleration.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {e2110137-6a36-f4d1-2219-26eb18fee74d} - Library - Properties - 512 - UnitsNet - UnitsNet.RotationalAcceleration - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/UnitsNet.NanoFramework.RotationalAcceleration.nuspec b/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/UnitsNet.NanoFramework.RotationalAcceleration.nuspec deleted file mode 100644 index 054ed8e324..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/UnitsNet.NanoFramework.RotationalAcceleration.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.RotationalAcceleration - 6.0.0-pre019 - Units.NET RotationalAcceleration - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds RotationalAcceleration units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework rotationalacceleration unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalAcceleration/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/RotationalSpeed.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/RotationalSpeed.nfproj deleted file mode 100644 index 626ca3764c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/RotationalSpeed.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {934ef064-2dce-6d50-64e9-d4d2c4d41a81} - Library - Properties - 512 - UnitsNet - UnitsNet.RotationalSpeed - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/UnitsNet.NanoFramework.RotationalSpeed.nuspec b/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/UnitsNet.NanoFramework.RotationalSpeed.nuspec deleted file mode 100644 index 69c0e15a74..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/UnitsNet.NanoFramework.RotationalSpeed.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.RotationalSpeed - 6.0.0-pre019 - Units.NET RotationalSpeed - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds RotationalSpeed units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework rotationalspeed unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalSpeed/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/RotationalStiffness.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/RotationalStiffness.nfproj deleted file mode 100644 index 263ac99a43..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/RotationalStiffness.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {3788f245-ea6d-eb5d-80de-f25ab30a51cc} - Library - Properties - 512 - UnitsNet - UnitsNet.RotationalStiffness - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/UnitsNet.NanoFramework.RotationalStiffness.nuspec b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/UnitsNet.NanoFramework.RotationalStiffness.nuspec deleted file mode 100644 index c45c075870..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/UnitsNet.NanoFramework.RotationalStiffness.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.RotationalStiffness - 6.0.0-pre019 - Units.NET RotationalStiffness - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds RotationalStiffness units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework rotationalstiffness unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffness/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/RotationalStiffnessPerLength.nfproj b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/RotationalStiffnessPerLength.nfproj deleted file mode 100644 index 91f6e1ba74..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/RotationalStiffnessPerLength.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {eae89113-1312-f83c-1a4b-638b98e760b3} - Library - Properties - 512 - UnitsNet - UnitsNet.RotationalStiffnessPerLength - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/UnitsNet.NanoFramework.RotationalStiffnessPerLength.nuspec b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/UnitsNet.NanoFramework.RotationalStiffnessPerLength.nuspec deleted file mode 100644 index 028b1be677..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/UnitsNet.NanoFramework.RotationalStiffnessPerLength.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.RotationalStiffnessPerLength - 6.0.0-pre019 - Units.NET RotationalStiffnessPerLength - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds RotationalStiffnessPerLength units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework rotationalstiffnessperlength unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/packages.config b/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/RotationalStiffnessPerLength/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Scalar/Scalar.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Scalar/Scalar.nfproj deleted file mode 100644 index 959d03670d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Scalar/Scalar.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {609c8143-bdb3-709b-a7a5-cc33659c9b51} - Library - Properties - 512 - UnitsNet - UnitsNet.Scalar - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Scalar/UnitsNet.NanoFramework.Scalar.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Scalar/UnitsNet.NanoFramework.Scalar.nuspec deleted file mode 100644 index 9261e94462..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Scalar/UnitsNet.NanoFramework.Scalar.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Scalar - 6.0.0-pre019 - Units.NET Scalar - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Scalar units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework scalar unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Scalar/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Scalar/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Scalar/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/SolidAngle.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/SolidAngle.nfproj deleted file mode 100644 index 32e06e7f7c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/SolidAngle.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {39d13fa7-a1df-cea6-adee-bab64a00a843} - Library - Properties - 512 - UnitsNet - UnitsNet.SolidAngle - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/UnitsNet.NanoFramework.SolidAngle.nuspec b/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/UnitsNet.NanoFramework.SolidAngle.nuspec deleted file mode 100644 index cc8a74851b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/UnitsNet.NanoFramework.SolidAngle.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.SolidAngle - 6.0.0-pre019 - Units.NET SolidAngle - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds SolidAngle units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework solidangle unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SolidAngle/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/SpecificEnergy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/SpecificEnergy.nfproj deleted file mode 100644 index e062571c81..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/SpecificEnergy.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {5bce25ab-a4d6-d89c-5274-7eadd8c5967a} - Library - Properties - 512 - UnitsNet - UnitsNet.SpecificEnergy - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/UnitsNet.NanoFramework.SpecificEnergy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/UnitsNet.NanoFramework.SpecificEnergy.nuspec deleted file mode 100644 index 3a0af8c513..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/UnitsNet.NanoFramework.SpecificEnergy.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.SpecificEnergy - 6.0.0-pre019 - Units.NET SpecificEnergy - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds SpecificEnergy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework specificenergy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEnergy/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/SpecificEntropy.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/SpecificEntropy.nfproj deleted file mode 100644 index d4c07d679d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/SpecificEntropy.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {0d5dc515-9d35-ac02-c0b1-12c70c3163a2} - Library - Properties - 512 - UnitsNet - UnitsNet.SpecificEntropy - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/UnitsNet.NanoFramework.SpecificEntropy.nuspec b/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/UnitsNet.NanoFramework.SpecificEntropy.nuspec deleted file mode 100644 index 9948af1758..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/UnitsNet.NanoFramework.SpecificEntropy.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.SpecificEntropy - 6.0.0-pre019 - Units.NET SpecificEntropy - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds SpecificEntropy units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework specificentropy unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificEntropy/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/SpecificFuelConsumption.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/SpecificFuelConsumption.nfproj deleted file mode 100644 index addee8e44a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/SpecificFuelConsumption.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {f1a91b9a-ec32-5f98-d4d6-75ac04c63276} - Library - Properties - 512 - UnitsNet - UnitsNet.SpecificFuelConsumption - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/UnitsNet.NanoFramework.SpecificFuelConsumption.nuspec b/UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/UnitsNet.NanoFramework.SpecificFuelConsumption.nuspec deleted file mode 100644 index b6567a00c1..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/UnitsNet.NanoFramework.SpecificFuelConsumption.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.SpecificFuelConsumption - 6.0.0-pre019 - Units.NET SpecificFuelConsumption - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds SpecificFuelConsumption units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework specificfuelconsumption unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificFuelConsumption/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/SpecificVolume.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/SpecificVolume.nfproj deleted file mode 100644 index 7ee4926161..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/SpecificVolume.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {74b88d5c-96e5-7286-d2b2-8def18538246} - Library - Properties - 512 - UnitsNet - UnitsNet.SpecificVolume - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/UnitsNet.NanoFramework.SpecificVolume.nuspec b/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/UnitsNet.NanoFramework.SpecificVolume.nuspec deleted file mode 100644 index cc91a26ebd..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/UnitsNet.NanoFramework.SpecificVolume.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.SpecificVolume - 6.0.0-pre019 - Units.NET SpecificVolume - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds SpecificVolume units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework specificvolume unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificVolume/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/SpecificWeight.nfproj b/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/SpecificWeight.nfproj deleted file mode 100644 index e8b961bba0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/SpecificWeight.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {d63ac796-7087-bf6c-2848-e6511358fbe4} - Library - Properties - 512 - UnitsNet - UnitsNet.SpecificWeight - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/UnitsNet.NanoFramework.SpecificWeight.nuspec b/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/UnitsNet.NanoFramework.SpecificWeight.nuspec deleted file mode 100644 index 9a7f20aa34..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/UnitsNet.NanoFramework.SpecificWeight.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.SpecificWeight - 6.0.0-pre019 - Units.NET SpecificWeight - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds SpecificWeight units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework specificweight unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/packages.config b/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/SpecificWeight/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Speed/Speed.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Speed/Speed.nfproj deleted file mode 100644 index cebcbc5345..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Speed/Speed.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {e9fe72c3-56b4-856b-a592-ae6e98e571f3} - Library - Properties - 512 - UnitsNet - UnitsNet.Speed - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Speed/UnitsNet.NanoFramework.Speed.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Speed/UnitsNet.NanoFramework.Speed.nuspec deleted file mode 100644 index 28cfb226a1..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Speed/UnitsNet.NanoFramework.Speed.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Speed - 6.0.0-pre019 - Units.NET Speed - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Speed units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework speed unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Speed/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Speed/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Speed/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/StandardVolumeFlow.nfproj b/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/StandardVolumeFlow.nfproj deleted file mode 100644 index 23e6f61e70..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/StandardVolumeFlow.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {5da7dbe9-f180-570f-2da0-2737f043744d} - Library - Properties - 512 - UnitsNet - UnitsNet.StandardVolumeFlow - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/UnitsNet.NanoFramework.StandardVolumeFlow.nuspec b/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/UnitsNet.NanoFramework.StandardVolumeFlow.nuspec deleted file mode 100644 index 34538759b0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/UnitsNet.NanoFramework.StandardVolumeFlow.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.StandardVolumeFlow - 6.0.0-pre019 - Units.NET StandardVolumeFlow - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds StandardVolumeFlow units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework standardvolumeflow unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/packages.config b/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/StandardVolumeFlow/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Temperature/Temperature.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Temperature/Temperature.nfproj deleted file mode 100644 index 41ada396fa..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Temperature/Temperature.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {8bce58b9-1a87-6bb3-3cee-e0e0f012b618} - Library - Properties - 512 - UnitsNet - UnitsNet.Temperature - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Temperature/UnitsNet.NanoFramework.Temperature.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Temperature/UnitsNet.NanoFramework.Temperature.nuspec deleted file mode 100644 index a6587d50a7..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Temperature/UnitsNet.NanoFramework.Temperature.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Temperature - 6.0.0-pre019 - Units.NET Temperature - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Temperature units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework temperature unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Temperature/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Temperature/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Temperature/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/TemperatureChangeRate.nfproj b/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/TemperatureChangeRate.nfproj deleted file mode 100644 index 95a6af3338..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/TemperatureChangeRate.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {dfbb7b9f-c604-fedd-e658-17e196043123} - Library - Properties - 512 - UnitsNet - UnitsNet.TemperatureChangeRate - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/UnitsNet.NanoFramework.TemperatureChangeRate.nuspec b/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/UnitsNet.NanoFramework.TemperatureChangeRate.nuspec deleted file mode 100644 index d18b6baa86..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/UnitsNet.NanoFramework.TemperatureChangeRate.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.TemperatureChangeRate - 6.0.0-pre019 - Units.NET TemperatureChangeRate - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds TemperatureChangeRate units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework temperaturechangerate unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/packages.config b/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureChangeRate/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/TemperatureDelta.nfproj b/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/TemperatureDelta.nfproj deleted file mode 100644 index 8201b03171..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/TemperatureDelta.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {8854c5e8-e40b-74c3-aafc-de0f13239276} - Library - Properties - 512 - UnitsNet - UnitsNet.TemperatureDelta - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/UnitsNet.NanoFramework.TemperatureDelta.nuspec b/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/UnitsNet.NanoFramework.TemperatureDelta.nuspec deleted file mode 100644 index 7d2bae64f5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/UnitsNet.NanoFramework.TemperatureDelta.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.TemperatureDelta - 6.0.0-pre019 - Units.NET TemperatureDelta - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds TemperatureDelta units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework temperaturedelta unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/packages.config b/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureDelta/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/TemperatureGradient.nfproj b/UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/TemperatureGradient.nfproj deleted file mode 100644 index 291bab56e4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/TemperatureGradient.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {83d1d75e-3c26-b8d0-f097-f99452e749cc} - Library - Properties - 512 - UnitsNet - UnitsNet.TemperatureGradient - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/UnitsNet.NanoFramework.TemperatureGradient.nuspec b/UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/UnitsNet.NanoFramework.TemperatureGradient.nuspec deleted file mode 100644 index 503cd4f177..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/UnitsNet.NanoFramework.TemperatureGradient.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.TemperatureGradient - 6.0.0-pre019 - Units.NET TemperatureGradient - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds TemperatureGradient units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework temperaturegradient unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/packages.config b/UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/TemperatureGradient/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/ThermalConductivity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/ThermalConductivity.nfproj deleted file mode 100644 index c281ac35ce..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/ThermalConductivity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {7e7d8010-b37a-151a-11a5-1db234ee1104} - Library - Properties - 512 - UnitsNet - UnitsNet.ThermalConductivity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/UnitsNet.NanoFramework.ThermalConductivity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/UnitsNet.NanoFramework.ThermalConductivity.nuspec deleted file mode 100644 index 07baef261e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/UnitsNet.NanoFramework.ThermalConductivity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ThermalConductivity - 6.0.0-pre019 - Units.NET ThermalConductivity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ThermalConductivity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework thermalconductivity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ThermalConductivity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/ThermalInsulance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/ThermalInsulance.nfproj deleted file mode 100644 index 0c89e9e5ef..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/ThermalInsulance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {0194c08d-ffcd-78bd-9e14-66634fe6d4ea} - Library - Properties - 512 - UnitsNet - UnitsNet.ThermalInsulance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/UnitsNet.NanoFramework.ThermalInsulance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/UnitsNet.NanoFramework.ThermalInsulance.nuspec deleted file mode 100644 index cf09f8fbb8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/UnitsNet.NanoFramework.ThermalInsulance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ThermalInsulance - 6.0.0-pre019 - Units.NET ThermalInsulance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ThermalInsulance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework thermalinsulance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ThermalInsulance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/ThermalResistance.nfproj b/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/ThermalResistance.nfproj deleted file mode 100644 index 62823feeef..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/ThermalResistance.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {c69bdd4d-3ebd-4b8e-cffb-650903da3872} - Library - Properties - 512 - UnitsNet - UnitsNet.ThermalResistance - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/UnitsNet.NanoFramework.ThermalResistance.nuspec b/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/UnitsNet.NanoFramework.ThermalResistance.nuspec deleted file mode 100644 index 54e8259b5d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/UnitsNet.NanoFramework.ThermalResistance.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.ThermalResistance - 6.0.0-pre019 - Units.NET ThermalResistance - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds ThermalResistance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework thermalresistance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/packages.config b/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/ThermalResistance/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Torque/Torque.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Torque/Torque.nfproj deleted file mode 100644 index 9fa5c5b3db..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Torque/Torque.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {3b6bbc8a-1b22-deff-2980-53b77b6f3e5f} - Library - Properties - 512 - UnitsNet - UnitsNet.Torque - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Torque/UnitsNet.NanoFramework.Torque.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Torque/UnitsNet.NanoFramework.Torque.nuspec deleted file mode 100644 index ff95d803b5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Torque/UnitsNet.NanoFramework.Torque.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Torque - 6.0.0-pre019 - Units.NET Torque - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Torque units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework torque unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Torque/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Torque/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Torque/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/Turbidity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Turbidity/Turbidity.nfproj deleted file mode 100644 index 79830f8bf6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/Turbidity.nfproj +++ /dev/null @@ -1,47 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {05ac8aed-49a4-5c9f-d8c2-8d2debf64791} - Library - Properties - 512 - UnitsNet - UnitsNet.Turbidity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - ..\packages\nanoFramework.System.Math.1.5.43\lib\System.Math.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/UnitsNet.NanoFramework.Turbidity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Turbidity/UnitsNet.NanoFramework.Turbidity.nuspec deleted file mode 100644 index d3187667ba..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/UnitsNet.NanoFramework.Turbidity.nuspec +++ /dev/null @@ -1,27 +0,0 @@ - - - - UnitsNet.nanoFramework.Turbidity - 6.0.0-pre019 - Units.NET Turbidity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Turbidity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework turbidity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Turbidity/packages.config deleted file mode 100644 index ac11548cd6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Turbidity/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/AbsorbedDoseOfIonizingRadiationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/AbsorbedDoseOfIonizingRadiationUnit.g.cs deleted file mode 100644 index abaa075252..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/AbsorbedDoseOfIonizingRadiationUnit.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum AbsorbedDoseOfIonizingRadiationUnit - { - Centigray = 6, - Decigray = 26, - Femtogray = 7, - Gigagray = 8, - - /// - /// The gray is the unit of ionizing radiation dose in the SI, defined as the absorption of one joule of radiation energy per kilogram of matter. - /// - /// https://en.wikipedia.org/wiki/Gray_(unit) - Gray = 5, - Kilogray = 9, - Kilorad = 4, - Megagray = 3, - Megarad = 2, - Microgray = 1, - Milligray = 10, - Millirad = 18, - Nanogray = 16, - Petagray = 19, - Picogray = 11, - - /// - /// The rad is a unit of absorbed radiation dose, defined as 1 rad = 0.01 Gy = 0.01 J/kg. - /// - /// https://en.wikipedia.org/wiki/Rad_(radiation_unit) - Rad = 17, - Teragray = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/AccelerationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/AccelerationUnit.g.cs deleted file mode 100644 index a514c50ff7..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/AccelerationUnit.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum AccelerationUnit - { - CentimeterPerSecondSquared = 1, - DecimeterPerSecondSquared = 2, - FootPerSecondSquared = 3, - InchPerSecondSquared = 4, - KilometerPerSecondSquared = 5, - - /// - /// The knot (/nɒt/) is a unit of speed equal to one nautical mile per hour, exactly 1.852 km/h (approximately 1.151 mph or 0.514 m/s). - /// - /// https://en.wikipedia.org/wiki/Knot_(unit) - KnotPerHour = 6, - - /// - /// The knot (/nɒt/) is a unit of speed equal to one nautical mile per hour, exactly 1.852 km/h (approximately 1.151 mph or 0.514 m/s). - /// - /// https://en.wikipedia.org/wiki/Knot_(unit) - KnotPerMinute = 7, - KnotPerSecond = 8, - MeterPerSecondSquared = 9, - MicrometerPerSecondSquared = 10, - MillimeterPerSecondSquared = 11, - MillistandardGravity = 12, - NanometerPerSecondSquared = 13, - StandardGravity = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/AmountOfSubstanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/AmountOfSubstanceUnit.g.cs deleted file mode 100644 index ccffc2872f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/AmountOfSubstanceUnit.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum AmountOfSubstanceUnit - { - Centimole = 1, - CentipoundMole = 2, - Decimole = 3, - DecipoundMole = 4, - Femtomole = 19, - Kilomole = 5, - KilopoundMole = 6, - Megamole = 7, - Micromole = 8, - MicropoundMole = 9, - Millimole = 10, - MillipoundMole = 11, - Mole = 12, - Nanomole = 13, - NanopoundMole = 14, - Picomole = 18, - PoundMole = 15, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/AmplitudeRatioUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/AmplitudeRatioUnit.g.cs deleted file mode 100644 index 97a8d592f6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/AmplitudeRatioUnit.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum AmplitudeRatioUnit - { - DecibelMicrovolt = 1, - DecibelMillivolt = 2, - DecibelUnloaded = 3, - DecibelVolt = 4, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/AngleUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/AngleUnit.g.cs deleted file mode 100644 index ed51329da8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/AngleUnit.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum AngleUnit - { - Arcminute = 1, - Arcsecond = 2, - Centiradian = 3, - Deciradian = 4, - Degree = 5, - Gradian = 6, - Microdegree = 7, - Microradian = 8, - Millidegree = 9, - Milliradian = 10, - Nanodegree = 11, - Nanoradian = 12, - NatoMil = 13, - Radian = 14, - Revolution = 15, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/AreaDensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/AreaDensityUnit.g.cs deleted file mode 100644 index bacdc7e8f4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/AreaDensityUnit.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum AreaDensityUnit - { - - /// - /// Also known as grammage for paper industry. In fiber industry used with abbreviation 'gsm'. - /// - /// https://en.wikipedia.org/wiki/Grammage - GramPerSquareMeter = 6, - KilogramPerSquareMeter = 1, - MilligramPerSquareMeter = 10, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/AreaMomentOfInertiaUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/AreaMomentOfInertiaUnit.g.cs deleted file mode 100644 index 388a130b9d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/AreaMomentOfInertiaUnit.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum AreaMomentOfInertiaUnit - { - CentimeterToTheFourth = 1, - DecimeterToTheFourth = 2, - FootToTheFourth = 3, - InchToTheFourth = 4, - MeterToTheFourth = 5, - MillimeterToTheFourth = 6, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/AreaUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/AreaUnit.g.cs deleted file mode 100644 index 73959f66fb..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/AreaUnit.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum AreaUnit - { - - /// - /// Based upon the international yard and pound agreement of 1959, an acre may be declared as exactly 4,046.8564224 square metres. - /// - /// https://en.wikipedia.org/wiki/Acre - Acre = 1, - Hectare = 2, - SquareCentimeter = 3, - SquareDecimeter = 4, - SquareFoot = 5, - SquareInch = 6, - SquareKilometer = 7, - SquareMeter = 8, - SquareMicrometer = 9, - - /// - /// The statute mile was standardised between the British Commonwealth and the United States by an international agreement in 1959, when it was formally redefined with respect to SI units as exactly 1,609.344 metres. - /// - /// https://en.wikipedia.org/wiki/Mile - SquareMile = 10, - SquareMillimeter = 11, - SquareNauticalMile = 12, - - /// - /// The yard (symbol: yd) is an English unit of length in both the British imperial and US customary systems of measurement equalling 3 feet (or 36 inches). Since 1959 the yard has been by international agreement standardized as exactly 0.9144 meter. A distance of 1,760 yards is equal to 1 mile. - /// - /// https://en.wikipedia.org/wiki/Yard - SquareYard = 13, - - /// - /// In the United States, the foot was defined as 12 inches, with the inch being defined by the Mendenhall Order of 1893 as 39.37 inches = 1 m. This makes a U.S. survey foot exactly 1200/3937 meters. - /// - /// https://en.wikipedia.org/wiki/Foot_(unit) - UsSurveySquareFoot = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/BitRateUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/BitRateUnit.g.cs deleted file mode 100644 index ebfb72662d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/BitRateUnit.g.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum BitRateUnit - { - BitPerSecond = 1, - BytePerSecond = 2, - ExabitPerSecond = 3, - ExabytePerSecond = 4, - ExaoctetPerSecond = 29, - ExbibitPerSecond = 5, - ExbibytePerSecond = 6, - ExbioctetPerSecond = 31, - GibibitPerSecond = 7, - GibibytePerSecond = 8, - GibioctetPerSecond = 32, - GigabitPerSecond = 9, - GigabytePerSecond = 10, - GigaoctetPerSecond = 35, - KibibitPerSecond = 11, - KibibytePerSecond = 12, - KibioctetPerSecond = 30, - KilobitPerSecond = 13, - KilobytePerSecond = 14, - KilooctetPerSecond = 27, - MebibitPerSecond = 15, - MebibytePerSecond = 16, - MebioctetPerSecond = 36, - MegabitPerSecond = 17, - MegabytePerSecond = 18, - MegaoctetPerSecond = 34, - OctetPerSecond = 28, - PebibitPerSecond = 19, - PebibytePerSecond = 20, - PebioctetPerSecond = 33, - PetabitPerSecond = 21, - PetabytePerSecond = 22, - PetaoctetPerSecond = 46, - TebibitPerSecond = 23, - TebibytePerSecond = 24, - TebioctetPerSecond = 42, - TerabitPerSecond = 25, - TerabytePerSecond = 26, - TeraoctetPerSecond = 40, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/BrakeSpecificFuelConsumptionUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/BrakeSpecificFuelConsumptionUnit.g.cs deleted file mode 100644 index 73c93e2039..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/BrakeSpecificFuelConsumptionUnit.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum BrakeSpecificFuelConsumptionUnit - { - GramPerKiloWattHour = 1, - KilogramPerJoule = 2, - - /// - /// The pound per horse power hour uses mechanical horse power and the imperial pound - /// - PoundPerMechanicalHorsepowerHour = 3, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/CoefficientOfThermalExpansionUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/CoefficientOfThermalExpansionUnit.g.cs deleted file mode 100644 index 258f5065da..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/CoefficientOfThermalExpansionUnit.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum CoefficientOfThermalExpansionUnit - { - PerDegreeCelsius = 9, - PerDegreeFahrenheit = 11, - PerKelvin = 13, - PpmPerDegreeCelsius = 6, - PpmPerDegreeFahrenheit = 4, - PpmPerKelvin = 7, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/CompressibilityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/CompressibilityUnit.g.cs deleted file mode 100644 index c272160cf2..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/CompressibilityUnit.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum CompressibilityUnit - { - InverseAtmosphere = 1, - InverseBar = 2, - InverseKilopascal = 3, - InverseMegapascal = 4, - InverseMillibar = 5, - InversePascal = 6, - InversePoundForcePerSquareInch = 7, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/DensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/DensityUnit.g.cs deleted file mode 100644 index 638b21b01a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/DensityUnit.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum DensityUnit - { - CentigramPerDeciliter = 1, - CentigramPerLiter = 2, - CentigramPerMilliliter = 3, - DecigramPerDeciliter = 4, - DecigramPerLiter = 5, - DecigramPerMilliliter = 6, - FemtogramPerDeciliter = 59, - FemtogramPerLiter = 56, - FemtogramPerMilliliter = 61, - GramPerCubicCentimeter = 7, - GramPerCubicFoot = 8, - GramPerCubicInch = 9, - GramPerCubicMeter = 10, - GramPerCubicMillimeter = 11, - GramPerDeciliter = 12, - GramPerLiter = 13, - GramPerMilliliter = 14, - KilogramPerCubicCentimeter = 15, - KilogramPerCubicMeter = 16, - KilogramPerCubicMillimeter = 17, - KilogramPerLiter = 18, - KilopoundPerCubicFoot = 19, - KilopoundPerCubicInch = 20, - KilopoundPerCubicYard = 64, - MicrogramPerCubicMeter = 21, - MicrogramPerDeciliter = 22, - MicrogramPerLiter = 23, - MicrogramPerMilliliter = 24, - MilligramPerCubicMeter = 25, - MilligramPerDeciliter = 26, - MilligramPerLiter = 27, - MilligramPerMilliliter = 28, - NanogramPerDeciliter = 29, - NanogramPerLiter = 30, - NanogramPerMilliliter = 31, - PicogramPerDeciliter = 32, - PicogramPerLiter = 33, - PicogramPerMilliliter = 34, - PoundPerCubicCentimeter = 35, - PoundPerCubicFoot = 36, - PoundPerCubicInch = 37, - PoundPerCubicMeter = 38, - PoundPerCubicMillimeter = 39, - - /// - /// Calculated from the definition of pound and Cubic yard compared to metric kilogram and meter. - /// - PoundPerCubicYard = 58, - PoundPerImperialGallon = 40, - PoundPerUSGallon = 41, - SlugPerCubicCentimeter = 42, - SlugPerCubicFoot = 43, - SlugPerCubicInch = 44, - SlugPerCubicMeter = 45, - SlugPerCubicMillimeter = 46, - TonnePerCubicCentimeter = 47, - TonnePerCubicFoot = 48, - TonnePerCubicInch = 49, - TonnePerCubicMeter = 50, - TonnePerCubicMillimeter = 51, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/DoseAreaProductUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/DoseAreaProductUnit.g.cs deleted file mode 100644 index 958c8cfbf0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/DoseAreaProductUnit.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum DoseAreaProductUnit - { - CentigraySquareCentimeter = 6, - CentigraySquareDecimeter = 3, - CentigraySquareMeter = 7, - CentigraySquareMicrometer = 21, - CentigraySquareMillimeter = 2, - DecigraySquareCentimeter = 9, - DecigraySquareDecimeter = 1, - DecigraySquareMeter = 4, - DecigraySquareMicrometer = 25, - DecigraySquareMillimeter = 8, - GraySquareCentimeter = 10, - GraySquareDecimeter = 5, - GraySquareMeter = 19, - GraySquareMicrometer = 26, - GraySquareMillimeter = 16, - MicrograySquareCentimeter = 13, - MicrograySquareDecimeter = 20, - MicrograySquareMeter = 15, - MicrograySquareMicrometer = 29, - MicrograySquareMillimeter = 18, - MilligraySquareCentimeter = 14, - MilligraySquareDecimeter = 17, - MilligraySquareMeter = 11, - MilligraySquareMicrometer = 30, - MilligraySquareMillimeter = 12, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/DurationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/DurationUnit.g.cs deleted file mode 100644 index 7ae6fe672f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/DurationUnit.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum DurationUnit - { - Day = 1, - Hour = 2, - JulianYear = 3, - Microsecond = 4, - Millisecond = 5, - Minute = 6, - Month30 = 7, - Nanosecond = 8, - Picosecond = 12, - Second = 9, - Sol = 15, - Week = 10, - Year365 = 11, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/DynamicViscosityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/DynamicViscosityUnit.g.cs deleted file mode 100644 index 607837db48..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/DynamicViscosityUnit.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum DynamicViscosityUnit - { - Centipoise = 1, - MicropascalSecond = 2, - MillipascalSecond = 3, - NewtonSecondPerMeterSquared = 4, - PascalSecond = 5, - Poise = 6, - PoundForceSecondPerSquareFoot = 7, - PoundForceSecondPerSquareInch = 8, - PoundPerFootSecond = 9, - Reyn = 10, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricAdmittanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricAdmittanceUnit.g.cs deleted file mode 100644 index 8399e233bc..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricAdmittanceUnit.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricAdmittanceUnit - { - Gigamho = 16, - Gigasiemens = 19, - Kilomho = 8, - Kilosiemens = 14, - Megamho = 10, - Megasiemens = 13, - Mho = 7, - Micromho = 12, - Microsiemens = 1, - Millimho = 5, - Millisiemens = 2, - Nanomho = 6, - Nanosiemens = 3, - Siemens = 4, - Teramho = 15, - Terasiemens = 9, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricApparentEnergyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricApparentEnergyUnit.g.cs deleted file mode 100644 index 85d21e152a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricApparentEnergyUnit.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricApparentEnergyUnit - { - KilovoltampereHour = 7, - MegavoltampereHour = 3, - VoltampereHour = 10, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricApparentPowerUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricApparentPowerUnit.g.cs deleted file mode 100644 index fc85f4fa98..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricApparentPowerUnit.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricApparentPowerUnit - { - Gigavoltampere = 3, - Kilovoltampere = 1, - Megavoltampere = 2, - Microvoltampere = 10, - Millivoltampere = 6, - Voltampere = 9, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCapacitanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCapacitanceUnit.g.cs deleted file mode 100644 index da5499b11d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCapacitanceUnit.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricCapacitanceUnit - { - Farad = 3, - Kilofarad = 8, - Megafarad = 1, - Microfarad = 7, - Millifarad = 5, - Nanofarad = 4, - Picofarad = 10, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricChargeDensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricChargeDensityUnit.g.cs deleted file mode 100644 index 05909c9a62..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricChargeDensityUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricChargeDensityUnit - { - CoulombPerCubicMeter = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricChargeUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricChargeUnit.g.cs deleted file mode 100644 index bf853e9a10..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricChargeUnit.g.cs +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricChargeUnit - { - AmpereHour = 1, - Coulomb = 2, - KiloampereHour = 3, - Kilocoulomb = 13, - MegaampereHour = 4, - Megacoulomb = 6, - Microcoulomb = 11, - MilliampereHour = 5, - Millicoulomb = 7, - Nanocoulomb = 9, - Picocoulomb = 8, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricConductanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricConductanceUnit.g.cs deleted file mode 100644 index 06708cf596..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricConductanceUnit.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricConductanceUnit - { - Gigamho = 7, - Gigasiemens = 18, - Kilomho = 15, - Kilosiemens = 6, - Megamho = 8, - Megasiemens = 17, - Mho = 12, - Micromho = 5, - Microsiemens = 1, - Millimho = 9, - Millisiemens = 2, - Nanomho = 14, - Nanosiemens = 10, - Siemens = 3, - Teramho = 19, - Terasiemens = 16, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricConductivityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricConductivityUnit.g.cs deleted file mode 100644 index 3bca9b88e6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricConductivityUnit.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricConductivityUnit - { - MicrosiemensPerCentimeter = 6, - MillisiemensPerCentimeter = 12, - SiemensPerCentimeter = 13, - SiemensPerFoot = 1, - SiemensPerInch = 2, - SiemensPerMeter = 3, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentDensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentDensityUnit.g.cs deleted file mode 100644 index 433e70c970..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentDensityUnit.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricCurrentDensityUnit - { - AmperePerSquareFoot = 1, - AmperePerSquareInch = 2, - AmperePerSquareMeter = 3, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentGradientUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentGradientUnit.g.cs deleted file mode 100644 index 64607d4ef8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentGradientUnit.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricCurrentGradientUnit - { - AmperePerMicrosecond = 1, - AmperePerMillisecond = 2, - AmperePerMinute = 11, - AmperePerNanosecond = 3, - AmperePerSecond = 4, - MilliamperePerMinute = 6, - MilliamperePerSecond = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentUnit.g.cs deleted file mode 100644 index 19e8b18382..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricCurrentUnit.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricCurrentUnit - { - Ampere = 1, - Centiampere = 2, - Femtoampere = 9, - Kiloampere = 3, - Megaampere = 4, - Microampere = 5, - Milliampere = 6, - Nanoampere = 7, - Picoampere = 8, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricFieldUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricFieldUnit.g.cs deleted file mode 100644 index 03ac0494d0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricFieldUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricFieldUnit - { - VoltPerMeter = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricImpedanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricImpedanceUnit.g.cs deleted file mode 100644 index f4a01427b7..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricImpedanceUnit.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricImpedanceUnit - { - Gigaohm = 4, - Kiloohm = 3, - Megaohm = 10, - Microohm = 8, - Milliohm = 9, - Nanoohm = 7, - Ohm = 6, - Teraohm = 5, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricInductanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricInductanceUnit.g.cs deleted file mode 100644 index d12d8e5cfc..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricInductanceUnit.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricInductanceUnit - { - Henry = 1, - Microhenry = 2, - Millihenry = 3, - Nanohenry = 4, - Picohenry = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialChangeRateUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialChangeRateUnit.g.cs deleted file mode 100644 index cac18f9c78..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialChangeRateUnit.g.cs +++ /dev/null @@ -1,51 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricPotentialChangeRateUnit - { - KilovoltPerHour = 1, - KilovoltPerMicrosecond = 2, - KilovoltPerMinute = 3, - KilovoltPerSecond = 4, - MegavoltPerHour = 5, - MegavoltPerMicrosecond = 6, - MegavoltPerMinute = 7, - MegavoltPerSecond = 8, - MicrovoltPerHour = 9, - MicrovoltPerMicrosecond = 10, - MicrovoltPerMinute = 11, - MicrovoltPerSecond = 12, - MillivoltPerHour = 13, - MillivoltPerMicrosecond = 14, - MillivoltPerMinute = 15, - MillivoltPerSecond = 16, - VoltPerHour = 17, - VoltPerMicrosecond = 18, - VoltPerMinute = 19, - VoltPerSecond = 20, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialUnit.g.cs deleted file mode 100644 index 494424283d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricPotentialUnit.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricPotentialUnit - { - Kilovolt = 1, - Megavolt = 2, - Microvolt = 3, - Millivolt = 4, - Nanovolt = 11, - Volt = 5, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactanceUnit.g.cs deleted file mode 100644 index 2f060e90b4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactanceUnit.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricReactanceUnit - { - Gigaohm = 5, - Kiloohm = 8, - Megaohm = 1, - Microohm = 9, - Milliohm = 4, - Nanoohm = 13, - Ohm = 6, - Teraohm = 2, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactiveEnergyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactiveEnergyUnit.g.cs deleted file mode 100644 index 4acffa954b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactiveEnergyUnit.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricReactiveEnergyUnit - { - KilovoltampereReactiveHour = 10, - MegavoltampereReactiveHour = 4, - VoltampereReactiveHour = 7, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactivePowerUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactivePowerUnit.g.cs deleted file mode 100644 index e905d95887..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricReactivePowerUnit.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricReactivePowerUnit - { - GigavoltampereReactive = 1, - KilovoltampereReactive = 2, - MegavoltampereReactive = 8, - VoltampereReactive = 7, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricResistanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricResistanceUnit.g.cs deleted file mode 100644 index 0b27324d86..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricResistanceUnit.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricResistanceUnit - { - Gigaohm = 1, - Kiloohm = 2, - Megaohm = 3, - Microohm = 4, - Milliohm = 5, - Nanoohm = 11, - Ohm = 6, - Teraohm = 12, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricResistivityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricResistivityUnit.g.cs deleted file mode 100644 index c7f43cfc6c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricResistivityUnit.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricResistivityUnit - { - KiloohmCentimeter = 1, - KiloohmMeter = 2, - MegaohmCentimeter = 3, - MegaohmMeter = 4, - MicroohmCentimeter = 5, - MicroohmMeter = 6, - MilliohmCentimeter = 7, - MilliohmMeter = 8, - NanoohmCentimeter = 9, - NanoohmMeter = 10, - OhmCentimeter = 11, - OhmMeter = 12, - PicoohmCentimeter = 13, - PicoohmMeter = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricSurfaceChargeDensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricSurfaceChargeDensityUnit.g.cs deleted file mode 100644 index 30c7a098de..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricSurfaceChargeDensityUnit.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricSurfaceChargeDensityUnit - { - CoulombPerSquareCentimeter = 1, - CoulombPerSquareInch = 2, - CoulombPerSquareMeter = 3, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricSusceptanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricSusceptanceUnit.g.cs deleted file mode 100644 index 02be9d8e07..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ElectricSusceptanceUnit.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ElectricSusceptanceUnit - { - Gigamho = 16, - Gigasiemens = 15, - Kilomho = 8, - Kilosiemens = 4, - Megamho = 12, - Megasiemens = 19, - Mho = 7, - Micromho = 9, - Microsiemens = 10, - Millimho = 3, - Millisiemens = 6, - Nanomho = 5, - Nanosiemens = 1, - Siemens = 2, - Teramho = 20, - Terasiemens = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyDensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyDensityUnit.g.cs deleted file mode 100644 index bf72f7d4f3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyDensityUnit.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum EnergyDensityUnit - { - GigajoulePerCubicMeter = 6, - GigawattHourPerCubicMeter = 8, - JoulePerCubicMeter = 3, - KilojoulePerCubicMeter = 5, - KilowattHourPerCubicMeter = 2, - MegajoulePerCubicMeter = 9, - MegawattHourPerCubicMeter = 7, - PetajoulePerCubicMeter = 4, - PetawattHourPerCubicMeter = 1, - TerajoulePerCubicMeter = 10, - TerawattHourPerCubicMeter = 12, - WattHourPerCubicMeter = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyUnit.g.cs deleted file mode 100644 index 87b58d3a8a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyUnit.g.cs +++ /dev/null @@ -1,106 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum EnergyUnit - { - BritishThermalUnit = 1, - Calorie = 2, - DecathermEc = 3, - DecathermImperial = 4, - DecathermUs = 5, - - /// - /// In physics, an electronvolt (symbol eV, also written electron-volt and electron volt) is the measure of an amount of kinetic energy gained by a single electron accelerating from rest through an electric potential difference of one volt in vacuum. When used as a unit of energy, the numerical value of 1 eV in joules (symbol J) is equivalent to the numerical value of the charge of an electron in coulombs (symbol C). Under the 2019 redefinition of the SI base units, this sets 1 eV equal to the exact value 1.602176634×10−19 J. - /// - /// https://en.wikipedia.org/wiki/Electronvolt - ElectronVolt = 6, - - /// - /// The erg is a unit of energy equal to 10−7 joules (100 nJ). It originated in the Centimetre–gram–second system of units (CGS). It has the symbol erg. The erg is not an SI unit. Its name is derived from ergon (ἔργον), a Greek word meaning 'work' or 'task'. - /// - /// https://en.wikipedia.org/wiki/Erg - Erg = 7, - - /// - /// A pound-foot (lb⋅ft), abbreviated from pound-force foot (lbf · ft), is a unit of torque representing one pound of force acting at a perpendicular distance of one foot from a pivot point. Conversely one foot pound-force (ft · lbf) is the moment about an axis that applies one pound-force at a radius of one foot. - /// - /// https://en.wikipedia.org/wiki/Pound-foot_(torque) - FootPound = 8, - GigabritishThermalUnit = 9, - GigaelectronVolt = 10, - Gigajoule = 11, - GigawattDay = 12, - GigawattHour = 13, - - /// - /// A horsepower-hour (symbol: hp⋅h) is an outdated unit of energy, not used in the International System of Units. The unit represents an amount of work a horse is supposed capable of delivering during an hour (1 horsepower integrated over a time interval of an hour). - /// - /// https://en.wikipedia.org/wiki/Horsepower-hour - HorsepowerHour = 14, - Joule = 15, - KilobritishThermalUnit = 16, - Kilocalorie = 17, - KiloelectronVolt = 18, - Kilojoule = 19, - KilowattDay = 20, - KilowattHour = 21, - MegabritishThermalUnit = 22, - Megacalorie = 23, - MegaelectronVolt = 24, - Megajoule = 25, - MegawattDay = 26, - MegawattHour = 27, - Microjoule = 47, - Millijoule = 28, - Nanojoule = 45, - Petajoule = 43, - TeraelectronVolt = 29, - Terajoule = 37, - TerawattDay = 30, - TerawattHour = 31, - - /// - /// The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory. - /// - /// https://en.wikipedia.org/wiki/Therm - ThermEc = 32, - - /// - /// The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory. - /// - /// https://en.wikipedia.org/wiki/Therm - ThermImperial = 33, - - /// - /// The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory. - /// - /// https://en.wikipedia.org/wiki/Therm - ThermUs = 34, - WattDay = 35, - WattHour = 36, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/EntropyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/EntropyUnit.g.cs deleted file mode 100644 index 1fbd647e03..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/EntropyUnit.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum EntropyUnit - { - CaloriePerKelvin = 1, - JoulePerDegreeCelsius = 2, - JoulePerKelvin = 3, - KilocaloriePerKelvin = 4, - KilojoulePerDegreeCelsius = 5, - KilojoulePerKelvin = 6, - MegajoulePerKelvin = 7, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/FluidResistanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/FluidResistanceUnit.g.cs deleted file mode 100644 index e5576ed308..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/FluidResistanceUnit.g.cs +++ /dev/null @@ -1,52 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum FluidResistanceUnit - { - /// https://en.wikipedia.org/wiki/Vascular_resistance - DyneSecondPerCentimeterToTheFifth = 6, - MegapascalSecondPerCubicMeter = 7, - MillimeterMercuryMinutePerCubicCentimeter = 3, - MillimeterMercuryMinutePerCubicMeter = 5, - MillimeterMercuryMinutePerLiter = 2, - MillimeterMercuryMinutePerMilliliter = 9, - MillimeterMercurySecondPerCubicCentimeter = 8, - MillimeterMercurySecondPerCubicMeter = 10, - MillimeterMercurySecondPerLiter = 4, - MillimeterMercurySecondPerMilliliter = 1, - PascalMinutePerCubicCentimeter = 19, - PascalMinutePerCubicMeter = 16, - PascalMinutePerLiter = 15, - PascalMinutePerMilliliter = 12, - PascalSecondPerCubicCentimeter = 18, - PascalSecondPerCubicMeter = 13, - PascalSecondPerLiter = 11, - PascalSecondPerMilliliter = 20, - /// https://en.wikipedia.org/wiki/Vascular_resistance - WoodUnit = 17, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ForceChangeRateUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ForceChangeRateUnit.g.cs deleted file mode 100644 index 9b76b2f23a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ForceChangeRateUnit.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ForceChangeRateUnit - { - CentinewtonPerSecond = 1, - DecanewtonPerMinute = 2, - DecanewtonPerSecond = 3, - DecinewtonPerSecond = 4, - KilonewtonPerMinute = 5, - KilonewtonPerSecond = 6, - KilopoundForcePerMinute = 7, - KilopoundForcePerSecond = 8, - MicronewtonPerSecond = 9, - MillinewtonPerSecond = 10, - NanonewtonPerSecond = 11, - NewtonPerMinute = 12, - NewtonPerSecond = 13, - PoundForcePerMinute = 14, - PoundForcePerSecond = 15, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ForcePerLengthUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ForcePerLengthUnit.g.cs deleted file mode 100644 index 7f6a376ca3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ForcePerLengthUnit.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ForcePerLengthUnit - { - CentinewtonPerCentimeter = 1, - CentinewtonPerMeter = 2, - CentinewtonPerMillimeter = 3, - DecanewtonPerCentimeter = 4, - DecanewtonPerMeter = 5, - DecanewtonPerMillimeter = 6, - DecinewtonPerCentimeter = 7, - DecinewtonPerMeter = 8, - DecinewtonPerMillimeter = 9, - KilogramForcePerCentimeter = 10, - KilogramForcePerMeter = 11, - KilogramForcePerMillimeter = 12, - KilonewtonPerCentimeter = 13, - KilonewtonPerMeter = 14, - KilonewtonPerMillimeter = 15, - KilopoundForcePerFoot = 16, - KilopoundForcePerInch = 17, - MeganewtonPerCentimeter = 18, - MeganewtonPerMeter = 19, - MeganewtonPerMillimeter = 20, - MicronewtonPerCentimeter = 21, - MicronewtonPerMeter = 22, - MicronewtonPerMillimeter = 23, - MillinewtonPerCentimeter = 24, - MillinewtonPerMeter = 25, - MillinewtonPerMillimeter = 26, - NanonewtonPerCentimeter = 27, - NanonewtonPerMeter = 28, - NanonewtonPerMillimeter = 29, - NewtonPerCentimeter = 30, - NewtonPerMeter = 31, - NewtonPerMillimeter = 32, - PoundForcePerFoot = 33, - PoundForcePerInch = 34, - PoundForcePerYard = 35, - TonneForcePerCentimeter = 36, - TonneForcePerMeter = 37, - TonneForcePerMillimeter = 38, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ForceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ForceUnit.g.cs deleted file mode 100644 index e61a6777ae..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ForceUnit.g.cs +++ /dev/null @@ -1,97 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ForceUnit - { - Decanewton = 1, - - /// - /// One dyne is equal to 10 micronewtons, 10e−5 N or to 10 nsn (nanosthenes) in the old metre–tonne–second system of units. - /// - /// https://en.wikipedia.org/wiki/Dyne#Definition - Dyn = 2, - - /// - /// The gram-force is a unit of force equal to the magnitude of force exerted by a gram of mass in standard gravity (9.80665 m/s²). It is equal to 9.80665 × 10⁻³ N. - /// - /// https://en.wikipedia.org/wiki/Kilogram-force - GramForce = 16, - - /// - /// The kilogram-force, or kilopond, is equal to the magnitude of the force exerted on one kilogram of mass in a 9.80665 m/s2 gravitational field (standard gravity). Therefore, one kilogram-force is by definition equal to 9.80665 N. - /// - /// https://en.wikipedia.org/wiki/Kilogram-force - KilogramForce = 3, - Kilonewton = 4, - - /// - /// The kilogram-force, or kilopond, is equal to the magnitude of the force exerted on one kilogram of mass in a 9.80665 m/s2 gravitational field (standard gravity). Therefore, one kilogram-force is by definition equal to 9.80665 N. - /// - /// https://en.wikipedia.org/wiki/Kilogram-force - Kilopond = 5, - KilopoundForce = 6, - Meganewton = 7, - Micronewton = 8, - Millinewton = 9, - - /// - /// The newton (symbol: N) is the unit of force in the International System of Units (SI). It is defined as 1 kg⋅m/s2, the force which gives a mass of 1 kilogram an acceleration of 1 metre per second per second. - /// - /// https://en.wikipedia.org/wiki/Newton_(unit) - Newton = 10, - - /// - /// An ounce-force is 1⁄16 of a pound-force, or about 0.2780139 newtons. - /// - /// https://en.wikipedia.org/wiki/Ounce#Ounce-force - OunceForce = 11, - - /// - /// The poundal is defined as the force necessary to accelerate 1 pound-mass at 1 foot per second per second. 1 pdl = 0.138254954376 N exactly. - /// - /// https://en.wikipedia.org/wiki/Poundal - Poundal = 12, - - /// - /// The standard values of acceleration of the standard gravitational field (gn) and the international avoirdupois pound (lb) result in a pound-force equal to 4.4482216152605 N. - /// - /// https://en.wikipedia.org/wiki/Pound_(force)#Definitions - PoundForce = 13, - - /// - /// The short ton-force is a unit of force equal to 2,000 pounds-force (907.18474 kgf), that is most commonly used in the United States – known there simply as the ton or US ton. - /// - /// https://en.wikipedia.org/wiki/Ton-force#Short_ton-force - ShortTonForce = 14, - - /// - /// The tonne-force, metric ton-force, megagram-force, and megapond (Mp) are each 1000 kilograms-force. - /// - /// https://en.wikipedia.org/wiki/Kilogram-force#Related_units - TonneForce = 15, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/FrequencyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/FrequencyUnit.g.cs deleted file mode 100644 index d50f23ceb5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/FrequencyUnit.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum FrequencyUnit - { - BeatPerMinute = 1, - CyclePerHour = 3, - CyclePerMinute = 4, - Gigahertz = 5, - Hertz = 6, - Kilohertz = 7, - Megahertz = 8, - Microhertz = 16, - Millihertz = 21, - PerSecond = 9, - - /// - /// In SI units, angular frequency is normally presented with the unit radian per second, and need not express a rotational value. The unit hertz (Hz) is dimensionally equivalent, but by convention it is only used for frequency f, never for angular frequency ω. This convention is used to help avoid the confusion that arises when dealing with quantities such as frequency and angular quantities because the units of measure (such as cycle or radian) are considered to be one and hence may be omitted when expressing quantities in terms of SI units. - /// - /// https://en.wikipedia.org/wiki/Angular_frequency - RadianPerSecond = 10, - Terahertz = 11, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/FuelEfficiencyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/FuelEfficiencyUnit.g.cs deleted file mode 100644 index 24491dee95..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/FuelEfficiencyUnit.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum FuelEfficiencyUnit - { - KilometerPerLiter = 1, - LiterPer100Kilometers = 2, - MilePerUkGallon = 3, - MilePerUsGallon = 4, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/HeatFluxUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/HeatFluxUnit.g.cs deleted file mode 100644 index 0a3da3b723..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/HeatFluxUnit.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum HeatFluxUnit - { - /// Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details. - BtuPerHourSquareFoot = 1, - /// Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details. - BtuPerMinuteSquareFoot = 2, - /// Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details. - BtuPerSecondSquareFoot = 3, - /// Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details. - BtuPerSecondSquareInch = 4, - CaloriePerSecondSquareCentimeter = 5, - CentiwattPerSquareMeter = 6, - DeciwattPerSquareMeter = 7, - KilocaloriePerHourSquareMeter = 8, - KilocaloriePerSecondSquareCentimeter = 9, - KilowattPerSquareMeter = 10, - MicrowattPerSquareMeter = 11, - MilliwattPerSquareMeter = 12, - NanowattPerSquareMeter = 13, - PoundForcePerFootSecond = 14, - PoundPerSecondCubed = 15, - WattPerSquareFoot = 16, - WattPerSquareInch = 17, - WattPerSquareMeter = 18, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/HeatTransferCoefficientUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/HeatTransferCoefficientUnit.g.cs deleted file mode 100644 index 1a52bffbfe..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/HeatTransferCoefficientUnit.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum HeatTransferCoefficientUnit - { - BtuPerHourSquareFootDegreeFahrenheit = 11, - CaloriePerHourSquareMeterDegreeCelsius = 5, - KilocaloriePerHourSquareMeterDegreeCelsius = 8, - WattPerSquareMeterCelsius = 2, - WattPerSquareMeterKelvin = 3, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/IlluminanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/IlluminanceUnit.g.cs deleted file mode 100644 index 7675a53867..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/IlluminanceUnit.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum IlluminanceUnit - { - Kilolux = 1, - Lux = 2, - Megalux = 3, - Millilux = 4, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ImpulseUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ImpulseUnit.g.cs deleted file mode 100644 index fd6c0c9ab8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ImpulseUnit.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ImpulseUnit - { - CentinewtonSecond = 10, - DecanewtonSecond = 9, - DecinewtonSecond = 6, - KilogramMeterPerSecond = 1, - KilonewtonSecond = 7, - MeganewtonSecond = 4, - MicronewtonSecond = 8, - MillinewtonSecond = 3, - NanonewtonSecond = 2, - NewtonSecond = 5, - PoundFootPerSecond = 16, - PoundForceSecond = 18, - SlugFootPerSecond = 11, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/InformationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/InformationUnit.g.cs deleted file mode 100644 index ca0b4e2d4b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/InformationUnit.g.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum InformationUnit - { - Bit = 1, - Byte = 2, - Exabit = 3, - Exabyte = 4, - Exaoctet = 33, - Exbibit = 5, - Exbibyte = 6, - Exbioctet = 35, - Gibibit = 7, - Gibibyte = 8, - Gibioctet = 27, - Gigabit = 9, - Gigabyte = 10, - Gigaoctet = 28, - Kibibit = 11, - Kibibyte = 12, - Kibioctet = 30, - Kilobit = 13, - Kilobyte = 14, - Kilooctet = 32, - Mebibit = 15, - Mebibyte = 16, - Mebioctet = 36, - Megabit = 17, - Megabyte = 18, - Megaoctet = 34, - Octet = 31, - Pebibit = 19, - Pebibyte = 20, - Pebioctet = 29, - Petabit = 21, - Petabyte = 22, - Petaoctet = 39, - Tebibit = 23, - Tebibyte = 24, - Tebioctet = 43, - Terabit = 25, - Terabyte = 26, - Teraoctet = 40, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/IrradianceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/IrradianceUnit.g.cs deleted file mode 100644 index 2ed5f09b06..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/IrradianceUnit.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum IrradianceUnit - { - KilowattPerSquareCentimeter = 1, - KilowattPerSquareMeter = 2, - MegawattPerSquareCentimeter = 3, - MegawattPerSquareMeter = 4, - MicrowattPerSquareCentimeter = 5, - MicrowattPerSquareMeter = 6, - MilliwattPerSquareCentimeter = 7, - MilliwattPerSquareMeter = 8, - NanowattPerSquareCentimeter = 9, - NanowattPerSquareMeter = 10, - PicowattPerSquareCentimeter = 11, - PicowattPerSquareMeter = 12, - WattPerSquareCentimeter = 13, - WattPerSquareMeter = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/IrradiationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/IrradiationUnit.g.cs deleted file mode 100644 index 26d131063a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/IrradiationUnit.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum IrradiationUnit - { - BtuPerSquareFoot = 15, - JoulePerSquareCentimeter = 1, - JoulePerSquareMeter = 2, - JoulePerSquareMillimeter = 3, - KilobtuPerSquareFoot = 9, - KilojoulePerSquareMeter = 4, - KilowattHourPerSquareMeter = 5, - MillijoulePerSquareCentimeter = 6, - WattHourPerSquareMeter = 7, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/JerkUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/JerkUnit.g.cs deleted file mode 100644 index e269a35497..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/JerkUnit.g.cs +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum JerkUnit - { - CentimeterPerSecondCubed = 1, - DecimeterPerSecondCubed = 2, - FootPerSecondCubed = 3, - InchPerSecondCubed = 4, - KilometerPerSecondCubed = 5, - MeterPerSecondCubed = 6, - MicrometerPerSecondCubed = 7, - MillimeterPerSecondCubed = 8, - MillistandardGravitiesPerSecond = 9, - NanometerPerSecondCubed = 10, - StandardGravitiesPerSecond = 11, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/KinematicViscosityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/KinematicViscosityUnit.g.cs deleted file mode 100644 index f01709d0c3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/KinematicViscosityUnit.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum KinematicViscosityUnit - { - Centistokes = 1, - Decistokes = 2, - Kilostokes = 3, - Microstokes = 4, - Millistokes = 5, - Nanostokes = 6, - SquareFootPerSecond = 7, - SquareMeterPerSecond = 8, - Stokes = 9, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LeakRateUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LeakRateUnit.g.cs deleted file mode 100644 index e48896681e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LeakRateUnit.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum LeakRateUnit - { - AtmCubicCentimeterPerSecond = 10, - MillibarLiterPerSecond = 7, - PascalCubicMeterPerSecond = 2, - TorrLiterPerSecond = 4, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LengthUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LengthUnit.g.cs deleted file mode 100644 index 0c92578089..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LengthUnit.g.cs +++ /dev/null @@ -1,163 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum LengthUnit - { - - /// - /// Angstrom is a metric unit of length equal to 1e-10 meter - /// - /// https://en.wikipedia.org/wiki/Angstrom - Angstrom = 1, - - /// - /// One Astronomical Unit is the distance from the solar system Star, the sun, to planet Earth. - /// - /// https://en.wikipedia.org/wiki/Astronomical_unit - AstronomicalUnit = 2, - Centimeter = 3, - - /// - /// The chain (abbreviated ch) is a unit of length equal to 66 feet (22 yards), used in both the US customary and Imperial unit systems. It is subdivided into 100 links. There are 10 chains in a furlong, and 80 chains in one statute mile. In metric terms, it is 20.1168 m long. - /// - /// https://en.wikipedia.org/wiki/Chain_(unit) - Chain = 4, - - /// - /// In radar-related subjects and in JTIDS, a data mile is a unit of distance equal to 6000 feet (1.8288 kilometres or 0.987 nautical miles). - /// - /// https://en.wikipedia.org/wiki/Data_mile - DataMile = 5, - Decameter = 6, - Decimeter = 7, - - /// - /// The pica is a typographic unit of measure corresponding to approximately 1⁄6 of an inch, or from 1⁄68 to 1⁄73 of a foot. One pica is further divided into 12 points. - /// - /// https://en.wikipedia.org/wiki/Pica_(typography) - DtpPica = 8, - - /// - /// The desktop publishing point (DTP) is defined as 1⁄72 of an inch (1/72 × 25.4 mm ≈ 0.353 mm) and, as with earlier American point sizes, is considered to be 1⁄12 of a pica. - /// - /// https://en.wikipedia.org/wiki/Point_(typography) - DtpPoint = 9, - Fathom = 10, - Femtometer = 48, - - /// - /// The foot (pl. feet; standard symbol: ft) is a unit of length in the British imperial and United States customary systems of measurement. The prime symbol, ′, is commonly used to represent the foot. In both customary and imperial units, one foot comprises 12 inches, and one yard comprises three feet. Since an international agreement in 1959, the foot is defined as equal to exactly 0.3048 meters. - /// - /// https://en.wikipedia.org/wiki/Foot_(unit) - Foot = 11, - Gigameter = 44, - - /// - /// The hand is a non-SI unit of measurement of length standardized to 4 in (101.6 mm). It is used to measure the height of horses in many English-speaking countries, including Australia, Canada, Ireland, the United Kingdom, and the United States. It was originally based on the breadth of a human hand. - /// - /// https://en.wikipedia.org/wiki/Hand_(unit) - Hand = 12, - Hectometer = 13, - - /// - /// The inch (symbol: in or ″) is a unit of length in the British Imperial and the United States customary systems of measurement. It is equal to 1/36 yard or 1/12 of a foot. Derived from the Roman uncia ("twelfth"), the word inch is also sometimes used to translate similar units in other measurement systems, usually understood as deriving from the width of the human thumb. - /// - /// https://en.wikipedia.org/wiki/Inch - Inch = 14, - Kilofoot = 45, - KilolightYear = 15, - Kilometer = 16, - Kiloparsec = 17, - Kiloyard = 38, - - /// - /// A Light Year (ly) is the distance that light travel during an Earth year, ie 365 days. - /// - /// https://en.wikipedia.org/wiki/Light-year - LightYear = 18, - MegalightYear = 19, - Megameter = 41, - Megaparsec = 20, - Meter = 21, - Microinch = 22, - Micrometer = 23, - Mil = 24, - - /// - /// The statute mile was standardised between the British Commonwealth and the United States by an international agreement in 1959, when it was formally redefined with respect to SI units as exactly 1,609.344 metres. - /// - /// https://en.wikipedia.org/wiki/Mile - Mile = 25, - Millimeter = 26, - Nanometer = 27, - NauticalMile = 28, - - /// - /// A parsec is defined as the distance at which one astronomical unit (AU) subtends an angle of one arcsecond. - /// - /// https://en.wikipedia.org/wiki/Parsec - Parsec = 29, - Picometer = 43, - - /// - /// The American pica of 0.16604 inches (~4.217 mm) was established by the United States Type Founders' Association in 1886. In TeX one pica is 400⁄2409 of an inch. - /// - /// https://en.wikipedia.org/wiki/Pica_(typography) - PrinterPica = 30, - - /// - /// In typography, the point is the smallest unit of measure. It is used for measuring font size, leading, and other items on a printed page. In modern times this size of the point has been approximated as exactly 1⁄72.27 (0.01383700013837) of the inch by Donald Knuth for the default unit of his TeX computer typesetting system and is thus sometimes known as the TeX point. - /// - /// https://en.wikipedia.org/wiki/Point_(typography) - PrinterPoint = 31, - Shackle = 32, - - /// - /// Solar radius is a ratio unit to the radius of the solar system star, the sun. - /// - /// https://en.wikipedia.org/wiki/Stellar_classification - SolarRadius = 33, - - /// - /// A twip (abbreviating "twentieth of a point" or "twentieth of an inch point") is a typographical measurement, defined as 1⁄20 of a typographical point. One twip is 1⁄1440 inch, or ~17.64 μm. - /// - /// https://en.wikipedia.org/wiki/Twip - Twip = 34, - - /// - /// In the United States, the foot was defined as 12 inches, with the inch being defined by the Mendenhall Order of 1893 as 39.37 inches = 1 m. This makes a U.S. survey foot exactly 1200/3937 meters. - /// - /// https://en.wikipedia.org/wiki/Foot_(unit) - UsSurveyFoot = 35, - - /// - /// The yard (symbol: yd) is an English unit of length in both the British imperial and US customary systems of measurement equalling 3 feet (or 36 inches). Since 1959 the yard has been by international agreement standardized as exactly 0.9144 meter. A distance of 1,760 yards is equal to 1 mile. - /// - /// https://en.wikipedia.org/wiki/Yard - Yard = 36, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LevelUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LevelUnit.g.cs deleted file mode 100644 index 3d1966d2b2..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LevelUnit.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum LevelUnit - { - Decibel = 1, - Neper = 2, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LinearDensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LinearDensityUnit.g.cs deleted file mode 100644 index 0a410b3294..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LinearDensityUnit.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum LinearDensityUnit - { - GramPerCentimeter = 1, - GramPerFoot = 22, - GramPerMeter = 2, - GramPerMillimeter = 3, - KilogramPerCentimeter = 4, - KilogramPerFoot = 19, - KilogramPerMeter = 5, - KilogramPerMillimeter = 6, - MicrogramPerCentimeter = 7, - MicrogramPerFoot = 20, - MicrogramPerMeter = 8, - MicrogramPerMillimeter = 9, - MilligramPerCentimeter = 10, - MilligramPerFoot = 18, - MilligramPerMeter = 11, - MilligramPerMillimeter = 12, - PoundPerFoot = 13, - PoundPerInch = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LinearPowerDensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LinearPowerDensityUnit.g.cs deleted file mode 100644 index 2ab6e250ac..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LinearPowerDensityUnit.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum LinearPowerDensityUnit - { - GigawattPerCentimeter = 1, - GigawattPerFoot = 2, - GigawattPerInch = 3, - GigawattPerMeter = 4, - GigawattPerMillimeter = 5, - KilowattPerCentimeter = 6, - KilowattPerFoot = 7, - KilowattPerInch = 8, - KilowattPerMeter = 9, - KilowattPerMillimeter = 10, - MegawattPerCentimeter = 11, - MegawattPerFoot = 12, - MegawattPerInch = 13, - MegawattPerMeter = 14, - MegawattPerMillimeter = 15, - MilliwattPerCentimeter = 16, - MilliwattPerFoot = 17, - MilliwattPerInch = 18, - MilliwattPerMeter = 19, - MilliwattPerMillimeter = 20, - WattPerCentimeter = 21, - WattPerFoot = 22, - WattPerInch = 23, - WattPerMeter = 24, - WattPerMillimeter = 25, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LuminanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LuminanceUnit.g.cs deleted file mode 100644 index 24814e4dcc..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LuminanceUnit.g.cs +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum LuminanceUnit - { - CandelaPerSquareFoot = 10, - CandelaPerSquareInch = 7, - CandelaPerSquareMeter = 8, - CenticandelaPerSquareMeter = 3, - DecicandelaPerSquareMeter = 4, - KilocandelaPerSquareMeter = 9, - MicrocandelaPerSquareMeter = 6, - MillicandelaPerSquareMeter = 2, - NanocandelaPerSquareMeter = 1, - /// https://www.britannica.com/science/luminosity - Nit = 5, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LuminosityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LuminosityUnit.g.cs deleted file mode 100644 index f15cfe1cef..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LuminosityUnit.g.cs +++ /dev/null @@ -1,50 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum LuminosityUnit - { - Decawatt = 1, - Deciwatt = 2, - Femtowatt = 3, - Gigawatt = 4, - Kilowatt = 5, - Megawatt = 6, - Microwatt = 7, - Milliwatt = 8, - Nanowatt = 9, - Petawatt = 10, - Picowatt = 11, - - /// - /// The IAU has defined a nominal solar luminosity of 3.828×10^26 W to promote publication of consistent and comparable values in units of the solar luminosity. - /// - /// https://en.wikipedia.org/wiki/Luminosity#Measurement - SolarLuminosity = 12, - Terawatt = 13, - Watt = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LuminousFluxUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LuminousFluxUnit.g.cs deleted file mode 100644 index 01a956a02c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LuminousFluxUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum LuminousFluxUnit - { - Lumen = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LuminousIntensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LuminousIntensityUnit.g.cs deleted file mode 100644 index 947d36fb22..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LuminousIntensityUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum LuminousIntensityUnit - { - Candela = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MagneticFieldUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MagneticFieldUnit.g.cs deleted file mode 100644 index 3915ff523d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MagneticFieldUnit.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MagneticFieldUnit - { - Gauss = 1, - Microtesla = 2, - Milligauss = 3, - Millitesla = 4, - Nanotesla = 5, - Tesla = 6, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MagneticFluxUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MagneticFluxUnit.g.cs deleted file mode 100644 index e7f3635d2e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MagneticFluxUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MagneticFluxUnit - { - Weber = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MagnetizationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MagnetizationUnit.g.cs deleted file mode 100644 index 956c88e2da..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MagnetizationUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MagnetizationUnit - { - AmperePerMeter = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MassConcentrationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MassConcentrationUnit.g.cs deleted file mode 100644 index e80ca6a945..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MassConcentrationUnit.g.cs +++ /dev/null @@ -1,80 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MassConcentrationUnit - { - CentigramPerDeciliter = 1, - CentigramPerLiter = 2, - CentigramPerMicroliter = 3, - CentigramPerMilliliter = 4, - DecigramPerDeciliter = 5, - DecigramPerLiter = 6, - DecigramPerMicroliter = 7, - DecigramPerMilliliter = 8, - GramPerCubicCentimeter = 9, - GramPerCubicMeter = 10, - GramPerCubicMillimeter = 11, - GramPerDeciliter = 12, - GramPerLiter = 13, - GramPerMicroliter = 14, - GramPerMilliliter = 15, - KilogramPerCubicCentimeter = 16, - KilogramPerCubicMeter = 17, - KilogramPerCubicMillimeter = 18, - KilogramPerLiter = 19, - KilopoundPerCubicFoot = 20, - KilopoundPerCubicInch = 21, - MicrogramPerCubicMeter = 22, - MicrogramPerDeciliter = 23, - MicrogramPerLiter = 24, - MicrogramPerMicroliter = 25, - MicrogramPerMilliliter = 26, - MilligramPerCubicMeter = 27, - MilligramPerDeciliter = 28, - MilligramPerLiter = 29, - MilligramPerMicroliter = 30, - MilligramPerMilliliter = 31, - NanogramPerDeciliter = 32, - NanogramPerLiter = 33, - NanogramPerMicroliter = 34, - NanogramPerMilliliter = 35, - OuncePerImperialGallon = 36, - OuncePerUSGallon = 37, - PicogramPerDeciliter = 38, - PicogramPerLiter = 39, - PicogramPerMicroliter = 40, - PicogramPerMilliliter = 41, - PoundPerCubicFoot = 42, - PoundPerCubicInch = 43, - PoundPerImperialGallon = 44, - PoundPerUSGallon = 45, - SlugPerCubicFoot = 46, - TonnePerCubicCentimeter = 47, - TonnePerCubicMeter = 48, - TonnePerCubicMillimeter = 49, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MassFlowUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MassFlowUnit.g.cs deleted file mode 100644 index 7df77cf7b5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MassFlowUnit.g.cs +++ /dev/null @@ -1,64 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MassFlowUnit - { - CentigramPerDay = 1, - CentigramPerSecond = 2, - DecagramPerDay = 3, - DecagramPerSecond = 4, - DecigramPerDay = 5, - DecigramPerSecond = 6, - GramPerDay = 7, - GramPerHour = 8, - GramPerSecond = 9, - HectogramPerDay = 10, - HectogramPerSecond = 11, - KilogramPerDay = 12, - KilogramPerHour = 13, - KilogramPerMinute = 14, - KilogramPerSecond = 15, - MegagramPerDay = 16, - MegapoundPerDay = 17, - MegapoundPerHour = 18, - MegapoundPerMinute = 19, - MegapoundPerSecond = 20, - MicrogramPerDay = 21, - MicrogramPerSecond = 22, - MilligramPerDay = 23, - MilligramPerSecond = 24, - NanogramPerDay = 25, - NanogramPerSecond = 26, - PoundPerDay = 27, - PoundPerHour = 28, - PoundPerMinute = 29, - PoundPerSecond = 30, - ShortTonPerHour = 31, - TonnePerDay = 32, - TonnePerHour = 33, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MassFluxUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MassFluxUnit.g.cs deleted file mode 100644 index def9d86acb..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MassFluxUnit.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MassFluxUnit - { - GramPerHourPerSquareCentimeter = 1, - GramPerHourPerSquareMeter = 2, - GramPerHourPerSquareMillimeter = 3, - GramPerSecondPerSquareCentimeter = 4, - GramPerSecondPerSquareMeter = 5, - GramPerSecondPerSquareMillimeter = 6, - KilogramPerHourPerSquareCentimeter = 7, - KilogramPerHourPerSquareMeter = 8, - KilogramPerHourPerSquareMillimeter = 9, - KilogramPerSecondPerSquareCentimeter = 10, - KilogramPerSecondPerSquareMeter = 11, - KilogramPerSecondPerSquareMillimeter = 12, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MassFractionUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MassFractionUnit.g.cs deleted file mode 100644 index 0dad8a059f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MassFractionUnit.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MassFractionUnit - { - CentigramPerGram = 1, - CentigramPerKilogram = 2, - DecagramPerGram = 3, - DecagramPerKilogram = 4, - DecigramPerGram = 5, - DecigramPerKilogram = 6, - DecimalFraction = 7, - GramPerGram = 8, - GramPerKilogram = 9, - HectogramPerGram = 10, - HectogramPerKilogram = 11, - KilogramPerGram = 12, - KilogramPerKilogram = 13, - MicrogramPerGram = 14, - MicrogramPerKilogram = 15, - MilligramPerGram = 16, - MilligramPerKilogram = 17, - NanogramPerGram = 18, - NanogramPerKilogram = 19, - PartPerBillion = 20, - PartPerMillion = 21, - PartPerThousand = 22, - PartPerTrillion = 23, - Percent = 24, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs deleted file mode 100644 index 05827647fd..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs +++ /dev/null @@ -1,59 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MassMomentOfInertiaUnit - { - GramSquareCentimeter = 1, - GramSquareDecimeter = 2, - GramSquareMeter = 3, - GramSquareMillimeter = 4, - KilogramSquareCentimeter = 5, - KilogramSquareDecimeter = 6, - KilogramSquareMeter = 7, - KilogramSquareMillimeter = 8, - KilotonneSquareCentimeter = 9, - KilotonneSquareDecimeter = 10, - KilotonneSquareMeter = 11, - KilotonneSquareMillimeter = 12, - MegatonneSquareCentimeter = 13, - MegatonneSquareDecimeter = 14, - MegatonneSquareMeter = 15, - MegatonneSquareMillimeter = 16, - MilligramSquareCentimeter = 17, - MilligramSquareDecimeter = 18, - MilligramSquareMeter = 19, - MilligramSquareMillimeter = 20, - PoundSquareFoot = 21, - PoundSquareInch = 22, - SlugSquareFoot = 23, - SlugSquareInch = 24, - TonneSquareCentimeter = 25, - TonneSquareDecimeter = 26, - TonneSquareMeter = 27, - TonneSquareMillimeter = 28, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MassUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MassUnit.g.cs deleted file mode 100644 index 55b385ee83..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MassUnit.g.cs +++ /dev/null @@ -1,127 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MassUnit - { - Centigram = 1, - - /// - /// The Dalton or unified atomic mass unit (abbreviation Da or u) is a unit of mass defined as 1/12 of the mass of an unbound neutral atom of carbon-12 in its nuclear and electronic ground state and at rest. - /// - /// https://en.wikipedia.org/wiki/Dalton_(unit) - Dalton = 37, - Decagram = 2, - Decigram = 3, - - /// - /// Earth mass is a ratio unit to the mass of planet Earth. - /// - /// https://en.wikipedia.org/wiki/Earth_mass - EarthMass = 4, - Femtogram = 35, - Gigadalton = 33, - - /// - /// A grain is a unit of measurement of mass, and in the troy weight, avoirdupois, and Apothecaries' system, equal to exactly 64.79891 milligrams. - /// - /// https://en.wikipedia.org/wiki/Grain_(unit) - Grain = 5, - Gram = 6, - Hectogram = 7, - Kilodalton = 26, - Kilogram = 8, - Kilopound = 9, - Kilotonne = 10, - - /// - /// The long or imperial hundredweight (abbreviation cwt) is a unit of mass equal to 112 pounds in US and Canada. - /// - /// https://en.wikipedia.org/wiki/Hundredweight - LongHundredweight = 11, - - /// - /// Long ton (weight ton or Imperial ton) is a unit of mass equal to 2,240 pounds (1,016 kg) and is the name for the unit called the "ton" in the avoirdupois or Imperial system of measurements that was used in the United Kingdom and several other Commonwealth countries before metrication. - /// - /// http://en.wikipedia.org/wiki/Long_ton - LongTon = 12, - Megadalton = 30, - Megapound = 13, - Megatonne = 14, - Microgram = 15, - Milligram = 16, - Nanogram = 17, - - /// - /// The international avoirdupois ounce (abbreviated oz) is defined as exactly 28.349523125 g under the international yard and pound agreement of 1959, signed by the United States and countries of the Commonwealth of Nations. 16 oz make up an avoirdupois pound. - /// - /// https://en.wikipedia.org/wiki/Ounce - Ounce = 18, - Picogram = 29, - - /// - /// The pound or pound-mass (abbreviations: lb, lbm) is a unit of mass used in the imperial, United States customary and other systems of measurement. A number of different definitions have been used, the most common today being the international avoirdupois pound which is legally defined as exactly 0.45359237 kilograms, and which is divided into 16 avoirdupois ounces. - /// - /// https://en.wikipedia.org/wiki/Pound_(mass) - Pound = 19, - - /// - /// The short hundredweight (abbreviation cwt) is a unit of mass equal to 100 pounds in US and Canada. In British English, the short hundredweight is referred to as the "cental". - /// - /// https://en.wikipedia.org/wiki/Hundredweight - ShortHundredweight = 20, - - /// - /// The short ton is a unit of mass equal to 2,000 pounds (907.18474 kg), that is most commonly used in the United States – known there simply as the ton. - /// - /// http://en.wikipedia.org/wiki/Short_ton - ShortTon = 21, - - /// - /// The slug (abbreviation slug) is a unit of mass that is accelerated by 1 ft/s² when a force of one pound (lbf) is exerted on it. - /// - /// http://en.wikipedia.org/wiki/Slug_(unit) - Slug = 22, - - /// - /// Solar mass is a ratio unit to the mass of the solar system star, the sun. - /// - /// https://en.wikipedia.org/wiki/Solar_mass - SolarMass = 23, - - /// - /// The stone (abbreviation st) is a unit of mass equal to 14 pounds avoirdupois (about 6.35 kilograms) used in Great Britain and Ireland for measuring human body weight. - /// - /// http://en.wikipedia.org/wiki/Stone_(unit) - Stone = 24, - - /// - /// The tonne is a unit of mass equal to 1,000 kilograms. It is a non-SI unit accepted for use with SI. It is also referred to as a metric ton in the United States to distinguish it from the non-metric units of the short ton (United States customary units) and the long ton (British imperial units). It is equivalent to approximately 2,204.6 pounds, 1.102 short tons, and 0.984 long tons. - /// - /// https://en.wikipedia.org/wiki/Tonne - Tonne = 25, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MolalityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MolalityUnit.g.cs deleted file mode 100644 index d55c5fb6d0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MolalityUnit.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MolalityUnit - { - MillimolePerKilogram = 2, - MolePerGram = 4, - MolePerKilogram = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarEnergyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MolarEnergyUnit.g.cs deleted file mode 100644 index 71772f28ea..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarEnergyUnit.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MolarEnergyUnit - { - JoulePerMole = 1, - KilojoulePerMole = 2, - MegajoulePerMole = 3, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarEntropyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MolarEntropyUnit.g.cs deleted file mode 100644 index b7e6c5aa56..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarEntropyUnit.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MolarEntropyUnit - { - JoulePerMoleKelvin = 1, - KilojoulePerMoleKelvin = 2, - MegajoulePerMoleKelvin = 3, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarFlowUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MolarFlowUnit.g.cs deleted file mode 100644 index 48bc201810..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarFlowUnit.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MolarFlowUnit - { - KilomolePerHour = 2, - KilomolePerMinute = 15, - KilomolePerSecond = 12, - MolePerHour = 8, - MolePerMinute = 18, - MolePerSecond = 3, - PoundMolePerHour = 6, - PoundMolePerMinute = 7, - PoundMolePerSecond = 4, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarMassUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MolarMassUnit.g.cs deleted file mode 100644 index 4be43903ef..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarMassUnit.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MolarMassUnit - { - CentigramPerMole = 1, - DecagramPerMole = 2, - DecigramPerMole = 3, - GramPerMole = 4, - HectogramPerMole = 5, - KilogramPerKilomole = 15, - KilogramPerMole = 6, - KilopoundPerMole = 7, - MegapoundPerMole = 8, - MicrogramPerMole = 9, - MilligramPerMole = 10, - NanogramPerMole = 11, - PoundPerMole = 12, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MolarityUnit.g.cs deleted file mode 100644 index d9c7972422..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MolarityUnit.g.cs +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum MolarityUnit - { - CentimolePerLiter = 1, - DecimolePerLiter = 3, - FemtomolePerLiter = 5, - KilomolePerCubicMeter = 25, - MicromolePerLiter = 6, - MillimolePerLiter = 8, - MolePerCubicMeter = 10, - MolePerLiter = 11, - NanomolePerLiter = 14, - PicomolePerLiter = 16, - PoundMolePerCubicFoot = 18, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PermeabilityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PermeabilityUnit.g.cs deleted file mode 100644 index 19860cb22a..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/PermeabilityUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum PermeabilityUnit - { - HenryPerMeter = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PermittivityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PermittivityUnit.g.cs deleted file mode 100644 index 77e869b6fe..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/PermittivityUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum PermittivityUnit - { - FaradPerMeter = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs deleted file mode 100644 index 0ef3c52664..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum PorousMediumPermeabilityUnit - { - - /// - /// The darcy (or darcy unit) and millidarcy (md or mD) are units of permeability, named after Henry Darcy. They are not SI units, but they are widely used in petroleum engineering and geology. - /// - /// https://en.wikipedia.org/wiki/Darcy_(unit) - Darcy = 1, - Microdarcy = 2, - Millidarcy = 3, - SquareCentimeter = 4, - SquareMeter = 5, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PowerDensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PowerDensityUnit.g.cs deleted file mode 100644 index 74a52d1da5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/PowerDensityUnit.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum PowerDensityUnit - { - DecawattPerCubicFoot = 1, - DecawattPerCubicInch = 2, - DecawattPerCubicMeter = 3, - DecawattPerLiter = 4, - DeciwattPerCubicFoot = 5, - DeciwattPerCubicInch = 6, - DeciwattPerCubicMeter = 7, - DeciwattPerLiter = 8, - GigawattPerCubicFoot = 9, - GigawattPerCubicInch = 10, - GigawattPerCubicMeter = 11, - GigawattPerLiter = 12, - KilowattPerCubicFoot = 13, - KilowattPerCubicInch = 14, - KilowattPerCubicMeter = 15, - KilowattPerLiter = 16, - MegawattPerCubicFoot = 17, - MegawattPerCubicInch = 18, - MegawattPerCubicMeter = 19, - MegawattPerLiter = 20, - MicrowattPerCubicFoot = 21, - MicrowattPerCubicInch = 22, - MicrowattPerCubicMeter = 23, - MicrowattPerLiter = 24, - MilliwattPerCubicFoot = 25, - MilliwattPerCubicInch = 26, - MilliwattPerCubicMeter = 27, - MilliwattPerLiter = 28, - NanowattPerCubicFoot = 29, - NanowattPerCubicInch = 30, - NanowattPerCubicMeter = 31, - NanowattPerLiter = 32, - PicowattPerCubicFoot = 33, - PicowattPerCubicInch = 34, - PicowattPerCubicMeter = 35, - PicowattPerLiter = 36, - TerawattPerCubicFoot = 37, - TerawattPerCubicInch = 38, - TerawattPerCubicMeter = 39, - TerawattPerLiter = 40, - WattPerCubicFoot = 41, - WattPerCubicInch = 42, - WattPerCubicMeter = 43, - WattPerLiter = 44, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PowerRatioUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PowerRatioUnit.g.cs deleted file mode 100644 index f0c4dc508c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/PowerRatioUnit.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum PowerRatioUnit - { - DecibelMilliwatt = 1, - DecibelWatt = 2, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PowerUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PowerUnit.g.cs deleted file mode 100644 index c0ddfe10ec..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/PowerUnit.g.cs +++ /dev/null @@ -1,84 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum PowerUnit - { - - /// - /// Boiler horsepower is a boiler's capacity to deliver steam to a steam engine and is not the same unit of power as the 550 ft lb/s definition. One boiler horsepower is equal to the thermal energy rate required to evaporate 34.5 pounds (15.6 kg) of fresh water at 212 °F (100 °C) in one hour. - /// - /// https://en.wikipedia.org/wiki/Horsepower#Boiler_horsepower - BoilerHorsepower = 1, - /// Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details. - BritishThermalUnitPerHour = 2, - Decawatt = 3, - Deciwatt = 4, - - /// - /// Nameplates on electrical motors show their power output, not the power input (the power delivered at the shaft, not the power consumed to drive the motor). This power output is ordinarily stated in watts or kilowatts. In the United States, the power output is stated in horsepower, which for this purpose is defined as exactly 746 W. - /// - /// https://en.wikipedia.org/wiki/Horsepower#Electrical_horsepower - ElectricalHorsepower = 5, - Femtowatt = 6, - GigajoulePerHour = 7, - Gigawatt = 8, - - /// - /// Hydraulic horsepower can represent the power available within hydraulic machinery, power through the down-hole nozzle of a drilling rig, or can be used to estimate the mechanical power needed to generate a known hydraulic flow rate. - /// - /// https://en.wikipedia.org/wiki/Horsepower#Hydraulic_horsepower - HydraulicHorsepower = 9, - JoulePerHour = 10, - KilobritishThermalUnitPerHour = 11, - KilojoulePerHour = 12, - Kilowatt = 13, - - /// - /// Assuming the third CGPM (1901, CR 70) definition of standard gravity, gn = 9.80665 m/s2, is used to define the pound-force as well as the kilogram force, and the international avoirdupois pound (1959), one imperial horsepower is: 76.0402249 × 9.80665 kg⋅m2/s3 - /// - /// https://en.wikipedia.org/wiki/Horsepower#Imperial_horsepower - MechanicalHorsepower = 14, - MegabritishThermalUnitPerHour = 15, - MegajoulePerHour = 16, - Megawatt = 17, - - /// - /// DIN 66036 defines one metric horsepower as the power to raise a mass of 75 kilograms against the Earth's gravitational force over a distance of one metre in one second:[18] 75 kg × 9.80665 m/s2 × 1 m / 1 s = 75 kgf⋅m/s = 1 PS. This is equivalent to 735.49875 W, or 98.6% of an imperial horsepower. - /// - /// https://en.wikipedia.org/wiki/Horsepower#Metric_horsepower_(PS,_KM,_cv,_hk,_pk,_k,_ks,_ch) - MetricHorsepower = 18, - Microwatt = 19, - MillijoulePerHour = 20, - Milliwatt = 21, - Nanowatt = 22, - Petawatt = 23, - Picowatt = 24, - Terawatt = 25, - TonOfRefrigeration = 29, - Watt = 26, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PressureChangeRateUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PressureChangeRateUnit.g.cs deleted file mode 100644 index 8593e5b890..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/PressureChangeRateUnit.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum PressureChangeRateUnit - { - AtmospherePerSecond = 1, - BarPerMinute = 16, - BarPerSecond = 23, - KilopascalPerMinute = 2, - KilopascalPerSecond = 3, - KilopoundForcePerSquareInchPerMinute = 4, - KilopoundForcePerSquareInchPerSecond = 5, - MegapascalPerMinute = 6, - MegapascalPerSecond = 7, - MegapoundForcePerSquareInchPerMinute = 8, - MegapoundForcePerSquareInchPerSecond = 9, - MillibarPerMinute = 24, - MillibarPerSecond = 20, - MillimeterOfMercuryPerSecond = 10, - PascalPerMinute = 11, - PascalPerSecond = 12, - PoundForcePerSquareInchPerMinute = 13, - PoundForcePerSquareInchPerSecond = 14, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PressureUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PressureUnit.g.cs deleted file mode 100644 index 51cf34bf04..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/PressureUnit.g.cs +++ /dev/null @@ -1,126 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum PressureUnit - { - - /// - /// The standard atmosphere (symbol: atm) is a unit of pressure defined as 101325 Pa. It is sometimes used as a reference pressure or standard pressure. It is approximately equal to Earth's average atmospheric pressure at sea level. - /// - /// https://en.wikipedia.org/wiki/Standard_atmosphere_(unit) - Atmosphere = 1, - - /// - /// The bar is a metric unit of pressure defined as 100,000 Pa (100 kPa), though not part of the International System of Units (SI). A pressure of 1 bar is slightly less than the current average atmospheric pressure on Earth at sea level (approximately 1.013 bar). - /// - /// https://en.wikipedia.org/wiki/Bar_(unit) - Bar = 2, - Centibar = 3, - CentimeterOfWaterColumn = 48, - Decapascal = 4, - Decibar = 5, - DynePerSquareCentimeter = 6, - FootOfHead = 8, - Gigapascal = 9, - Hectopascal = 10, - - /// - /// Inch of mercury (inHg and ″Hg) is a non-SI unit of measurement for pressure. It is used for barometric pressure in weather reports, refrigeration and aviation in the United States. It is the pressure exerted by a column of mercury 1 inch (25.4 mm) in height at the standard acceleration of gravity. - /// - /// https://en.wikipedia.org/wiki/Inch_of_mercury - InchOfMercury = 11, - - /// - /// Inches of water is a non-SI unit for pressure. It is defined as the pressure exerted by a column of water of 1 inch in height at defined conditions. At a temperature of 4 °C (39.2 °F) pure water has its highest density (1000 kg/m3). At that temperature and assuming the standard acceleration of gravity, 1 inAq is approximately 249.082 pascals (0.0361263 psi). - /// - /// https://en.wikipedia.org/wiki/Inch_of_water - InchOfWaterColumn = 12, - Kilobar = 13, - - /// - /// A kilogram-force per centimetre square (kgf/cm2), often just kilogram per square centimetre (kg/cm2), or kilopond per centimetre square (kp/cm2) is a deprecated unit of pressure using metric units. It is not a part of the International System of Units (SI), the modern metric system. 1 kgf/cm2 equals 98.0665 kPa (kilopascals). It is also known as a technical atmosphere (symbol: at). - /// - /// https://en.wikipedia.org/wiki/Kilogram-force_per_square_centimetre - KilogramForcePerSquareCentimeter = 14, - KilogramForcePerSquareMeter = 15, - KilogramForcePerSquareMillimeter = 16, - KilonewtonPerSquareCentimeter = 17, - KilonewtonPerSquareMeter = 18, - KilonewtonPerSquareMillimeter = 19, - Kilopascal = 20, - KilopoundForcePerSquareFoot = 21, - KilopoundForcePerSquareInch = 22, - KilopoundForcePerSquareMil = 23, - Megabar = 24, - MeganewtonPerSquareMeter = 25, - Megapascal = 26, - MeterOfHead = 28, - - /// - /// A centimetre of water is defined as the pressure exerted by a column of water of 1 cm in height at 4 °C (temperature of maximum density) at the standard acceleration of gravity, so that 1 cmH2O (4°C) = 999.9720 kg/m3 × 9.80665 m/s2 × 1 cm = 98.063754138 Pa, but conventionally a nominal maximum water density of 1000 kg/m3 is used, giving 98.0665 Pa. - /// - /// https://en.wikipedia.org/wiki/Centimetre_or_millimetre_of_water - MeterOfWaterColumn = 57, - Microbar = 29, - Micropascal = 30, - Millibar = 31, - MilligramForcePerSquareFoot = 59, - MilligramForcePerSquareMeter = 51, - - /// - /// A millimetre of mercury is a manometric unit of pressure, formerly defined as the extra pressure generated by a column of mercury one millimetre high, and currently defined as exactly 133.322387415 pascals. - /// - /// https://en.wikipedia.org/wiki/Millimetre_of_mercury - MillimeterOfMercury = 32, - MillimeterOfWaterColumn = 33, - Millipascal = 34, - Millitorr = 52, - NewtonPerSquareCentimeter = 35, - NewtonPerSquareMeter = 36, - NewtonPerSquareMillimeter = 37, - Pascal = 38, - PoundForcePerSquareFoot = 39, - PoundForcePerSquareInch = 40, - PoundForcePerSquareMil = 41, - PoundPerInchSecondSquared = 42, - - /// - /// A kilogram-force per centimetre square (kgf/cm2), often just kilogram per square centimetre (kg/cm2), or kilopond per centimetre square (kp/cm2) is a deprecated unit of pressure using metric units. It is not a part of the International System of Units (SI), the modern metric system. 1 kgf/cm2 equals 98.0665 kPa (kilopascals). It is also known as a technical atmosphere (symbol: at). - /// - /// https://en.wikipedia.org/wiki/Kilogram-force_per_square_centimetre - TechnicalAtmosphere = 43, - TonneForcePerSquareCentimeter = 44, - TonneForcePerSquareMeter = 45, - TonneForcePerSquareMillimeter = 46, - - /// - /// The torr (symbol: Torr) is a unit of pressure based on an absolute scale, defined as exactly 1/760 of a standard atmosphere (101325 Pa). Thus one torr is exactly 101325/760 pascals (≈ 133.32 Pa). - /// - /// https://en.wikipedia.org/wiki/Torr - Torr = 47, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseRateUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseRateUnit.g.cs deleted file mode 100644 index df74f109e8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseRateUnit.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RadiationEquivalentDoseRateUnit - { - MicrosievertPerHour = 1, - MicrosievertPerSecond = 17, - MilliroentgenEquivalentManPerHour = 4, - MillisievertPerHour = 3, - MillisievertPerSecond = 14, - NanosievertPerHour = 2, - NanosievertPerSecond = 9, - RoentgenEquivalentManPerHour = 5, - SievertPerHour = 6, - SievertPerSecond = 16, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseUnit.g.cs deleted file mode 100644 index 2095852833..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseUnit.g.cs +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RadiationEquivalentDoseUnit - { - Microsievert = 1, - MilliroentgenEquivalentMan = 2, - Millisievert = 7, - Nanosievert = 5, - RoentgenEquivalentMan = 4, - - /// - /// The sievert is a unit in the International System of Units (SI) intended to represent the stochastic health risk of ionizing radiation, which is defined as the probability of causing radiation-induced cancer and genetic damage. - /// - /// https://en.wikipedia.org/wiki/Sievert - Sievert = 9, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationExposureUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationExposureUnit.g.cs deleted file mode 100644 index 8e50cdd24f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationExposureUnit.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RadiationExposureUnit - { - CoulombPerKilogram = 10, - MicrocoulombPerKilogram = 3, - Microroentgen = 12, - MillicoulombPerKilogram = 2, - Milliroentgen = 13, - NanocoulombPerKilogram = 6, - PicocoulombPerKilogram = 5, - Roentgen = 4, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RadioactivityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RadioactivityUnit.g.cs deleted file mode 100644 index 0d77aa4e6d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RadioactivityUnit.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RadioactivityUnit - { - - /// - /// Activity of a quantity of radioactive material in which one nucleus decays per second. - /// - Becquerel = 7, - Curie = 9, - Exabecquerel = 10, - Gigabecquerel = 4, - Gigacurie = 5, - Gigarutherford = 1, - Kilobecquerel = 6, - Kilocurie = 8, - Kilorutherford = 2, - Megabecquerel = 3, - Megacurie = 20, - Megarutherford = 13, - Microbecquerel = 19, - Microcurie = 15, - Microrutherford = 14, - Millibecquerel = 17, - Millicurie = 18, - Millirutherford = 12, - Nanobecquerel = 16, - Nanocurie = 11, - Nanorutherford = 27, - Petabecquerel = 21, - Picobecquerel = 36, - Picocurie = 35, - Picorutherford = 25, - - /// - /// Activity of a quantity of radioactive material in which one million nuclei decay per second. - /// - Rutherford = 28, - Terabecquerel = 23, - Teracurie = 29, - Terarutherford = 22, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RatioChangeRateUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RatioChangeRateUnit.g.cs deleted file mode 100644 index 8537a14a05..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RatioChangeRateUnit.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RatioChangeRateUnit - { - DecimalFractionPerSecond = 1, - PercentPerSecond = 2, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RatioUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RatioUnit.g.cs deleted file mode 100644 index 32a4540bc5..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RatioUnit.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RatioUnit - { - DecimalFraction = 1, - PartPerBillion = 2, - PartPerMillion = 3, - PartPerThousand = 4, - PartPerTrillion = 5, - Percent = 6, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ReciprocalAreaUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ReciprocalAreaUnit.g.cs deleted file mode 100644 index a1263b27b9..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ReciprocalAreaUnit.g.cs +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ReciprocalAreaUnit - { - InverseSquareCentimeter = 1, - InverseSquareDecimeter = 2, - InverseSquareFoot = 3, - InverseSquareInch = 4, - InverseSquareKilometer = 5, - InverseSquareMeter = 6, - InverseSquareMicrometer = 7, - InverseSquareMile = 8, - InverseSquareMillimeter = 9, - InverseSquareYard = 10, - InverseUsSurveySquareFoot = 11, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ReciprocalLengthUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ReciprocalLengthUnit.g.cs deleted file mode 100644 index fb9d93700c..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ReciprocalLengthUnit.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ReciprocalLengthUnit - { - InverseCentimeter = 1, - InverseFoot = 2, - InverseInch = 3, - InverseMeter = 4, - InverseMicroinch = 5, - InverseMil = 6, - InverseMile = 7, - InverseMillimeter = 8, - InverseUsSurveyFoot = 9, - InverseYard = 10, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RelativeHumidityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RelativeHumidityUnit.g.cs deleted file mode 100644 index 5962021a21..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RelativeHumidityUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RelativeHumidityUnit - { - Percent = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalAccelerationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalAccelerationUnit.g.cs deleted file mode 100644 index 78d18c4ea1..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalAccelerationUnit.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RotationalAccelerationUnit - { - DegreePerSecondSquared = 1, - RadianPerSecondSquared = 2, - RevolutionPerMinutePerSecond = 3, - RevolutionPerSecondSquared = 4, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalSpeedUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalSpeedUnit.g.cs deleted file mode 100644 index c764514ede..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalSpeedUnit.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RotationalSpeedUnit - { - CentiradianPerSecond = 1, - DeciradianPerSecond = 2, - DegreePerMinute = 3, - DegreePerSecond = 4, - MicrodegreePerSecond = 5, - MicroradianPerSecond = 6, - MillidegreePerSecond = 7, - MilliradianPerSecond = 8, - NanodegreePerSecond = 9, - NanoradianPerSecond = 10, - RadianPerSecond = 11, - RevolutionPerMinute = 12, - RevolutionPerSecond = 13, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalStiffnessPerLengthUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalStiffnessPerLengthUnit.g.cs deleted file mode 100644 index 3829297d44..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalStiffnessPerLengthUnit.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RotationalStiffnessPerLengthUnit - { - KilonewtonMeterPerRadianPerMeter = 1, - KilopoundForceFootPerDegreesPerFoot = 2, - MeganewtonMeterPerRadianPerMeter = 3, - NewtonMeterPerRadianPerMeter = 4, - PoundForceFootPerDegreesPerFoot = 5, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalStiffnessUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalStiffnessUnit.g.cs deleted file mode 100644 index 1974383356..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/RotationalStiffnessUnit.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum RotationalStiffnessUnit - { - CentinewtonMeterPerDegree = 1, - CentinewtonMillimeterPerDegree = 2, - CentinewtonMillimeterPerRadian = 3, - DecanewtonMeterPerDegree = 4, - DecanewtonMillimeterPerDegree = 5, - DecanewtonMillimeterPerRadian = 6, - DecinewtonMeterPerDegree = 7, - DecinewtonMillimeterPerDegree = 8, - DecinewtonMillimeterPerRadian = 9, - KilonewtonMeterPerDegree = 10, - KilonewtonMeterPerRadian = 11, - KilonewtonMillimeterPerDegree = 12, - KilonewtonMillimeterPerRadian = 13, - KilopoundForceFootPerDegrees = 14, - KilopoundForceFootPerRadian = 38, - MeganewtonMeterPerDegree = 15, - MeganewtonMeterPerRadian = 16, - MeganewtonMillimeterPerDegree = 17, - MeganewtonMillimeterPerRadian = 18, - MicronewtonMeterPerDegree = 19, - MicronewtonMillimeterPerDegree = 20, - MicronewtonMillimeterPerRadian = 21, - MillinewtonMeterPerDegree = 22, - MillinewtonMillimeterPerDegree = 23, - MillinewtonMillimeterPerRadian = 24, - NanonewtonMeterPerDegree = 25, - NanonewtonMillimeterPerDegree = 26, - NanonewtonMillimeterPerRadian = 27, - NewtonMeterPerDegree = 28, - NewtonMeterPerRadian = 29, - NewtonMillimeterPerDegree = 30, - NewtonMillimeterPerRadian = 31, - PoundForceFeetPerRadian = 32, - PoundForceFootPerDegrees = 33, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ScalarUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ScalarUnit.g.cs deleted file mode 100644 index c8be591b38..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ScalarUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ScalarUnit - { - Amount = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/SolidAngleUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/SolidAngleUnit.g.cs deleted file mode 100644 index 7be81ae1a0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/SolidAngleUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum SolidAngleUnit - { - Steradian = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificEnergyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificEnergyUnit.g.cs deleted file mode 100644 index 1bc0278878..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificEnergyUnit.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum SpecificEnergyUnit - { - BtuPerPound = 1, - CaloriePerGram = 2, - GigawattDayPerKilogram = 3, - GigawattDayPerShortTon = 4, - GigawattDayPerTonne = 5, - GigawattHourPerKilogram = 6, - GigawattHourPerPound = 7, - JoulePerKilogram = 8, - KilocaloriePerGram = 9, - KilojoulePerKilogram = 10, - KilowattDayPerKilogram = 11, - KilowattDayPerShortTon = 12, - KilowattDayPerTonne = 13, - KilowattHourPerKilogram = 14, - KilowattHourPerPound = 15, - MegajoulePerKilogram = 16, - MegajoulePerTonne = 37, - MegawattDayPerKilogram = 17, - MegawattDayPerShortTon = 18, - MegawattDayPerTonne = 19, - MegawattHourPerKilogram = 20, - MegawattHourPerPound = 21, - TerawattDayPerKilogram = 22, - TerawattDayPerShortTon = 23, - TerawattDayPerTonne = 24, - WattDayPerKilogram = 25, - WattDayPerShortTon = 26, - WattDayPerTonne = 27, - WattHourPerKilogram = 28, - WattHourPerPound = 29, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificEntropyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificEntropyUnit.g.cs deleted file mode 100644 index 77e55a2af2..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificEntropyUnit.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum SpecificEntropyUnit - { - BtuPerPoundFahrenheit = 1, - CaloriePerGramKelvin = 2, - JoulePerKilogramDegreeCelsius = 3, - JoulePerKilogramKelvin = 4, - KilocaloriePerGramKelvin = 5, - KilojoulePerKilogramDegreeCelsius = 6, - KilojoulePerKilogramKelvin = 7, - MegajoulePerKilogramDegreeCelsius = 8, - MegajoulePerKilogramKelvin = 9, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificFuelConsumptionUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificFuelConsumptionUnit.g.cs deleted file mode 100644 index 6801a748fc..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificFuelConsumptionUnit.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum SpecificFuelConsumptionUnit - { - GramPerKilonewtonSecond = 1, - KilogramPerKilogramForceHour = 2, - KilogramPerKilonewtonSecond = 3, - PoundMassPerPoundForceHour = 4, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificVolumeUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificVolumeUnit.g.cs deleted file mode 100644 index 49be37c632..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificVolumeUnit.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum SpecificVolumeUnit - { - CubicFootPerPound = 1, - CubicMeterPerKilogram = 2, - MillicubicMeterPerKilogram = 3, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificWeightUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificWeightUnit.g.cs deleted file mode 100644 index a4ff736200..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/SpecificWeightUnit.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum SpecificWeightUnit - { - KilogramForcePerCubicCentimeter = 1, - KilogramForcePerCubicMeter = 2, - KilogramForcePerCubicMillimeter = 3, - KilonewtonPerCubicCentimeter = 4, - KilonewtonPerCubicMeter = 5, - KilonewtonPerCubicMillimeter = 6, - KilopoundForcePerCubicFoot = 7, - KilopoundForcePerCubicInch = 8, - MeganewtonPerCubicMeter = 9, - NewtonPerCubicCentimeter = 10, - NewtonPerCubicMeter = 11, - NewtonPerCubicMillimeter = 12, - PoundForcePerCubicFoot = 13, - PoundForcePerCubicInch = 14, - TonneForcePerCubicCentimeter = 15, - TonneForcePerCubicMeter = 16, - TonneForcePerCubicMillimeter = 17, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/SpeedUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/SpeedUnit.g.cs deleted file mode 100644 index 7b8b70b339..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/SpeedUnit.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum SpeedUnit - { - CentimeterPerHour = 1, - CentimeterPerMinute = 2, - CentimeterPerSecond = 3, - DecimeterPerMinute = 4, - DecimeterPerSecond = 5, - FootPerHour = 6, - FootPerMinute = 7, - FootPerSecond = 8, - InchPerHour = 9, - InchPerMinute = 10, - InchPerSecond = 11, - KilometerPerHour = 12, - KilometerPerMinute = 13, - KilometerPerSecond = 14, - - /// - /// The knot, by definition, is a unit of speed equals to 1 nautical mile per hour, which is exactly 1852.000 metres per hour. The length of the internationally agreed nautical mile is 1852 m. The US adopted the international definition in 1954, the UK adopted the international nautical mile definition in 1970. - /// - /// https://en.wikipedia.org/wiki/Knot_(unit) - Knot = 15, - Mach = 42, - MeterPerHour = 16, - MeterPerMinute = 17, - MeterPerSecond = 18, - MicrometerPerMinute = 19, - MicrometerPerSecond = 20, - MilePerHour = 21, - MillimeterPerHour = 22, - MillimeterPerMinute = 23, - MillimeterPerSecond = 24, - NanometerPerMinute = 25, - NanometerPerSecond = 26, - UsSurveyFootPerHour = 27, - UsSurveyFootPerMinute = 28, - UsSurveyFootPerSecond = 29, - YardPerHour = 30, - YardPerMinute = 31, - YardPerSecond = 32, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/StandardVolumeFlowUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/StandardVolumeFlowUnit.g.cs deleted file mode 100644 index 212589934b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/StandardVolumeFlowUnit.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum StandardVolumeFlowUnit - { - StandardCubicCentimeterPerMinute = 1, - StandardCubicFootPerHour = 2, - StandardCubicFootPerMinute = 3, - StandardCubicFootPerSecond = 4, - StandardCubicMeterPerDay = 5, - StandardCubicMeterPerHour = 6, - StandardCubicMeterPerMinute = 7, - StandardCubicMeterPerSecond = 8, - StandardLiterPerMinute = 9, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureChangeRateUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureChangeRateUnit.g.cs deleted file mode 100644 index f2bd27b42b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureChangeRateUnit.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum TemperatureChangeRateUnit - { - CentidegreeCelsiusPerSecond = 1, - DecadegreeCelsiusPerSecond = 2, - DecidegreeCelsiusPerSecond = 3, - DegreeCelsiusPerHour = 18, - DegreeCelsiusPerMinute = 4, - DegreeCelsiusPerSecond = 5, - DegreeFahrenheitPerHour = 11, - DegreeFahrenheitPerMinute = 16, - DegreeFahrenheitPerSecond = 19, - DegreeKelvinPerHour = 12, - DegreeKelvinPerMinute = 20, - DegreeKelvinPerSecond = 15, - HectodegreeCelsiusPerSecond = 6, - KilodegreeCelsiusPerSecond = 7, - MicrodegreeCelsiusPerSecond = 8, - MillidegreeCelsiusPerSecond = 9, - NanodegreeCelsiusPerSecond = 10, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureDeltaUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureDeltaUnit.g.cs deleted file mode 100644 index 7895e204a4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureDeltaUnit.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum TemperatureDeltaUnit - { - DegreeCelsius = 1, - DegreeDelisle = 2, - DegreeFahrenheit = 3, - DegreeNewton = 4, - DegreeRankine = 5, - DegreeReaumur = 6, - DegreeRoemer = 7, - Kelvin = 8, - MillidegreeCelsius = 9, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureGradientUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureGradientUnit.g.cs deleted file mode 100644 index 73040b84a2..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureGradientUnit.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum TemperatureGradientUnit - { - DegreeCelsiusPerKilometer = 1, - DegreeCelsiusPerMeter = 2, - DegreeFahrenheitPerFoot = 3, - KelvinPerMeter = 4, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureUnit.g.cs deleted file mode 100644 index 51a02d8902..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/TemperatureUnit.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum TemperatureUnit - { - DegreeCelsius = 1, - DegreeDelisle = 2, - DegreeFahrenheit = 3, - DegreeNewton = 4, - DegreeRankine = 5, - DegreeReaumur = 6, - DegreeRoemer = 7, - Kelvin = 8, - MillidegreeCelsius = 9, - SolarTemperature = 10, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalConductivityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalConductivityUnit.g.cs deleted file mode 100644 index 044fda144e..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalConductivityUnit.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ThermalConductivityUnit - { - BtuPerHourFootFahrenheit = 1, - WattPerMeterKelvin = 2, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalInsulanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalInsulanceUnit.g.cs deleted file mode 100644 index 28b1e44bbe..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalInsulanceUnit.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ThermalInsulanceUnit - { - HourSquareFeetDegreeFahrenheitPerBtu = 2, - SquareCentimeterHourDegreeCelsiusPerKilocalorie = 6, - SquareCentimeterKelvinPerWatt = 7, - SquareMeterDegreeCelsiusPerWatt = 3, - SquareMeterKelvinPerKilowatt = 5, - SquareMeterKelvinPerWatt = 4, - SquareMillimeterKelvinPerWatt = 13, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalResistanceUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalResistanceUnit.g.cs deleted file mode 100644 index b4fa64b964..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalResistanceUnit.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum ThermalResistanceUnit - { - DegreeCelsiusPerWatt = 10, - KelvinPerWatt = 11, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/TorqueUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/TorqueUnit.g.cs deleted file mode 100644 index 74ad9eb231..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/TorqueUnit.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum TorqueUnit - { - GramForceCentimeter = 1, - GramForceMeter = 2, - GramForceMillimeter = 3, - KilogramForceCentimeter = 4, - KilogramForceMeter = 5, - KilogramForceMillimeter = 6, - KilonewtonCentimeter = 7, - KilonewtonMeter = 8, - KilonewtonMillimeter = 9, - KilopoundForceFoot = 10, - KilopoundForceInch = 11, - MeganewtonCentimeter = 12, - MeganewtonMeter = 13, - MeganewtonMillimeter = 14, - MegapoundForceFoot = 15, - MegapoundForceInch = 16, - NewtonCentimeter = 17, - NewtonMeter = 18, - NewtonMillimeter = 19, - PoundalFoot = 20, - PoundForceFoot = 21, - PoundForceInch = 22, - TonneForceCentimeter = 23, - TonneForceMeter = 24, - TonneForceMillimeter = 25, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/TurbidityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/TurbidityUnit.g.cs deleted file mode 100644 index a511c7c143..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/TurbidityUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum TurbidityUnit - { - NTU = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/VitaminAUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/VitaminAUnit.g.cs deleted file mode 100644 index 2ffecd0c47..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/VitaminAUnit.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum VitaminAUnit - { - InternationalUnit = 1, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeConcentrationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeConcentrationUnit.g.cs deleted file mode 100644 index 5624e121d1..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeConcentrationUnit.g.cs +++ /dev/null @@ -1,51 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum VolumeConcentrationUnit - { - CentiliterPerLiter = 1, - CentiliterPerMilliliter = 2, - DeciliterPerLiter = 3, - DeciliterPerMilliliter = 4, - DecimalFraction = 5, - LiterPerLiter = 6, - LiterPerMilliliter = 7, - MicroliterPerLiter = 8, - MicroliterPerMilliliter = 9, - MilliliterPerLiter = 10, - MilliliterPerMilliliter = 11, - NanoliterPerLiter = 12, - NanoliterPerMilliliter = 13, - PartPerBillion = 14, - PartPerMillion = 15, - PartPerThousand = 16, - PartPerTrillion = 17, - Percent = 18, - PicoliterPerLiter = 19, - PicoliterPerMilliliter = 20, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowPerAreaUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowPerAreaUnit.g.cs deleted file mode 100644 index abcdea8f8f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowPerAreaUnit.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum VolumeFlowPerAreaUnit - { - CubicFootPerMinutePerSquareFoot = 1, - CubicMeterPerSecondPerSquareMeter = 2, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowUnit.g.cs deleted file mode 100644 index 6c14bc7b98..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowUnit.g.cs +++ /dev/null @@ -1,106 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum VolumeFlowUnit - { - AcreFootPerDay = 1, - AcreFootPerHour = 2, - AcreFootPerMinute = 3, - AcreFootPerSecond = 4, - CentiliterPerDay = 5, - CentiliterPerHour = 6, - CentiliterPerMinute = 7, - CentiliterPerSecond = 8, - CubicCentimeterPerMinute = 9, - CubicDecimeterPerMinute = 10, - CubicFootPerHour = 11, - CubicFootPerMinute = 12, - CubicFootPerSecond = 13, - CubicMeterPerDay = 14, - CubicMeterPerHour = 15, - CubicMeterPerMinute = 16, - CubicMeterPerSecond = 17, - CubicMillimeterPerSecond = 18, - CubicYardPerDay = 19, - CubicYardPerHour = 20, - CubicYardPerMinute = 21, - CubicYardPerSecond = 22, - DecaliterPerDay = 71, - DecaliterPerHour = 78, - DecaliterPerMinute = 67, - DecaliterPerSecond = 70, - DeciliterPerDay = 23, - DeciliterPerHour = 24, - DeciliterPerMinute = 25, - DeciliterPerSecond = 26, - HectoliterPerDay = 74, - HectoliterPerHour = 72, - HectoliterPerMinute = 75, - HectoliterPerSecond = 69, - KiloliterPerDay = 27, - KiloliterPerHour = 28, - KiloliterPerMinute = 29, - KiloliterPerSecond = 30, - KilousGallonPerMinute = 31, - LiterPerDay = 32, - LiterPerHour = 33, - LiterPerMinute = 34, - LiterPerSecond = 35, - MegaliterPerDay = 36, - MegaliterPerHour = 68, - MegaliterPerMinute = 64, - MegaliterPerSecond = 65, - MegaukGallonPerDay = 73, - MegaukGallonPerSecond = 37, - MegausGallonPerDay = 77, - MicroliterPerDay = 38, - MicroliterPerHour = 39, - MicroliterPerMinute = 40, - MicroliterPerSecond = 41, - MilliliterPerDay = 42, - MilliliterPerHour = 43, - MilliliterPerMinute = 44, - MilliliterPerSecond = 45, - MillionUsGallonPerDay = 66, - NanoliterPerDay = 47, - NanoliterPerHour = 48, - NanoliterPerMinute = 49, - NanoliterPerSecond = 50, - OilBarrelPerDay = 51, - OilBarrelPerHour = 52, - OilBarrelPerMinute = 53, - OilBarrelPerSecond = 54, - UkGallonPerDay = 55, - UkGallonPerHour = 56, - UkGallonPerMinute = 57, - UkGallonPerSecond = 58, - UsGallonPerDay = 59, - UsGallonPerHour = 60, - UsGallonPerMinute = 61, - UsGallonPerSecond = 62, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumePerLengthUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/VolumePerLengthUnit.g.cs deleted file mode 100644 index 526d9c8509..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumePerLengthUnit.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum VolumePerLengthUnit - { - CubicMeterPerMeter = 1, - CubicYardPerFoot = 2, - CubicYardPerUsSurveyFoot = 3, - ImperialGallonPerMile = 11, - LiterPerKilometer = 4, - LiterPerMeter = 5, - LiterPerMillimeter = 6, - OilBarrelPerFoot = 7, - UsGallonPerMile = 8, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeUnit.g.cs deleted file mode 100644 index c57fe745cb..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeUnit.g.cs +++ /dev/null @@ -1,216 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum VolumeUnit - { - - /// - /// An acre-foot is 43,560 cubic feet (~1,233.5 m3). - /// - /// https://en.wikipedia.org/wiki/Acre-foot - AcreFoot = 1, - - /// - /// In Australia, the definition of the tablespoon is 20 ml (0.70 imp fl oz). - /// - /// https://en.wikipedia.org/wiki/Tablespoon#Australia - AuTablespoon = 2, - - /// - /// The board foot or board-foot is a unit of measurement for the volume of lumber in the United States and Canada. It equals the volume of a board that is one-foot (305 mm) in length, one-foot (305 mm) in width, and one-inch (25.4 mm) in thickness. - /// - /// https://en.wikipedia.org/wiki/Board_foot - BoardFoot = 3, - Centiliter = 4, - CubicCentimeter = 5, - CubicDecimeter = 6, - - /// - /// The cubic foot (symbol ft3 or cu ft) is an imperial and US customary (non-metric) unit of volume, used in the United States and the United Kingdom. It is defined as the volume of a cube with sides of one foot (0.3048 m) in length. - /// - /// https://en.wikipedia.org/wiki/Cubic_foot - CubicFoot = 7, - CubicHectometer = 8, - - /// - /// The cubic inch (symbol in3) is a unit of volume in the Imperial units and United States customary units systems. It is the volume of a cube with each of its three dimensions (length, width, and height) being one inch long which is equivalent to 1/231 of a US gallon. - /// - /// https://en.wikipedia.org/wiki/Cubic_yard - CubicInch = 9, - CubicKilometer = 10, - CubicMeter = 11, - CubicMicrometer = 12, - - /// - /// A cubic mile (abbreviation: cu mi or mi3) is an imperial and US customary (non-SI non-metric) unit of volume, used in the United States, Canada and the United Kingdom. It is defined as the volume of a cube with sides of 1 mile (63360 inches, 5280 feet, 1760 yards or ~1.609 kilometres) in length. - /// - /// https://en.wikipedia.org/wiki/Cubic_mile - CubicMile = 13, - CubicMillimeter = 14, - - /// - /// A cubic yard is an Imperial / U.S. customary (non-SI non-metric) unit of volume, used in Canada and the United States. It is defined as the volume of a cube with sides of 1 yard (3 feet, 36 inches, 0.9144 meters) in length. - /// - /// https://en.wikipedia.org/wiki/Cubic_yard - CubicYard = 15, - Decaliter = 16, - DecausGallon = 17, - Deciliter = 18, - DeciusGallon = 19, - HectocubicFoot = 20, - HectocubicMeter = 21, - Hectoliter = 22, - HectousGallon = 23, - - /// - /// Fluid barrels vary depending on what is being measured and where. In the UK a beer barrel is 36 imperial gallons (43 US gal; ~164 L). - /// - /// https://en.wikipedia.org/wiki/Barrel_(unit)#Fluid_barrel_in_the_US_and_UK - ImperialBeerBarrel = 24, - - /// - /// The British imperial gallon (frequently called simply "gallon") is defined as exactly 4.54609 litres. - /// - /// https://en.wikipedia.org/wiki/Gallon#Imperial_gallon - ImperialGallon = 25, - - /// - /// An imperial fluid ounce is 1⁄20 of an imperial pint, 1⁄160 of an imperial gallon or exactly 28.4130625 mL. - /// - /// https://en.wikipedia.org/wiki/Fluid_ounce - ImperialOunce = 26, - - /// - /// The pint is a unit of volume or capacity in both the imperial and United States customary measurement systems. In both of those systems it is traditionally one eighth of a gallon. The British imperial pint is about 20% larger than the American pint because the two systems are defined differently. - /// - /// https://en.wikipedia.org/wiki/Pint#Imperial_pint - ImperialPint = 27, - - /// - /// The imperial quart, which is used for both liquid and dry capacity, is equal to one quarter of an imperial gallon, or exactly 1.1365225 liters. - /// - /// https://en.wikipedia.org/wiki/Quart#Imperial_quart - ImperialQuart = 57, - KilocubicFoot = 28, - KilocubicMeter = 29, - KiloimperialGallon = 30, - Kiloliter = 31, - KilousGallon = 32, - Liter = 33, - MegacubicFoot = 34, - MegaimperialGallon = 35, - Megaliter = 36, - MegausGallon = 37, - - /// - /// Australia, Canada, New Zealand, and some other members of the Commonwealth of Nations, being former British colonies that have since metricated, employ a metric cup of 250 millilitres. Although derived from the metric system, it is not an SI unit. - /// - /// https://en.wikipedia.org/wiki/Cup_(unit)#Metric_cup - MetricCup = 38, - - /// - /// An international metric tablespoon is exactly equal to 15 mL. It is the equivalence of 1⁠ 1/2 metric dessert spoons or 3 metric teaspoons. - /// - /// https://en.wikipedia.org/wiki/Tablespoon#International_metric - MetricTablespoon = 63, - - /// - /// The metric teaspoon as a unit of culinary measure is 5 ml (0.18 imp fl oz; 0.17 US fl oz),[17] equal to 5 cm3, 1⁄3 UK/Canadian metric tablespoon, or 1⁄4 Australian metric tablespoon. - /// - /// https://en.wikipedia.org/wiki/Teaspoon#Metric_teaspoon - MetricTeaspoon = 39, - Microliter = 40, - Milliliter = 41, - Nanoliter = 53, - - /// - /// In the oil industry, one barrel (unit symbol bbl) is a unit of volume used for measuring oil defined as exactly 42 US gallons, approximately 159 liters, or 35 imperial gallons. - /// - /// https://en.wikipedia.org/wiki/Barrel_(unit)#Oil_barrel - OilBarrel = 42, - - /// - /// In nutrition labeling in the U.S. and the U.K., a tablespoon is defined as 15 ml (0.51 US fl oz). In Australia, the definition of the tablespoon is 20 ml (0.70 imp fl oz). - /// - /// https://en.wikipedia.org/wiki/Tablespoon#International - UkTablespoon = 43, - - /// - /// Fluid barrels vary depending on what is being measured and where. In the US most fluid barrels (apart from oil) are 31.5 US gallons (26 imp gal; 119 L) (half a hogshead), but a beer barrel is 31 US gallons (26 imp gal; 117 L). - /// - /// https://en.wikipedia.org/wiki/Barrel_(unit)#Fluid_barrel_in_the_US_and_UK - UsBeerBarrel = 44, - - /// - /// In the United States, the customary cup is half of a liquid pint or 1⁄16 US customary gallon which is 236.5882365 milliliters exactly. - /// - /// https://en.wikipedia.org/wiki/Cup_(unit)#Customary_cup - UsCustomaryCup = 45, - - /// - /// The US liquid gallon (frequently called simply "gallon") is legally defined as 231 cubic inches, which is exactly 3.785411784 litres. - /// - /// https://en.wikipedia.org/wiki/Gallon#US_liquid_gallon - UsGallon = 46, - - /// - /// The cup currently used in the United States for nutrition labelling is defined in United States law as 240 ml. - /// - /// https://en.wikipedia.org/wiki/Cup_(unit)#Legal_cup - UsLegalCup = 47, - - /// - /// A US customary fluid ounce is 1⁄16 of a US liquid pint and 1⁄128 of a US liquid gallon or exactly 29.5735295625 mL, making it about 4.08% larger than the imperial fluid ounce. - /// - /// https://en.wikipedia.org/wiki/Fluid_ounce - UsOunce = 48, - - /// - /// The pint is a unit of volume or capacity in both the imperial and United States customary measurement systems. In both of those systems it is traditionally one eighth of a gallon. The British imperial pint is about 20% larger than the American pint because the two systems are defined differently. - /// - /// https://en.wikipedia.org/wiki/Pint#US_liquid_pint - UsPint = 49, - - /// - /// The US liquid quart equals 57.75 cubic inches, which is exactly equal to 0.946352946 L. - /// - /// https://en.wikipedia.org/wiki/Quart#US_liquid_quart - UsQuart = 50, - - /// - /// The traditional U.S. interpretation of the tablespoon as a unit of volume is: 1 US tablespoon = 4 fluid drams, or 3 teaspoons or 1/2 US fluid ounce (≈ 14.8 ml) - /// - /// https://en.wikipedia.org/wiki/Tablespoon#United_States - UsTablespoon = 51, - - /// - /// As a unit of culinary measure, one teaspoon in the United States is 1⁄3 tablespoon, exactly 4.92892159375 ml, 1 1⁄3 US fluid drams, 1⁄6 US fl oz, 1⁄48 US cup, 1⁄768 US liquid gallon, or 77⁄256 (0.30078125) cubic inches. - /// - /// https://en.wikipedia.org/wiki/Teaspoon#United_States_customary_unit - UsTeaspoon = 52, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumetricHeatCapacityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/VolumetricHeatCapacityUnit.g.cs deleted file mode 100644 index 59ae226aa2..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumetricHeatCapacityUnit.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum VolumetricHeatCapacityUnit - { - /// Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details. - BtuPerCubicFootDegreeFahrenheit = 1, - CaloriePerCubicCentimeterDegreeCelsius = 2, - JoulePerCubicMeterDegreeCelsius = 3, - JoulePerCubicMeterKelvin = 4, - KilocaloriePerCubicCentimeterDegreeCelsius = 5, - KilojoulePerCubicMeterDegreeCelsius = 6, - KilojoulePerCubicMeterKelvin = 7, - MegajoulePerCubicMeterDegreeCelsius = 8, - MegajoulePerCubicMeterKelvin = 9, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/WarpingMomentOfInertiaUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/WarpingMomentOfInertiaUnit.g.cs deleted file mode 100644 index 5f77a6d521..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/WarpingMomentOfInertiaUnit.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by \generate-code.bat. -// -// Changes to this file will be lost when the code is regenerated. -// The build server regenerates the code before each build and a pre-build -// step will regenerate the code on each local build. -// -// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. -// -// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities. -// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities. -// -// -//------------------------------------------------------------------------------ - -// Licensed under MIT No Attribution, see LICENSE file at the root. -// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. - -// ReSharper disable once CheckNamespace -namespace UnitsNet.Units -{ - // Disable missing XML comment warnings for the generated unit enums. - #pragma warning disable 1591 - - public enum WarpingMomentOfInertiaUnit - { - CentimeterToTheSixth = 1, - DecimeterToTheSixth = 2, - FootToTheSixth = 3, - InchToTheSixth = 4, - MeterToTheSixth = 5, - MillimeterToTheSixth = 6, - } - - #pragma warning restore 1591 -} diff --git a/UnitsNet.NanoFramework/GeneratedCode/UnitsNet.nanoFramework.sln b/UnitsNet.NanoFramework/GeneratedCode/UnitsNet.nanoFramework.sln deleted file mode 100644 index f2d98d63c4..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/UnitsNet.nanoFramework.sln +++ /dev/null @@ -1,1044 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30413.136 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "AbsorbedDoseOfIonizingRadiation", "AbsorbedDoseOfIonizingRadiation\AbsorbedDoseOfIonizingRadiation.nfproj", "{3d39134e-c97d-cba4-a559-fdb3a0da5e54}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Acceleration", "Acceleration\Acceleration.nfproj", "{8e3a6691-a05f-d71c-f12a-f537c0807f85}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "AmountOfSubstance", "AmountOfSubstance\AmountOfSubstance.nfproj", "{1cd282f3-3bdc-bc00-a63a-03a11a9b5c4d}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "AmplitudeRatio", "AmplitudeRatio\AmplitudeRatio.nfproj", "{59c09a1b-eff0-e367-6372-d16c4c984916}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Angle", "Angle\Angle.nfproj", "{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Area", "Area\Area.nfproj", "{04c24d02-bad7-a877-ff9b-a36a886c9633}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "AreaDensity", "AreaDensity\AreaDensity.nfproj", "{92ff1332-bf34-943e-a58d-8a76746d879e}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "AreaMomentOfInertia", "AreaMomentOfInertia\AreaMomentOfInertia.nfproj", "{566ef13c-0d17-e465-d35f-1bd9c65559bf}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "BitRate", "BitRate\BitRate.nfproj", "{b5fdf997-829f-5281-e624-ee4eee5aa26c}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "BrakeSpecificFuelConsumption", "BrakeSpecificFuelConsumption\BrakeSpecificFuelConsumption.nfproj", "{085145f2-2b8f-4d09-5290-c14cdcd452bf}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "CoefficientOfThermalExpansion", "CoefficientOfThermalExpansion\CoefficientOfThermalExpansion.nfproj", "{a9514ce6-d4e7-88ca-051e-e9e53610c519}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Compressibility", "Compressibility\Compressibility.nfproj", "{daf647be-be87-88b9-ee92-dece21fe0dff}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Density", "Density\Density.nfproj", "{d683a277-5892-aec2-985d-c2343725d0af}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "DoseAreaProduct", "DoseAreaProduct\DoseAreaProduct.nfproj", "{e074adae-f19a-6b69-67b0-b4fb425b39ce}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Duration", "Duration\Duration.nfproj", "{3c2ac54f-554c-518b-7c46-3b22d86d0e3b}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "DynamicViscosity", "DynamicViscosity\DynamicViscosity.nfproj", "{5dde57f4-3f98-c4b7-47e5-65229faf1f0f}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricAdmittance", "ElectricAdmittance\ElectricAdmittance.nfproj", "{2ee55c63-d077-25dd-f076-857adfe08080}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricApparentEnergy", "ElectricApparentEnergy\ElectricApparentEnergy.nfproj", "{f22b7bcc-5a8d-3a02-d81c-caf6c9c44d61}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricApparentPower", "ElectricApparentPower\ElectricApparentPower.nfproj", "{b7a9eb2a-4b0e-548c-2370-a33ee63b21cc}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricCapacitance", "ElectricCapacitance\ElectricCapacitance.nfproj", "{10e8cf6b-7fec-911f-770d-e3641296ac89}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricCharge", "ElectricCharge\ElectricCharge.nfproj", "{f4286cfc-484b-8466-8efa-1111696babb9}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricChargeDensity", "ElectricChargeDensity\ElectricChargeDensity.nfproj", "{b1567c85-ad77-c283-9165-777ad0e9a2eb}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricConductance", "ElectricConductance\ElectricConductance.nfproj", "{fcd3dfb2-9ee2-ad22-0e1f-4cddd575792a}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricConductivity", "ElectricConductivity\ElectricConductivity.nfproj", "{f420eccc-b12d-72e4-2ad2-f93054eeec30}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricCurrent", "ElectricCurrent\ElectricCurrent.nfproj", "{55160a70-69b2-4144-b974-b64d78bd50e0}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricCurrentDensity", "ElectricCurrentDensity\ElectricCurrentDensity.nfproj", "{8beda85e-3d20-5926-c060-f92913f1192e}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricCurrentGradient", "ElectricCurrentGradient\ElectricCurrentGradient.nfproj", "{29df066c-c160-cd60-b10f-23a0c3bb8457}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricField", "ElectricField\ElectricField.nfproj", "{635581a6-f954-d0e4-9c68-02c1725e49d2}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricImpedance", "ElectricImpedance\ElectricImpedance.nfproj", "{23a79010-5c1a-9120-0992-a69c8dd80015}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricInductance", "ElectricInductance\ElectricInductance.nfproj", "{76bf8a97-e573-a5b5-286f-04ca7e00f8e9}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricPotential", "ElectricPotential\ElectricPotential.nfproj", "{66c94dc2-e546-9737-a45b-4bc60fe0e536}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricPotentialChangeRate", "ElectricPotentialChangeRate\ElectricPotentialChangeRate.nfproj", "{679517ca-9d0b-0ec2-35ae-95230281cfba}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricReactance", "ElectricReactance\ElectricReactance.nfproj", "{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricReactiveEnergy", "ElectricReactiveEnergy\ElectricReactiveEnergy.nfproj", "{9f892c4e-26c2-1420-a73c-08138c8f6ca2}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricReactivePower", "ElectricReactivePower\ElectricReactivePower.nfproj", "{6e5b2ba2-7712-0f4f-d2bf-2624bb877dbe}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricResistance", "ElectricResistance\ElectricResistance.nfproj", "{78d59e90-3339-54d6-3803-f68623b72eff}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricResistivity", "ElectricResistivity\ElectricResistivity.nfproj", "{6a4a0f45-c2b4-6be4-e44a-e78d3282359f}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricSurfaceChargeDensity", "ElectricSurfaceChargeDensity\ElectricSurfaceChargeDensity.nfproj", "{006e161d-aae1-2dd1-5b94-ebd45d31f50a}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ElectricSusceptance", "ElectricSusceptance\ElectricSusceptance.nfproj", "{544c006b-f7de-21a9-a1b4-8df710e184c8}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Energy", "Energy\Energy.nfproj", "{f7d3fcf2-cadc-19dd-4c4c-5a54a5102c95}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "EnergyDensity", "EnergyDensity\EnergyDensity.nfproj", "{c5025916-5039-97c2-b450-af1420f5fb08}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Entropy", "Entropy\Entropy.nfproj", "{816884bb-a5f6-5c07-967b-bb8f21d724b7}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "FluidResistance", "FluidResistance\FluidResistance.nfproj", "{d19281dc-72f6-62a9-18d5-b845d6fd8d99}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Force", "Force\Force.nfproj", "{5517dacf-b1ff-6515-e5b6-b5081f92f407}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ForceChangeRate", "ForceChangeRate\ForceChangeRate.nfproj", "{97ad732d-4ce5-2027-aabc-844002d29c23}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ForcePerLength", "ForcePerLength\ForcePerLength.nfproj", "{6b975d30-c5dd-f1fd-9d0c-4d56ecdf9b25}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Frequency", "Frequency\Frequency.nfproj", "{8d66b616-3198-b8a1-d2d0-03496db6a62b}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "FuelEfficiency", "FuelEfficiency\FuelEfficiency.nfproj", "{6e68ff9b-3947-d706-3ad7-f9237a67c874}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "HeatFlux", "HeatFlux\HeatFlux.nfproj", "{2b132458-96e5-72bf-673f-dda4a7fd514b}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "HeatTransferCoefficient", "HeatTransferCoefficient\HeatTransferCoefficient.nfproj", "{3ede821e-ee76-967e-94d7-5b1d1239c8dd}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Illuminance", "Illuminance\Illuminance.nfproj", "{d846582b-8ae3-9779-01ea-7210b5330cfd}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Impulse", "Impulse\Impulse.nfproj", "{d8d4e4e8-1dc8-0170-5e3c-18610853bd87}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Information", "Information\Information.nfproj", "{12bab01c-845f-82c9-b00b-a3639cdfb2ce}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Irradiance", "Irradiance\Irradiance.nfproj", "{5f9c09c7-9e32-8927-7a5d-90001ceffc69}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Irradiation", "Irradiation\Irradiation.nfproj", "{b545726f-7a83-3c78-2b55-6a709c5a6d00}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Jerk", "Jerk\Jerk.nfproj", "{8540cfb1-fe4a-dcc3-a70e-840262803cfc}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "KinematicViscosity", "KinematicViscosity\KinematicViscosity.nfproj", "{733e533d-9ff2-4c72-3da9-200f758dc6e3}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "LeakRate", "LeakRate\LeakRate.nfproj", "{ff162d83-3229-2000-71ed-08999160dca3}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Length", "Length\Length.nfproj", "{0556c9ad-b3a1-730c-959f-baf21e60f972}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Level", "Level\Level.nfproj", "{5c300917-a99f-d166-4f56-f0da3c3614bb}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "LinearDensity", "LinearDensity\LinearDensity.nfproj", "{ab414094-9582-3357-d0e9-20b153a1b54c}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "LinearPowerDensity", "LinearPowerDensity\LinearPowerDensity.nfproj", "{8823a9ee-673a-e7d4-3c0a-bae61a262388}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Luminance", "Luminance\Luminance.nfproj", "{cbded274-6b9b-a113-d56f-00b38006cc84}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Luminosity", "Luminosity\Luminosity.nfproj", "{fe30ed04-094f-5005-b0aa-1b3623db60b2}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "LuminousFlux", "LuminousFlux\LuminousFlux.nfproj", "{a38e4da2-f05f-aa6f-82f1-56cd2e062d96}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "LuminousIntensity", "LuminousIntensity\LuminousIntensity.nfproj", "{733f9598-101b-936b-b081-2805dd793091}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MagneticField", "MagneticField\MagneticField.nfproj", "{809c4afa-d014-471b-518b-4fd01cb7c808}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MagneticFlux", "MagneticFlux\MagneticFlux.nfproj", "{f0c5342b-fb95-48a4-029f-7aa631ce06f1}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Magnetization", "Magnetization\Magnetization.nfproj", "{3ea3301e-d3de-6979-f1d7-58352998951c}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Mass", "Mass\Mass.nfproj", "{f8c5a010-c353-31da-cadc-b56186be374f}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MassConcentration", "MassConcentration\MassConcentration.nfproj", "{0b1482c2-a3b1-6207-b73f-a07f46718b65}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MassFlow", "MassFlow\MassFlow.nfproj", "{a0821347-be46-c587-b61d-5152c578048d}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MassFlux", "MassFlux\MassFlux.nfproj", "{15622f39-b4c5-7e66-57bc-31900b6065c8}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MassFraction", "MassFraction\MassFraction.nfproj", "{db140d08-4769-dc51-8809-a9222b830ef4}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MassMomentOfInertia", "MassMomentOfInertia\MassMomentOfInertia.nfproj", "{6218c061-3905-79b2-d3bc-bb7b8fc77a69}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Molality", "Molality\Molality.nfproj", "{589b202c-e638-5c93-fefe-e1e3bab4a493}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MolarEnergy", "MolarEnergy\MolarEnergy.nfproj", "{9b77d4e0-863d-4a74-c30a-56f7b2bb7cb7}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MolarEntropy", "MolarEntropy\MolarEntropy.nfproj", "{2053731b-90f5-5141-d15e-8d7be8c2662f}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MolarFlow", "MolarFlow\MolarFlow.nfproj", "{49cc942b-d836-a48b-0429-25bf95247759}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Molarity", "Molarity\Molarity.nfproj", "{0d21f127-8c25-9b3a-9612-ce2eea6e7ac1}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "MolarMass", "MolarMass\MolarMass.nfproj", "{fe51bbda-2039-23fd-f29a-39c14adcb1f6}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Permeability", "Permeability\Permeability.nfproj", "{34a31e0b-15ec-829c-6f0b-74f5acfd97e2}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Permittivity", "Permittivity\Permittivity.nfproj", "{9b381685-8129-acba-66f0-7068fe43a6c3}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "PorousMediumPermeability", "PorousMediumPermeability\PorousMediumPermeability.nfproj", "{493d1e8e-51c6-da82-9289-25bd26fab4a4}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Power", "Power\Power.nfproj", "{56968e84-6b7d-d548-4c0b-53017bd6123c}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "PowerDensity", "PowerDensity\PowerDensity.nfproj", "{5e741dd9-690a-de16-e7a1-85e6239aa70d}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "PowerRatio", "PowerRatio\PowerRatio.nfproj", "{94317d9a-d614-b098-6175-76ee84262c05}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Pressure", "Pressure\Pressure.nfproj", "{f907841f-b1ee-9b12-580e-cfe2324bed03}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "PressureChangeRate", "PressureChangeRate\PressureChangeRate.nfproj", "{c9e4cfa9-c5d3-5e9d-243c-106ba4b6a447}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RadiationEquivalentDose", "RadiationEquivalentDose\RadiationEquivalentDose.nfproj", "{dcdccf04-c930-b455-77a4-d9d4a7df8723}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RadiationEquivalentDoseRate", "RadiationEquivalentDoseRate\RadiationEquivalentDoseRate.nfproj", "{8eec9904-f4bb-c601-86ac-80fb153599f9}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RadiationExposure", "RadiationExposure\RadiationExposure.nfproj", "{69b383c7-828a-1857-cbe2-f11b9ba77320}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Radioactivity", "Radioactivity\Radioactivity.nfproj", "{abf4b42f-e999-2a78-403f-fb09524f186a}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Ratio", "Ratio\Ratio.nfproj", "{b0be4813-d93e-7b06-d422-23ca28adf22a}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RatioChangeRate", "RatioChangeRate\RatioChangeRate.nfproj", "{c028861d-f9e8-8231-2b6a-bc3b3fba349c}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ReciprocalArea", "ReciprocalArea\ReciprocalArea.nfproj", "{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ReciprocalLength", "ReciprocalLength\ReciprocalLength.nfproj", "{83d6c79a-c71a-d467-284c-28edbbd059d2}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RelativeHumidity", "RelativeHumidity\RelativeHumidity.nfproj", "{4ac05c74-08c5-2153-f38c-976975747b5c}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RotationalAcceleration", "RotationalAcceleration\RotationalAcceleration.nfproj", "{e2110137-6a36-f4d1-2219-26eb18fee74d}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RotationalSpeed", "RotationalSpeed\RotationalSpeed.nfproj", "{934ef064-2dce-6d50-64e9-d4d2c4d41a81}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RotationalStiffness", "RotationalStiffness\RotationalStiffness.nfproj", "{3788f245-ea6d-eb5d-80de-f25ab30a51cc}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "RotationalStiffnessPerLength", "RotationalStiffnessPerLength\RotationalStiffnessPerLength.nfproj", "{eae89113-1312-f83c-1a4b-638b98e760b3}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Scalar", "Scalar\Scalar.nfproj", "{609c8143-bdb3-709b-a7a5-cc33659c9b51}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "SolidAngle", "SolidAngle\SolidAngle.nfproj", "{39d13fa7-a1df-cea6-adee-bab64a00a843}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "SpecificEnergy", "SpecificEnergy\SpecificEnergy.nfproj", "{5bce25ab-a4d6-d89c-5274-7eadd8c5967a}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "SpecificEntropy", "SpecificEntropy\SpecificEntropy.nfproj", "{0d5dc515-9d35-ac02-c0b1-12c70c3163a2}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "SpecificFuelConsumption", "SpecificFuelConsumption\SpecificFuelConsumption.nfproj", "{f1a91b9a-ec32-5f98-d4d6-75ac04c63276}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "SpecificVolume", "SpecificVolume\SpecificVolume.nfproj", "{74b88d5c-96e5-7286-d2b2-8def18538246}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "SpecificWeight", "SpecificWeight\SpecificWeight.nfproj", "{d63ac796-7087-bf6c-2848-e6511358fbe4}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Speed", "Speed\Speed.nfproj", "{e9fe72c3-56b4-856b-a592-ae6e98e571f3}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "StandardVolumeFlow", "StandardVolumeFlow\StandardVolumeFlow.nfproj", "{5da7dbe9-f180-570f-2da0-2737f043744d}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Temperature", "Temperature\Temperature.nfproj", "{8bce58b9-1a87-6bb3-3cee-e0e0f012b618}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "TemperatureChangeRate", "TemperatureChangeRate\TemperatureChangeRate.nfproj", "{dfbb7b9f-c604-fedd-e658-17e196043123}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "TemperatureDelta", "TemperatureDelta\TemperatureDelta.nfproj", "{8854c5e8-e40b-74c3-aafc-de0f13239276}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "TemperatureGradient", "TemperatureGradient\TemperatureGradient.nfproj", "{83d1d75e-3c26-b8d0-f097-f99452e749cc}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ThermalConductivity", "ThermalConductivity\ThermalConductivity.nfproj", "{7e7d8010-b37a-151a-11a5-1db234ee1104}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ThermalInsulance", "ThermalInsulance\ThermalInsulance.nfproj", "{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ThermalResistance", "ThermalResistance\ThermalResistance.nfproj", "{c69bdd4d-3ebd-4b8e-cffb-650903da3872}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Torque", "Torque\Torque.nfproj", "{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Turbidity", "Turbidity\Turbidity.nfproj", "{05ac8aed-49a4-5c9f-d8c2-8d2debf64791}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "VitaminA", "VitaminA\VitaminA.nfproj", "{c00185af-8735-7674-5fa6-232424b04161}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Volume", "Volume\Volume.nfproj", "{66b90fb1-20d7-f563-3477-4c7c6b404f4d}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "VolumeConcentration", "VolumeConcentration\VolumeConcentration.nfproj", "{4aa72022-0946-6a28-a4e9-6c9add5caef6}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "VolumeFlow", "VolumeFlow\VolumeFlow.nfproj", "{b22e47e1-9506-56e6-3d19-780b887d8cb3}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "VolumeFlowPerArea", "VolumeFlowPerArea\VolumeFlowPerArea.nfproj", "{753bcc52-c451-8b29-6ae7-520b02ee6960}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "VolumePerLength", "VolumePerLength\VolumePerLength.nfproj", "{b66e3a3e-7945-3d40-24ef-73fa6e1b8d41}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "VolumetricHeatCapacity", "VolumetricHeatCapacity\VolumetricHeatCapacity.nfproj", "{cd2b60c1-a4b5-36f2-afa3-6cf1031f9e7f}" -EndProject -Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "WarpingMomentOfInertia", "WarpingMomentOfInertia\WarpingMomentOfInertia.nfproj", "{8433aac6-218d-9b7b-6eaa-36774e165446}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution -{3d39134e-c97d-cba4-a559-fdb3a0da5e54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{3d39134e-c97d-cba4-a559-fdb3a0da5e54}.Debug|Any CPU.Build.0 = Debug|Any CPU -{3d39134e-c97d-cba4-a559-fdb3a0da5e54}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{3d39134e-c97d-cba4-a559-fdb3a0da5e54}.Release|Any CPU.ActiveCfg = Release|Any CPU -{3d39134e-c97d-cba4-a559-fdb3a0da5e54}.Release|Any CPU.Build.0 = Release|Any CPU -{3d39134e-c97d-cba4-a559-fdb3a0da5e54}.Release|Any CPU.Deploy.0 = Release|Any CPU -{8e3a6691-a05f-d71c-f12a-f537c0807f85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{8e3a6691-a05f-d71c-f12a-f537c0807f85}.Debug|Any CPU.Build.0 = Debug|Any CPU -{8e3a6691-a05f-d71c-f12a-f537c0807f85}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{8e3a6691-a05f-d71c-f12a-f537c0807f85}.Release|Any CPU.ActiveCfg = Release|Any CPU -{8e3a6691-a05f-d71c-f12a-f537c0807f85}.Release|Any CPU.Build.0 = Release|Any CPU -{8e3a6691-a05f-d71c-f12a-f537c0807f85}.Release|Any CPU.Deploy.0 = Release|Any CPU -{1cd282f3-3bdc-bc00-a63a-03a11a9b5c4d}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{1cd282f3-3bdc-bc00-a63a-03a11a9b5c4d}.Debug|Any CPU.Build.0 = Debug|Any CPU -{1cd282f3-3bdc-bc00-a63a-03a11a9b5c4d}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{1cd282f3-3bdc-bc00-a63a-03a11a9b5c4d}.Release|Any CPU.ActiveCfg = Release|Any CPU -{1cd282f3-3bdc-bc00-a63a-03a11a9b5c4d}.Release|Any CPU.Build.0 = Release|Any CPU -{1cd282f3-3bdc-bc00-a63a-03a11a9b5c4d}.Release|Any CPU.Deploy.0 = Release|Any CPU -{59c09a1b-eff0-e367-6372-d16c4c984916}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{59c09a1b-eff0-e367-6372-d16c4c984916}.Debug|Any CPU.Build.0 = Debug|Any CPU -{59c09a1b-eff0-e367-6372-d16c4c984916}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{59c09a1b-eff0-e367-6372-d16c4c984916}.Release|Any CPU.ActiveCfg = Release|Any CPU -{59c09a1b-eff0-e367-6372-d16c4c984916}.Release|Any CPU.Build.0 = Release|Any CPU -{59c09a1b-eff0-e367-6372-d16c4c984916}.Release|Any CPU.Deploy.0 = Release|Any CPU -{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}.Debug|Any CPU.Build.0 = Debug|Any CPU -{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}.Release|Any CPU.ActiveCfg = Release|Any CPU -{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}.Release|Any CPU.Build.0 = Release|Any CPU -{4b036819-f813-0c4d-3e44-1fcc8b5f3ec7}.Release|Any CPU.Deploy.0 = Release|Any CPU -{04c24d02-bad7-a877-ff9b-a36a886c9633}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{04c24d02-bad7-a877-ff9b-a36a886c9633}.Debug|Any CPU.Build.0 = Debug|Any CPU -{04c24d02-bad7-a877-ff9b-a36a886c9633}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{04c24d02-bad7-a877-ff9b-a36a886c9633}.Release|Any CPU.ActiveCfg = Release|Any CPU -{04c24d02-bad7-a877-ff9b-a36a886c9633}.Release|Any CPU.Build.0 = Release|Any CPU -{04c24d02-bad7-a877-ff9b-a36a886c9633}.Release|Any CPU.Deploy.0 = Release|Any CPU -{92ff1332-bf34-943e-a58d-8a76746d879e}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{92ff1332-bf34-943e-a58d-8a76746d879e}.Debug|Any CPU.Build.0 = Debug|Any CPU -{92ff1332-bf34-943e-a58d-8a76746d879e}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{92ff1332-bf34-943e-a58d-8a76746d879e}.Release|Any CPU.ActiveCfg = Release|Any CPU -{92ff1332-bf34-943e-a58d-8a76746d879e}.Release|Any CPU.Build.0 = Release|Any CPU -{92ff1332-bf34-943e-a58d-8a76746d879e}.Release|Any CPU.Deploy.0 = Release|Any CPU -{566ef13c-0d17-e465-d35f-1bd9c65559bf}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{566ef13c-0d17-e465-d35f-1bd9c65559bf}.Debug|Any CPU.Build.0 = Debug|Any CPU -{566ef13c-0d17-e465-d35f-1bd9c65559bf}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{566ef13c-0d17-e465-d35f-1bd9c65559bf}.Release|Any CPU.ActiveCfg = Release|Any CPU -{566ef13c-0d17-e465-d35f-1bd9c65559bf}.Release|Any CPU.Build.0 = Release|Any CPU -{566ef13c-0d17-e465-d35f-1bd9c65559bf}.Release|Any CPU.Deploy.0 = Release|Any CPU -{b5fdf997-829f-5281-e624-ee4eee5aa26c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{b5fdf997-829f-5281-e624-ee4eee5aa26c}.Debug|Any CPU.Build.0 = Debug|Any CPU -{b5fdf997-829f-5281-e624-ee4eee5aa26c}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{b5fdf997-829f-5281-e624-ee4eee5aa26c}.Release|Any CPU.ActiveCfg = Release|Any CPU -{b5fdf997-829f-5281-e624-ee4eee5aa26c}.Release|Any CPU.Build.0 = Release|Any CPU -{b5fdf997-829f-5281-e624-ee4eee5aa26c}.Release|Any CPU.Deploy.0 = Release|Any CPU -{085145f2-2b8f-4d09-5290-c14cdcd452bf}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{085145f2-2b8f-4d09-5290-c14cdcd452bf}.Debug|Any CPU.Build.0 = Debug|Any CPU -{085145f2-2b8f-4d09-5290-c14cdcd452bf}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{085145f2-2b8f-4d09-5290-c14cdcd452bf}.Release|Any CPU.ActiveCfg = Release|Any CPU -{085145f2-2b8f-4d09-5290-c14cdcd452bf}.Release|Any CPU.Build.0 = Release|Any CPU -{085145f2-2b8f-4d09-5290-c14cdcd452bf}.Release|Any CPU.Deploy.0 = Release|Any CPU -{a9514ce6-d4e7-88ca-051e-e9e53610c519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{a9514ce6-d4e7-88ca-051e-e9e53610c519}.Debug|Any CPU.Build.0 = Debug|Any CPU -{a9514ce6-d4e7-88ca-051e-e9e53610c519}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{a9514ce6-d4e7-88ca-051e-e9e53610c519}.Release|Any CPU.ActiveCfg = Release|Any CPU -{a9514ce6-d4e7-88ca-051e-e9e53610c519}.Release|Any CPU.Build.0 = Release|Any CPU -{a9514ce6-d4e7-88ca-051e-e9e53610c519}.Release|Any CPU.Deploy.0 = Release|Any CPU -{daf647be-be87-88b9-ee92-dece21fe0dff}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{daf647be-be87-88b9-ee92-dece21fe0dff}.Debug|Any CPU.Build.0 = Debug|Any CPU -{daf647be-be87-88b9-ee92-dece21fe0dff}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{daf647be-be87-88b9-ee92-dece21fe0dff}.Release|Any CPU.ActiveCfg = Release|Any CPU -{daf647be-be87-88b9-ee92-dece21fe0dff}.Release|Any CPU.Build.0 = Release|Any CPU -{daf647be-be87-88b9-ee92-dece21fe0dff}.Release|Any CPU.Deploy.0 = Release|Any CPU -{d683a277-5892-aec2-985d-c2343725d0af}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{d683a277-5892-aec2-985d-c2343725d0af}.Debug|Any CPU.Build.0 = Debug|Any CPU -{d683a277-5892-aec2-985d-c2343725d0af}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{d683a277-5892-aec2-985d-c2343725d0af}.Release|Any CPU.ActiveCfg = Release|Any CPU -{d683a277-5892-aec2-985d-c2343725d0af}.Release|Any CPU.Build.0 = Release|Any CPU -{d683a277-5892-aec2-985d-c2343725d0af}.Release|Any CPU.Deploy.0 = Release|Any CPU -{e074adae-f19a-6b69-67b0-b4fb425b39ce}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{e074adae-f19a-6b69-67b0-b4fb425b39ce}.Debug|Any CPU.Build.0 = Debug|Any CPU -{e074adae-f19a-6b69-67b0-b4fb425b39ce}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{e074adae-f19a-6b69-67b0-b4fb425b39ce}.Release|Any CPU.ActiveCfg = Release|Any CPU -{e074adae-f19a-6b69-67b0-b4fb425b39ce}.Release|Any CPU.Build.0 = Release|Any CPU -{e074adae-f19a-6b69-67b0-b4fb425b39ce}.Release|Any CPU.Deploy.0 = Release|Any CPU -{3c2ac54f-554c-518b-7c46-3b22d86d0e3b}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{3c2ac54f-554c-518b-7c46-3b22d86d0e3b}.Debug|Any CPU.Build.0 = Debug|Any CPU -{3c2ac54f-554c-518b-7c46-3b22d86d0e3b}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{3c2ac54f-554c-518b-7c46-3b22d86d0e3b}.Release|Any CPU.ActiveCfg = Release|Any CPU -{3c2ac54f-554c-518b-7c46-3b22d86d0e3b}.Release|Any CPU.Build.0 = Release|Any CPU -{3c2ac54f-554c-518b-7c46-3b22d86d0e3b}.Release|Any CPU.Deploy.0 = Release|Any CPU -{5dde57f4-3f98-c4b7-47e5-65229faf1f0f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{5dde57f4-3f98-c4b7-47e5-65229faf1f0f}.Debug|Any CPU.Build.0 = Debug|Any CPU -{5dde57f4-3f98-c4b7-47e5-65229faf1f0f}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{5dde57f4-3f98-c4b7-47e5-65229faf1f0f}.Release|Any CPU.ActiveCfg = Release|Any CPU -{5dde57f4-3f98-c4b7-47e5-65229faf1f0f}.Release|Any CPU.Build.0 = Release|Any CPU -{5dde57f4-3f98-c4b7-47e5-65229faf1f0f}.Release|Any CPU.Deploy.0 = Release|Any CPU -{2ee55c63-d077-25dd-f076-857adfe08080}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{2ee55c63-d077-25dd-f076-857adfe08080}.Debug|Any CPU.Build.0 = Debug|Any CPU -{2ee55c63-d077-25dd-f076-857adfe08080}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{2ee55c63-d077-25dd-f076-857adfe08080}.Release|Any CPU.ActiveCfg = Release|Any CPU -{2ee55c63-d077-25dd-f076-857adfe08080}.Release|Any CPU.Build.0 = Release|Any CPU -{2ee55c63-d077-25dd-f076-857adfe08080}.Release|Any CPU.Deploy.0 = Release|Any CPU -{f22b7bcc-5a8d-3a02-d81c-caf6c9c44d61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{f22b7bcc-5a8d-3a02-d81c-caf6c9c44d61}.Debug|Any CPU.Build.0 = Debug|Any CPU -{f22b7bcc-5a8d-3a02-d81c-caf6c9c44d61}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{f22b7bcc-5a8d-3a02-d81c-caf6c9c44d61}.Release|Any CPU.ActiveCfg = Release|Any CPU -{f22b7bcc-5a8d-3a02-d81c-caf6c9c44d61}.Release|Any CPU.Build.0 = Release|Any CPU -{f22b7bcc-5a8d-3a02-d81c-caf6c9c44d61}.Release|Any CPU.Deploy.0 = Release|Any CPU -{b7a9eb2a-4b0e-548c-2370-a33ee63b21cc}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{b7a9eb2a-4b0e-548c-2370-a33ee63b21cc}.Debug|Any CPU.Build.0 = Debug|Any CPU -{b7a9eb2a-4b0e-548c-2370-a33ee63b21cc}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{b7a9eb2a-4b0e-548c-2370-a33ee63b21cc}.Release|Any CPU.ActiveCfg = Release|Any CPU -{b7a9eb2a-4b0e-548c-2370-a33ee63b21cc}.Release|Any CPU.Build.0 = Release|Any CPU -{b7a9eb2a-4b0e-548c-2370-a33ee63b21cc}.Release|Any CPU.Deploy.0 = Release|Any CPU -{10e8cf6b-7fec-911f-770d-e3641296ac89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{10e8cf6b-7fec-911f-770d-e3641296ac89}.Debug|Any CPU.Build.0 = Debug|Any CPU -{10e8cf6b-7fec-911f-770d-e3641296ac89}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{10e8cf6b-7fec-911f-770d-e3641296ac89}.Release|Any CPU.ActiveCfg = Release|Any CPU -{10e8cf6b-7fec-911f-770d-e3641296ac89}.Release|Any CPU.Build.0 = Release|Any CPU -{10e8cf6b-7fec-911f-770d-e3641296ac89}.Release|Any CPU.Deploy.0 = Release|Any CPU -{f4286cfc-484b-8466-8efa-1111696babb9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{f4286cfc-484b-8466-8efa-1111696babb9}.Debug|Any CPU.Build.0 = Debug|Any CPU -{f4286cfc-484b-8466-8efa-1111696babb9}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{f4286cfc-484b-8466-8efa-1111696babb9}.Release|Any CPU.ActiveCfg = Release|Any CPU -{f4286cfc-484b-8466-8efa-1111696babb9}.Release|Any CPU.Build.0 = Release|Any CPU -{f4286cfc-484b-8466-8efa-1111696babb9}.Release|Any CPU.Deploy.0 = Release|Any CPU -{b1567c85-ad77-c283-9165-777ad0e9a2eb}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{b1567c85-ad77-c283-9165-777ad0e9a2eb}.Debug|Any CPU.Build.0 = Debug|Any CPU -{b1567c85-ad77-c283-9165-777ad0e9a2eb}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{b1567c85-ad77-c283-9165-777ad0e9a2eb}.Release|Any CPU.ActiveCfg = Release|Any CPU -{b1567c85-ad77-c283-9165-777ad0e9a2eb}.Release|Any CPU.Build.0 = Release|Any CPU -{b1567c85-ad77-c283-9165-777ad0e9a2eb}.Release|Any CPU.Deploy.0 = Release|Any CPU -{fcd3dfb2-9ee2-ad22-0e1f-4cddd575792a}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{fcd3dfb2-9ee2-ad22-0e1f-4cddd575792a}.Debug|Any CPU.Build.0 = Debug|Any CPU -{fcd3dfb2-9ee2-ad22-0e1f-4cddd575792a}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{fcd3dfb2-9ee2-ad22-0e1f-4cddd575792a}.Release|Any CPU.ActiveCfg = Release|Any CPU -{fcd3dfb2-9ee2-ad22-0e1f-4cddd575792a}.Release|Any CPU.Build.0 = Release|Any CPU -{fcd3dfb2-9ee2-ad22-0e1f-4cddd575792a}.Release|Any CPU.Deploy.0 = Release|Any CPU -{f420eccc-b12d-72e4-2ad2-f93054eeec30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{f420eccc-b12d-72e4-2ad2-f93054eeec30}.Debug|Any CPU.Build.0 = Debug|Any CPU -{f420eccc-b12d-72e4-2ad2-f93054eeec30}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{f420eccc-b12d-72e4-2ad2-f93054eeec30}.Release|Any CPU.ActiveCfg = Release|Any CPU -{f420eccc-b12d-72e4-2ad2-f93054eeec30}.Release|Any CPU.Build.0 = Release|Any CPU -{f420eccc-b12d-72e4-2ad2-f93054eeec30}.Release|Any CPU.Deploy.0 = Release|Any CPU -{55160a70-69b2-4144-b974-b64d78bd50e0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{55160a70-69b2-4144-b974-b64d78bd50e0}.Debug|Any CPU.Build.0 = Debug|Any CPU -{55160a70-69b2-4144-b974-b64d78bd50e0}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{55160a70-69b2-4144-b974-b64d78bd50e0}.Release|Any CPU.ActiveCfg = Release|Any CPU -{55160a70-69b2-4144-b974-b64d78bd50e0}.Release|Any CPU.Build.0 = Release|Any CPU -{55160a70-69b2-4144-b974-b64d78bd50e0}.Release|Any CPU.Deploy.0 = Release|Any CPU -{8beda85e-3d20-5926-c060-f92913f1192e}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{8beda85e-3d20-5926-c060-f92913f1192e}.Debug|Any CPU.Build.0 = Debug|Any CPU -{8beda85e-3d20-5926-c060-f92913f1192e}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{8beda85e-3d20-5926-c060-f92913f1192e}.Release|Any CPU.ActiveCfg = Release|Any CPU -{8beda85e-3d20-5926-c060-f92913f1192e}.Release|Any CPU.Build.0 = Release|Any CPU -{8beda85e-3d20-5926-c060-f92913f1192e}.Release|Any CPU.Deploy.0 = Release|Any CPU -{29df066c-c160-cd60-b10f-23a0c3bb8457}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{29df066c-c160-cd60-b10f-23a0c3bb8457}.Debug|Any CPU.Build.0 = Debug|Any CPU -{29df066c-c160-cd60-b10f-23a0c3bb8457}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{29df066c-c160-cd60-b10f-23a0c3bb8457}.Release|Any CPU.ActiveCfg = Release|Any CPU -{29df066c-c160-cd60-b10f-23a0c3bb8457}.Release|Any CPU.Build.0 = Release|Any CPU -{29df066c-c160-cd60-b10f-23a0c3bb8457}.Release|Any CPU.Deploy.0 = Release|Any CPU -{635581a6-f954-d0e4-9c68-02c1725e49d2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{635581a6-f954-d0e4-9c68-02c1725e49d2}.Debug|Any CPU.Build.0 = Debug|Any CPU -{635581a6-f954-d0e4-9c68-02c1725e49d2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{635581a6-f954-d0e4-9c68-02c1725e49d2}.Release|Any CPU.ActiveCfg = Release|Any CPU -{635581a6-f954-d0e4-9c68-02c1725e49d2}.Release|Any CPU.Build.0 = Release|Any CPU -{635581a6-f954-d0e4-9c68-02c1725e49d2}.Release|Any CPU.Deploy.0 = Release|Any CPU -{23a79010-5c1a-9120-0992-a69c8dd80015}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{23a79010-5c1a-9120-0992-a69c8dd80015}.Debug|Any CPU.Build.0 = Debug|Any CPU -{23a79010-5c1a-9120-0992-a69c8dd80015}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{23a79010-5c1a-9120-0992-a69c8dd80015}.Release|Any CPU.ActiveCfg = Release|Any CPU -{23a79010-5c1a-9120-0992-a69c8dd80015}.Release|Any CPU.Build.0 = Release|Any CPU -{23a79010-5c1a-9120-0992-a69c8dd80015}.Release|Any CPU.Deploy.0 = Release|Any CPU -{76bf8a97-e573-a5b5-286f-04ca7e00f8e9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{76bf8a97-e573-a5b5-286f-04ca7e00f8e9}.Debug|Any CPU.Build.0 = Debug|Any CPU -{76bf8a97-e573-a5b5-286f-04ca7e00f8e9}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{76bf8a97-e573-a5b5-286f-04ca7e00f8e9}.Release|Any CPU.ActiveCfg = Release|Any CPU -{76bf8a97-e573-a5b5-286f-04ca7e00f8e9}.Release|Any CPU.Build.0 = Release|Any CPU -{76bf8a97-e573-a5b5-286f-04ca7e00f8e9}.Release|Any CPU.Deploy.0 = Release|Any CPU -{66c94dc2-e546-9737-a45b-4bc60fe0e536}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{66c94dc2-e546-9737-a45b-4bc60fe0e536}.Debug|Any CPU.Build.0 = Debug|Any CPU -{66c94dc2-e546-9737-a45b-4bc60fe0e536}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{66c94dc2-e546-9737-a45b-4bc60fe0e536}.Release|Any CPU.ActiveCfg = Release|Any CPU -{66c94dc2-e546-9737-a45b-4bc60fe0e536}.Release|Any CPU.Build.0 = Release|Any CPU -{66c94dc2-e546-9737-a45b-4bc60fe0e536}.Release|Any CPU.Deploy.0 = Release|Any CPU -{679517ca-9d0b-0ec2-35ae-95230281cfba}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{679517ca-9d0b-0ec2-35ae-95230281cfba}.Debug|Any CPU.Build.0 = Debug|Any CPU -{679517ca-9d0b-0ec2-35ae-95230281cfba}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{679517ca-9d0b-0ec2-35ae-95230281cfba}.Release|Any CPU.ActiveCfg = Release|Any CPU -{679517ca-9d0b-0ec2-35ae-95230281cfba}.Release|Any CPU.Build.0 = Release|Any CPU -{679517ca-9d0b-0ec2-35ae-95230281cfba}.Release|Any CPU.Deploy.0 = Release|Any CPU -{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}.Debug|Any CPU.Build.0 = Debug|Any CPU -{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}.Release|Any CPU.ActiveCfg = Release|Any CPU -{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}.Release|Any CPU.Build.0 = Release|Any CPU -{e3d3c1e3-aaa3-5d40-472e-ae837457cf73}.Release|Any CPU.Deploy.0 = Release|Any CPU -{9f892c4e-26c2-1420-a73c-08138c8f6ca2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{9f892c4e-26c2-1420-a73c-08138c8f6ca2}.Debug|Any CPU.Build.0 = Debug|Any CPU -{9f892c4e-26c2-1420-a73c-08138c8f6ca2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{9f892c4e-26c2-1420-a73c-08138c8f6ca2}.Release|Any CPU.ActiveCfg = Release|Any CPU -{9f892c4e-26c2-1420-a73c-08138c8f6ca2}.Release|Any CPU.Build.0 = Release|Any CPU -{9f892c4e-26c2-1420-a73c-08138c8f6ca2}.Release|Any CPU.Deploy.0 = Release|Any CPU -{6e5b2ba2-7712-0f4f-d2bf-2624bb877dbe}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{6e5b2ba2-7712-0f4f-d2bf-2624bb877dbe}.Debug|Any CPU.Build.0 = Debug|Any CPU -{6e5b2ba2-7712-0f4f-d2bf-2624bb877dbe}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{6e5b2ba2-7712-0f4f-d2bf-2624bb877dbe}.Release|Any CPU.ActiveCfg = Release|Any CPU -{6e5b2ba2-7712-0f4f-d2bf-2624bb877dbe}.Release|Any CPU.Build.0 = Release|Any CPU -{6e5b2ba2-7712-0f4f-d2bf-2624bb877dbe}.Release|Any CPU.Deploy.0 = Release|Any CPU -{78d59e90-3339-54d6-3803-f68623b72eff}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{78d59e90-3339-54d6-3803-f68623b72eff}.Debug|Any CPU.Build.0 = Debug|Any CPU -{78d59e90-3339-54d6-3803-f68623b72eff}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{78d59e90-3339-54d6-3803-f68623b72eff}.Release|Any CPU.ActiveCfg = Release|Any CPU -{78d59e90-3339-54d6-3803-f68623b72eff}.Release|Any CPU.Build.0 = Release|Any CPU -{78d59e90-3339-54d6-3803-f68623b72eff}.Release|Any CPU.Deploy.0 = Release|Any CPU -{6a4a0f45-c2b4-6be4-e44a-e78d3282359f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{6a4a0f45-c2b4-6be4-e44a-e78d3282359f}.Debug|Any CPU.Build.0 = Debug|Any CPU -{6a4a0f45-c2b4-6be4-e44a-e78d3282359f}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{6a4a0f45-c2b4-6be4-e44a-e78d3282359f}.Release|Any CPU.ActiveCfg = Release|Any CPU -{6a4a0f45-c2b4-6be4-e44a-e78d3282359f}.Release|Any CPU.Build.0 = Release|Any CPU -{6a4a0f45-c2b4-6be4-e44a-e78d3282359f}.Release|Any CPU.Deploy.0 = Release|Any CPU -{006e161d-aae1-2dd1-5b94-ebd45d31f50a}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{006e161d-aae1-2dd1-5b94-ebd45d31f50a}.Debug|Any CPU.Build.0 = Debug|Any CPU -{006e161d-aae1-2dd1-5b94-ebd45d31f50a}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{006e161d-aae1-2dd1-5b94-ebd45d31f50a}.Release|Any CPU.ActiveCfg = Release|Any CPU -{006e161d-aae1-2dd1-5b94-ebd45d31f50a}.Release|Any CPU.Build.0 = Release|Any CPU -{006e161d-aae1-2dd1-5b94-ebd45d31f50a}.Release|Any CPU.Deploy.0 = Release|Any CPU -{544c006b-f7de-21a9-a1b4-8df710e184c8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{544c006b-f7de-21a9-a1b4-8df710e184c8}.Debug|Any CPU.Build.0 = Debug|Any CPU -{544c006b-f7de-21a9-a1b4-8df710e184c8}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{544c006b-f7de-21a9-a1b4-8df710e184c8}.Release|Any CPU.ActiveCfg = Release|Any CPU -{544c006b-f7de-21a9-a1b4-8df710e184c8}.Release|Any CPU.Build.0 = Release|Any CPU -{544c006b-f7de-21a9-a1b4-8df710e184c8}.Release|Any CPU.Deploy.0 = Release|Any CPU -{f7d3fcf2-cadc-19dd-4c4c-5a54a5102c95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{f7d3fcf2-cadc-19dd-4c4c-5a54a5102c95}.Debug|Any CPU.Build.0 = Debug|Any CPU -{f7d3fcf2-cadc-19dd-4c4c-5a54a5102c95}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{f7d3fcf2-cadc-19dd-4c4c-5a54a5102c95}.Release|Any CPU.ActiveCfg = Release|Any CPU -{f7d3fcf2-cadc-19dd-4c4c-5a54a5102c95}.Release|Any CPU.Build.0 = Release|Any CPU -{f7d3fcf2-cadc-19dd-4c4c-5a54a5102c95}.Release|Any CPU.Deploy.0 = Release|Any CPU -{c5025916-5039-97c2-b450-af1420f5fb08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{c5025916-5039-97c2-b450-af1420f5fb08}.Debug|Any CPU.Build.0 = Debug|Any CPU -{c5025916-5039-97c2-b450-af1420f5fb08}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{c5025916-5039-97c2-b450-af1420f5fb08}.Release|Any CPU.ActiveCfg = Release|Any CPU -{c5025916-5039-97c2-b450-af1420f5fb08}.Release|Any CPU.Build.0 = Release|Any CPU -{c5025916-5039-97c2-b450-af1420f5fb08}.Release|Any CPU.Deploy.0 = Release|Any CPU -{816884bb-a5f6-5c07-967b-bb8f21d724b7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{816884bb-a5f6-5c07-967b-bb8f21d724b7}.Debug|Any CPU.Build.0 = Debug|Any CPU -{816884bb-a5f6-5c07-967b-bb8f21d724b7}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{816884bb-a5f6-5c07-967b-bb8f21d724b7}.Release|Any CPU.ActiveCfg = Release|Any CPU -{816884bb-a5f6-5c07-967b-bb8f21d724b7}.Release|Any CPU.Build.0 = Release|Any CPU -{816884bb-a5f6-5c07-967b-bb8f21d724b7}.Release|Any CPU.Deploy.0 = Release|Any CPU -{d19281dc-72f6-62a9-18d5-b845d6fd8d99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{d19281dc-72f6-62a9-18d5-b845d6fd8d99}.Debug|Any CPU.Build.0 = Debug|Any CPU -{d19281dc-72f6-62a9-18d5-b845d6fd8d99}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{d19281dc-72f6-62a9-18d5-b845d6fd8d99}.Release|Any CPU.ActiveCfg = Release|Any CPU -{d19281dc-72f6-62a9-18d5-b845d6fd8d99}.Release|Any CPU.Build.0 = Release|Any CPU -{d19281dc-72f6-62a9-18d5-b845d6fd8d99}.Release|Any CPU.Deploy.0 = Release|Any CPU -{5517dacf-b1ff-6515-e5b6-b5081f92f407}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{5517dacf-b1ff-6515-e5b6-b5081f92f407}.Debug|Any CPU.Build.0 = Debug|Any CPU -{5517dacf-b1ff-6515-e5b6-b5081f92f407}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{5517dacf-b1ff-6515-e5b6-b5081f92f407}.Release|Any CPU.ActiveCfg = Release|Any CPU -{5517dacf-b1ff-6515-e5b6-b5081f92f407}.Release|Any CPU.Build.0 = Release|Any CPU -{5517dacf-b1ff-6515-e5b6-b5081f92f407}.Release|Any CPU.Deploy.0 = Release|Any CPU -{97ad732d-4ce5-2027-aabc-844002d29c23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{97ad732d-4ce5-2027-aabc-844002d29c23}.Debug|Any CPU.Build.0 = Debug|Any CPU -{97ad732d-4ce5-2027-aabc-844002d29c23}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{97ad732d-4ce5-2027-aabc-844002d29c23}.Release|Any CPU.ActiveCfg = Release|Any CPU -{97ad732d-4ce5-2027-aabc-844002d29c23}.Release|Any CPU.Build.0 = Release|Any CPU -{97ad732d-4ce5-2027-aabc-844002d29c23}.Release|Any CPU.Deploy.0 = Release|Any CPU -{6b975d30-c5dd-f1fd-9d0c-4d56ecdf9b25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{6b975d30-c5dd-f1fd-9d0c-4d56ecdf9b25}.Debug|Any CPU.Build.0 = Debug|Any CPU -{6b975d30-c5dd-f1fd-9d0c-4d56ecdf9b25}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{6b975d30-c5dd-f1fd-9d0c-4d56ecdf9b25}.Release|Any CPU.ActiveCfg = Release|Any CPU -{6b975d30-c5dd-f1fd-9d0c-4d56ecdf9b25}.Release|Any CPU.Build.0 = Release|Any CPU -{6b975d30-c5dd-f1fd-9d0c-4d56ecdf9b25}.Release|Any CPU.Deploy.0 = Release|Any CPU -{8d66b616-3198-b8a1-d2d0-03496db6a62b}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{8d66b616-3198-b8a1-d2d0-03496db6a62b}.Debug|Any CPU.Build.0 = Debug|Any CPU -{8d66b616-3198-b8a1-d2d0-03496db6a62b}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{8d66b616-3198-b8a1-d2d0-03496db6a62b}.Release|Any CPU.ActiveCfg = Release|Any CPU -{8d66b616-3198-b8a1-d2d0-03496db6a62b}.Release|Any CPU.Build.0 = Release|Any CPU -{8d66b616-3198-b8a1-d2d0-03496db6a62b}.Release|Any CPU.Deploy.0 = Release|Any CPU -{6e68ff9b-3947-d706-3ad7-f9237a67c874}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{6e68ff9b-3947-d706-3ad7-f9237a67c874}.Debug|Any CPU.Build.0 = Debug|Any CPU -{6e68ff9b-3947-d706-3ad7-f9237a67c874}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{6e68ff9b-3947-d706-3ad7-f9237a67c874}.Release|Any CPU.ActiveCfg = Release|Any CPU -{6e68ff9b-3947-d706-3ad7-f9237a67c874}.Release|Any CPU.Build.0 = Release|Any CPU -{6e68ff9b-3947-d706-3ad7-f9237a67c874}.Release|Any CPU.Deploy.0 = Release|Any CPU -{2b132458-96e5-72bf-673f-dda4a7fd514b}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{2b132458-96e5-72bf-673f-dda4a7fd514b}.Debug|Any CPU.Build.0 = Debug|Any CPU -{2b132458-96e5-72bf-673f-dda4a7fd514b}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{2b132458-96e5-72bf-673f-dda4a7fd514b}.Release|Any CPU.ActiveCfg = Release|Any CPU -{2b132458-96e5-72bf-673f-dda4a7fd514b}.Release|Any CPU.Build.0 = Release|Any CPU -{2b132458-96e5-72bf-673f-dda4a7fd514b}.Release|Any CPU.Deploy.0 = Release|Any CPU -{3ede821e-ee76-967e-94d7-5b1d1239c8dd}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{3ede821e-ee76-967e-94d7-5b1d1239c8dd}.Debug|Any CPU.Build.0 = Debug|Any CPU -{3ede821e-ee76-967e-94d7-5b1d1239c8dd}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{3ede821e-ee76-967e-94d7-5b1d1239c8dd}.Release|Any CPU.ActiveCfg = Release|Any CPU -{3ede821e-ee76-967e-94d7-5b1d1239c8dd}.Release|Any CPU.Build.0 = Release|Any CPU -{3ede821e-ee76-967e-94d7-5b1d1239c8dd}.Release|Any CPU.Deploy.0 = Release|Any CPU -{d846582b-8ae3-9779-01ea-7210b5330cfd}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{d846582b-8ae3-9779-01ea-7210b5330cfd}.Debug|Any CPU.Build.0 = Debug|Any CPU -{d846582b-8ae3-9779-01ea-7210b5330cfd}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{d846582b-8ae3-9779-01ea-7210b5330cfd}.Release|Any CPU.ActiveCfg = Release|Any CPU -{d846582b-8ae3-9779-01ea-7210b5330cfd}.Release|Any CPU.Build.0 = Release|Any CPU -{d846582b-8ae3-9779-01ea-7210b5330cfd}.Release|Any CPU.Deploy.0 = Release|Any CPU -{d8d4e4e8-1dc8-0170-5e3c-18610853bd87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{d8d4e4e8-1dc8-0170-5e3c-18610853bd87}.Debug|Any CPU.Build.0 = Debug|Any CPU -{d8d4e4e8-1dc8-0170-5e3c-18610853bd87}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{d8d4e4e8-1dc8-0170-5e3c-18610853bd87}.Release|Any CPU.ActiveCfg = Release|Any CPU -{d8d4e4e8-1dc8-0170-5e3c-18610853bd87}.Release|Any CPU.Build.0 = Release|Any CPU -{d8d4e4e8-1dc8-0170-5e3c-18610853bd87}.Release|Any CPU.Deploy.0 = Release|Any CPU -{12bab01c-845f-82c9-b00b-a3639cdfb2ce}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{12bab01c-845f-82c9-b00b-a3639cdfb2ce}.Debug|Any CPU.Build.0 = Debug|Any CPU -{12bab01c-845f-82c9-b00b-a3639cdfb2ce}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{12bab01c-845f-82c9-b00b-a3639cdfb2ce}.Release|Any CPU.ActiveCfg = Release|Any CPU -{12bab01c-845f-82c9-b00b-a3639cdfb2ce}.Release|Any CPU.Build.0 = Release|Any CPU -{12bab01c-845f-82c9-b00b-a3639cdfb2ce}.Release|Any CPU.Deploy.0 = Release|Any CPU -{5f9c09c7-9e32-8927-7a5d-90001ceffc69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{5f9c09c7-9e32-8927-7a5d-90001ceffc69}.Debug|Any CPU.Build.0 = Debug|Any CPU -{5f9c09c7-9e32-8927-7a5d-90001ceffc69}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{5f9c09c7-9e32-8927-7a5d-90001ceffc69}.Release|Any CPU.ActiveCfg = Release|Any CPU -{5f9c09c7-9e32-8927-7a5d-90001ceffc69}.Release|Any CPU.Build.0 = Release|Any CPU -{5f9c09c7-9e32-8927-7a5d-90001ceffc69}.Release|Any CPU.Deploy.0 = Release|Any CPU -{b545726f-7a83-3c78-2b55-6a709c5a6d00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{b545726f-7a83-3c78-2b55-6a709c5a6d00}.Debug|Any CPU.Build.0 = Debug|Any CPU -{b545726f-7a83-3c78-2b55-6a709c5a6d00}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{b545726f-7a83-3c78-2b55-6a709c5a6d00}.Release|Any CPU.ActiveCfg = Release|Any CPU -{b545726f-7a83-3c78-2b55-6a709c5a6d00}.Release|Any CPU.Build.0 = Release|Any CPU -{b545726f-7a83-3c78-2b55-6a709c5a6d00}.Release|Any CPU.Deploy.0 = Release|Any CPU -{8540cfb1-fe4a-dcc3-a70e-840262803cfc}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{8540cfb1-fe4a-dcc3-a70e-840262803cfc}.Debug|Any CPU.Build.0 = Debug|Any CPU -{8540cfb1-fe4a-dcc3-a70e-840262803cfc}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{8540cfb1-fe4a-dcc3-a70e-840262803cfc}.Release|Any CPU.ActiveCfg = Release|Any CPU -{8540cfb1-fe4a-dcc3-a70e-840262803cfc}.Release|Any CPU.Build.0 = Release|Any CPU -{8540cfb1-fe4a-dcc3-a70e-840262803cfc}.Release|Any CPU.Deploy.0 = Release|Any CPU -{733e533d-9ff2-4c72-3da9-200f758dc6e3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{733e533d-9ff2-4c72-3da9-200f758dc6e3}.Debug|Any CPU.Build.0 = Debug|Any CPU -{733e533d-9ff2-4c72-3da9-200f758dc6e3}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{733e533d-9ff2-4c72-3da9-200f758dc6e3}.Release|Any CPU.ActiveCfg = Release|Any CPU -{733e533d-9ff2-4c72-3da9-200f758dc6e3}.Release|Any CPU.Build.0 = Release|Any CPU -{733e533d-9ff2-4c72-3da9-200f758dc6e3}.Release|Any CPU.Deploy.0 = Release|Any CPU -{ff162d83-3229-2000-71ed-08999160dca3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{ff162d83-3229-2000-71ed-08999160dca3}.Debug|Any CPU.Build.0 = Debug|Any CPU -{ff162d83-3229-2000-71ed-08999160dca3}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{ff162d83-3229-2000-71ed-08999160dca3}.Release|Any CPU.ActiveCfg = Release|Any CPU -{ff162d83-3229-2000-71ed-08999160dca3}.Release|Any CPU.Build.0 = Release|Any CPU -{ff162d83-3229-2000-71ed-08999160dca3}.Release|Any CPU.Deploy.0 = Release|Any CPU -{0556c9ad-b3a1-730c-959f-baf21e60f972}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{0556c9ad-b3a1-730c-959f-baf21e60f972}.Debug|Any CPU.Build.0 = Debug|Any CPU -{0556c9ad-b3a1-730c-959f-baf21e60f972}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{0556c9ad-b3a1-730c-959f-baf21e60f972}.Release|Any CPU.ActiveCfg = Release|Any CPU -{0556c9ad-b3a1-730c-959f-baf21e60f972}.Release|Any CPU.Build.0 = Release|Any CPU -{0556c9ad-b3a1-730c-959f-baf21e60f972}.Release|Any CPU.Deploy.0 = Release|Any CPU -{5c300917-a99f-d166-4f56-f0da3c3614bb}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{5c300917-a99f-d166-4f56-f0da3c3614bb}.Debug|Any CPU.Build.0 = Debug|Any CPU -{5c300917-a99f-d166-4f56-f0da3c3614bb}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{5c300917-a99f-d166-4f56-f0da3c3614bb}.Release|Any CPU.ActiveCfg = Release|Any CPU -{5c300917-a99f-d166-4f56-f0da3c3614bb}.Release|Any CPU.Build.0 = Release|Any CPU -{5c300917-a99f-d166-4f56-f0da3c3614bb}.Release|Any CPU.Deploy.0 = Release|Any CPU -{ab414094-9582-3357-d0e9-20b153a1b54c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{ab414094-9582-3357-d0e9-20b153a1b54c}.Debug|Any CPU.Build.0 = Debug|Any CPU -{ab414094-9582-3357-d0e9-20b153a1b54c}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{ab414094-9582-3357-d0e9-20b153a1b54c}.Release|Any CPU.ActiveCfg = Release|Any CPU -{ab414094-9582-3357-d0e9-20b153a1b54c}.Release|Any CPU.Build.0 = Release|Any CPU -{ab414094-9582-3357-d0e9-20b153a1b54c}.Release|Any CPU.Deploy.0 = Release|Any CPU -{8823a9ee-673a-e7d4-3c0a-bae61a262388}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{8823a9ee-673a-e7d4-3c0a-bae61a262388}.Debug|Any CPU.Build.0 = Debug|Any CPU -{8823a9ee-673a-e7d4-3c0a-bae61a262388}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{8823a9ee-673a-e7d4-3c0a-bae61a262388}.Release|Any CPU.ActiveCfg = Release|Any CPU -{8823a9ee-673a-e7d4-3c0a-bae61a262388}.Release|Any CPU.Build.0 = Release|Any CPU -{8823a9ee-673a-e7d4-3c0a-bae61a262388}.Release|Any CPU.Deploy.0 = Release|Any CPU -{cbded274-6b9b-a113-d56f-00b38006cc84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{cbded274-6b9b-a113-d56f-00b38006cc84}.Debug|Any CPU.Build.0 = Debug|Any CPU -{cbded274-6b9b-a113-d56f-00b38006cc84}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{cbded274-6b9b-a113-d56f-00b38006cc84}.Release|Any CPU.ActiveCfg = Release|Any CPU -{cbded274-6b9b-a113-d56f-00b38006cc84}.Release|Any CPU.Build.0 = Release|Any CPU -{cbded274-6b9b-a113-d56f-00b38006cc84}.Release|Any CPU.Deploy.0 = Release|Any CPU -{fe30ed04-094f-5005-b0aa-1b3623db60b2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{fe30ed04-094f-5005-b0aa-1b3623db60b2}.Debug|Any CPU.Build.0 = Debug|Any CPU -{fe30ed04-094f-5005-b0aa-1b3623db60b2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{fe30ed04-094f-5005-b0aa-1b3623db60b2}.Release|Any CPU.ActiveCfg = Release|Any CPU -{fe30ed04-094f-5005-b0aa-1b3623db60b2}.Release|Any CPU.Build.0 = Release|Any CPU -{fe30ed04-094f-5005-b0aa-1b3623db60b2}.Release|Any CPU.Deploy.0 = Release|Any CPU -{a38e4da2-f05f-aa6f-82f1-56cd2e062d96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{a38e4da2-f05f-aa6f-82f1-56cd2e062d96}.Debug|Any CPU.Build.0 = Debug|Any CPU -{a38e4da2-f05f-aa6f-82f1-56cd2e062d96}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{a38e4da2-f05f-aa6f-82f1-56cd2e062d96}.Release|Any CPU.ActiveCfg = Release|Any CPU -{a38e4da2-f05f-aa6f-82f1-56cd2e062d96}.Release|Any CPU.Build.0 = Release|Any CPU -{a38e4da2-f05f-aa6f-82f1-56cd2e062d96}.Release|Any CPU.Deploy.0 = Release|Any CPU -{733f9598-101b-936b-b081-2805dd793091}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{733f9598-101b-936b-b081-2805dd793091}.Debug|Any CPU.Build.0 = Debug|Any CPU -{733f9598-101b-936b-b081-2805dd793091}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{733f9598-101b-936b-b081-2805dd793091}.Release|Any CPU.ActiveCfg = Release|Any CPU -{733f9598-101b-936b-b081-2805dd793091}.Release|Any CPU.Build.0 = Release|Any CPU -{733f9598-101b-936b-b081-2805dd793091}.Release|Any CPU.Deploy.0 = Release|Any CPU -{809c4afa-d014-471b-518b-4fd01cb7c808}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{809c4afa-d014-471b-518b-4fd01cb7c808}.Debug|Any CPU.Build.0 = Debug|Any CPU -{809c4afa-d014-471b-518b-4fd01cb7c808}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{809c4afa-d014-471b-518b-4fd01cb7c808}.Release|Any CPU.ActiveCfg = Release|Any CPU -{809c4afa-d014-471b-518b-4fd01cb7c808}.Release|Any CPU.Build.0 = Release|Any CPU -{809c4afa-d014-471b-518b-4fd01cb7c808}.Release|Any CPU.Deploy.0 = Release|Any CPU -{f0c5342b-fb95-48a4-029f-7aa631ce06f1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{f0c5342b-fb95-48a4-029f-7aa631ce06f1}.Debug|Any CPU.Build.0 = Debug|Any CPU -{f0c5342b-fb95-48a4-029f-7aa631ce06f1}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{f0c5342b-fb95-48a4-029f-7aa631ce06f1}.Release|Any CPU.ActiveCfg = Release|Any CPU -{f0c5342b-fb95-48a4-029f-7aa631ce06f1}.Release|Any CPU.Build.0 = Release|Any CPU -{f0c5342b-fb95-48a4-029f-7aa631ce06f1}.Release|Any CPU.Deploy.0 = Release|Any CPU -{3ea3301e-d3de-6979-f1d7-58352998951c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{3ea3301e-d3de-6979-f1d7-58352998951c}.Debug|Any CPU.Build.0 = Debug|Any CPU -{3ea3301e-d3de-6979-f1d7-58352998951c}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{3ea3301e-d3de-6979-f1d7-58352998951c}.Release|Any CPU.ActiveCfg = Release|Any CPU -{3ea3301e-d3de-6979-f1d7-58352998951c}.Release|Any CPU.Build.0 = Release|Any CPU -{3ea3301e-d3de-6979-f1d7-58352998951c}.Release|Any CPU.Deploy.0 = Release|Any CPU -{f8c5a010-c353-31da-cadc-b56186be374f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{f8c5a010-c353-31da-cadc-b56186be374f}.Debug|Any CPU.Build.0 = Debug|Any CPU -{f8c5a010-c353-31da-cadc-b56186be374f}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{f8c5a010-c353-31da-cadc-b56186be374f}.Release|Any CPU.ActiveCfg = Release|Any CPU -{f8c5a010-c353-31da-cadc-b56186be374f}.Release|Any CPU.Build.0 = Release|Any CPU -{f8c5a010-c353-31da-cadc-b56186be374f}.Release|Any CPU.Deploy.0 = Release|Any CPU -{0b1482c2-a3b1-6207-b73f-a07f46718b65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{0b1482c2-a3b1-6207-b73f-a07f46718b65}.Debug|Any CPU.Build.0 = Debug|Any CPU -{0b1482c2-a3b1-6207-b73f-a07f46718b65}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{0b1482c2-a3b1-6207-b73f-a07f46718b65}.Release|Any CPU.ActiveCfg = Release|Any CPU -{0b1482c2-a3b1-6207-b73f-a07f46718b65}.Release|Any CPU.Build.0 = Release|Any CPU -{0b1482c2-a3b1-6207-b73f-a07f46718b65}.Release|Any CPU.Deploy.0 = Release|Any CPU -{a0821347-be46-c587-b61d-5152c578048d}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{a0821347-be46-c587-b61d-5152c578048d}.Debug|Any CPU.Build.0 = Debug|Any CPU -{a0821347-be46-c587-b61d-5152c578048d}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{a0821347-be46-c587-b61d-5152c578048d}.Release|Any CPU.ActiveCfg = Release|Any CPU -{a0821347-be46-c587-b61d-5152c578048d}.Release|Any CPU.Build.0 = Release|Any CPU -{a0821347-be46-c587-b61d-5152c578048d}.Release|Any CPU.Deploy.0 = Release|Any CPU -{15622f39-b4c5-7e66-57bc-31900b6065c8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{15622f39-b4c5-7e66-57bc-31900b6065c8}.Debug|Any CPU.Build.0 = Debug|Any CPU -{15622f39-b4c5-7e66-57bc-31900b6065c8}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{15622f39-b4c5-7e66-57bc-31900b6065c8}.Release|Any CPU.ActiveCfg = Release|Any CPU -{15622f39-b4c5-7e66-57bc-31900b6065c8}.Release|Any CPU.Build.0 = Release|Any CPU -{15622f39-b4c5-7e66-57bc-31900b6065c8}.Release|Any CPU.Deploy.0 = Release|Any CPU -{db140d08-4769-dc51-8809-a9222b830ef4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{db140d08-4769-dc51-8809-a9222b830ef4}.Debug|Any CPU.Build.0 = Debug|Any CPU -{db140d08-4769-dc51-8809-a9222b830ef4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{db140d08-4769-dc51-8809-a9222b830ef4}.Release|Any CPU.ActiveCfg = Release|Any CPU -{db140d08-4769-dc51-8809-a9222b830ef4}.Release|Any CPU.Build.0 = Release|Any CPU -{db140d08-4769-dc51-8809-a9222b830ef4}.Release|Any CPU.Deploy.0 = Release|Any CPU -{6218c061-3905-79b2-d3bc-bb7b8fc77a69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{6218c061-3905-79b2-d3bc-bb7b8fc77a69}.Debug|Any CPU.Build.0 = Debug|Any CPU -{6218c061-3905-79b2-d3bc-bb7b8fc77a69}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{6218c061-3905-79b2-d3bc-bb7b8fc77a69}.Release|Any CPU.ActiveCfg = Release|Any CPU -{6218c061-3905-79b2-d3bc-bb7b8fc77a69}.Release|Any CPU.Build.0 = Release|Any CPU -{6218c061-3905-79b2-d3bc-bb7b8fc77a69}.Release|Any CPU.Deploy.0 = Release|Any CPU -{589b202c-e638-5c93-fefe-e1e3bab4a493}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{589b202c-e638-5c93-fefe-e1e3bab4a493}.Debug|Any CPU.Build.0 = Debug|Any CPU -{589b202c-e638-5c93-fefe-e1e3bab4a493}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{589b202c-e638-5c93-fefe-e1e3bab4a493}.Release|Any CPU.ActiveCfg = Release|Any CPU -{589b202c-e638-5c93-fefe-e1e3bab4a493}.Release|Any CPU.Build.0 = Release|Any CPU -{589b202c-e638-5c93-fefe-e1e3bab4a493}.Release|Any CPU.Deploy.0 = Release|Any CPU -{9b77d4e0-863d-4a74-c30a-56f7b2bb7cb7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{9b77d4e0-863d-4a74-c30a-56f7b2bb7cb7}.Debug|Any CPU.Build.0 = Debug|Any CPU -{9b77d4e0-863d-4a74-c30a-56f7b2bb7cb7}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{9b77d4e0-863d-4a74-c30a-56f7b2bb7cb7}.Release|Any CPU.ActiveCfg = Release|Any CPU -{9b77d4e0-863d-4a74-c30a-56f7b2bb7cb7}.Release|Any CPU.Build.0 = Release|Any CPU -{9b77d4e0-863d-4a74-c30a-56f7b2bb7cb7}.Release|Any CPU.Deploy.0 = Release|Any CPU -{2053731b-90f5-5141-d15e-8d7be8c2662f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{2053731b-90f5-5141-d15e-8d7be8c2662f}.Debug|Any CPU.Build.0 = Debug|Any CPU -{2053731b-90f5-5141-d15e-8d7be8c2662f}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{2053731b-90f5-5141-d15e-8d7be8c2662f}.Release|Any CPU.ActiveCfg = Release|Any CPU -{2053731b-90f5-5141-d15e-8d7be8c2662f}.Release|Any CPU.Build.0 = Release|Any CPU -{2053731b-90f5-5141-d15e-8d7be8c2662f}.Release|Any CPU.Deploy.0 = Release|Any CPU -{49cc942b-d836-a48b-0429-25bf95247759}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{49cc942b-d836-a48b-0429-25bf95247759}.Debug|Any CPU.Build.0 = Debug|Any CPU -{49cc942b-d836-a48b-0429-25bf95247759}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{49cc942b-d836-a48b-0429-25bf95247759}.Release|Any CPU.ActiveCfg = Release|Any CPU -{49cc942b-d836-a48b-0429-25bf95247759}.Release|Any CPU.Build.0 = Release|Any CPU -{49cc942b-d836-a48b-0429-25bf95247759}.Release|Any CPU.Deploy.0 = Release|Any CPU -{0d21f127-8c25-9b3a-9612-ce2eea6e7ac1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{0d21f127-8c25-9b3a-9612-ce2eea6e7ac1}.Debug|Any CPU.Build.0 = Debug|Any CPU -{0d21f127-8c25-9b3a-9612-ce2eea6e7ac1}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{0d21f127-8c25-9b3a-9612-ce2eea6e7ac1}.Release|Any CPU.ActiveCfg = Release|Any CPU -{0d21f127-8c25-9b3a-9612-ce2eea6e7ac1}.Release|Any CPU.Build.0 = Release|Any CPU -{0d21f127-8c25-9b3a-9612-ce2eea6e7ac1}.Release|Any CPU.Deploy.0 = Release|Any CPU -{fe51bbda-2039-23fd-f29a-39c14adcb1f6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{fe51bbda-2039-23fd-f29a-39c14adcb1f6}.Debug|Any CPU.Build.0 = Debug|Any CPU -{fe51bbda-2039-23fd-f29a-39c14adcb1f6}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{fe51bbda-2039-23fd-f29a-39c14adcb1f6}.Release|Any CPU.ActiveCfg = Release|Any CPU -{fe51bbda-2039-23fd-f29a-39c14adcb1f6}.Release|Any CPU.Build.0 = Release|Any CPU -{fe51bbda-2039-23fd-f29a-39c14adcb1f6}.Release|Any CPU.Deploy.0 = Release|Any CPU -{34a31e0b-15ec-829c-6f0b-74f5acfd97e2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{34a31e0b-15ec-829c-6f0b-74f5acfd97e2}.Debug|Any CPU.Build.0 = Debug|Any CPU -{34a31e0b-15ec-829c-6f0b-74f5acfd97e2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{34a31e0b-15ec-829c-6f0b-74f5acfd97e2}.Release|Any CPU.ActiveCfg = Release|Any CPU -{34a31e0b-15ec-829c-6f0b-74f5acfd97e2}.Release|Any CPU.Build.0 = Release|Any CPU -{34a31e0b-15ec-829c-6f0b-74f5acfd97e2}.Release|Any CPU.Deploy.0 = Release|Any CPU -{9b381685-8129-acba-66f0-7068fe43a6c3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{9b381685-8129-acba-66f0-7068fe43a6c3}.Debug|Any CPU.Build.0 = Debug|Any CPU -{9b381685-8129-acba-66f0-7068fe43a6c3}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{9b381685-8129-acba-66f0-7068fe43a6c3}.Release|Any CPU.ActiveCfg = Release|Any CPU -{9b381685-8129-acba-66f0-7068fe43a6c3}.Release|Any CPU.Build.0 = Release|Any CPU -{9b381685-8129-acba-66f0-7068fe43a6c3}.Release|Any CPU.Deploy.0 = Release|Any CPU -{493d1e8e-51c6-da82-9289-25bd26fab4a4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{493d1e8e-51c6-da82-9289-25bd26fab4a4}.Debug|Any CPU.Build.0 = Debug|Any CPU -{493d1e8e-51c6-da82-9289-25bd26fab4a4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{493d1e8e-51c6-da82-9289-25bd26fab4a4}.Release|Any CPU.ActiveCfg = Release|Any CPU -{493d1e8e-51c6-da82-9289-25bd26fab4a4}.Release|Any CPU.Build.0 = Release|Any CPU -{493d1e8e-51c6-da82-9289-25bd26fab4a4}.Release|Any CPU.Deploy.0 = Release|Any CPU -{56968e84-6b7d-d548-4c0b-53017bd6123c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{56968e84-6b7d-d548-4c0b-53017bd6123c}.Debug|Any CPU.Build.0 = Debug|Any CPU -{56968e84-6b7d-d548-4c0b-53017bd6123c}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{56968e84-6b7d-d548-4c0b-53017bd6123c}.Release|Any CPU.ActiveCfg = Release|Any CPU -{56968e84-6b7d-d548-4c0b-53017bd6123c}.Release|Any CPU.Build.0 = Release|Any CPU -{56968e84-6b7d-d548-4c0b-53017bd6123c}.Release|Any CPU.Deploy.0 = Release|Any CPU -{5e741dd9-690a-de16-e7a1-85e6239aa70d}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{5e741dd9-690a-de16-e7a1-85e6239aa70d}.Debug|Any CPU.Build.0 = Debug|Any CPU -{5e741dd9-690a-de16-e7a1-85e6239aa70d}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{5e741dd9-690a-de16-e7a1-85e6239aa70d}.Release|Any CPU.ActiveCfg = Release|Any CPU -{5e741dd9-690a-de16-e7a1-85e6239aa70d}.Release|Any CPU.Build.0 = Release|Any CPU -{5e741dd9-690a-de16-e7a1-85e6239aa70d}.Release|Any CPU.Deploy.0 = Release|Any CPU -{94317d9a-d614-b098-6175-76ee84262c05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{94317d9a-d614-b098-6175-76ee84262c05}.Debug|Any CPU.Build.0 = Debug|Any CPU -{94317d9a-d614-b098-6175-76ee84262c05}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{94317d9a-d614-b098-6175-76ee84262c05}.Release|Any CPU.ActiveCfg = Release|Any CPU -{94317d9a-d614-b098-6175-76ee84262c05}.Release|Any CPU.Build.0 = Release|Any CPU -{94317d9a-d614-b098-6175-76ee84262c05}.Release|Any CPU.Deploy.0 = Release|Any CPU -{f907841f-b1ee-9b12-580e-cfe2324bed03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{f907841f-b1ee-9b12-580e-cfe2324bed03}.Debug|Any CPU.Build.0 = Debug|Any CPU -{f907841f-b1ee-9b12-580e-cfe2324bed03}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{f907841f-b1ee-9b12-580e-cfe2324bed03}.Release|Any CPU.ActiveCfg = Release|Any CPU -{f907841f-b1ee-9b12-580e-cfe2324bed03}.Release|Any CPU.Build.0 = Release|Any CPU -{f907841f-b1ee-9b12-580e-cfe2324bed03}.Release|Any CPU.Deploy.0 = Release|Any CPU -{c9e4cfa9-c5d3-5e9d-243c-106ba4b6a447}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{c9e4cfa9-c5d3-5e9d-243c-106ba4b6a447}.Debug|Any CPU.Build.0 = Debug|Any CPU -{c9e4cfa9-c5d3-5e9d-243c-106ba4b6a447}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{c9e4cfa9-c5d3-5e9d-243c-106ba4b6a447}.Release|Any CPU.ActiveCfg = Release|Any CPU -{c9e4cfa9-c5d3-5e9d-243c-106ba4b6a447}.Release|Any CPU.Build.0 = Release|Any CPU -{c9e4cfa9-c5d3-5e9d-243c-106ba4b6a447}.Release|Any CPU.Deploy.0 = Release|Any CPU -{dcdccf04-c930-b455-77a4-d9d4a7df8723}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{dcdccf04-c930-b455-77a4-d9d4a7df8723}.Debug|Any CPU.Build.0 = Debug|Any CPU -{dcdccf04-c930-b455-77a4-d9d4a7df8723}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{dcdccf04-c930-b455-77a4-d9d4a7df8723}.Release|Any CPU.ActiveCfg = Release|Any CPU -{dcdccf04-c930-b455-77a4-d9d4a7df8723}.Release|Any CPU.Build.0 = Release|Any CPU -{dcdccf04-c930-b455-77a4-d9d4a7df8723}.Release|Any CPU.Deploy.0 = Release|Any CPU -{8eec9904-f4bb-c601-86ac-80fb153599f9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{8eec9904-f4bb-c601-86ac-80fb153599f9}.Debug|Any CPU.Build.0 = Debug|Any CPU -{8eec9904-f4bb-c601-86ac-80fb153599f9}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{8eec9904-f4bb-c601-86ac-80fb153599f9}.Release|Any CPU.ActiveCfg = Release|Any CPU -{8eec9904-f4bb-c601-86ac-80fb153599f9}.Release|Any CPU.Build.0 = Release|Any CPU -{8eec9904-f4bb-c601-86ac-80fb153599f9}.Release|Any CPU.Deploy.0 = Release|Any CPU -{69b383c7-828a-1857-cbe2-f11b9ba77320}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{69b383c7-828a-1857-cbe2-f11b9ba77320}.Debug|Any CPU.Build.0 = Debug|Any CPU -{69b383c7-828a-1857-cbe2-f11b9ba77320}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{69b383c7-828a-1857-cbe2-f11b9ba77320}.Release|Any CPU.ActiveCfg = Release|Any CPU -{69b383c7-828a-1857-cbe2-f11b9ba77320}.Release|Any CPU.Build.0 = Release|Any CPU -{69b383c7-828a-1857-cbe2-f11b9ba77320}.Release|Any CPU.Deploy.0 = Release|Any CPU -{abf4b42f-e999-2a78-403f-fb09524f186a}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{abf4b42f-e999-2a78-403f-fb09524f186a}.Debug|Any CPU.Build.0 = Debug|Any CPU -{abf4b42f-e999-2a78-403f-fb09524f186a}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{abf4b42f-e999-2a78-403f-fb09524f186a}.Release|Any CPU.ActiveCfg = Release|Any CPU -{abf4b42f-e999-2a78-403f-fb09524f186a}.Release|Any CPU.Build.0 = Release|Any CPU -{abf4b42f-e999-2a78-403f-fb09524f186a}.Release|Any CPU.Deploy.0 = Release|Any CPU -{b0be4813-d93e-7b06-d422-23ca28adf22a}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{b0be4813-d93e-7b06-d422-23ca28adf22a}.Debug|Any CPU.Build.0 = Debug|Any CPU -{b0be4813-d93e-7b06-d422-23ca28adf22a}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{b0be4813-d93e-7b06-d422-23ca28adf22a}.Release|Any CPU.ActiveCfg = Release|Any CPU -{b0be4813-d93e-7b06-d422-23ca28adf22a}.Release|Any CPU.Build.0 = Release|Any CPU -{b0be4813-d93e-7b06-d422-23ca28adf22a}.Release|Any CPU.Deploy.0 = Release|Any CPU -{c028861d-f9e8-8231-2b6a-bc3b3fba349c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{c028861d-f9e8-8231-2b6a-bc3b3fba349c}.Debug|Any CPU.Build.0 = Debug|Any CPU -{c028861d-f9e8-8231-2b6a-bc3b3fba349c}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{c028861d-f9e8-8231-2b6a-bc3b3fba349c}.Release|Any CPU.ActiveCfg = Release|Any CPU -{c028861d-f9e8-8231-2b6a-bc3b3fba349c}.Release|Any CPU.Build.0 = Release|Any CPU -{c028861d-f9e8-8231-2b6a-bc3b3fba349c}.Release|Any CPU.Deploy.0 = Release|Any CPU -{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}.Debug|Any CPU.Build.0 = Debug|Any CPU -{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}.Release|Any CPU.ActiveCfg = Release|Any CPU -{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}.Release|Any CPU.Build.0 = Release|Any CPU -{30fee563-a3f0-9c50-bfd1-1af707aaf3c4}.Release|Any CPU.Deploy.0 = Release|Any CPU -{83d6c79a-c71a-d467-284c-28edbbd059d2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{83d6c79a-c71a-d467-284c-28edbbd059d2}.Debug|Any CPU.Build.0 = Debug|Any CPU -{83d6c79a-c71a-d467-284c-28edbbd059d2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{83d6c79a-c71a-d467-284c-28edbbd059d2}.Release|Any CPU.ActiveCfg = Release|Any CPU -{83d6c79a-c71a-d467-284c-28edbbd059d2}.Release|Any CPU.Build.0 = Release|Any CPU -{83d6c79a-c71a-d467-284c-28edbbd059d2}.Release|Any CPU.Deploy.0 = Release|Any CPU -{4ac05c74-08c5-2153-f38c-976975747b5c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{4ac05c74-08c5-2153-f38c-976975747b5c}.Debug|Any CPU.Build.0 = Debug|Any CPU -{4ac05c74-08c5-2153-f38c-976975747b5c}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{4ac05c74-08c5-2153-f38c-976975747b5c}.Release|Any CPU.ActiveCfg = Release|Any CPU -{4ac05c74-08c5-2153-f38c-976975747b5c}.Release|Any CPU.Build.0 = Release|Any CPU -{4ac05c74-08c5-2153-f38c-976975747b5c}.Release|Any CPU.Deploy.0 = Release|Any CPU -{e2110137-6a36-f4d1-2219-26eb18fee74d}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{e2110137-6a36-f4d1-2219-26eb18fee74d}.Debug|Any CPU.Build.0 = Debug|Any CPU -{e2110137-6a36-f4d1-2219-26eb18fee74d}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{e2110137-6a36-f4d1-2219-26eb18fee74d}.Release|Any CPU.ActiveCfg = Release|Any CPU -{e2110137-6a36-f4d1-2219-26eb18fee74d}.Release|Any CPU.Build.0 = Release|Any CPU -{e2110137-6a36-f4d1-2219-26eb18fee74d}.Release|Any CPU.Deploy.0 = Release|Any CPU -{934ef064-2dce-6d50-64e9-d4d2c4d41a81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{934ef064-2dce-6d50-64e9-d4d2c4d41a81}.Debug|Any CPU.Build.0 = Debug|Any CPU -{934ef064-2dce-6d50-64e9-d4d2c4d41a81}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{934ef064-2dce-6d50-64e9-d4d2c4d41a81}.Release|Any CPU.ActiveCfg = Release|Any CPU -{934ef064-2dce-6d50-64e9-d4d2c4d41a81}.Release|Any CPU.Build.0 = Release|Any CPU -{934ef064-2dce-6d50-64e9-d4d2c4d41a81}.Release|Any CPU.Deploy.0 = Release|Any CPU -{3788f245-ea6d-eb5d-80de-f25ab30a51cc}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{3788f245-ea6d-eb5d-80de-f25ab30a51cc}.Debug|Any CPU.Build.0 = Debug|Any CPU -{3788f245-ea6d-eb5d-80de-f25ab30a51cc}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{3788f245-ea6d-eb5d-80de-f25ab30a51cc}.Release|Any CPU.ActiveCfg = Release|Any CPU -{3788f245-ea6d-eb5d-80de-f25ab30a51cc}.Release|Any CPU.Build.0 = Release|Any CPU -{3788f245-ea6d-eb5d-80de-f25ab30a51cc}.Release|Any CPU.Deploy.0 = Release|Any CPU -{eae89113-1312-f83c-1a4b-638b98e760b3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{eae89113-1312-f83c-1a4b-638b98e760b3}.Debug|Any CPU.Build.0 = Debug|Any CPU -{eae89113-1312-f83c-1a4b-638b98e760b3}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{eae89113-1312-f83c-1a4b-638b98e760b3}.Release|Any CPU.ActiveCfg = Release|Any CPU -{eae89113-1312-f83c-1a4b-638b98e760b3}.Release|Any CPU.Build.0 = Release|Any CPU -{eae89113-1312-f83c-1a4b-638b98e760b3}.Release|Any CPU.Deploy.0 = Release|Any CPU -{609c8143-bdb3-709b-a7a5-cc33659c9b51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{609c8143-bdb3-709b-a7a5-cc33659c9b51}.Debug|Any CPU.Build.0 = Debug|Any CPU -{609c8143-bdb3-709b-a7a5-cc33659c9b51}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{609c8143-bdb3-709b-a7a5-cc33659c9b51}.Release|Any CPU.ActiveCfg = Release|Any CPU -{609c8143-bdb3-709b-a7a5-cc33659c9b51}.Release|Any CPU.Build.0 = Release|Any CPU -{609c8143-bdb3-709b-a7a5-cc33659c9b51}.Release|Any CPU.Deploy.0 = Release|Any CPU -{39d13fa7-a1df-cea6-adee-bab64a00a843}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{39d13fa7-a1df-cea6-adee-bab64a00a843}.Debug|Any CPU.Build.0 = Debug|Any CPU -{39d13fa7-a1df-cea6-adee-bab64a00a843}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{39d13fa7-a1df-cea6-adee-bab64a00a843}.Release|Any CPU.ActiveCfg = Release|Any CPU -{39d13fa7-a1df-cea6-adee-bab64a00a843}.Release|Any CPU.Build.0 = Release|Any CPU -{39d13fa7-a1df-cea6-adee-bab64a00a843}.Release|Any CPU.Deploy.0 = Release|Any CPU -{5bce25ab-a4d6-d89c-5274-7eadd8c5967a}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{5bce25ab-a4d6-d89c-5274-7eadd8c5967a}.Debug|Any CPU.Build.0 = Debug|Any CPU -{5bce25ab-a4d6-d89c-5274-7eadd8c5967a}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{5bce25ab-a4d6-d89c-5274-7eadd8c5967a}.Release|Any CPU.ActiveCfg = Release|Any CPU -{5bce25ab-a4d6-d89c-5274-7eadd8c5967a}.Release|Any CPU.Build.0 = Release|Any CPU -{5bce25ab-a4d6-d89c-5274-7eadd8c5967a}.Release|Any CPU.Deploy.0 = Release|Any CPU -{0d5dc515-9d35-ac02-c0b1-12c70c3163a2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{0d5dc515-9d35-ac02-c0b1-12c70c3163a2}.Debug|Any CPU.Build.0 = Debug|Any CPU -{0d5dc515-9d35-ac02-c0b1-12c70c3163a2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{0d5dc515-9d35-ac02-c0b1-12c70c3163a2}.Release|Any CPU.ActiveCfg = Release|Any CPU -{0d5dc515-9d35-ac02-c0b1-12c70c3163a2}.Release|Any CPU.Build.0 = Release|Any CPU -{0d5dc515-9d35-ac02-c0b1-12c70c3163a2}.Release|Any CPU.Deploy.0 = Release|Any CPU -{f1a91b9a-ec32-5f98-d4d6-75ac04c63276}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{f1a91b9a-ec32-5f98-d4d6-75ac04c63276}.Debug|Any CPU.Build.0 = Debug|Any CPU -{f1a91b9a-ec32-5f98-d4d6-75ac04c63276}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{f1a91b9a-ec32-5f98-d4d6-75ac04c63276}.Release|Any CPU.ActiveCfg = Release|Any CPU -{f1a91b9a-ec32-5f98-d4d6-75ac04c63276}.Release|Any CPU.Build.0 = Release|Any CPU -{f1a91b9a-ec32-5f98-d4d6-75ac04c63276}.Release|Any CPU.Deploy.0 = Release|Any CPU -{74b88d5c-96e5-7286-d2b2-8def18538246}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{74b88d5c-96e5-7286-d2b2-8def18538246}.Debug|Any CPU.Build.0 = Debug|Any CPU -{74b88d5c-96e5-7286-d2b2-8def18538246}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{74b88d5c-96e5-7286-d2b2-8def18538246}.Release|Any CPU.ActiveCfg = Release|Any CPU -{74b88d5c-96e5-7286-d2b2-8def18538246}.Release|Any CPU.Build.0 = Release|Any CPU -{74b88d5c-96e5-7286-d2b2-8def18538246}.Release|Any CPU.Deploy.0 = Release|Any CPU -{d63ac796-7087-bf6c-2848-e6511358fbe4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{d63ac796-7087-bf6c-2848-e6511358fbe4}.Debug|Any CPU.Build.0 = Debug|Any CPU -{d63ac796-7087-bf6c-2848-e6511358fbe4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{d63ac796-7087-bf6c-2848-e6511358fbe4}.Release|Any CPU.ActiveCfg = Release|Any CPU -{d63ac796-7087-bf6c-2848-e6511358fbe4}.Release|Any CPU.Build.0 = Release|Any CPU -{d63ac796-7087-bf6c-2848-e6511358fbe4}.Release|Any CPU.Deploy.0 = Release|Any CPU -{e9fe72c3-56b4-856b-a592-ae6e98e571f3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{e9fe72c3-56b4-856b-a592-ae6e98e571f3}.Debug|Any CPU.Build.0 = Debug|Any CPU -{e9fe72c3-56b4-856b-a592-ae6e98e571f3}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{e9fe72c3-56b4-856b-a592-ae6e98e571f3}.Release|Any CPU.ActiveCfg = Release|Any CPU -{e9fe72c3-56b4-856b-a592-ae6e98e571f3}.Release|Any CPU.Build.0 = Release|Any CPU -{e9fe72c3-56b4-856b-a592-ae6e98e571f3}.Release|Any CPU.Deploy.0 = Release|Any CPU -{5da7dbe9-f180-570f-2da0-2737f043744d}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{5da7dbe9-f180-570f-2da0-2737f043744d}.Debug|Any CPU.Build.0 = Debug|Any CPU -{5da7dbe9-f180-570f-2da0-2737f043744d}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{5da7dbe9-f180-570f-2da0-2737f043744d}.Release|Any CPU.ActiveCfg = Release|Any CPU -{5da7dbe9-f180-570f-2da0-2737f043744d}.Release|Any CPU.Build.0 = Release|Any CPU -{5da7dbe9-f180-570f-2da0-2737f043744d}.Release|Any CPU.Deploy.0 = Release|Any CPU -{8bce58b9-1a87-6bb3-3cee-e0e0f012b618}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{8bce58b9-1a87-6bb3-3cee-e0e0f012b618}.Debug|Any CPU.Build.0 = Debug|Any CPU -{8bce58b9-1a87-6bb3-3cee-e0e0f012b618}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{8bce58b9-1a87-6bb3-3cee-e0e0f012b618}.Release|Any CPU.ActiveCfg = Release|Any CPU -{8bce58b9-1a87-6bb3-3cee-e0e0f012b618}.Release|Any CPU.Build.0 = Release|Any CPU -{8bce58b9-1a87-6bb3-3cee-e0e0f012b618}.Release|Any CPU.Deploy.0 = Release|Any CPU -{dfbb7b9f-c604-fedd-e658-17e196043123}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{dfbb7b9f-c604-fedd-e658-17e196043123}.Debug|Any CPU.Build.0 = Debug|Any CPU -{dfbb7b9f-c604-fedd-e658-17e196043123}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{dfbb7b9f-c604-fedd-e658-17e196043123}.Release|Any CPU.ActiveCfg = Release|Any CPU -{dfbb7b9f-c604-fedd-e658-17e196043123}.Release|Any CPU.Build.0 = Release|Any CPU -{dfbb7b9f-c604-fedd-e658-17e196043123}.Release|Any CPU.Deploy.0 = Release|Any CPU -{8854c5e8-e40b-74c3-aafc-de0f13239276}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{8854c5e8-e40b-74c3-aafc-de0f13239276}.Debug|Any CPU.Build.0 = Debug|Any CPU -{8854c5e8-e40b-74c3-aafc-de0f13239276}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{8854c5e8-e40b-74c3-aafc-de0f13239276}.Release|Any CPU.ActiveCfg = Release|Any CPU -{8854c5e8-e40b-74c3-aafc-de0f13239276}.Release|Any CPU.Build.0 = Release|Any CPU -{8854c5e8-e40b-74c3-aafc-de0f13239276}.Release|Any CPU.Deploy.0 = Release|Any CPU -{83d1d75e-3c26-b8d0-f097-f99452e749cc}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{83d1d75e-3c26-b8d0-f097-f99452e749cc}.Debug|Any CPU.Build.0 = Debug|Any CPU -{83d1d75e-3c26-b8d0-f097-f99452e749cc}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{83d1d75e-3c26-b8d0-f097-f99452e749cc}.Release|Any CPU.ActiveCfg = Release|Any CPU -{83d1d75e-3c26-b8d0-f097-f99452e749cc}.Release|Any CPU.Build.0 = Release|Any CPU -{83d1d75e-3c26-b8d0-f097-f99452e749cc}.Release|Any CPU.Deploy.0 = Release|Any CPU -{7e7d8010-b37a-151a-11a5-1db234ee1104}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{7e7d8010-b37a-151a-11a5-1db234ee1104}.Debug|Any CPU.Build.0 = Debug|Any CPU -{7e7d8010-b37a-151a-11a5-1db234ee1104}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{7e7d8010-b37a-151a-11a5-1db234ee1104}.Release|Any CPU.ActiveCfg = Release|Any CPU -{7e7d8010-b37a-151a-11a5-1db234ee1104}.Release|Any CPU.Build.0 = Release|Any CPU -{7e7d8010-b37a-151a-11a5-1db234ee1104}.Release|Any CPU.Deploy.0 = Release|Any CPU -{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}.Debug|Any CPU.Build.0 = Debug|Any CPU -{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}.Release|Any CPU.ActiveCfg = Release|Any CPU -{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}.Release|Any CPU.Build.0 = Release|Any CPU -{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}.Release|Any CPU.Deploy.0 = Release|Any CPU -{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Debug|Any CPU.Build.0 = Debug|Any CPU -{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Release|Any CPU.ActiveCfg = Release|Any CPU -{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Release|Any CPU.Build.0 = Release|Any CPU -{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Release|Any CPU.Deploy.0 = Release|Any CPU -{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}.Debug|Any CPU.Build.0 = Debug|Any CPU -{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}.Release|Any CPU.ActiveCfg = Release|Any CPU -{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}.Release|Any CPU.Build.0 = Release|Any CPU -{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}.Release|Any CPU.Deploy.0 = Release|Any CPU -{05ac8aed-49a4-5c9f-d8c2-8d2debf64791}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{05ac8aed-49a4-5c9f-d8c2-8d2debf64791}.Debug|Any CPU.Build.0 = Debug|Any CPU -{05ac8aed-49a4-5c9f-d8c2-8d2debf64791}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{05ac8aed-49a4-5c9f-d8c2-8d2debf64791}.Release|Any CPU.ActiveCfg = Release|Any CPU -{05ac8aed-49a4-5c9f-d8c2-8d2debf64791}.Release|Any CPU.Build.0 = Release|Any CPU -{05ac8aed-49a4-5c9f-d8c2-8d2debf64791}.Release|Any CPU.Deploy.0 = Release|Any CPU -{c00185af-8735-7674-5fa6-232424b04161}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{c00185af-8735-7674-5fa6-232424b04161}.Debug|Any CPU.Build.0 = Debug|Any CPU -{c00185af-8735-7674-5fa6-232424b04161}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{c00185af-8735-7674-5fa6-232424b04161}.Release|Any CPU.ActiveCfg = Release|Any CPU -{c00185af-8735-7674-5fa6-232424b04161}.Release|Any CPU.Build.0 = Release|Any CPU -{c00185af-8735-7674-5fa6-232424b04161}.Release|Any CPU.Deploy.0 = Release|Any CPU -{66b90fb1-20d7-f563-3477-4c7c6b404f4d}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{66b90fb1-20d7-f563-3477-4c7c6b404f4d}.Debug|Any CPU.Build.0 = Debug|Any CPU -{66b90fb1-20d7-f563-3477-4c7c6b404f4d}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{66b90fb1-20d7-f563-3477-4c7c6b404f4d}.Release|Any CPU.ActiveCfg = Release|Any CPU -{66b90fb1-20d7-f563-3477-4c7c6b404f4d}.Release|Any CPU.Build.0 = Release|Any CPU -{66b90fb1-20d7-f563-3477-4c7c6b404f4d}.Release|Any CPU.Deploy.0 = Release|Any CPU -{4aa72022-0946-6a28-a4e9-6c9add5caef6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{4aa72022-0946-6a28-a4e9-6c9add5caef6}.Debug|Any CPU.Build.0 = Debug|Any CPU -{4aa72022-0946-6a28-a4e9-6c9add5caef6}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{4aa72022-0946-6a28-a4e9-6c9add5caef6}.Release|Any CPU.ActiveCfg = Release|Any CPU -{4aa72022-0946-6a28-a4e9-6c9add5caef6}.Release|Any CPU.Build.0 = Release|Any CPU -{4aa72022-0946-6a28-a4e9-6c9add5caef6}.Release|Any CPU.Deploy.0 = Release|Any CPU -{b22e47e1-9506-56e6-3d19-780b887d8cb3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{b22e47e1-9506-56e6-3d19-780b887d8cb3}.Debug|Any CPU.Build.0 = Debug|Any CPU -{b22e47e1-9506-56e6-3d19-780b887d8cb3}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{b22e47e1-9506-56e6-3d19-780b887d8cb3}.Release|Any CPU.ActiveCfg = Release|Any CPU -{b22e47e1-9506-56e6-3d19-780b887d8cb3}.Release|Any CPU.Build.0 = Release|Any CPU -{b22e47e1-9506-56e6-3d19-780b887d8cb3}.Release|Any CPU.Deploy.0 = Release|Any CPU -{753bcc52-c451-8b29-6ae7-520b02ee6960}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{753bcc52-c451-8b29-6ae7-520b02ee6960}.Debug|Any CPU.Build.0 = Debug|Any CPU -{753bcc52-c451-8b29-6ae7-520b02ee6960}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{753bcc52-c451-8b29-6ae7-520b02ee6960}.Release|Any CPU.ActiveCfg = Release|Any CPU -{753bcc52-c451-8b29-6ae7-520b02ee6960}.Release|Any CPU.Build.0 = Release|Any CPU -{753bcc52-c451-8b29-6ae7-520b02ee6960}.Release|Any CPU.Deploy.0 = Release|Any CPU -{b66e3a3e-7945-3d40-24ef-73fa6e1b8d41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{b66e3a3e-7945-3d40-24ef-73fa6e1b8d41}.Debug|Any CPU.Build.0 = Debug|Any CPU -{b66e3a3e-7945-3d40-24ef-73fa6e1b8d41}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{b66e3a3e-7945-3d40-24ef-73fa6e1b8d41}.Release|Any CPU.ActiveCfg = Release|Any CPU -{b66e3a3e-7945-3d40-24ef-73fa6e1b8d41}.Release|Any CPU.Build.0 = Release|Any CPU -{b66e3a3e-7945-3d40-24ef-73fa6e1b8d41}.Release|Any CPU.Deploy.0 = Release|Any CPU -{cd2b60c1-a4b5-36f2-afa3-6cf1031f9e7f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{cd2b60c1-a4b5-36f2-afa3-6cf1031f9e7f}.Debug|Any CPU.Build.0 = Debug|Any CPU -{cd2b60c1-a4b5-36f2-afa3-6cf1031f9e7f}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{cd2b60c1-a4b5-36f2-afa3-6cf1031f9e7f}.Release|Any CPU.ActiveCfg = Release|Any CPU -{cd2b60c1-a4b5-36f2-afa3-6cf1031f9e7f}.Release|Any CPU.Build.0 = Release|Any CPU -{cd2b60c1-a4b5-36f2-afa3-6cf1031f9e7f}.Release|Any CPU.Deploy.0 = Release|Any CPU -{8433aac6-218d-9b7b-6eaa-36774e165446}.Debug|Any CPU.ActiveCfg = Debug|Any CPU -{8433aac6-218d-9b7b-6eaa-36774e165446}.Debug|Any CPU.Build.0 = Debug|Any CPU -{8433aac6-218d-9b7b-6eaa-36774e165446}.Debug|Any CPU.Deploy.0 = Debug|Any CPU -{8433aac6-218d-9b7b-6eaa-36774e165446}.Release|Any CPU.ActiveCfg = Release|Any CPU -{8433aac6-218d-9b7b-6eaa-36774e165446}.Release|Any CPU.Build.0 = Release|Any CPU -{8433aac6-218d-9b7b-6eaa-36774e165446}.Release|Any CPU.Deploy.0 = Release|Any CPU - - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {43971d92-3663-4f28-82ac-e63ce06ba1a3} - EndGlobalSection -EndGlobal - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/UnitsNet.NanoFramework.VitaminA.nuspec b/UnitsNet.NanoFramework/GeneratedCode/VitaminA/UnitsNet.NanoFramework.VitaminA.nuspec deleted file mode 100644 index 0141948c6f..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/UnitsNet.NanoFramework.VitaminA.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.VitaminA - 6.0.0-pre019 - Units.NET VitaminA - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds VitaminA units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework vitamina unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/VitaminA.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VitaminA/VitaminA.nfproj deleted file mode 100644 index 8f39d21b69..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/VitaminA.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {c00185af-8735-7674-5fa6-232424b04161} - Library - Properties - 512 - UnitsNet - UnitsNet.VitaminA - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VitaminA/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VitaminA/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Volume/UnitsNet.NanoFramework.Volume.nuspec b/UnitsNet.NanoFramework/GeneratedCode/Volume/UnitsNet.NanoFramework.Volume.nuspec deleted file mode 100644 index cc4ecb50ff..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Volume/UnitsNet.NanoFramework.Volume.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.Volume - 6.0.0-pre019 - Units.NET Volume - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds Volume units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework volume unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Volume/Volume.nfproj b/UnitsNet.NanoFramework/GeneratedCode/Volume/Volume.nfproj deleted file mode 100644 index cd8795c28d..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Volume/Volume.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {66b90fb1-20d7-f563-3477-4c7c6b404f4d} - Library - Properties - 512 - UnitsNet - UnitsNet.Volume - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/Volume/packages.config b/UnitsNet.NanoFramework/GeneratedCode/Volume/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/Volume/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/UnitsNet.NanoFramework.VolumeConcentration.nuspec b/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/UnitsNet.NanoFramework.VolumeConcentration.nuspec deleted file mode 100644 index d3919ab1f3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/UnitsNet.NanoFramework.VolumeConcentration.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.VolumeConcentration - 6.0.0-pre019 - Units.NET VolumeConcentration - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds VolumeConcentration units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework volumeconcentration unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/VolumeConcentration.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/VolumeConcentration.nfproj deleted file mode 100644 index 139a354e79..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/VolumeConcentration.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {4aa72022-0946-6a28-a4e9-6c9add5caef6} - Library - Properties - 512 - UnitsNet - UnitsNet.VolumeConcentration - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumeConcentration/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/UnitsNet.NanoFramework.VolumeFlow.nuspec b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/UnitsNet.NanoFramework.VolumeFlow.nuspec deleted file mode 100644 index 97a72fea68..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/UnitsNet.NanoFramework.VolumeFlow.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.VolumeFlow - 6.0.0-pre019 - Units.NET VolumeFlow - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds VolumeFlow units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework volumeflow unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/VolumeFlow.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/VolumeFlow.nfproj deleted file mode 100644 index 7cd2632f91..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/VolumeFlow.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {b22e47e1-9506-56e6-3d19-780b887d8cb3} - Library - Properties - 512 - UnitsNet - UnitsNet.VolumeFlow - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlow/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/UnitsNet.NanoFramework.VolumeFlowPerArea.nuspec b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/UnitsNet.NanoFramework.VolumeFlowPerArea.nuspec deleted file mode 100644 index 49d0f95bfe..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/UnitsNet.NanoFramework.VolumeFlowPerArea.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.VolumeFlowPerArea - 6.0.0-pre019 - Units.NET VolumeFlowPerArea - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds VolumeFlowPerArea units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework volumeflowperarea unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/VolumeFlowPerArea.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/VolumeFlowPerArea.nfproj deleted file mode 100644 index a4e3b0f655..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/VolumeFlowPerArea.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {753bcc52-c451-8b29-6ae7-520b02ee6960} - Library - Properties - 512 - UnitsNet - UnitsNet.VolumeFlowPerArea - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumeFlowPerArea/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/UnitsNet.NanoFramework.VolumePerLength.nuspec b/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/UnitsNet.NanoFramework.VolumePerLength.nuspec deleted file mode 100644 index f43c591ff3..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/UnitsNet.NanoFramework.VolumePerLength.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.VolumePerLength - 6.0.0-pre019 - Units.NET VolumePerLength - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds VolumePerLength units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework volumeperlength unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/VolumePerLength.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/VolumePerLength.nfproj deleted file mode 100644 index 033ae1dcf0..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/VolumePerLength.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {b66e3a3e-7945-3d40-24ef-73fa6e1b8d41} - Library - Properties - 512 - UnitsNet - UnitsNet.VolumePerLength - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumePerLength/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/UnitsNet.NanoFramework.VolumetricHeatCapacity.nuspec b/UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/UnitsNet.NanoFramework.VolumetricHeatCapacity.nuspec deleted file mode 100644 index 126e0e34e8..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/UnitsNet.NanoFramework.VolumetricHeatCapacity.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UnitsNet.nanoFramework.VolumetricHeatCapacity - 6.0.0-pre019 - Units.NET VolumetricHeatCapacity - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds VolumetricHeatCapacity units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework volumetricheatcapacity unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/VolumetricHeatCapacity.nfproj b/UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/VolumetricHeatCapacity.nfproj deleted file mode 100644 index fdacea6cf9..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/VolumetricHeatCapacity.nfproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {cd2b60c1-a4b5-36f2-afa3-6cf1031f9e7f} - Library - Properties - 512 - UnitsNet - UnitsNet.VolumetricHeatCapacity - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/packages.config b/UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/packages.config deleted file mode 100644 index 313a8dccdf..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/VolumetricHeatCapacity/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/UnitsNet.NanoFramework.WarpingMomentOfInertia.nuspec b/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/UnitsNet.NanoFramework.WarpingMomentOfInertia.nuspec deleted file mode 100644 index 0f84df1913..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/UnitsNet.NanoFramework.WarpingMomentOfInertia.nuspec +++ /dev/null @@ -1,27 +0,0 @@ - - - - UnitsNet.nanoFramework.WarpingMomentOfInertia - 6.0.0-pre019 - Units.NET WarpingMomentOfInertia - nanoFramework - Andreas Gullberg Larsen,nanoframework - UnitsNet - MIT-0 - https://github.com/angularsen/UnitsNet - false - Adds WarpingMomentOfInertia units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead. - https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png - - - Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). - en-US - nanoframework warpingmomentofinertia unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/WarpingMomentOfInertia.nfproj b/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/WarpingMomentOfInertia.nfproj deleted file mode 100644 index f3b390a93b..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/WarpingMomentOfInertia.nfproj +++ /dev/null @@ -1,47 +0,0 @@ - - - - $(MSBuildExtensionsPath)\nanoFramework\v1.0\ - - - - Debug - AnyCPU - {11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {8433aac6-218d-9b7b-6eaa-36774e165446} - Library - Properties - 512 - UnitsNet - UnitsNet.WarpingMomentOfInertia - v1.0 - bin\$(Configuration)\$(AssemblyName).xml - - - - - - - - - - ..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll - True - True - - - ..\packages\nanoFramework.System.Math.1.5.43\lib\System.Math.dll - True - True - - - - - - - - - - - - diff --git a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/packages.config b/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/packages.config deleted file mode 100644 index ac11548cd6..0000000000 --- a/UnitsNet.NanoFramework/GeneratedCode/WarpingMomentOfInertia/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/UnitsNet.sln.DotSettings b/UnitsNet.sln.DotSettings index 9a50f67d77..505615b522 100644 --- a/UnitsNet.sln.DotSettings +++ b/UnitsNet.sln.DotSettings @@ -50,6 +50,4 @@ True True True - True - True True diff --git a/UnitsNet.slnx b/UnitsNet.slnx index 954149d514..19f5d456fa 100644 --- a/UnitsNet.slnx +++ b/UnitsNet.slnx @@ -10,7 +10,6 @@ - @@ -29,7 +28,6 @@ - diff --git a/azure-pipelines-pr.yml b/azure-pipelines-pr.yml index e3c0ad742c..8a6ab51fa8 100644 --- a/azure-pipelines-pr.yml +++ b/azure-pipelines-pr.yml @@ -1,7 +1,7 @@ name: PR_$(Date:yyyy.MM.dd)$(Rev:.rrr) # PR pipeline -# - Build all targets (netstandard2.0, .NET nanoFramework) +# - Build all targets # - Run tests and upload test coverage to codecov.io trigger: none @@ -56,14 +56,10 @@ stages: version: '10.x' includePreviewVersions: true - - task: InstallNanoMSBuildComponents@1 - displayName: Install .NET nanoFramework MSBuild components - - task: PowerShell@2 displayName: 'Build, test, pack' inputs: filePath: 'Build/build.ps1' - arguments: '-IncludeNanoFramework' failOnStderr: true showWarnings: true pwsh: true diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 567befc561..e0f7a05ff8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -49,14 +49,10 @@ stages: version: '10.x' includePreviewVersions: true - - task: InstallNanoMSBuildComponents@1 - displayName: Install .NET nanoFramework MSBuild components - - task: PowerShell@2 displayName: 'Build, test, pack' inputs: filePath: 'Build/build.ps1' - arguments: '-IncludeNanoFramework' failOnStderr: true showWarnings: true pwsh: true diff --git a/build-all-targets.bat b/build-all-targets.bat deleted file mode 100644 index 267a7888e5..0000000000 --- a/build-all-targets.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -powershell -ExecutionPolicy Bypass -NoProfile -File "%~dp0\Build\build.ps1" -IncludeNanoFramework diff --git a/cSpell.json b/cSpell.json index cb18f75d1a..9ca2da0d8d 100644 --- a/cSpell.json +++ b/cSpell.json @@ -13,7 +13,6 @@ "minstar", "MVVM", "MvvmSample", - "nanoFramework", "Newton", "NuGet", "PrinterPoint", diff --git a/upgrade-nanoframework.sh b/upgrade-nanoframework.sh deleted file mode 100644 index 343440574b..0000000000 --- a/upgrade-nanoframework.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -# Convenience script to update nanoFramework dependencies. -declare -r SCRIPT_DIR=$(realpath "$(dirname "$0")") - -dotnet run --project "$SCRIPT_DIR/CodeGen" --update-nano-framework-dependencies