What is the command to exit a Console application in C#?


What is the command in C# for exit a Console Application?


Answers:


You can use Environment.Exit(0); and Application.Exit

Environment.Exit(0) is cleaner.