Naming Types - C# Coding Standard 5

If you check the .Net Framework code using some decompiler tool like Reflector, you can find all the code follows unique naming standards. This is because Microsoft follows unique naming standards and validates them with StyleCop tool. Here what are the different naming standards we need to follow while declaring any types in C#.

             Declare types with easily readable names

             Use widely used acronyms

             Do not use underscores or hyphens or any other nonalphanumerics to declare types. Only exception to this, you can use underscore at start to declare private variables

             Do not use Hungarian notation

             Do not use abbreviations or contractions as part of identifier names

             Use only PascalCasing for all identifiers except for parameter names and local variable names. PascalCasing means starting each name with capital letter