【发布时间】:2009-08-12 21:03:09
【问题描述】:
我可以使用哪些标签将代码示例放入 .NET /// XML cmets?
【问题讨论】:
标签: .net xml documentation comments
我可以使用哪些标签将代码示例放入 .NET /// XML cmets?
【问题讨论】:
标签: .net xml documentation comments
尝试使用<example> 标签。
/// <example>
/// <code>
/// // create the class that does translations
/// GiveHelpTransforms ght = new GiveHelpTransforms();
/// // have it load our XML into the SourceXML property
/// ght.LoadXMLFromFile(
/// "E:\\Inetpub\\wwwroot\\GiveHelp\\GiveHelpDoc.xml");
/// </code>
/// </example>
我从here得到了上面的例子。
【讨论】:
您可以使用<example> 和<code> 标签。
【讨论】: