Search code examples
.netpascalcasing

Why Hashtable is not PascalCase?


I strongly try to follow general rules in coding styles. But when i look at .NET, i see that some of classes doesn't match PascalCasing rules. One of them is Hashtable and the other one which i remember is Stopwatch. I think there are more which i don't remember them.

Is there a reason to leave PascalCasing rules for those classes ?


Solution

  • Because they are both dictionary words.

    You probably need a technical dictionary for hashtable, but stopwatch is a legitimate word.
    PascalCasing is for cases where you combine different words to the name of your class (* and such), it isn't concerned with the linguistic origin of the word.