C# 文档链接到方法,但仅显示不带参数的方法名称

问题描述 投票:0回答:1

我想显示仅包含方法名称作为文本的链接。有没有办法设置方法链接并更改文本?这就是我所知道的全部:

<see cref="ScrapePatentsByWindows"/>
,当您将鼠标悬停在方法上时,Visual Studio 文档弹出窗口如下所示:

enter image description here

如何删除类名和方法参数,使其只显示

ScrapePatentsByWindows
,如下所示(此图像经过Photoshop处理,这就是我想要实现的目标): enter image description here

c# visual-studio xml-documentation
1个回答
0
投票

只需使用完整的

<see>
语法,而不是缩写形式:

<see cref="ScrapePatentsByWindows">only the method name or any text</see>
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.