Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static string GetPropertyName(LambdaExpression expression)
- {
- if (null == expression) return null;
- //if (expression.Body
- string rhs = expression.Body.ToString();
- int dot = rhs.IndexOf('.');
- var result = (dot != -1) ? rhs.Substring(dot + 1) : null;
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment