Created
September 25, 2014 08:17
-
-
Save ThomasArdal/07d7abf6f247a552a1c1 to your computer and use it in GitHub Desktop.
Static usings
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.Console; | |
... | |
if (bool.TryParse("true", out var result)) | |
{ | |
WriteLine("This is a bool with value. " + result); | |
} | |
else | |
{ | |
WriteLine("Not a bool, yo! " + result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment