var query = from k in xDoc.Descendants("product")
select
new
{
KategoriKod =Convert.ToString( k.Element("cat1").Value) + Convert.ToString( k.Element("cat2").Value),
};
我想通过一个变量获取 xml 文件的两个元素。但我收到此错误
“‘字符串’不包含‘值’的定义”
有人帮忙吗?