How to add string values to a C# list?
Answers
Answered by
0
The following code snippet creates a List and adds items to it by using the Add method.
// Create a list.
List<string> AuthorList = new List<string>();
// Add items using Add method.
AuthorList.Add("Mahesh Chand");
AuthorList.Add("Praveen Kumar");
AuthorList.Add("Raj Kumar");
AuthorList.Add("Nipun To
Similar questions