- Posted by Jakob Andersen on April 25, 2008
Inspired by some talk I "overheard" on twitter I thought it would be interesting to post a small challenge. Is it possible to implement the missing parts of the following code so it compiles and runs without exceptions, if yes how would you do it? You are not allowed to modify the body of the Main method but the rest is up to you.
static void Main(string[] args)
{
Foo f = null;
f.Bar();
}
And yes its a pretty useless exercise :-)