linq 对象属性排序

WSWSVoucher [] wswsv = new WSWSVoucher[4];

wswsv= wswsv.OrderBy(s => s.creditAmount).ToArray<WSWSVoucher>();

wswsv= wswsv.OrderByDescending(s => s.creditAmount).ToArray<WSWSVoucher>();


原文地址:https://www.cnblogs.com/liang-ling/p/3804303.html