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

Bug: typeof namespace full name #9

Closed vzsoft closed 7 years ago

vzsoft commented 7 years ago

Hi

i got error this code:

           var context = new EvalContext();
            context.RegisterType(typeof(System.Collections.Generic.Dictionary<, >));
            context.RegisterType(typeof(System.Collections.Generic.List<>));

            context.RegisterType(typeof(string));

            var test2 = context.Compile<Func<System.Collections.Generic.List<System.String>, object>>(@"
                var lst = typeof(System.Collections.Generic.List<System.Collections.Generic.List<System.String>>);
                return null;", "input");
JonathanMagnan commented 7 years ago

Hello @vzsoft ,

Thank you for reporting this issue. We successfully reproduced it and found out what's causing this issue.

We are currently investigating how to handle this case without impacting the code. More information will be very soon available.

Best Regards,

Jonathan

JonathanMagnan commented 7 years ago

Hello @vzsoft ,

Sorry for the long waiting.

The v2.1.3 has been released: https://github.com/zzzprojects/Eval-Expression.NET/releases/tag/v2.1.3

Best Regards,

Jonathan

vzsoft commented 7 years ago

Thank you