Replies: 1 comment
-
In my case, this was caused by a typo: Map(m => m).Name("Whatever"); // I accidentally deleted the property accessor on the second 'm' I suggest the code be: var expr = ((LambdaExpression)exp).Body.ToString(); // somewhat risky, if this fails, the program blows up with confusing exception. Question is, can this fail?
throw new InvalidOperationException( $"No members were found in expression '{expr}' for class {typeof(TClass)}." ); |
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.
-
98f3b8b#r33569909
Beta Was this translation helpful? Give feedback.
All reactions