public IMoney Negate() { MoneyBag result = new MoneyBag(); foreach (Money m in fMonies) { result.AppendMoney((Money)m.Negate()); } return(result); }
public IMoney Multiply(int factor) { MoneyBag result = new MoneyBag(); if (factor != 0) { foreach (Money m in fMonies) { result.AppendMoney((Money)m.Multiply(factor)); } } return(result); }
public IMoney Negate() { MoneyBag result = new MoneyBag(); foreach (Money m in fMonies) { result.AppendMoney((Money)m.Negate()); } return result; }
public IMoney Multiply(int factor) { MoneyBag result = new MoneyBag(); if (factor != 0) { foreach (Money m in fMonies) { result.AppendMoney((Money)m.Multiply(factor)); } } return result; }