FrankB
12
Q:

c# adding to a list

var list = new List<string>();
list.Add("Hello");
12
//Declaring that its a list
List<string> test = new List<string>(); 
test.Add("Hello")
10
List<string> initialList = new List<string>();
// Put whatever you want in the initial list
List<string> listToAdd = new List<string>();
// Put whatever you want in the second list
initialList.AddRange(listToAdd);
0

New to Communities?

Join the community