Example #1
0
 public override Money ConvertTo(Currency c)
 {
     return(ConvertMoney.ToCurrency(this, c));
 }
Example #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));
        }
Example #3
0
        public override int CompareTo(Money m)
        {
            var money = ConvertMoney.ToCurrency(m, Currency);

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