Hello I've been searching around for the best way to crate a "2 dimensional" List. And came across an example given in: Are 2 dimensional Lists possible in c#?
But I'm not getting the sorta output I were hoping for. Running below code my goal is to proper Console.Writeline( Stuff in the track list ), but all the console is writing is HelloWorld.Track
namespace HelloWorld
{
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; }
// List<Track> trackList = new List<Track>();
public void add()
{
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];
Console.WriteLine(firstTrack);
Console.ReadKey();
}
}
}
Also what would be the termology name for such a case? Searching for c# track on google just suggest guitar videos.