【发布时间】:2013-01-14 04:44:41
【问题描述】:
我可以在 Visual Basic 中做到这一点,我如何在 C# 中做到这一点
Dim xmlTree As XElement = <Employees></Employees>
【问题讨论】:
-
C#(至少 4 及以下)不 支持 XML 文字。
new XElement("Employees")可以在这里工作,但 XElement 也可以解析更大的 [逐字] 文本。