首页 > 代码库 > linq 对象属性排序

linq 对象属性排序

WSWSVoucher [] wswsv = new WSWSVoucher[4];wswsv= wswsv.OrderBy(s => s.creditAmount).ToArray<WSWSVoucher>();wswsv= wswsv.OrderByDescending(s => s.creditAmount).ToArray<WSWSVoucher>();