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

No applicable member? #113

Closed cesaryuan closed 3 years ago

cesaryuan commented 3 years ago

Execute the following statement by EvalContext throws an error, could you please check it out?

(new List<string>() as IEnumerable<string>).FirstOrDefault()

Error Message throwed

Oops! No applicable member has been found for the expression. The error occurred for expression "." at position 43 near ".FirstOrDefault()".

Incorrect number of arguments supplied for lambda invocation

JonathanMagnan commented 3 years ago

Hello @cesaryuan ,

Thank you for reporting, we will look at it.

Best Regards,

Jon

JonathanMagnan commented 3 years ago

Hello @cesaryuan ,

The v4.0.51 has been released.

Could you test it and let us know if we fixed it successfully?

cesaryuan commented 3 years ago

Thank you so much! It has worked!