PaulW asked on my CP article’s forum whether C++/CLI has support for jagged arrays. In the old syntax, there was no direct syntactical support for jagged arrays and we were left with the rather uneasy option of simulating jagged arrays through contrived code. My first answer to him was that there wasn’t direct support for jagged arrays in the new syntax as far as I knew. But Holger Grund (VC++ MVP) pointed out to me that it was quite easy to do jagged arrays in C++/CLI.
For example, the following C# code :-
int arr = new int; // C#
corresponds to the following C++ code :-
array<array<int>^>^ arr = gcnew array<array<int>^> (5); // C++