摘要: private string SwitchToJson<T>(IList<T> li) where T : class { if (li.Count <= 0) return ""; Type tp = typeof(T); BindingFlags bf = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static;//反射标识 PropertyInfo[] proInfo = tp.GetProperties(bf); 阅读全文
posted @ 2011-03-14 20:20 Lyle Blog 阅读(1917) 评论(2) 推荐(0)