void
noun
say it: “VOID” /vɔɪd/
The return type for a method that does a job but sends no value back.
What is void in C#?
void — A return type showing that a method returns no value.
class Order
{
void MarkAsPaid()
{
bool paid = true;
}
}
In a sentence
- “PrintReceipt is void, because it prints the receipt and returns nothing.”
Level: Apprentice · More C# terms at this level
Updated