摘要:
public class TypeInfoHelper { public static string GetClassPropertiesName<TClass, TResult>(Expression<Func<TClass, TResult>> propery) { var body = propery.Body.ToString(); return body.Substring(body.LastIndexOf(".") + 1); } }调用如下: public class MyCla... 阅读全文