Created
April 8, 2011 17:47
-
-
Save LoganBarnett/910358 to your computer and use it in GitHub Desktop.
Find the compiler error
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
void SomeMethod() { | |
try { | |
var foo = DoSomethingThatMightBreak(); | |
} catch { | |
// handle | |
} | |
var foo = "asdf"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
foo is a reserved keyword, used like so
int i = foo;
i = i*-1;
Console.WriteLine(i.ToString());
Output:
-1