!!!C# 文字列を数値に変換 [C#] !string を int に変換 int i = Convert.ToInt32("29"); int i = Convert.ToInt32("2C06CA",16); // 指定した基数で int i = Int32.Parse("-105");