C# Tips


stringをboolに変換するには


stringをintに変換するにはSystem.Convert.ToBooleanメソッドを使用します。
string s = "true";

// int型に変換
bool b = System.Convert.ToBoolean(s);


目次に戻る
Copyright(c) 2008 WoodenSoldier Software