using System.Collections.Generic;
using System.Collections;
public static void Main()
var dict = new Dictionary<string, int>();
var dict2 = new Dictionary<string, Person>();
dict2.Add("1", new Person(){Name = "Ankita", Age = 32});
dict2.Add("2", new Person(){Name = "Pragya", Age = 31});
public static void Test<T>(Dictionary<string, T> currentObject)
var output = Eval.Execute("currentObject.Keys.Where(x => x.Equals(\"b\")).ToList()", new { currentObject });
FiddleHelper.Dump(output);
public static void Test2(Object currentObject)
var output2 = (currentObject as IEnumerable).Execute("Where(x => x.Key.Equals(\"1\")).ToList().First()");
FiddleHelper.Dump(output2);
public String Name {get; set;}
public Int32 Age {get; set;}