A way to link to a class,a method, especially a specific code line in C# comment

坚强是说给别人听的谎言 提交于 2019-12-03 13:15:35

Xml comment + sandcastle may be what you need. You can reference specified class or method using

<see cref=".."/>

and reference parameters using

<paramref name=".."/>

However, there is not direct method to reference certain lines of code but you can reference certain #region by using

<code source="$sourcefile$" region="$regionname$"/>

Please refer to: XML Comments Guide Page 20.

Note that the code you reference will be displayed directly in place rather than a link. It is not perfect, but I hope it helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!