相关疑难解决方法(0)

这个linq代码中有多个orderby

如何添加第二个项目?我也想通过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);
Run Code Online (Sandbox Code Playgroud)

但是似乎没有插入到这个查询中.

.net c# linq linq-to-xml

4
推荐指数
1
解决办法
4099
查看次数

标签 统计

.net ×1

c# ×1

linq ×1

linq-to-xml ×1