Using foreach with Arrays (C# Programming Guide)
C# also provides the foreach statement. This statement provides a simple, clean way to iterate through the elements of an array or any enumerable collection. The foreach statement processes elements in the order returned by the array or collection type’s enumerator, which is usually from the 0th element to the last. For example, the following code creates an array called numbers and iterates through it with the foreach statement:
With multidimensional arrays, you can use the same method to iterate through the elements, for example:
However, with multidimensional arrays, using a nested for loop gives you more control over the array elements.