zzzprojects / Eval-Expression.NET

C# Eval Expression | Evaluate, Compile, and Execute C# code and expression at runtime.
https://eval-expression.net/
Other
449 stars 86 forks source link

Compile fail #114

Closed samchenws closed 3 years ago

samchenws commented 3 years ago

Eval.Compile<Func<string, string>>(code, param) When param="" ,throw Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'startIndex')

JonathanMagnan commented 3 years ago

Hello @samchenws ,

Thank you for reporting.

The v4.0.52 has been released

The error message has been improved indicating that a variable name cannot be empty.

Best Regards,

Jon