How to add description to functions and function parameters?

后端 未结 5 843
轻奢々
轻奢々 2021-02-03 18:23

I\'m writing a VB.NET function with a ton of overloads. I\'ve seen that most .NET functions have parameter descriptions in IntelliSense. For example, when typing in String

5条回答
  •  生来不讨喜
    2021-02-03 18:55

    All you have to do is key three apostrophes on the line before your function. .NET will add the rest of the code for you. Insert the text you want displayed in the intellisense in the tag.

    ''' 
    ''' Returns the name of the code.
    ''' 
    Function GetName() As String
        Return "Something"
    End Function
    

提交回复
热议问题