I have created a multidimensiona l array as follows:
string[,] myarray = {{"TestArray1Pa rt1", "TestArray1Part 2"},{"TestArray 2Part1", "TestArray2Part 2"}};
Basically what I want to do is show a message box which will display the first two parts of the array (TestArray1Part 1 & TestArray1Part2 ), then loop to show the next parts.
I am currently using a foreach statement to loop through the array but this just shows each item one by one.
Do you know how to achieve this so both parts are shown on each loop of the foreach statement?
string[,] myarray = {{"TestArray1Pa rt1", "TestArray1Part 2"},{"TestArray 2Part1", "TestArray2Part 2"}};
Basically what I want to do is show a message box which will display the first two parts of the array (TestArray1Part 1 & TestArray1Part2 ), then loop to show the next parts.
I am currently using a foreach statement to loop through the array but this just shows each item one by one.
Do you know how to achieve this so both parts are shown on each loop of the foreach statement?
Comment