Yesterday I heard about a cool Whidbey feature that inspired me to come up with this little quiz. The code below when run will print out:
static void Main(string args)
throw new Exception();
By only adding a few lines of code above the try-statement in the Main() method have it printed out:
Mystery inserted code
There are no funky streaming, buffer magic required. Also, you can’t add any code below the try-statement nor can you add any other types, methods, etc to the program. I will give you one hint, you will need the Whidbey pre-release for this one..