© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
✅ Newbie question - what exactly does return do? - C#
C
C#
•
3y ago
•
10 replies
Emelie
✅ Newbie question - what exactly does return do?
If I have this piece of code
.
.
. what exactly happens when the return statement is reached
? I understand it exits the current function
, but then what is the state of the programme
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Beginner question. what does this createhostbuilder do?
C
C# / help
3y ago
✅ What exactly is .NET?
C
C# / help
2y ago