public static void Main()
int[] FirstArray = { 1, 2, 3, 3, 8, 8, 8, 9, 10 };
int[] SecondArray = { 2, 3, 3, 4, 5, 6, 7, 8 , 8 };
Console.WriteLine("Elements of FirstArray:{ 1, 2, 3,8,9,10 }");
Console.WriteLine("Elements of SecondArray:{ 2, 3, 4,5,6,7 }");
Console.WriteLine("Intersect Result");
int[] Results = FirstArray.Intersect(SecondArray).ToArray();
foreach (int Result in Results)
Console.WriteLine("{0} ", Result);