Created
October 31, 2013 20:04
-
-
Save Earlz/7256160 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
using System; | |
namespace ConsoleApplication4 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
CheckNull(null); | |
} | |
static bool CheckNull(string s) | |
{ | |
start: | |
bool tmp = false; | |
bool tmp2 = true; | |
tmp = String.IsNullOrEmpty(s); | |
if (tmp2 == tmp) | |
{ | |
goto start; | |
} | |
else | |
{ | |
goto start; | |
} | |
end: | |
goto start; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
should this not get caught in a tight loop?