devAdvantage Beta
devAdvantage Home
Overview
Features
Rules
Download
Purchase
Support Forums
Documentation

Login

 
Username:
 

Password:
 
Create a new account Forget your password?


 

C# Refactoring to best practices C# Refactoring to best practices

C# Refactoring to best practices

 

 
 
Naming Conventions Knowledge Pack Features
Click to display Identification info Define your own naming standards
Click to display Identification info Automated renaming of declarations and all references
Click to display Identification info Detection and correction in ASPX pages

 
C# Naming Standards
The naming convention knowledge pack contains preconfigured rules based on the Naming Guidelines found in Microsoft’s Design Guidelines for Class Library Developers as well as other industry best practices. 

Rule
Category
Automatic Correction
Namespace name should be Pascal case.
Naming Convention Best Practices for .NET
Yes
Interface types should start with capital letter I and be Pascal case.
Naming Convention Best Practices for .NET
Yes
Struct types should use Pascal case.
Naming Convention Best Practices for .NET
Yes
Class types should be Pascal case.
Naming Convention Best Practices for .NET
Yes
Delegate types should use Pascal case.
Naming Convention Best Practices for .NET
Yes
Enumerations should use Pascal case.
Naming Convention Best Practices for .NET
Yes
Attributes should use Pascal case and end in "Attribute".
Naming Convention Best Practices for .NET
Yes
Collections should end in "Collection".
Naming Convention Best Practices for .NET
Yes
Read-only collections should end in "Collection".
Naming Convention Best Practices for .NET
Yes
Event should be Pascal case.
Naming Convention Best Practices for .NET
Yes
Event arguments should be end in "EventArgs".
Naming Convention Best Practices for .NET
Yes
Property should be Pascal case.
Naming Convention Best Practices for .NET
Yes
Method should be Pascal case.
Naming Convention Best Practices for .NET
Yes
Public fields should Pascal case.
Naming Convention Best Practices for .NET
Yes
Private type fields should use camel case.
Naming Convention Best Practices for .NET
Yes
Constant should use Pascal case.
Naming Convention Best Practices for .NET
Yes
Protected type fields should be camel case.
Naming Convention Best Practices for .NET
Yes
Internal type fields should be camel case.
Naming Convention Best Practices for .NET
Yes
Method parameters should be camel case.
Naming Convention Best Practices for .NET
Yes
Variables should be camel case.
Naming Convention Best Practices for .NET
Yes
Classes of type Form should end in "Form".
Sample Rule*
Yes
Classes of type Forms.UserControl should end in "Control".
Sample Rule*
Yes
Field name of type ArrayList should end in "ArrayList".
Sample Rule*
Yes
Field name of type Button should end in "Button".
Sample Rule*
Yes
Field name of type Hashtable should end in "Hashtable".
Sample Rule*
Yes
Field name of type ListBox should end in "ListBox".
Sample Rule*
Yes
Field name of type ComboBox should end in "ComboBox".
Sample Rule*
Yes
Field name of type DataGrid should end in "DataGrid".
Sample Rule*
Yes
Field name of type TextBox should end in "TextBox".
Sample Rule*
Yes
Private fields should not use prefixes of 'm','_' or 'm_'.
Sample Rule*
Yes
Private fields should use 'm' prefix.
Sample Rule*
Yes
Private fields should use 'm_' prefix.
Sample Rule*
Yes
Private fields should use underscore prefix.
Sample Rule*
Yes

* Note sample rules are left disabled, allowing you to choose those that apply directly or those that are examples of rules your organization may need.

 
   
   
   
   
   
 

 



Site Map   Privacy Statement   Contact Support                  Copyright Anticipating Minds 2001-2004