>Thank you.
>
>>>Hello All,
>>>
>>>When Using a jagged Array it's handy to reference(?) a whole row of the array like
MyArray[0]
. My question is: is there also way to reference to the column without using a loop, I tried something like this:
MyArray[][0]
but get a build failure. So how could I reference the column?
>>>
>>>I was also thinking about inversing the array, is this possible?
>>>
>>>I hope I was clear,Thank you.
>>>
>>>Zakaria al Azhar.
>>
>>You need to loop.
>>Cetin
And I meant no. You need to reference it giving index of first array.
MyArray[0][0],MyArray[1][0]...
MyArray[0] works because a jagged array is an array whose elements are array.
Probably you want a multidimensional array and not a jagged array (according to benchmarks from MS jagged arrays are much slower).
Cetin