Howto quit a console application ??

  • Thread starter Thread starter J?rg Brenner
  • Start date Start date
J

J?rg Brenner

Hello!
Does anyone know how to quit a console application? There ist no
static 'Application'-Object (with the method 'Quit()') like in
Windows-Applications.

Thanks for any hints,

Jörg from Munich
 
J?rg Brenner said:
Does anyone know how to quit a console application? There ist no
static 'Application'-Object (with the method 'Quit()') like in
Windows-Applications.

There's Environment.Exit() or you could just make sure that all your
foreground threads have finished running.
 
Have you tried returning from Main() .. i think that should end your
application.
 
Back
Top