using SptCommon.Annotations; namespace Core.Helpers; [Injectable] public class UtilityHelper { public List ArrayIntersect(List a, List b) { //a.Intersect(x => b.Contains(x)).ToList(); // gives error Delegate type could not be infered return a.Where(x => b.Contains(x)).ToList(); } }