merge two lists together 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# merging two arrays
T[] array1 = getOneArray();
T[] array2 = getAnotherArray();
T[] newArray = new T[array1.Length + array2.Length];
Array.Copy(array1, newArray, array1.Length);
Array.Copy(array2, 0, newArray, array1.Length, array2.Length);