示例#1
0
        private void Convert(IConvert <double> fromUnit, IConvert <double> toUnit, RequestDto dto)
        {
            double siValue  = fromUnit.ConvertToSI(dto.EnteredValue);
            double resValue = toUnit.ConvertFromSI(siValue);

            dto.ResultValue = Math.Round(resValue, 3);
        }