Created
August 23, 2015 13:00
-
-
Save angelovstanton/1a1d1f99a8bff3511545 to your computer and use it in GitHub Desktop.
This file contains 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
string s = Console.ReadLine(); | |
try | |
{ | |
int i = int.Parse(s); | |
if (i == 42) Environment.FailFast("Special number entered"); | |
} | |
finally | |
{ | |
Console.WriteLine("Program complete."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment