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.
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
Updated