using System.Collections.Generic;
using System.Diagnostics;
public static void Main()
var list = new List<int>() { 1, 2, 3, 4 };
var expression = "list.Where(x => x > i)";
var compiled = expression.Compile<Func<List<int>, int, List<int>>>("list", "i");
for(int i = 0; i < 4; i++)
var rList = compiled(list, i);
FiddleHelper.WriteTable("i=" + i, rList);