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)); } }
public string ToString(string format = "C") { return(Amount.ToString(format, Currency.Get(currencyCode).NumberFormat)); }