Answers for "c# show a list"

C#
0

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);  
            }  
        }  
Posted by: Guest on February-11-2021

C# Answers by Framework

Browse Popular Code Answers by Language