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
-
98f3b8b#r33569909
Beta Was this translation helpful? Give feedback.
All reactions