Replies: 1 comment
-
No, because you might use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
we create a wrong mapping like this:
AssertConfigurationIsValid
will work without any problems, but if you use the mapping, you will get the following error:The reason is that the ProjectBuilder will cast it to "NewExpression" and its not a "NewExpression".
Normally its easy to check the lambda (like x.Body.NodeType need to be ExpressionType.New). Is it possible to check it on "AssertConfigurationIsValid"?
Here is the full example:
https://gist.github.com/r-ising/ef54da6ba4db8264550095a6be90c7e0
Beta Was this translation helpful? Give feedback.
All reactions