Declaring an array of linked list in C#

Posted by xarzu on Stack Overflow See other posts from Stack Overflow or by xarzu
Published on 2010-04-24T01:43:55Z Indexed on 2010/04/24 1:53 UTC
Read the original article Hit count: 357

Filed under:
|
|

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[2] ExistingXMLList;

Also, if I wanted to create a small array of strings, isn't this the way:

string [2] inputdata;

© Stack Overflow or respective owner

Related posts about c#

Related posts about array