# Data Type

*noun*

say it: **“DAY-tuh type”** **/ˈdeɪtə taɪp/**

The kind of value a variable holds in C#, such as a whole number, a decimal number, true or false, or text.

## What is **Data Type** in C#?

**Data Type** — A rule describing what kind of value something can hold and what operations it supports.

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

## In a sentence

- “The **data type** of price is decimal, because it holds money.”

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

- [Data Type in Database](https://www.ask-codey.com/glossary/data-type-database)
- [Data Type in Java](https://www.ask-codey.com/glossary/data-type-java)
- [Data Type in Python](https://www.ask-codey.com/glossary/data-type)

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