C# Class Arc.Domain.Units.Moneybag

Bag of money.
Datei anzeigen Open project: marektihkan/Arc

Public Methods

Method Description
Add ( Money money ) : void

Adds the specified money.

Contains ( Arc.Domain.Units.Currency currency ) : bool

Determines whether the specified currency is in bag.

Remove ( Arc.Domain.Units.Currency currency ) : void

Removes the specified currency.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

this ( Arc.Domain.Units.Currency currency ) : Money

Gets the Arc.Domain.Units.Money with the specified currency.

Method Details

Add() public method

Adds the specified money.
public Add ( Money money ) : void
money Money The money.
return void

Contains() public method

Determines whether the specified currency is in bag.
public Contains ( Arc.Domain.Units.Currency currency ) : bool
currency Arc.Domain.Units.Currency The currency.
return bool

Remove() public method

Removes the specified currency.
public Remove ( Arc.Domain.Units.Currency currency ) : void
currency Arc.Domain.Units.Currency The currency.
return void

ToString() public method

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
return string

this() public method

Gets the Arc.Domain.Units.Money with the specified currency.
public this ( Arc.Domain.Units.Currency currency ) : Money
currency Arc.Domain.Units.Currency
return Money