Is there an equivalent of exit() or quiting a C#.NET application ?

 Posted by Bharathi Cherukuri on 4/23/2012 | Category: C# Interview questions | Views: 2018 | Points: 40

Yes, you can use System.Environment.Exit(int exitCode) to exit the application.
If it is a Windows Forms App, you can use Application.Exit().

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response