Exemplo n.º 1
0
 public string ToString(string format = "C", bool genericFormatter = false)
 {
     if (genericFormatter)
     {
         var formatter = (NumberFormatInfo)Currency.Get(LocalCurrencyCode).NumberFormat.Clone();
         formatter.CurrencySymbol = this.CurrencyCode;
         return(Amount.ToString(format, formatter));
     }
     else
     {
         return(Amount.ToString(format, Currency.Get(this.currencyCode).NumberFormat));
     }
 }
Exemplo n.º 2
0
 public string ToString(string format = "C")
 {
     return(Amount.ToString(format, Currency.Get(currencyCode).NumberFormat));
 }