jjzjj

XPathEvalute

全部标签

c# - 当可以是 XElement 或 XAttribute 时如何转换 XPathEvalute?

所以我有这段代码:Listprices=(fromiteminxmlDoc.Descendants(shop.DescendantXName)selectnewPriceDetail{Price=GetPrice(item.Element(shop.PriceXPath).Value),GameVersion=GetGameVersion(((IEnumerable)item.XPathEvaluate(shop.TitleXPath)).Cast().First().Value,item.Element(shop.PlatformXPath).Value),Shop=shop,Lin