摘要: 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... 阅读全文
posted @ 2012-04-10 11:13 代码哥 阅读(2976) 评论(1) 推荐(0) 编辑