int[] A = new[] { 1, 2, 3, 4, 5 };int[] B = new[] { 2, 4, 9, 10 }; int[] C = A.Intersect(B).ToArray();