Closed alser closed 1 week ago
Thank you for the bug report. I will try to fix it in the future. As usual any help is appreciated.
It could be related to #325 .
Yes, the root cause is the same as #325. I'll open a PR to revert the change made in #296
Closing this issue as duplicate of #325
DynamicExpresso.Core 2.17.1
Issue is reproduced in following default console template:
Here we have parameter
SampleParameter
which is a dynamic object. Its dynamic propertyValue
returns some other non-dynamic objectSampleClass
, which in turn has method namedCount()
.Trying to parse expression like
"p.Value.Count()"
results in exception:Count()
renamed to something else (likeCount2()
), then all is ok, expressionp.Value.Count2()
successfully returns our magic number.DynamicExpresso.Core 2.16.1
no issues occur withCount()
method.It may have something to do with commit 2696232a8dbe1c52371d0a59602e6c9e60ddd781 where condition
"expr is DynamicExpression"
is added.