List数据集动态排序

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

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

posted @ 2015-08-07 16:56  Mo  阅读(282)  评论(0编辑  收藏  举报