<Contents>
<Content Book="ABC">
<Item type="New" id="1" File="book1.out"/>
<Item type="Old" id="2" File="book1.out"/>
</Content
</Contents>
が出力 など条件がある場合ブック= "ABC"とID = "1"
これをLINQでワンショットで行う方法結果を評価する。
この私の最初のコード:
var result = (from query in _configDoc.Descendants("Contents").Descendants("Content")
where query.Attribute("Book").Value == "ABC") select query;
おかげ..
とあなたの最初のコードの農産物を何? –