Interview Questions

Is there an equivalent of exit() for quitting a C# .NET application?

C# Interview Questions and Answers


(Continued from previous question...)

36. Is there an equivalent of exit() for quitting a C# .NET application?

Yes, you can use System.Environment.Exit(int exitCode) to exit the application or Application.Exit() if it's a Windows Forms app.

(Continued on next question...)

Other Interview Questions