Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CA1722: Identifiers should not have incorrect prefix







Breaking Change


An identifier has an incorrect prefix.

By convention, only certain programming elements have names that begin with a specific prefix.

Type names do not have a specific prefix and should not be prefixed with a 'C'. This rule reports violations for type names such as 'CMyClass' and does not report violations for type names such as 'Cache'.

Naming conventions provide a common look for libraries that target the common language runtime. This reduces the learning curve that is required for new software libraries, and increases customer confidence that the library was developed by someone who has expertise in developing managed code.

Remove the prefix from the identifier.

Do not suppress a warning from this rule.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.