Intersect two arrays

Haim Evgi picture Haim Evgi · Nov 22, 2010 · Viewed 23.9k times · Source

How can I find the intersecttion between 2 arrays in C#, in a fast way?

Answer

Brian Rasmussen picture Brian Rasmussen · Nov 22, 2010

There's the Intersect extension method on Enumerable. It works on any IEnumerable<T> including arrays.