# XML Documentation Comment

A structured /// comment used to generate documentation for C# code.

## What is **XML Documentation Comment** in C#?

**XML Documentation Comment** — A structured /// comment used to generate documentation for C# code.

```csharp
/// <summary>
/// Number of guests in a reservation.
/// </summary>
class GuestList
{
    int reservedSeats = 4;
}
```

Level: Journeyman · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/journeyman)

Updated: October 12, 2026

Source: https://www.ask-codey.com/glossary/xml-documentation-comment
