Beispiel #1
0
 public override Money ConvertTo(Currency c)
 {
     return(ConvertMoney.ToCurrency(this, c));
 }
Beispiel #2
0
        public override Money Subtract(Money m)
        {
            var money = ConvertMoney.ToCurrency(this, m.Currency);

            return(new Money(m.Currency, money.Amount - m.Amount, m.Date));
        }
Beispiel #3
0
        public override int CompareTo(Money m)
        {
            var money = ConvertMoney.ToCurrency(m, Currency);

            return(Amount.CompareTo(money.Amount));
        }