Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<List<string>> matrix = new List<List<string>>();
- List<List<string>> matrix = new List<List<string>>();
- List<List<string>> matrix = new List<List<string>>();
- List<string> track = new List<string>();
- track.Add("2349");
- track.Add("The Prime Time of Your Life");
- // etc
- matrix.Add(track);
- public class Track {
- public int TrackID { get; set; }
- public string Name { get; set; }
- public string Artist { get; set; }
- public string Album { get; set; }
- public int PlayCount { get; set; }
- public int SkipCount { get; set; }
- }
- var trackList = new List<Track>();
- trackList.add( new Track {
- TrackID = 1234,
- Name = "I'm Gonna Be (500 Miles)",
- Artist = "The Proclaimers",
- Album = "Finest",
- PlayCount = 10,
- SkipCount = 1
- });
- Track firstTrack = trackList[0];
- caspert,
- Create a new class:
- public class Track
- {
- public Track()
- {
- }
- public String TrackName { get; set;}
- public String Artist { get; set; }
- }
- List<Track> tracks = new List<Track>();
- Track tempTrack = new Track();
- tempTrack.TrackName = "Consuming Fire";
- tempTrack.Artist = "Tim Hughes";
- tracks.Add(tempTracK);
Add Comment
Please, Sign In to add comment