Exemple #1
0
        internal static void RegisterDefaultConversions(UnitConverter unitConverter)
        {
            // Register in unit converter: BaseUnit -> ScalarUnit

            // Register in unit converter: BaseUnit <-> BaseUnit
            unitConverter.SetConversionFunction <Scalar>(ScalarUnit.Amount, ScalarUnit.Amount, quantity => quantity);

            // Register in unit converter: ScalarUnit -> BaseUnit
        }