Hi...
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()
many thanks
--
View this message in context:
Application.exit() ?
-Original Message-
From: mono-list-boun...@lists.ximian.com [mailto:mono-list-
boun...@lists.ximian.com] On Behalf Of YyYo
Sent: sexta-feira, 1 de Maio de 2009 23:54
To: mono-list@lists.ximian.com
Subject: [Mono-list] exit in a middle of the program
Hi...
C# exits through the Main() method.
Use 'return' to exit any method, eventually returning to Main() and
'return' the program from Main()
cp
YyYo wrote:
Hi...
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
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 ;)
http://msdn.microsoft.com/en-us/library/system.environment.exit(VS.80).aspx
Hope