What is the C# equivalence for the JAVA `System.exit(0);`?
c#, java
Solution
If you are using a Console Application -
Environment.Exit(exitCode);
Else if you are using a Windows Forms based application -
Application.Exit();
Courtesy: http://www.dreamincode.net/forums/topic/273503-java-systemexit0%3B-equivalent-in-c%23/
Problem
What is the C# equivalence for `System.exit(0);` ? Thanks