Namespaces that use many other namespaces (#NamespacesUsed )

Code Query Statistics

This code query lists the 100 application namespaces with the higher number of namespaces used.

CQLinq source

This code query is written in CQLinq, C# LINQ over the NDepend code model. It ships with every new NDepend project: you can read it, adapt it, or use it as a starting point for your own custom rules.

// <Name>Namespaces that use many other namespaces (#NamespacesUsed )</Name>
(from n in Application.Namespaces orderby n.NbNamespacesUsed descending
 select new { n, n.NamespacesUsed }).Take(100)
 
//<Desc>
// This code query lists the 100 *application* namespaces 
// with the higher number of namespaces used.  
//</Desc>

Statistics: all 13 items