c# linq merge two arrays unique values code example
Example: combine array c# with unique value
using System;
using System.Linq;
public class Program
{
public static void Main()
{
string[] array1 = { "Ice", "Box", "Fox", "Glass", "Dog" };
string[] array2 = { "Pig", "Box", "Cra", "Ice" };
var result = array1.Union(array2).ToArray();
Array.ForEach(result, x => Console.WriteLine(x));
}
}