What is the use of XML comments in C#

前端 未结 6 1887
没有蜡笔的小新
没有蜡笔的小新 2020-12-19 11:36

What is the use of XML comments in C# than signal line and multiple line comments.

i.Single line
Eg:
//This is a Single line comment

ii. Multiple line (/* *         


        
6条回答
  •  鱼传尺愫
    2020-12-19 12:19

    From MSDN:

    When you compile with the /doc option, the compiler will search for all XML tags in the source code and create an XML documentation file. To create the final documentation based on the compiler-generated file, you can create a custom tool or use a tool such as Sandcastle.

    http://msdn.microsoft.com/en-us/library/b2s063f7.aspx

提交回复
热议问题