0
Can Anyone Explain the foreach loop in detail?
need a detailed explanation in foreach loop in c#
1 Réponse
0
You can write code to read all elements of a collection(such as array) with it.
int[ ] a = new int[10];
foreach(int value in a)
{}
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/foreach-in