lamda with generic collection. having the error: Unexpected end.

Oct 1, 2013 at 2:05 AM
Edited Oct 1, 2013 at 3:00 AM
having the error: Unexpected end.

how do i do like the following:

using Simpro.Expr;

ExprParser ep = new ExprParser();
LambdaExpression lambda = ep.Parse("(List<Person> p) => p.Name==\"John\"");
var personList = new List<Person>() { new Person()
                {
                    Name = "John"
                },
            new Person()
                {
                    Name = "Bob"
                }};

bool result = (bool) ep.Run(lambda, personList);