using C++/CLI I want to declare a list of a list.
When declaring a regular list, I write:
List<String^>^ NameOfList = gcnew List<String^>(2);
Consequently, I tried to declare the list of a list like:
List<List<String^>^>^ AnotherName = gcnew List<List<String^>(2)>(2);
However, Microsoft Visual Studio complains about the argument on the right hand side saying it is not valid.
Note, I can create an empty list with
List<List<String^>^>^ AnotherName;
which works fine. Does anybody know what is wrong here?