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