Following is the syntax for declaring a list in C# :
List NewList = new List();
Now elements can be added in this list using function :
NewList.Add(“Name1”);
NewList.Add(“Name2”);
Following is the syntax for declaring a list in C# :
List NewList = new List();
Now elements can be added in this list using function :
NewList.Add(“Name1”);
NewList.Add(“Name2”);