Пример #1
0
 public static Currency Parse(String s, NumberStyles style, NumberFormatInfo info)
 {
     if (info == null)
     {
         info = NumberFormatInfo.CurrentInfo;
     }
     return(Decimal.ToCurrency(Number.ParseDecimal(s, style, info)));
 }
Пример #2
0
 // Constructs a Currency from a Decimal value.
 //
 public Currency(Decimal value)
 {
     m_value = Decimal.ToCurrency(value).m_value;
 }