© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#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# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Class making my program run as a background process after I close it [Answered]
C#CC# / help
4y ago
Console auto closes instantly when i run the program
C#CC# / help
16mo ago
✅ How can I save a single string when my program closes?
C#CC# / help
6mo ago
✅ After 2 wrong guesses, the program closes immediately
C#CC# / help
3y ago