// /// /// ///return string public static string GetVarName(this T var_name, System.Linq.Expressions.Expression > exp) { return ((System.Linq.Expressions.MemberExpression)exp.Body).Member.Name; }
原文地址:http://www.cnblogs.com/gongy/p/lm-2015-04-03.html