Methods that use many other methods (#MethodsCalled )

Code Query Statistics

This code query lists the 100 application methods with the higher number of methods called.

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>Methods that use many other methods (#MethodsCalled )</Name>
(from m in Application.Methods orderby m.NbMethodsCalled descending
 select new { m, m.MethodsCalled, isMyCode = JustMyCode.Contains(m) }).Take(100)

//<Desc>
// This code query lists the 100 *application* methods 
// with the higher number of methods called.  
//</Desc>

Statistics: all 13 items