In Pascal casing the first letter of each word in an identifier is capitalized, e.g., 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.
However beware of the following:
- Words in all UPPERCASE, like e.g. DICOM, are a subset of Pascal casing and are therefore in principle allowed.
- However try to limit this to often used and/or well-known acronyms, like DICOM, PACS, PII, ...
- Also try to limit usage of this to enum values, const and/or read-only fields, variables and namespaces, unless good reasons exist to do so elsewhere.
Identifier | Case | Example |
Class | Pascal | AppDomain |
Enum type | Pascal | ErrorLevel |
Enum values | Pascal | FatalError |
Event | Pascal | ValueChange |
Exception class | Pascal | WebException |
Field | camel | listItem |
Const Field | Pascal | MaximumItems |
Read-only Static Field | Pascal | RedValue |
Interface | Pascal | IDisposable |
Method | Pascal | ToString |
Namespace | Pascal | System.Drawing |
Parameter | camel | typeName |
Property | Pascal | BackColor |
|