コード例 #1
0
ファイル: currency.cs プロジェクト: SSCLI/sscli_20021101
 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;
 }