How do you create an array of arrays in C#? I have read about creating jagged arrays but I’m not sure if thats the best way of going about it. I was wanting to achieve something like this:
string[] myArray = {string[] myArray2, string[] myArray3}
Then I can access it like myArray.myArray2[0];
I know that code won’t work but just as an example to explain what I mean.
Thanks.
Simple example of array of arrays or multidimensional array is as follows:
To test the array: