© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How do I close console app outside of the Main method? - C#
C
C#
•
3y ago
•
2 replies
Schenk
How do I close console app outside of the Main method?
I have a program that runs recursive outside of the main method
, but how do I close it
. I can
't use any of the usual as they only works in main
.
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
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
how to write method outside the main method in the program class?
C
C# / help
2y ago
✅ Method declaration, outside Main Vs inside main
C
C# / help
14mo ago
❔ How does the main method work?
C
C# / help
3y ago
How to set the whole application culture outside of main()?
C
C# / help
3y ago