Exemple #1
0
 public Money Reduce(MoneyExpression source, string to)
 {
     return(source.Reduce(this, to));
 }
Exemple #2
0
        public override Money Reduce(Bank bank, string to)
        {
            int amount = augend.Reduce(bank, to).amount + addend.Reduce(bank, to).amount;

            return(new Money(amount, to));
        }