How to force exit application in C#?
I think the best solution to force application exit is to use the following line of code:
Environment.Exit(0)
Environment.FailFast()
ends up with a runtime exception.
If you want to kill program without any exception messages from system, after for example fatal error, you can use:
Process.GetCurrentProcess().Kill()