E
E
Edward2016-05-03 16:24:06
Documentation
Edward, 2016-05-03 16:24:06

Is there an analogue of javadoc in c#?

On java in intellij idea I write comments like

/**
 * comments
 */

and then you can generate an html document
and in C # you can do something like this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VZVZ, 2016-05-03
@VZVZ

Yes. XML documentation can be used (<summary>, etc.), then IntelliSense will "pick up" the documentation, + there are utilities that can generate html from this documentation.

A
Alexey Artyushkov, 2016-05-03
@frank_sider

www.stack.nl/~dimitri/doxygen
Example:

/**
 * @file
 * @brief My cool file
 * @ingroup CoolGroup
 * @author Me
 * @date 06.06.06
 */

/**
* @addtogroup CoolGroup My cool group
* @{
*/

/**
 * @brief My cool class
*/
public class Foo
{
/**
* @brief My cool function
* @param[in] a first argument
* @param b second argument
* @return result of adding a to b
*/
public int bar(int a, int b)
{
return a + b;
}
}

/** @} */

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question