Open tcpmod opened 2 years ago
Hello @tcpmod ,
Thank you for reporting, we will look at this.
The Execute
method can work as we know the type of the Addresses
(Even if we compile the method, we can still have access to the value of the parameter).
The Compile
method currently doesn't work as we probably have no idea what is the current type. Since that's an ExpandoObject
, the type could be anything.
I will assign my developer to look at what can be done here.
Best Regards,
Jon
Many thanks @JonathanMagnan for the update, yes that makes sense. Kind regards Mike.
Hello, When I use execute against the following expression string on the expandoObject it works nicely, returns bool (true).
However when I compile the expression and try to invoke the Func<ExpandObject,bool> it throws with the exception below.
Would be grateful to know if compile and invoke would be expected to work in this scenario, considering Execute does.
Many thanks in advance. (example against .net 6.0)
exception thrown