union two integer arrays

Saratvaddilli
Posted by Saratvaddilli under LINQ category on | Points: 40 | Views : 1156
int[] array1= { 1, 2, 3 };
int[] array2= { 4, 5,6 };
var res = array1.Union(array2);
foreach (int newarray in res)
{
Response.WriteLine(newarray );
}

Comments or Responses

Login to post response