Export (0) Print
Expand All

Type names should not match namespaces

TypeName

TypeNamesShouldNotMatchNamespaces

CheckId

CA1724

Category

Microsoft.Naming

Breaking Change

Breaking

A type name matches a .NET Framework namespace names in a case-insensitive comparison,

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. Carefully consider how the users of your library might be confused by the matching name before you suppress the warning. For shipping libraries, you might have to suppress a warning from this rule.

Community Additions

ADD
Show:
© 2014 Microsoft