예제 #1
0
 public void AddRate(string @from, string to, decimal rate)
 {
     AddRate(CurrencyType.FindByCode(@from), CurrencyType.FindByCode(to), rate);
 }
예제 #2
0
 public virtual decimal GetRate(string @from, string to)
 {
     return(GetRate(CurrencyType.FindByCode(@from), CurrencyType.FindByCode(to)));
 }
예제 #3
0
 public static Money Create(decimal value, string code)
 {
     return(Create(value, CurrencyType.FindByCode(code)));
 }
예제 #4
0
 public static Money Zero(string code)
 {
     return(Zero(CurrencyType.FindByCode(code)));
 }
예제 #5
0
 public Money ExchangeTo(string code)
 {
     return(ExchangeTo(CurrencyType.FindByCode(code)));
 }
예제 #6
0
 public Money(Int64 cents, string code) : this(cents, CurrencyType.FindByCode(code))
 {
 }