Domanda

Possible Duplicate:
What are the virtues of using XML comments in .NET?

/// <summary>
///  Set error message for multilingual language.
/// </summary>

What is the use of XML Comments like the above in C# and when do i use them.. XML Comments come with 3 Quotes , Is there a block commenting process for XML Comments like /* ... */

È stato utile?

Soluzione

XML comments are a structured way to document the types and members within your code. If you use this, the compiler will generate XML documentation for your types and members, which can then be processed via a tool like Sandcastle to build help automatically. The information in the generated XML files is also used by Visual Studio (to provide intellisense).

You can use multiline delimiters via:

/** <summary>
Your info here
*/

Although the tooling doesn't generate it in this form.

For details, see XML Documentation Comments on MSDN.

Altri suggerimenti

Its a way to document your code. here is a reference

http://msdn.microsoft.com/en-us/magazine/dd722812.aspx

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top