In C#, how can we have the application terminate?
I have a Try{}/Catch{} section and if the code enters the Catch{} then a critical error occurred and I do not want the application to continue.
There has to be some simple generic exit command to gracefully terminate the application.
I have a Try{}/Catch{} section and if the code enters the Catch{} then a critical error occurred and I do not want the application to continue.
There has to be some simple generic exit command to gracefully terminate the application.