Check out example codes for "c list add element". It will help you in understanding the concepts better.

Code Example 1

// Create a list  
List<string> AuthorList = new List<string>();  
  
// Add items using Add method   
AuthorList.Add("Mahesh Chand");

Learn ReactJs, React Native from akashmittal.com