Forums - C# Corner

Forum guidelines
Suthish Nair

Suthish Nair

  • 11
  • 8.7k
  • 3.3m

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 (3)

C# Corner Chandigarh Developer Conference

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.