gpt4 book ai didi

c# - 如何以编程方式从 XSD 生成 .NET 类? (就像 xsd.exe 一样)

转载 作者:数据小太阳 更新时间:2023-10-29 01:59:44 25 4
gpt4 key购买 nike

我想以 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com