Introduction

Problem

You are looking for a complete expression evaluator, but you are not sure which library to try/choose.

Solution

Most free third party library fails at supporting simple expression. If your company want a complete expression evaluator, there is two library offering it:

Comparisons

Features Eval-Expression.NET Roslyn Scripting API
Documentation :star::star::star::star::star::star::star::star::star::star:
Support :star::star::star::star::star::star::star::star:
Flexibility :star::star::star::star::star::star::star::star::star::star:
Easy to Use :star::star::star::star::star::star::star::star:

Reviews

Eval-Expression.NET

Eval-Expression.NET is easier to use than Roslyn by having all common class/type/extension methods already registered. A lot of additional options like string extensions and dynamic LINQ make all dynamic requirement very to use in any scenario.

Roslyn Scripting API

Roslyn is without a doubt more complete than Eval-Expression.NET, after all, it’s the new .NET compiler! It, however, a more heavyweight assembly and no support are available unless you found a bug.

Conclusion

Both choices are excellent.

From one side with Eval-Expression.NET you have an easier and more flexible API to use and from the other side with Roslyn, you get a heavyweight but complete assembly.

As always, to make the right choice is trying both library and use the one you feel the most suited for your project/enterprise.