public static Currency Parse(String s, NumberStyles style, NumberFormatInfo info) { if (info == null) { info = NumberFormatInfo.CurrentInfo; } return(Decimal.ToCurrency(Number.ParseDecimal(s, style, info))); }
// Constructs a Currency from a Decimal value. // public Currency(Decimal value) { m_value = Decimal.ToCurrency(value).m_value; }