Identifiers should have correct prefix
Identifiers should have correct prefix
Microsoft docsDescription
By convention, the names of certain programming elements start with a specific prefix.
Interface names should start with an uppercase 'I' followed by another uppercase letter. This rule reports violations for interface names such as 'MyInterface' and 'IsolatedInterface'.
Generic type parameter names should start with an uppercase 'T' and optionally may be followed by another uppercase letter. This rule reports violations for generic type parameter names such as 'V' and 'Type'.
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.
Cause
The name of an interface does not start with an uppercase 'I'.
-or-
The name of a generic type parameter on a type or method does not start with an uppercase 'T'.
By default, this rule only looks at externally visible interfaces, types, and methods, but this is configurable.
How to fix violations
Rename the identifier so that it is correctly prefixed.
When to suppress
Do not suppress a warning from this rule.