想用LINQ 操作一个XML,只选出XML文档中不相同的记录例如
想用LINQ 操作一个XML,只选出XML文档中不相同的记录例如
两条SN值为8的记录,只选择其中一条记录
<ImageRecords>
<SN>1</SN>
</ImageRecords>
<ImageRecords>
<SN>8</SN>
</ImageRecords>
<ImageRecords>
<SN>8</SN>
</ImageRecords>
<ImageRecords>
<SN>2</SN>
</ImageRecords>
应该怎么写呢,请高手给个思路,有代码更好,谢谢了