I\'m very new to c# and have a question, how do I print list of string arrays? I can do it from string[] using Console.WriteLine, but if I do that for list with forEach it j
In a string array to get the index you do it:
string[] names = new string[3] { "Matt", "Joanne", "Robert" }; int counter = 0; foreach(var name in names.ToList()) { Console.WriteLine(counter.ToString() + ":-" + name); counter++; }