Does Environment.Exit called from any AppDomain exit the entire process if not IsDefaultAppDomain?
问题 My original belief about Environment.Exit was this: If called from the default AppDomain, the process would terminate. If called from an AppDomain other than default, the AppDomain would terminate and push the exit code into the return of AppDomain.ExecuteAssembly. This seemed logical to me, as it would forseeably be undesirable for a loaded AppDomain to unintentionally kill the entire process due to calling Environment.Exit instead of ending at the "}" like the accepted answer of https:/