C# Class NUnit.Samples.Money.Money

A simple Money.
Inheritance: IMoney
Afficher le fichier Open project: mvba/ExcelMapper Class Usage Examples

Méthodes publiques

Méthode Description
Add ( IMoney m ) : IMoney

Adds a money to this money. Forwards the request to the AddMoney helper.

AddMoney ( Money m ) : IMoney
AddMoneyBag ( MoneyBag s ) : IMoney
Equals ( Object anObject ) : bool
GetHashCode ( ) : int
Money ( int amount, String currency ) : System

Constructs a money from the given amount and currency.

Multiply ( int factor ) : IMoney
Negate ( ) : IMoney
Subtract ( IMoney m ) : IMoney
ToString ( ) : String

Method Details

Add() public méthode

Adds a money to this money. Forwards the request to the AddMoney helper.
public Add ( IMoney m ) : IMoney
m IMoney
Résultat IMoney

AddMoney() public méthode

public AddMoney ( Money m ) : IMoney
m Money
Résultat IMoney

AddMoneyBag() public méthode

public AddMoneyBag ( MoneyBag s ) : IMoney
s MoneyBag
Résultat IMoney

Equals() public méthode

public Equals ( Object anObject ) : bool
anObject Object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Money() public méthode

Constructs a money from the given amount and currency.
public Money ( int amount, String currency ) : System
amount int
currency String
Résultat System

Multiply() public méthode

public Multiply ( int factor ) : IMoney
factor int
Résultat IMoney

Negate() public méthode

public Negate ( ) : IMoney
Résultat IMoney

Subtract() public méthode

public Subtract ( IMoney m ) : IMoney
m IMoney
Résultat IMoney

ToString() public méthode

public ToString ( ) : String
Résultat String