dynamicexpresso / DynamicExpresso

C# expressions interpreter

Home Page:http://dynamic-expresso.azurewebsites.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to call a method extension

davideicardi opened this issue · comments

It should be possible to write:

        var x = new int[] { 10, 30, 4 };

        var target = new Interpreter()
                                .Reference(typeof(System.Linq.Enumerable))
                                .SetVariable("x", x);

        Assert.AreEqual(x.Count(), target.Eval("x.Count()"));