Given 2 int arrays e.g, foo and bar, what\'s the most efficient way to check that the array bar contains at least one item that foo contains. should re
foo
bar
Using LINQ:
array1.Intersect(array2).Any()
Note: Using Any() assures that the intersection algorithm stops when the first equal object is found.
Any()