【发布时间】:2010-01-31 05:18:11
【问题描述】:
我无法思考如何在 linq 中执行此操作。
如何转换:
<mytags>
<tag1>hello</tag1>
<tag2>hello</tag2>
<tag1>MissingTag</tag1>
<tag1>Goodbye</tag1>
<tag2>Goodbye</tag2>
</mytags>
到这里
List<MyObject>
public class MyObject
{
public tag1;
public tag2;
}
【问题讨论】:
标签: c# .net linq linq-to-xml