Forums - C# Corner

Forum guidelines
Suthish Nair

Suthish Nair

  • 25
  • 31.4k
  • 3.6m

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)

Download Free eBooks

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!