Wednesday 25 September 2013

XML documentation comments in C#?

Ques:-XML documentation comments in C#?
Ans:- In visual C# you can create documentation for your code by including XML tags in special comment field in the source code directly before the code block they refer to. for example

///<summary>
///</summary>
public class myclass{}

when you compile with /doc the compiler will search all xml tags in the source code and create an xml documentation file.To create a final documentation based on  the compiler generated file, you can create a custom tool, or use a tool such as sandcastle

No comments:

Post a Comment