You just need Enumerable.Intersect as shown below:
if (list.Intersect(list2).Any()) { Console.Write("At least one of the items in List2 exists in list1)" }
This method creates multiple intersections of two sequences using the default equalizer to compare values. It returns a sequence containing elements that form the set of intersections of two sequences. The Enumerable.Any () method determines whether the sequence contains any elements.
source share