差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
dotnet:convert [2009/01/28 18:46] – 作成 nakayama | dotnet:convert [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Convert クラス (System) ====== | ====== Convert クラス (System) ====== | ||
+ | ===== 16進数文字列を整数型に変換 ===== | ||
+ | [VB] | ||
+ | <code vbnet> | ||
+ | // 16進数文字列を整数型に変換 | ||
+ | Dim intValue As Integer = Convert.ToInt32(" | ||
+ | // 1000000を出力 | ||
+ | Console.WriteLine(intValue) | ||
+ | </ | ||
+ | [C#] | ||
+ | <code csharp> | ||
+ | // 16進数文字列を整数型に変換 | ||
+ | int intValue = Convert.ToInt32(" | ||
+ | // 1000000を出力 | ||
+ | Console.WriteLine(intValue); | ||
+ | </ | ||
+ | [C++] | ||
+ | <code cpp> | ||
+ | // 16進数文字列を整数型に変換 | ||
+ | int intValue = Convert:: | ||
+ | // 1000000を出力 | ||
+ | Console:: | ||
+ | </ |