Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Development Edition
Naming Warnings
 Type names should not match namespa...

  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
Type names should not match namespaces

TypeName

TypeNamesShouldNotMatchNamespaces

CheckId

CA1724

Category

Microsoft.Naming

Breaking Change

Breaking

A type name matches one of the following namespace names in a case-insensitive comparison:

  • Collections

  • Forms

  • System

  • UI

Type names should not match the names of namespaces defined in the .NET Framework class library. Violating this rule can reduce the usability of the library.

Select a type name that does not match the name of a .NET Framework class library namespace.

For new development, there are no known scenarios where you must suppress a warning from this rule. For shipping libraries, you might have to suppress a warning from this rule.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker