Appendix D. XML documentation
Java simplified code documentation by introducing the special /** */ Javadoc comments and providing the javadoc.exe tool. C# also provides a mechanism for developers to document their code using a special comment syntax.
There are two ways to insert document comments in C# codes – the second syntax should be familiar to Java developers: [1]
[1] Unfortunately, if you are using csc.exe as the documentation generator, the delimited document comments are not recognized by it. Use the single line document comment instead.
single line document comment /// doc comments here
delimited document comment /** doc comments here */
While Javadoc parses the document comments to form HTML files, C#'s documentation generator creates an ...
Get From Java to C#: A Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.