如何添加第二个项目?我也想通过goalScored元素订购.
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);
但是似乎没有插入到这个查询中.
var theteams = (from teams in xdoc.Descendants("team") orderby (int)teams.Element("points") descending, OtherField1, OtherField2 select new Team(teams.Element("teamID").Value, (int)teams.Element("points"))).Take(3);