Last active
August 29, 2015 14:06
-
-
Save ThomasArdal/f09e81b7b8c87281573c to your computer and use it in GitHub Desktop.
Decompiled TryParse boolean with declaration expression
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
bool flag; | |
if (bool.TryParse("true", out flag)) | |
{ | |
Console.WriteLine("This is a bool with value. " + flag); | |
} | |
else | |
{ | |
Console.WriteLine("Not a bool, yo! " + flag); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment