IS THERE AN EQUIVALENT OF EXIT() FOR QUITTING A C# .NET APPLICATION?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
C# 
C#
 1510  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!