Пример #1
0
        public static Fraction operator +(double number, Fraction fraction)
        {
            var firstValue = new Fraction(number);

            return(firstValue + fraction);
        }
Пример #2
0
        public static Fraction operator +(Fraction firstValue, double number)
        {
            var secondValue = new Fraction(number);

            return(firstValue + secondValue);
        }