标签:
获取变量名字符串:
public static string GetVariableName<T>(Expression<Func<T>> memberExpression) { var body = memberExpression.Body as MemberExpression; return body.Member.Name; }
根据变量获取变量名
原文地址:http://www.cnblogs.com/xpvincent/p/4204257.html