In C#, we use XML Comments to create documentation of classes and their members. XML Documentation helps other programmers or developers to use your code (classes, functions and their members) easily by providing some useful information. XML Documentation starts with three slashes before the class or function to be documented.
Adding XML Documentation to a class:
Typing three slashes (///) before a class or function will create documentation automatically in Visual Studio. The documentation contains one or more documentation elements. Each element starts with a start tag (for example <summary>) and ends with an end tag (for example </summary>). Here is a list of a few elements with their description.


Join the conversation! Your thoughts help the community grow.