我可以使用哪些标记将代码示例放入 .NET ///
XML 注释中?
最佳答案
尝试使用 <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 得到上面的例子.
关于.net - 如何将代码示例放入 .NET XML 注释中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1268722/