Evaluating "new DateTime(2022,1,20)" does not work unless OptionInlineNamespacesEvaluationActive is turned on
See original GitHub issueStill using this fantastic library and great to see it progresses! I have made a huge version jump from 1.4.12.0 to current 1.4.35.0. However one of my tests does not pass anymore, so I have fiddled around.
When evaluating this expression:
new DateTime(2022,1,20)
the result is correctly evaluated with OptionInlineNamespacesEvaluationActive=true
.
However when OptionInlineNamespacesEvaluationActive=false
(which was my default setting), an error is raised as follows:
Type or class DateTime is unknown
The old version could successfully evaluate this expression regardless of OptionInlineNamespacesEvaluationActive setting. Maybe it is on purpose in which case I’m fine with turning the option on. I was just hesitating with the possible performance and security implications.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Found the donate button, never mind!
Can be useful.
I see that it is an option so normally it should not break compatibility. Just some questions : Do you have some tests that come with ? Did you try it with char evaluation that use also singlequote. how do you manage potential conflicts ? You just always use the option
evaluator.OptionCharEvaluationActive = false;
whenevaluator.OptionSingleQuotedStringEvaluationActive= true;
or you can use both together ?We just should add some documentation on it.