I got the compile error message “Array size cannot be specified in a variable declaration (try initializing with a ‘new’ expression)” when I tried to declare an array of linked lists.
public LinkedList<LevelNode>[2] ExistingXMLList;
Also, if I wanted to create a small array of strings, isn’t the following the correct way?
string [2] inputdata;
You declare an array with just [].
Then you instantiate it with the size.
Or both at the same time:
To add LinkedLists to this array you type: