How to cast XPathEvalute when it can be XElement or XAttribute?

前端 未结 4 1893
自闭症患者
自闭症患者 2021-02-20 06:29

So I have this code:

List prices =
                (from item in xmlDoc.Descendants(shop.DescendantXName)
                 select new PriceDet         


        
4条回答
提交回复
热议问题