All about Arrays in C#—foreach Statement with Multidimensional Arrays

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
CSharp-Online.NET:Articles
C# Articles

All about Arrays in C#

© 2006 Christian Gross

The foreach Statement with Multidimensional Arrays

In a multidimensional array, the elements are processed in the order in which the rightmost index is incremented fastest. When the index has gone from 0 to length - 1, the next index to the left is incremented, and the indexes to the right are reset to 0.


Previous_Page_.gif Next_Page_.gif


Personal tools