Return Value
noun
say it: “rih-TURN VAL-yoo” /rɪˈtɜːrn ˈvæljuː/
The result a method sends back to the code that called it.
What is Return Value in C#?
Return Value — The result a method sends back to its caller.
class OrderCalculator
{
int Total(int price, int quantity = 1)
{
return price * quantity;
}
}
In a sentence
- “I stored the return value of AddTax in total.”
Level: Apprentice · More C# terms at this level
Updated