Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Development Edition
 Avoid excessive class coupling
Collapse All/Expand All Collapse All
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
Avoid excessive class coupling

TypeName

AvoidExcessiveClassCoupling

CheckId

CA1506

Category

Microsoft.Maintainability

Breaking Change

Breaking

A type or method is coupled with many other types.

This rule measures class coupling by counting the number of unique type references that a type or method contains.

Types and methods with a high degree of class coupling can be difficult to maintain. It is a good practice to have types and methods that exhibit low coupling and high cohesion.

To fix this violation, try to redesign the type or method to reduce the number of types to which it is coupled.

Exclude this warning when the type or method is still considered maintainable, despite its large number of dependencies on other types.

Other Resources

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 | Site Feedback
Page view tracker