A Brief History of C# Style A number of astute developers have
noted that the C# code style enforced by Microsoft StyleCop
differs in some ways from the style typically seen in sample
code coming from the Microsoft Developer Division. For example,
the very fine book Framework Design Guidelines by Krzysztof
Cwalina and Brad Abrams includes many code samples which use a
different style, and this style is briefly described in an
appendix in the back of the book. In fact, the differences
between the "StyleCop style" and the "Framework Design
Guidelines style" are relatively minor. One of the biggest
differences is that the framework style prefixes private and
internal fields with an underscore, while StyleCop style omits
the underscore and instead prefixes all class members with this.
The reason for the differences between the two styles is largely
historical. The team that developed the first version of the
.Net CLR consisted almost entirely of C++ developers. Remember,
at this time no-one had ever heard of C# a