【发布时间】:2011-01-13 18:28:12
【问题描述】:
我正在使用xsd.exe 从一组 xsd 文件中生成一个 C# 类。 xsd 文件使用<xsd:documentation> 标记来包含有用的描述。示例:
<xsd:complexType name="AddressType">
<xsd:annotation>
<xsd:documentation>A formatted or free form address and its intended use.</xsd:documentation>
</xsd:annotation>
不幸的是,所有这些都在生成的 C# 类中丢失了。有趣的是,每个类都附有一个空的 remarks 文档标签。
/// <remarks/>
如何在生成的 C# 类中包含此文档(在标签中或文档标签中)?
【问题讨论】:
-
这将是一个有用的功能,让这个 XSD.exe 根据 XSD
/ 生成对象摘要
标签: c# .net documentation xsd xml-documentation