Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Development Edition
Naming Warnings
 Compound words should be cased corr...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio Team System
Compound words should be cased correctly

TypeName

CompoundWordsShouldBeCasedCorrectly

CheckId

CA1702

Category

Microsoft.Naming

Breaking Change

Breaking- when fired on assembliesNon Breaking - when fired on type parameters

The name of an identifier contains multiple words and at least one of the words appears to be a compound word that is not cased correctly.

The name of the identifier is split into words based on the casing. Each contiguous two word combination is checked by the Microsoft spelling checker library. If recognized, the identifier produces a violation of the rule. Examples of compound words that cause a violation are "CheckSum" and "MultiPart", which should be cased as "Checksum" and "Multipart", respectively. Due to previous common usage, a number of exceptions are built into the rule, and a number of single words are flagged, such as "Toolbar" and "Filename", that should be cased as two distinct words, in this case, "ToolBar" and "FileName".

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.

Change the name so that it is cased correctly.

It is safe to suppress a warning from this rule if both parts of the compound word are recognized by the spelling dictionary and the intent is to use two words.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
How is the FXCOP dictionary to be updated?      Tatworth   |   Edit   |   Show History

How the FXCOP dictionary to be updated?

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