简体   繁体   English

使用 XSD.exe 从架构文件生成受保护的类

[英]Generating protected classes with XSD.exe from schema file

I'm currently using XSD.exe to generate classes for my xsd schema file using the following command:我目前正在使用 XSD.exe 使用以下命令为我的 xsd 架构文件生成类:

xsd.exe MySchema.xsd /classes /namespace:MyNamespace

I'd like to be able to have the tool output internal classes instead of the public classes is creates by default.我希望能够拥有工具 output 内部类而不是默认创建的公共类。 Is this possible?这可能吗?

Try to use xsd2code instead, you can tune it as you wish.尝试使用xsd2code代替,您可以根据需要对其进行调整。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM