DynamicExpresso
DynamicExpresso copied to clipboard
Ability to set the context of the expression
See http://stackoverflow.com/questions/23304321/ability-to-set-the-context-of-the-expression/23308125?noredirect=1#comment35753474_23308125
Fixed by #233 ?
Yes, it's fixed via #233, by setting a variable named "this". Full example:
var target = new Interpreter();
target.SetVariable("this", new { FirstName="Homer", LastName="Simpson"});
target.Eval("FirstName").Dump();