Visual Studio Team System
Type names should not match namespaces

TypeName

TypeNamesShouldNotMatchNamespaces

CheckId

CA1724

Category

Microsoft.Naming

Breaking Change

Breaking

Cause

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

  • Collections

  • Forms

  • System

  • UI

Rule Description

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.

How to Fix Violations

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

When to Suppress Warnings

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 :


Page view tracker