Brad Adams has an interesting post on this blog, but before you go and read it, take a crack at it here and let me know what your answer is. There is an interesting thread going on there and I honestly cannot figure out the “bug” and being the impatient fool I am, I need to know the answer! :)

A dev on the team recently found a bug in Whidbey a long these lines… Say you want to initialize the value of a static int to zero… which code should you use (C1 or C2) and, of course the most important point, why?

1
2
3
4
5
6
7
class C1 {
    private static int value = 0;
}

class C2 {
    private static int value;
}

You can read it all on Adam’s blog.