This post will discuss how to find common items across multiple lists in C#.

1. Using Enumerable.Intersect() Method

The standard solution to find the set intersection of two sequences is using the Enumerable.Intersect method. It uses the default equality comparer or the specified IEqualityComparer<T> to compare values. It is available in LINQ and can be used as follows:

Download  Run Code

2. Using List<T>.FindAll() Method

The List<T>.FindAll() method retrieves all the elements that match the conditions defined by the specified predicate. It can be used as follows to find the common items across two lists.

Download  Run Code

That’s all about finding common items across multiple lists in C#.