C# (Sharp) Programming Language Question:

Download Job Interview Questions and Answers PDF

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

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question

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?