How to add description to functions and function parameters?

后端 未结 5 844
轻奢々
轻奢々 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:48

    Right click a method/member name and choose 'Insert Comment' from the context menu.

    The contents of the XML for the member/method will be displayed in some versions of Visual Studio, inside intellisense tip windows.

        ''' 
        ''' Summary for the method goes here
        ''' 
        ''' Param comments go here
        ''' 
    Private Sub SomeMethod(ByVal value As Decimal)
    

提交回复
热议问题