We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If trying to evaluate foo.a, I have the _evaluatevariable call bask as follows:
foo.a
_evaluatevariable
private void _evaluator_EvaluateVariable(object? sender, VariableEvaluationEventArg e) { if (e.Name == "foo") { e.Value = new Dictionary<string, object>() { { "a", 1 }, }; } }
The library returns an error that the Dictionary doesn't contain a function a. It would be better if the parser could handle dictionaries correctly.
a
Looking as the code, I think its this line here, it seems to work if I remove the obj is IDynamicMetaObjectProvider check. I assume this is something to do with ExpendoObjects? https://github.com/codingseb/ExpressionEvaluator/blob/master/CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs#L2307
obj is IDynamicMetaObjectProvider
Im using .net6 btw.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If trying to evaluate
foo.a
, I have the_evaluatevariable
call bask as follows:The library returns an error that the Dictionary doesn't contain a function
a
. It would be better if the parser could handle dictionaries correctly.Looking as the code, I think its this line here, it seems to work if I remove the
obj is IDynamicMetaObjectProvider
check. I assume this is something to do with ExpendoObjects?https://github.com/codingseb/ExpressionEvaluator/blob/master/CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs#L2307
Im using .net6 btw.
The text was updated successfully, but these errors were encountered: