Improving the Performance of Multidimensional Arrays in C#
C# has support for multidimensional arrays, which are useful for representing elements in a 2D or 3D grid:
int[,] twoDimensions = new int[20, 20];
int[,,] threeDimensions = new int[20, 20, 20];
Under the covers, these arrays are allocated as a singl...
vercidium.hashnode.dev2 min read