摘要:
有一个类,如Student,有学号、数学成绩、语文成绩, 存在List列表中,要将List按数学成绩排序,怎么办呢? List<Student> scores=GetScores(); scores.Sort( (l,r)=>l.MathScore.CompareTo(r.MathScore) ); 阅读全文
posted @ 2019-04-14 22:15
【只争朝夕】
阅读(4533)
评论(0)
推荐(0)

浙公网安备 33010602011771号