# Data Type

A rule describing what kind of value something can hold and what operations it supports.

## 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;
}
```

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

Updated: September 27, 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)

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