Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 3.0
Tools
Development Tools
FxCop
FxCop Warnings
Naming Warnings
 Identifiers should differ by more t...

  Switch on low bandwidth view
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 differ by more than case

TypeName

IdentifiersShouldDifferByMoreThanCase

CheckId

CA1708

Category

Microsoft.Naming

Breaking Change

Breaking

The names of two types, members, parameters, or fully qualified namespaces are identical when converted to lower-case.

Identifiers for namespaces, types, members, and parameters cannot differ only by case because languages that target the common language runtime are not required to be case-sensitive. For example, Visual Basic is a widely used case-insensitive language.

Select a name that is unique when compared to other identifiers in a case-insensitive fashion.

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
Example      David M. Kean   |   Edit   |   Show History

This rule only fires on publicly visible members.

The following example demonstrates a violation of this rule:

using System;
 
namespace NamingLibrary
{
    public class Foo // IdentifiersShouldDifferByMoreThanCase

    {
        protected string bar;
 
        public string Bar
        {
            get { return bar; }
        }
    }
}
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