SyntaxFix
Write A Post
Hire A Developer
Questions
The compiler only knows that the code is or isn't reachable if you use "return". Think of Environment.Exit() as a function that you call, and the compiler don't know that it will close the application.