Hello,
As mentioned in the comment above by PIEBALDconsult you can use a HashSet.
What I would suggest is using the Overlaps() method that will return a boolean indicating the presence of identical elements.
HashSet<int> set = new HashSet<int>(array1);
bool a = set.Overlaps(array2);
Thanks.