Created
December 25, 2016 21:08
-
-
Save atsvetkov/d2380a846b78cccd8fab1bf8ec1fcc6f 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
try | |
{ | |
if (IntegerParser.TryParse(number, out int result)) | |
{ | |
Console.WriteLine($"Parsed {number.GetType()} {number}, got {result}"); | |
} | |
else | |
{ | |
Console.WriteLine($"Could not parse {number.GetType()} {number}"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment