If you do that you only display the third value in each array, what you need in to iterate over the arrays.
You can do it with another loop, or if the array is small(let's say 3 that i am guessing by your example) and the array will always be that size, you can write each value by hand.
With a for loop, it would be like this:
foreach (var res in result)
{
for(int i=0; i < res.Length;i++){
Console.WriteLine(res[i]);
}
}
you can use another foreach loop as sugested by bkribbs:
foreach (var res in result)
{
foreach(string resText in res)
{
Console.WriteLine(resText);
}
}
Or you can do by hand, wich is not recomended in real life scenarios unless you are aiming for performance. The next example is suposing each array has the same lenght of 3:
foreach (var res in result)
{
Console.WriteLine(res[0]);
Console.WriteLine(res[1]);
Console.WriteLine(res[2]);
}
Always remember that array indexes start at 0, so that if you do something like
int indexes = 3;
int[] array = new int[indexes];
array[indexes] = 200; //the same as array[3] = 200;
it will turn in an error, because it will look for the fourth element in a 3 element array.
Console.WriteLine(string.Join(Environment.NewLine, result.SelectMany(x => x)));result.ForEach(e => e.ToList().ForEach(Console.WriteLine));