如何programmaticly从XSD生成.NET类? (像XSD.EXE办)XSD、programmaticly、EXE、NET

2023-09-04 02:17:58 作者:丢了童话忘了梦

我想生成的类XSD.EXE的方式,而不是在 LINQ toxsd方式。

I'd like to generate the classes the xsd.exe way and not the linqtoxsd way.

谢谢, --Ran。

推荐答案

看System.Xml.Serialization.Xml$c$cExporter类。

更新(在约翰·桑德斯didnt打扰进一步阅读)

UPDATE (in case John Saunders didnt bother reading further)

XSD.EXE使用XML codeExporter到   生成XML架构类   定义(XSD)文件。

"Xsd.exe uses XmlCodeExporter to generate classes from XML Schema Definition (XSD) documents."