zzzprojects / Eval-Expression.NET

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

Could not regard string as IEnumerable<char> #128

Closed ceastld closed 2 years ago

ceastld commented 2 years ago

The expression below will get an error

new[]{"abc","def"}.SelectMany(x => x);

Error:

Oops! No applicable member has been found for the expression. The error occurred for expression "." at position 18 near ".SelectMany(x => x);".

And this is Ok

new[]{"abc","def"}.SelectMany(x => x as IEnumerable<char>);
Z.Expressions.Eval, Version=4.0.79.0
JonathanMagnan commented 2 years ago

Hello @ceastld ,

Thank you for reporting.

I will ask my developer to look if we can support this kind of scenario.

Best Regards,

Jon

JonathanMagnan commented 2 years ago

Hello @ceastld ,

The v4.0.82 has been released.

Could you confirm for us that everything works fine with the latest version?

Best Regards,

Jon

ceastld commented 2 years ago

Hi @JonathanMagnan Thanks for fix this issue. And I test it, everything works fine

JonathanMagnan commented 2 years ago

Hello again!

Great to hear everything is working as expected.

Don't hesitate to contact us if you need more information.

Best regards,

Jon