首页 > 技术文章 > List数据集动态排序

ZC_Mo-Blog 2015-08-07 16:56 原文

List<Type> datas = new List<Type>;

datas = datas.OrderBy(c => c.GetType().GetProperty(DataPropertyName).GetValue(c, null)).ToList();

推荐阅读