Ehssan Dannouf

Ehssan Dannouf

  • NA
  • 36
  • 2.6k

How could force Console application in Csharp to exit!

Apr 6 2020 9:51 AM
Hello! How are you doing? 
 
I am trying to force my Console application which is written in Csharp to close by writing the following line of code: 
 
System.Environment.Exit (0);
 
Unfortunately, it does not work..., Any suggestions how could I make it successful pls? 
 
Thank you a lot & Best Regards, 
 
Ehssan Dannouf 

Answers (4)