foreach-Loops
Mit dem foreach-Loop können wir über Collections iterieren.
foreach (type variable in collection)
{
..
}string[] cars = { "Volvo", "BMW", "Ford", "Mazda" };
foreach (string car in cars)
{
Console.WriteLine(car);
}Last updated