I have a List which contains all databases names. I have to dispaly the items contained in that list in the Console (using Console.WriteLine()). Ho
List
Console.WriteLine()
I found this easier to understand:
List<string> names = new List<string> { "One", "Two", "Three", "Four", "Five" }; for (int i = 0; i < names.Count; i++) { Console.WriteLine(names[i]); }