The following section describes different ways of capitalizing identifiers. We will refer to these terms throughout the rest of this document.
This convention capitalizes the first character of each word. For example:
BackColor
This convention capitalizes the first character of each word except the first word. For example:
backColor
Only use all upper case for identifiers if it contains an abbreviation. See section x.y for a list of exceptions to this rule. For example:
System.IO System.WinForms.UI
The following describes the capitalization of different types of identifiers.
Type | Case | Notes |
---|---|---|
Class | PascalCase | |
Enum values | PascalCase | |
Enum type | PascalCase | |
Events | PascalCase | ends with EvenArgs |
exception class | PascalCase | ends with Exception |
Final Static field | PascalCase | |
interface | PascalCase | starts with I |
Method | PascalCase | |
namespace | PascalCase | |
property | PascalCase | |
Instance Field | PascalCase | |
parameter | camelCase |