Пример #1
0
        private bool Contains(Cash aMoney)
        {
            Cash m = FindMoney(aMoney.Currency);

            return(m.Amount == aMoney.Amount);
        }
Пример #2
0
 public CashBag(Cash m, CashBag bag)
 {
     AppendMoney(m);
     AppendBag(bag);
 }
Пример #3
0
 public ICash AddMoney(Cash m)
 {
     return((new CashBag(m, this)).Simplify());
 }
Пример #4
0
 public CashBag(Cash m1, Cash m2)
 {
     AppendMoney(m1);
     AppendMoney(m2);
 }