C# (Sharp) Programming Language Question:
Download Questions PDF

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

Answer:

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

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
What is delay signing?Can you prevent your class from being inherited and becoming a base class for some other classes?