Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Identifiers should have correct prefix

TypeName

IdentifiersShouldHaveCorrectPrefix

CheckId

CA1715

Category

Microsoft.Naming

Breaking Change

Breaking

An identifier is not correctly prefixed.

By convention, the names of certain programming elements start with a specific prefix.

Interface names should begin with a capital 'I' followed by another capital letter. This rule reports violations for interface names such as 'MyInterface' and 'IsolatedInterface'.

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

Rename the identifier so that it is correctly prefixed.

Do not exclude a warning from this rule.

Community Additions

ADD
Show:
© 2015 Microsoft