C# 文字列を通貨型(decimal)に変換


using System.Globalization; //必衰

//文字列
string value = @”1,500,000″;

//Decimalに変換
Decimal decX = Decimal.Parse(value, NumberStyles.Currency);