# Literal

*noun*

say it: **“LIT-er-ul”** **/ˈlɪtərəl/**

A value written straight into code, such as 42, 4.99m, true or "Dune".

## What is **Literal** in C#?

**Literal** — A value written directly in source code, such as 42, true, or \"hello\".

```csharp
class Order
{
    int itemCount = 3;
    decimal price = 4.50m;
    char size = 'M';
    bool paid = true;
}
```

## In a sentence

- “In int pages = 412;, the **literal** is 412.”

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

- [Literal in Java](https://www.ask-codey.com/glossary/literal)

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