Computer Science, asked by AyanShil7833, 11 months ago

How to add string values to a C# list?

Answers

Answered by simrannehra936
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