Identifiers should not match keywords

TypeName

IdentifiersShouldNotMatchKeywords

CheckId

CA1716

Category

Microsoft.Naming

Breaking Change

Breaking

Cause

A namespace name or a type name matches a reserved keyword in a case-insensitive comparison.

Rule Description

Identifiers for namespaces and types should not match keywords defined by languages that target the common language runtime. Depending on the language in use and the keyword, compiler errors and ambiguities can make the library difficult to use. This rule does not check all keywords in all .NET languages.

How to Fix Violations

Select a name that does not appear in the list of keywords.

When to Exclude Warnings

Do not exclude a warning from this rule. The library might not be usable in all available languages in the .NET Framework.