Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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.

Community Additions

ADD
Show:
© 2015 Microsoft