文档标签的值吗?-6ren"> 文档标签的值吗?-在c#中使用标签时是否可以更改显示的字符串?我想做这样的事情: /// /// Do some magic on the provided text. /// public void SomeMe-6ren">
gpt4 book ai didi

c# - 我可以替换 文档标签的值吗?

转载 作者:行者123 更新时间:2023-11-30 12:38:30 24 4
gpt4 key购买 nike

在c#中使用标签时是否可以更改显示的字符串?我想做这样的事情:

/// <summary>
/// Do some magic on the <see cref="String">provided text</see>.
/// </summary>
public void SomeMethod(String param)
{
// Whatever
}

让开发者看到

Do some magic on the provided text

但点击它时将能够重定向到 String 类。

这是一张显示我的问题的图片:

enter image description here

最佳答案

好吧,目前这是不可能的,因为它没有在 documentation 中描述。但此功能 supported in the past .

我在 C# Language Design repository over at GitHub 创建了一个提案并且可以找到类似功能的建议 here .希望将来能得到支持!

关于c# - 我可以替换 <see cref =""> 文档标签的值吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51781968/

24 4 0