Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将对象列表转换为 XElement 或 XMLDocument C#
没有循环
你有没有尝试过:
XElement element = new XElement("yourNewXElement", YourList);