Capitalization conventions

suggest change

The following terms describe different ways to case identifiers.

Pascal Casing

The first letter in the identifier and the first letter of each subsequent concatenated word are capitalized. You can use Pascal case for identifiers of three or more characters. For example: BackColor

Camel Casing

The first letter of an identifier is lowercase and the first letter of each subsequent concatenated word is capitalized. For example: backColor

Uppercase

All letters in the identifier are capitalized. For example: IO

Rules

When an identifier consists of multiple words, do not use separators, such as underscores (”_”) or hyphens (”-”), between words. Instead, use casing to indicate the beginning of each word.

The following table summarizes the capitalization rules for identifiers and provides examples for the different types of identifiers:

Identifier             | Case   | Example
---------------------- | ------ | -------
Local variable         | Camel  | carName
Class                  | Pascal | AppDomain
Enumeration type       | Pascal | ErrorLevel
Enumeration values     | Pascal | FatalError
Event                  | Pascal | ValueChanged
Exception class        | Pascal | WebException
Read-only static field | Pascal | RedValue
Interface              | Pascal | IDisposable
Method                 | Pascal | ToString
Namespace              | Pascal | System.Drawing
Parameter              | Camel  | typeName
Property               | Pascal | BackColor

More information can be found on MSDN.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Naming Conventions:
* Capitalization conventions
* Enums

Table Of Contents
17 Regex
19 Arrays
21 Enum
22 Tuples
24 GUID
27 Looping
36 Casting
46 Methods
53 Naming Conventions
88 Events
92 Structs
104 Indexer
106 Stream
107 Timers
109 Threading
127 Caching
135 Pointers
147 C# Script