© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
4y ago
•
6 replies
Mihane
My program closes after I run a foreach code. [Answered]
Hello
,
I
'm a beginner and after I run my for each code the program won
't go on even if outside of my foreach there is a Console
.WriteLine and a Console
.ReadLine
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Class making my program run as a background process after I close it [Answered]
C
C# / help
4y ago
Console auto closes instantly when i run the program
C
C# / help
16mo ago
✅ How can I save a single string when my program closes?
C
C# / help
6mo ago
✅ After 2 wrong guesses, the program closes immediately
C
C# / help
3y ago