I would like to create a multi-dimensional list. For reference, I'm working on a playlist parser.
I have a file / list file that my program saves in a standard list. One line from the file in each entry in the list.
Then I parse the regex list to find specific strings. Some data / results from the rows should be placed in a new multidimensional list; since I donโt know how many results / data I can get, I cannot use a multidimensional array.
Here is the data I want to insert:
List
(
[0] => List
(
[0] => Track ID
[1] => Name
[2] => Artist
[3] => Album
[4] => Play Count
[5] => Skip Count
)
[1] => List
(
And so on ....
Real example:
List
(
[0] => List
(
[0] => 2349
[1] => The Prime Time of Your Life
[2] => Daft Punk
[3] => Human After All
[4] => 3
[5] => 2
)
[1] => List
(
So, mlist [0] [0] will get the TrackID from song 1, mlist [1] [0] from song 2, etc.
But I'm having huge problems creating a multi-dimensional list. So far i've come up with
List<List<string>> matrix = new List<List<string>>();
But I did not have much progress :(
list c #
CasperT Mar 20 '09 at 8:06 2009-03-20 08:06
source share