public IEnumerable <TypeReference> TypesReferencingOutOf(string namespaceName) { var currentNamespace = metrics.ForNamespace(namespaceName); var otherNamespaceInCycle = namespaces.ExceptThis(currentNamespace).ToList(); return(from reference in ReferencesOutOf(currentNamespace, to: otherNamespaceInCycle) select reference); }
private NamespaceMetricsReport NamespaceOf(TypeMetricsReport type) { return(metrics.ForNamespace(type.Namespaces.First())); }
private IEnumerable <NamespaceMetricsReport> NamespacesInCycle() { return(from ns in Report.CyclicDependencies select metrics.ForNamespace(ns)); }