Evaluate, Compile and Execute C# Dynamic Code and Expression at Runtime

* PRO Version unlocked for the current month

// From simple expression...
int result = Eval.Execute<int>("X + Y", new { X = 1, Y = 2})

// To complex code.
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);");
// Support full C# Syntax including:
// - Anonymous Type
// - Extension Methods
// - Generic Type
Try it online

Amazing performance, outstanding support!

 Read More Success Story

Share your experience. We love to hear from you: info@zzzprojects.com

Evaluate dynamic arithmetic/math expression

Use a complete and fast compiler which support nearly everything.

  • Operator Precedence
  • Parenthesis
  • Pow Operator (2^^3 = 8)
// Anonymous Type
int result = Eval.Execute<int>("X + Y", new { X = 1, Y = 2} );

// Class Member
dynamic expandoObject = new ExpandoObject();
expandoObject.X = 1;
expandoObject.Y = 2;
int result = Eval.Execute<int>("X + Y", expandoObject);

// Dictionary Key
var values = new Dictionary<string, object>() { {"X", 1}, {"Y", 2} };
int result = Eval.Execute<int>("X + Y", values);

// Argument Position
int result = Eval.Execute<int>("{0} + {1}", 1, 2);
Try it online

Execute dynamic string code

Improve your applications flexibility by executing code using the same C# Syntax.

  • Evaluate stored formula
  • Perform LINQ operations with string
int result = Eval.Execute<int>(@"
var list = new List<int>() { 1, 2, 3, 4, 5 };
return list.Where(x => x > X).Take(Y).Count();", new { X = 1, Y = 2});
Try it online

Compile fast property getter/setter

Improve your code readability and maintainability with an easy-to-use and easy-to-understand API.

  • Access internal and private property
  • Avoid using slow reflection
  • Avoid making complex lambda expression
var customer = new Customer() { Name = "ZZZ" };

var nameGetter = Eval.Compile<Func<Customer, string>>("x.Name", "x");
var name = nameGetter(customer);
Try it online

 View More Features

Test our Outstanding Support

We usually answer within the next business day, hour, or minutes!

Contact Us

Email our team for any questions. We love to hear from you!



Consult our complete documentation to help you getting started.



Visit the forum to report issues, ask questions, and propose new features.


Open Source

Access the source of the library you're using to understand better its logic.



Use a well-coded and well-tested compiler to evaluate and execute your dynamic code and expressions.

  • Add flexibility to your application
  • Increase readability over reflection/expression
  • Reduce development cost and time with a working library

C# developer has waited so long to get an Eval Function. It's now possible and easy to evaluate code dynamically.

Want to evaluate C# code directly in SQL Server? Eval-SQL.NET

Every month, a FREE trial of the PRO version is available to let you evaluate all its features without limitations.

Maximum Characters Unlimited
Commercial License
Support & Upgrades (1 year)

* Contact us (sales@zzzprojects.com) for Quote, payment method alternative, or major bundle discount when purchasing more than one product (or you already bought one).