Is it possible to create a multidimensional arraylist in C#?
StartDate Qty size
9/1/2010 10 15
9/1/2009 12 17
9/1/2008 11 19
StartDate, Qty and size are the 3 arraylists. I need to have them in a single arraylist. I would also need to sort this arraylist by StartDate. Is this possible? Is there a better way to do it other than arraylist?
You can do it that way, yes. But in this case since each row seems related, why not create a class to hold the data:
And then just have a regular List to hold the objects:
That will save you from having to worry about the ordering of each List. To handle the ordering, you can use the LINQ to Objects Extension methods: