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