C#のListを使ってforeach文を作るサンプル
// int型のリストを確認します。 | |
List<int> numList = new List<int>(){8, 13, 14, 19, 26, 58}; | |
foreach (int num in numList) | |
{ | |
// なんらかの処理をするでち。 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment