IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The common interface for simple Monies and MoneyBags. More...
Public Member Functions | |
IMoney | Add (IMoney m) |
Adds a money to this money. More... | |
IMoney | AddMoney (Money m) |
Adds a simple Money to this money. This is a helper method for implementing double dispatch. More... | |
IMoney | AddMoneyBag (MoneyBag s) |
Adds a MoneyBag to this money. This is a helper method for implementing double dispatch. More... | |
IMoney | Multiply (int factor) |
Multiplies a money by the given factor. More... | |
IMoney | Negate () |
Negates this money. More... | |
IMoney | Subtract (IMoney m) |
Subtracts a money from this money. More... | |
Properties | |
bool | IsZero [get] |
True if this money is zero. More... | |
The common interface for simple Monies and MoneyBags.
Adds a money to this money.
Implemented in NUnit.Samples.Money.MoneyBag, and NUnit.Samples.Money.Money.
Referenced by NUnit.Samples.Money.MoneyBag.AppendMoney().
Adds a simple Money to this money. This is a helper method for implementing double dispatch.
Implemented in NUnit.Samples.Money.MoneyBag, and NUnit.Samples.Money.Money.
Referenced by NUnit.Samples.Money.Money.Add().
Adds a MoneyBag to this money. This is a helper method for implementing double dispatch.
Implemented in NUnit.Samples.Money.MoneyBag, and NUnit.Samples.Money.Money.
Referenced by NUnit.Samples.Money.MoneyBag.Add().
IMoney NUnit.Samples.Money.IMoney.Multiply | ( | int | factor | ) |
Multiplies a money by the given factor.
Implemented in NUnit.Samples.Money.MoneyBag, and NUnit.Samples.Money.Money.
IMoney NUnit.Samples.Money.IMoney.Negate | ( | ) |
Negates this money.
Implemented in NUnit.Samples.Money.MoneyBag, and NUnit.Samples.Money.Money.
Referenced by NUnit.Samples.Money.Money.Subtract(), and NUnit.Samples.Money.MoneyBag.Subtract().
Subtracts a money from this money.
Implemented in NUnit.Samples.Money.MoneyBag, and NUnit.Samples.Money.Money.
|
get |
True if this money is zero.
Referenced by NUnit.Samples.Money.MoneyBag.AppendMoney(), NUnit.Samples.Money.MoneyTest.BagMultiply(), and NUnit.Samples.Money.MoneyTest.IsZero().