Created
January 28, 2018 13:44
-
-
Save luisdeol/eb4b1d999304847ae7afaba9c1b11b98 to your computer and use it in GitHub Desktop.
Code that throws an exception
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
| using System; | |
| namespace implement_exception_handling | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var awesomePhrase = "Luis wants some ice cream."; | |
| var phraseAsInt = int.Parse(awesomePhrase); | |
| Console.WriteLine(phraseAsInt); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment