I had downloaded LINQPad4 : Here is a small problem that I face
Running this piece of code in "C#Program" dropdown does not give more than 1st output
even after pressing ENTER repeatedly
A black band appears at the bottom with the cursor blinking on --- on pressing ENTER
the following message is shown:
InvalidOperationException
the referred to piece of coding
int[][] jagged = new int[3][];
jagged[0] = new int[2] { 1, 2 };
jagged[1] = new int[6] { 3, 4, 5, 6, 7, 8 };
jagged[2] = new int[3] { 9, 10, 11 };
for (int row = 0; row < jagged.Length; row++)
{
for ( int element = 0; element < jagged[row].Length; element++)
{
Console.WriteLine("row: {0}, element: {1}, value: {2}",
row, element, jagged[row][element]);
Console.Read();
}
}
thanks













