using System.Collections.Generic;
using System.Data.Entity;
using System.Linq.Dynamic.Core;
public static void Main()
var queryable = new List<bool> { true }.AsQueryable();
var list1 = new List<string> { "User3", "User4" };
var list2 = new List<string> { "User3", "User6", "User7" };
var result = queryable.AsQueryable().Select("@0.Intersect(@1).ToList()", list1, list2).ToDynamicArray<List<string>>();
Console.WriteLine(string.Join(",", result[0]));