namespace SPTarkov.Server.Core.Extensions { public static class UtilityExtensions { public static List IntersectWith(this List first, List second) { //a.Intersect(x => b.Contains(x)).ToList(); // gives error Delegate type could not be inferred return first.Where(second.Contains).ToList(); } } }