Method ExitAndTerminate
ExitAndTerminate(int)
Calls Exit() and after that terminates this process and returns an exit code to the operating system.
public static void ExitAndTerminate(int exitCode = 0)
Parameters
exitCode
intThe exit code to return to the operating system. Use 0 (zero) to indicate that the process completed successfully.