如何在Visual Basic的XML注释中引用构造函数?

时间:2019-07-09 20:27:27

标签: vb.net xml-comments

假设我有以下代码:

Public Sub New(num As Integer)

End Sub

''' <summary>
''' <see cref=""/>
''' </summary>
Public Sub DoSomething()

End Sub

如何在cref=""的引号之间加上引用New(Integer)

1 个答案:

答案 0 :(得分:3)

New(Integer)就足够了:

''' <summary>
''' <see cref="New(Integer)">
''' </summary>
Public Sub DoSomething()

End Sub

如果将鼠标悬停在它上面,您将看到Visual Studio正确解释了它:

screenshot