摘要: 1、定义 public class EntBase:where T: new() { public List GetListDemo() { var lst = new List(); for (int i = 1; i... 阅读全文
posted @ 2014-05-20 11:10 扯 阅读(381) 评论(0) 推荐(0) 编辑
摘要: var ent = new Ent(); foreach (var item in ent.GetType().GetProperties()) { var v = (DescriptionAttribute[])item... 阅读全文
posted @ 2014-05-20 10:51 扯 阅读(18615) 评论(0) 推荐(0) 编辑