The standard way to document C # code in Visual Studio is to comment on the XML documentation . In my opinion, this is the best way to use C # code, because support for this is already integrated into Visual Studio (automatic completion of the comment tag, warning about missing or incorrect parameters, ...). To document a method, simply enter three slashes ( /// ) in front of the method body, and Visual Studio will introduce an empty comment template to populate, for example:
/// <summary> /// /// </summary> /// <param name="bar"></param> private void Foo(int bar) { // ... }
You can configure Visual Studio to create an XML file from all comments, which will then be passed to a documentation generator, such as Sandcastle . If you want to use Doxygen , this is not a problem, because it supports parsing XML comments.
To summarize: I would recommend using XML comments on special Doxygen comments for C # code. So you have all the options. You can create documentation in the standard Doxygen format that your organization is familiar with (because Doxygen supports XML comments), plus you have the option to generate documentation in a format known to .NET developers (with Sandcastle and FileBuilder with Sandcastle support ).
Oh, and also try GhostDoc ...
Christian Jan 08 2018-10-10T00: 00Z
source share