Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

This is my first .NET question. :)

 

I have started playing around with C# today. I am starting out with a console app so I can get the feel of the syntactical changes from c++ to c#. I aplogize if this has been discussed already here, but I couldn't find a post about this. My question follows: Is there a .NET way of pausing for a keypress or something at the end of the program? In c++ I usually used system("PAUSE") or an alternative. I was wondering if there is some kind of special way to do this in c#. Otherwise I get the deal where my app closes as soon as it finishes which is not helping me out too much here. Thanks in advance.

 

[edit]I'd like to use something other than ReadLine if possible[/edit]

Edited by noRulez

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...