[Mono-list] exit in a middle of the program

Dan Shryock dan.shryock at gmail.com
Fri May 1 19:31:05 EDT 2009

>> I am new to mono and C#.
>> I am writing a simple program, and  question: is there a command to exit
>> from the execution.
>> like in python: sys.exit()
>> or perl: exit()

System.Environment.Exit(0); will do the trick ;)


Hope that helps.


More information about the Mono-list mailing list