where is "exit"?

  • Thread starter Thread starter flemming eriksen
  • Start date Start date
F

flemming eriksen

Hi NG.

I looked after an "exit(par)" language construct, but it's not include in
C#.
How do you solve that in elegant manner?
A bunch of conditionals to omit the code after some place, where a "bad
condition" occured, is awfull.


Regards,
flemming
 
Hi Flemming,

Would you be looking for Environment.Exit(int exitcode)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top