Created
September 22, 2012 22:55
-
-
Save jongillies/3768138 to your computer and use it in GitHub Desktop.
C# example of how to pause the process befor exist if you are in the IDE (VisualStudio)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void PauseIfInIDE() | |
{ | |
if (System.Diagnostics.Debugger.IsAttached ) | |
{ | |
Console.WriteLine("Press <ENTER> to continue."); | |
Console.Read(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment