-
In Pascal casing the first letter of each word in an identifier is capitalized. For example,
BackColor
- In Camel casing only the first letter of the second, third, etc. word in a name is capitalized; for example,
backColor .
The table below provides the casing for the most common types.
IDENTIFIER | CASE | EXAMPLE |
Class | Pascal | AppDomain |
Pascal with prefix "C" is allowed | CAppDomain |
Class data member | Pascal | DetectorEmulated |
Pascal with prefix "m_" is allowed | m_DetectorEmulated |
Enum type (enumeration) | Pascal | ErrorLevel |
Enum value (enumerator) | Capitals with underscores | TCU_STATUS_OK |
Macro | Capitals with underscores | TRACE_FUNC_BEGIN |
Method | Pascal | ToString |
Namespace | Pascal | System.Drawing |
Parameter | camel | typeName |
Struct | Pascal | DfaParameters |
Struct data member | Pascal | AverageFileExposed |
Variable (function scope) | camel | doseRate |
Variable (non function scope) | Pascal | FlatDetectorType |
|