add 2 lists c# code example
Example 1: combine two lists c#
List<string> a = new List<string>();
List<string> b = new List<string>();
a.AddRange(b);
Example 2: c# add multiple items to list
List<Person> listofPersons = new List<Person>();
listofPersons.AddRange(new List<Person>
{
new Person("John1", "Doe" ),
new Person("John2", "Doe" ),
new Person("John3", "Doe" ),
});