Linq is your friend. You can re-write all that code in 1 line: peeps.OrderBy(x => x.Age).ThenBy(x => x.LastName);.
確定! 回上一頁