我想以 xsd.exe 方式而不是 linqtoxsd 方式生成类。
最佳答案
查看System.Xml.Serialization.XmlCodeExporter类。
更新(以防约翰·桑德斯懒得继续阅读)
"Xsd.exe uses XmlCodeExporter to generate classes from XML Schema Definition (XSD) documents."
关于c# - 如何以编程方式从 XSD 生成 .NET 类? (就像 xsd.exe 一样),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1068260/