IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Samples.Money.IMoney Interface Reference

The common interface for simple Monies and MoneyBags. More...

+ Inheritance diagram for NUnit.Samples.Money.IMoney:

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...
 

Detailed Description

The common interface for simple Monies and MoneyBags.

Member Function Documentation

IMoney NUnit.Samples.Money.IMoney.Add ( IMoney  m)

Adds a money to this money.

Implemented in NUnit.Samples.Money.MoneyBag, and NUnit.Samples.Money.Money.

Referenced by NUnit.Samples.Money.MoneyBag.AppendMoney().

IMoney NUnit.Samples.Money.IMoney.AddMoney ( Money  m)

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().

IMoney NUnit.Samples.Money.IMoney.AddMoneyBag ( MoneyBag  s)

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 ( )
IMoney NUnit.Samples.Money.IMoney.Subtract ( IMoney  m)

Subtracts a money from this money.

Implemented in NUnit.Samples.Money.MoneyBag, and NUnit.Samples.Money.Money.

Property Documentation

bool NUnit.Samples.Money.IMoney.IsZero
get

The documentation for this interface was generated from the following file: