5
Answers

Application.Exit vs Application.Shutdown vs Environment.Exit

Suthish Nair

Suthish Nair

8y
17.5k
1

  'WinForms
  Application.Exit();

  'WPF
  Application.Shutdown();

  'Console
  Environment.Exit(exitCode);

 Can anyone list the advantages/disadvantages of above methods.
 When to use, how to use etc..

 Dont post any links or copy paste, this for knowledge sharing from persons who already  experienced with above methods.

 

 
Answers (5)