MeasurementsTool are simple C# Enum types with cool extension methods for measurement conversions.
-
Length:
International System: KM, HM, DAM, M, DM, CM, MM
Non International System: YD, FT, IN
-
Weight:
International System: T, Q, KG, HG, DAG, G, DG, CG, MG, MCG
Non International System: LongTon, ShortTon, LB, OZ
-
Capacity:
International System: YL, ZL, EL, PL, TL, GL, ML, kL, hL, daL, L, dL, cL, mL, uL, nL, pL, fL, aL, zL, yL
-
Temperature:
International System: Celsius, Fahrenheit, Kelvin
WeightUnitType.<fromWeightUnit>.ConvertTo(<desiredWeightUnit>, <weightValue>)
LengthUnitType.<fromLengthUnit>.ConvertTo(<desiredLengthUnit>, <lengthValue>)
WeightUnitType.KG.ConvertTo(WeightUnitType.G, 50.5);
LengthUnitType.KM.ConvertTo(LengthUnitType.M, 50.5);