Forums - C# Corner

Forum guidelines
Suthish Nair

Suthish Nair

  • 25
  • 31.2k
  • 3.5m

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)

Visual Studio Live - Redmond 2016

SPONSORED BY

C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.