| Start |
|---|
| Simple method annotation Documentation comments are placed directly above the method or class they describe. They begin with three forward slashes Information inside the tags can be used by Visual Studio and other tools to provide services such as IntelliSense: See also Microsoft's list of common documentation tags (opens new window). |
| Generating XML from documentation comments To generate an XML documentation file from documentation comments in the code, use the In Visual Studio 2013/2015, In Project -> Properties -> Build -> Output, check the When you build the project, an XML file will be produced by the compiler with a name corresponding to the project name (e.g. When you use the assembly in another project, make sure that the XML file is in the same directory as the DLL being referenced. This example: Produces this xml on build: |
Method documentation comment with param and returns elements IntelliSense shows you the description for each parameter: Tip: If Intellisense doesn't display in Visual Studio, delete the first bracket or comma and then type it again. |
Interface and class documentation comments Result Interface summary Class summary |
| Referencing another class in documentation The In Visual Studio Intellisense popups such references will also be displayed colored in the text. To reference a generic class, use something similar to the following: RemarksSome times you need to create extended text documentation from you xml comments. Unfortunatly there is no standard way for it. But there are some separate projects that you can use for this case: |
Read Article
https://develop.horje.com/learn/1434/reference