Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Naming Warnings
 Identifiers should not match keywor...
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio Team System
Identifiers should not match keywords

TypeName

IdentifiersShouldNotMatchKeywords

CheckId

CA1716

Category

Microsoft.Naming

Breaking Change

Breaking

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

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.

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

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Language Keywords      wesen ... David M. Kean - MSFT   |   Edit   |  

This rule currently checks against the keywords of Visual Basic, C#, Managed C++, C++/CLI and J# languages.

A case-insensitive comparision is used for Visual Basic keywords and case-sensitive comparision for the other languages.

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker