# Comment

*noun*

say it: **“KOM-ent”** **/ˈkɒmɛnt/**

Text in code, after // or between /\* and \*/, that people read and the compiler ignores.

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

**Comment** — Text for people reading the code that the compiler ignores.

```csharp
class GuestList
{
    // Seats reserved for speakers.
    int reservedSeats = 4;
}
```

## In a sentence

- “I left a **comment** explaining why the tax rate is 7 percent.”

Level: Novice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=1)

Updated: November 9, 2026

## In other subjects

- [Comment in CSS](https://www.ask-codey.com/glossary/comment-software-development)
- [Comment in Java](https://www.ask-codey.com/glossary/comment-java)
- [Comment in JavaScript](https://www.ask-codey.com/glossary/comment-javascript)
- [Comment in PowerShell](https://www.ask-codey.com/glossary/comment-powershell)
- [Comment in Python](https://www.ask-codey.com/glossary/comment)
- [Comment in Unix](https://www.ask-codey.com/glossary/comment-unix)

Source: https://www.ask-codey.com/glossary/comment-c-sharp
