Suthish Nair

Suthish Nair

  • NA
  • 30.5k
  • 7.1m

Application.Exit vs Application.Shutdown vs Environment.Exit

Mar 9 2011 4:44 AM

  '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)