Answer: With the help of Add method,we can add items into List collections:-
We have to import using System.Collections.Generic Namespace.
For Example:-
List<string> lst_courses = new List<string>();
lst_courses.Add("C#");
lst_courses.Add("VB.Net");
Asked In: Many Interviews |
Alert Moderator