using System.Collections.Generic;
public static void Main()
var list = new List<int>() { 1, 2, 3, 4 };
var rList = Eval.Execute("list.Where(x => x > greaterThan)", new { list, greaterThan });
FiddleHelper.WriteTable((IEnumerable<int>)rList);
var rList = Eval.Execute("listName.Where(x => x > greaterThanName)", new { listName = list, greaterThanName = greaterThan });
FiddleHelper.WriteTable((IEnumerable<int>)rList);
var rList = Eval.Execute("Item1.Where(x => x > Item2)", new Tuple<List<int>, int>(list, greaterThan));
FiddleHelper.WriteTable((IEnumerable<int>)rList);
var dictionary = new Dictionary<string, object>();
dictionary.Add("list", list);
dictionary.Add("greaterThan", greaterThan);
var rList = Eval.Execute("list.Where(x => x > greaterThan)", dictionary);
FiddleHelper.WriteTable((IEnumerable<int>)rList);
dynamic expandoObject = new ExpandoObject();
expandoObject.list = list;
expandoObject.greaterThan= greaterThan;
var rList = Eval.Execute("list.Where(x => x > greaterThan)", expandoObject);
FiddleHelper.WriteTable((IEnumerable<int>)rList);
var rList = Eval.Execute("{0}.Where(x => x > {1})", list, greaterThan);
FiddleHelper.WriteTable((IEnumerable<int>)rList);