-
-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown identifier IDictionary #264
Comments
Can you try instead with this code
? And configuring interpreter with:
If still doesn't work can you try to reproduce the bug with an unit test similar to the one that we already have in the source code? |
For generics, the reference type must be the generic type definition: interpreter.Reference(typeof(System.Collections.Generic.IDictionary<,>)); |
I've opened a PR to throw an exception when trying to register a generic type that's not a type definition. |
Thank you @davideicardi & @metoule, a combination of them both has worked. For reference, the working solution was:
|
I am trying to get dynamic expresso to interpret this line of code:
When it executes I get the following exception Unknown identifier 'IDictionary' (at index 3).
I am testing for a "<" at the start and then replacing all instances of the "<" (excuse the terrible key name - out of my control that one!).
I have tried adding
typeof(System.Collections.Generic.IDictionary<string, object>)
as a reference to the interpreter object, but no joy.The full code:
I'm sure I'm missing something simple.
The text was updated successfully, but these errors were encountered: