C# Eval Expression Overview
What's C# Eval Expression library?
Our library is a lightweight expression evaluator that supports nearly everything. You can evaluate or compile almost all possible C# expressions including:
- Anonymous Type
- Extension Method
- Lambda Expression
- LINQ
- Method Overloads
It supports:
- NET40+
- NET Standard 2.0+
It's easy to use, and easy to customize.
int result = Eval.Execute<int>("X + Y", new { X = 1, Y = 2}); int result = Eval.Execute<int>(@" var list = new List<int>() { 1, 2, 3, 4, 5 }; var filter = list.Where(x => x < 4); return filter.Sum(x => x);");
Installing
Download the NuGet Package
Requirements
.NET Framework Version
- .NET Framework 4.0 or greater
- .NET Standard 2.0+
Is it that simple?
Yes,
You add a valid expression and execute it.
That's why people fall in love so quickly with our library.
Who use it?
Already hundreds of companies of all sizes and kinds use it:
- From start-up company with one developer
- To fortune 100 companies with hundreds of developers
Are you still not using it? Give it one try, and you will understand why they choose our library.