Cannot implicitly convert type 'System.Linq.IQueryable' to 'int?'

前端 未结 6 1795
梦毁少年i
梦毁少年i 2021-02-06 23:14
var cityList = from country in 
                    doc.Element(\"result\")
                    .Element(\"cities\")
                    .Descendants(\"city\")
select ne         


        
6条回答
  •  离开以前
    2021-02-06 23:41

    IQueryable is not a single int - but a query that can represent a collection.

提交回复
热议问题