using System.Collections.Generic;
public static void Main()
List<string[,]> arrayList = new List<string[,]>();
var twoDArray = new string[5,5];
arrayList.Add(twoDArray);
arrayList.Add(twoDArray);
foreach(var array in arrayList)
Console.WriteLine("=== Starting iterration for another array in the array list ===");
foreach(var arrayItem in array)
Console.WriteLine(string.Format("Flattened iteration - value {0}", arrayItem));
for (int x = 0; x < array.GetLength(0); x += 1)
for (int y = 0; y < array.GetLength(1); y += 1)
var indexedItem = array[x,y];
Console.WriteLine(string.Format("Indexed iteration - at index {0},{1} value {2}", x, y, indexedItem));