using System.Collections.Generic;
public static void Main()
var list = new List<int>() { 1, 2, 3, 4 };
var compiled = Eval.Compile<Func<List<int>, int, List<int>>>("{0}.Where(x => x > {1})");
var rList = compiled(list, greaterThan);
FiddleHelper.WriteTable((IEnumerable<int>)rList);
var compiled = Eval.Compile<Func<List<int>, int, List<int>>>("list.Where(x => x > greaterThan)", "list", "greaterThan");
var rList = compiled(list, greaterThan);
FiddleHelper.WriteTable((IEnumerable<int>)rList);
dynamic expandoObject = new ExpandoObject();
expandoObject.list = list;
expandoObject.greaterThan= greaterThan;
var compiled = Eval.Compile<Func<ExpandoObject, List<int>>>("((List<int>)list).Where(x => x > greaterThan)");
var rList = compiled(expandoObject);
FiddleHelper.WriteTable((IEnumerable<int>)rList);