From outside of the application, is there any difference between
... Environment.Exit(2)
and
static int Main() { ... re
If you are doing a Unit Test and calling Main
Program.Main(args);
then Environment.exit will always reflect a failure. Where as using return will work as expect.