append to arrays c# code example
Example 1: append 2 arrays c#
var z = new int[x.Length + y.Length];
x.CopyTo(z, 0);
y.CopyTo(z, x.Length);
Example 2: c# how to append in array
List<string> ls = new List<string>();
ls.Add("Hello");
var z = new int[x.Length + y.Length];
x.CopyTo(z, 0);
y.CopyTo(z, x.Length);
List<string> ls = new List<string>();
ls.Add("Hello");