How do I manually calculate Efferent Coupling (Ce) for a .Net class? -


if want manually calculate efferent coupling of .net class should include types clr in calculation, or types have created?

the tool ndepend calculates efferent coupling takes account of third-party types used. (documentation here). here cqlinq code query shows fact:

ndepend efferent coupling

notice possible recalculate efferent coupling application types used if wish.

ndepend efferent coupling without third-party

if goal detect if type has many responsibilities (which case when type using many others types, many means several dozens) makes sense include types .net fx. example usage of types in system.io or system.threading indicates special responsibility user type. why detecting many responsibilities, count number of namespaces used (including third-party ones)

ndepend efferent coupling, parent namespaces

disclaimer: working in ndepend team


Comments

Popular posts from this blog

c# - OpenXML hanging while writing elements -

php - regexp cyrillic filename not matches -

java - IntelliJ - No such instance method -