TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
William Thompson
1.6k
155
298.4k
Declaring an array of linked list in C#
Apr 23 2010 10:09 PM
Declaring an array of linked list in C#
How do I declare an array of some class in C#? I wonder if it is even allowed or possible.
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 this the way:
string [2] inputdata;
Reply
Answers (
1
)
Uploading/Downloading folders with a .NET control built in VS2010
convert JSP code to c#