【C#】string型からint型、int型からstring型に変換する方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// string型からint型へ変換 | |
string str = "10"; | |
int value = int.Parse(str); | |
// int型からstring型へ変換 | |
int value = 10; | |
string str = value.ToString(); |
コメント
コメントを投稿