How to add description to functions and function parameters?

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

    Use xml comments. There are some predefined tags that load into intellisense after you compile. and the wonderful thing is, if you place your cursor on the line above your function, then press ''' (triple-single quote, if that makes sense) and enter, it will prefill a bunch of stuff for you. Heres an article:

    Documenting Your Code with XML Comments

提交回复
热议问题