///<评论></评论>在Visual Studio中

What is the purpose of ///<comment> </comment> in Visual Studio

本文关键字:gt 评论 lt Studio Visual      更新时间:2023-10-16

我在网上搜索了一下,没有发现解释这个注释块用法的结果。因此,我希望有人能向我解释这种评论风格背后的原因。

///<comment> Text goes here. </comment>

它们是XML文档注释。

http://msdn.microsoft.com/en-us/library/b2s063f7.aspx

这是软件聚合器和Visual Studio自身经常使用的XML语法,用于生成帮助/doc文件。例如Sandcastle

它们也被doxygen识别为文档注释:
http://www.doxygen.nl/manual/docblocks.html

编辑1:更正
开头的"///"由doxygen识别,而不是由</comment>识别。