【发布时间】:2010-08-04 17:16:28
【问题描述】:
我有两个已合并的列表。在按 linq 语句排序后,我想从该完整列表中选择前 5 个。我正在考虑使用 linq 语句从列表中选择前 5 个。
var ListSort = from list in NewList
orderby list.EntryDate
select list;//Tried to select the top 5 from here
关于如何做到这一点的任何其他建议?
【问题讨论】:
标签: c# .net asp.net-mvc linq