0

why the c# programs shut down automatically after after finishing the process?

16th Aug 2016, 8:26 AM
Omar Hossam
Omar Hossam - avatar
5 odpowiedzi
+ 1
an easy way to prevent it is putting a readline at the end of your code
16th Aug 2016, 12:52 PM
Saeed Mohagheghi
Saeed Mohagheghi - avatar
+ 1
Unless you write your program in a loop it thinks the programis over
16th Aug 2016, 1:39 PM
Logan Kirkendoll
Logan Kirkendoll - avatar
0
may be because it assumes that the user would run the application from console window! then automatic shut down is a good way!
16th Aug 2016, 12:52 PM
Saeed Mohagheghi
Saeed Mohagheghi - avatar
0
You need a loop. When you want it to stop use break.
20th Aug 2016, 9:46 AM
Oscar
Oscar - avatar
0
put Console.ReadKey(); at the end of your code.
23rd Aug 2016, 1:36 PM
Erwin Mesias
Erwin Mesias - avatar