// تبدیل واحد سنجش ضریبدار به یکدیگر
        public static double Convert(double value, VahedeSanjesheZaribdar from, VahedeSanjesheZaribdar to)
        {
            ValidateBodeAndazeGiri(from, to);

            double valueDarVahedePaye      = from.ConvertToPaye(value);
            double valueDarVahedeFormoldar = to.ConvertFromPaye(valueDarVahedePaye);

            return(valueDarVahedeFormoldar);
        }
示例#2
0
 public static double ConvertFromPaye(this VahedeSanjesheZaribdar vahedeSanjeshe, double value)
 {
     return(value / vahedeSanjeshe.NesbatBeVahedePaye);
 }