List数据集动态排序

时间:2023-03-09 00:26:55
List数据集动态排序

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

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

相关文章