Total .NET Analyzer Rule Documentation  

CamelCase Rule

Use Camel Case for parameters, variables, and field names.

Remarks

Using a standardized naming convention is an important element in writing code that is easy to read, understand, and maintain. When naming parameters, local variables, and protected and private field names, Microsoft suggests using Camel Case. This convention uses lower-case for the first word of an identifier, and capitalizes the first character of all subsequent words.

By default, Total .NET Analyzer does not identify Static and Constant types that do not use Camel Case, but you can change this behavior through the Rule Editor.

Resolution

To change a parameter, variable, or field name to Camel Case, change the first word of an identifier to lower case, and capitalize the first character of subsequent words. For example, the following identifier names are Camel Case:
- customerID
- firstName
- lastName
- address
- homePhoneNum

See the Capitalization Styles help information for more information on Microsoft's naming guidelines.

(Note that this is standardized naming convention, so it has no effect on the execution of code.)

See Also

Capitalization Styles

Total .NET Analyzer Pascal Case Rule

Total .NET Analyzer Hungarian Rule