You can use predefined Xml tag to mark comments.The we use C# compiler with /doc option to generate Xml documentation for the source code.Xml documentation should be put inside ///. /// a method.public void aMethod() { ... }