111,126
社区成员
发帖
与我相关
我的任务
分享System.Collections.ArrayList arrList = new System.Collections.ArrayList();
//省略添加数据的步骤。
// ...
// 转换成数组
Item[] items = (Item[])(arrList.ToArray(typeof(Item)));
// 然后再使用Linq排序
var sorted = from item in items orderby item.Id ascending,item.Type descending select item;