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:
notice possible recalculate efferent coupling application types used if wish.
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)
disclaimer: working in ndepend team
Comments
Post a Comment