how to read from a list in c# code example
Example: c# read list
static void Main(string[] args)
{
// Create a list of strings
List<string> AuthorList = new List<string>();
AuthorList.Add("Mahesh Chand");
AuthorList.Add("Praveen Kumar");
AuthorList.Add("Raj Kumar");
AuthorList.Add("Nipun Tomar");
AuthorList.Add("Dinesh Beniwal");
// Read all data
Console.WriteLine("Authors List");
foreach (var author in AuthorList)
{
Console.WriteLine(author);
}
}