Tag Archives | linq

Building Expression Evaluator with Expression Trees in C# – Part 2


In previous post I showed how to build a simple expression evaluator using expression trees. Although it works fine it has some drawbacks:

  • It does not support parentheses.
  • It does not support variables.
  • In some cases the result can be wrong as the parser is not using left to right parsing.
  • It is compiling delegates for every expression which results in slower execution.

To solve these issues we will use a different algorithm and deal with all points except variable support.

Continue Reading →

Spread the word...Tweet about this on TwitterShare on Google+Share on RedditShare on FacebookEmail this to someone