4
如何添加第二個項目,以此命令呢? 我也想通過goalScored元素來訂購。在這個linq代碼多次orderby
var theteams =
(from teams in xdoc.Descendants("team")
orderby (int)teams.Element("points") descending
select
new Team(teams.Element("teamID").Value,
(int)teams.Element("points"))
).Take(3);
但是thenby似乎沒有插入此查詢。
啊可靠的逗號。 – 2009-01-31 21:33:46