foreach (String s in arrayOfMessages) { System.Console.WriteLine(s); }
string[,] arrayOfMessages is being passed in as a parameter
string[,] arrayOfMessages
You can use the code below to run multidimensional arrays.
foreach (String s in arrayOfMessages) { System.Console.WriteLine("{0}",s); }