What are the other equivalent alternate of Exit() for quitting csharp application?

Q & ACategory: DotNetWhat are the other equivalent alternate of Exit() for quitting csharp application?
Admin Staff asked 3 years ago

What are the other equivalent alternate of Exit() for quitting csharp application?

1 Answers
Admin Staff answered 3 years ago

Yes there are some other equivalent alternate of Exit(). For web application we use System.Environment.Exit(int exitCode) for exit the application.
For Windows Forms we use Application.Exit().