ndependcqlinq

CQLINQ for list of methods that take a type as a parameter?


What is the CQLINQ to get list of all the methods taking a (compatible) type or interface at least as one their parameters?


Solution

  • As explained in Getting list of types that are effected by an extension method in cqlinq

    an actual limitation of NDepend is that you cannot access method parameter types.

    Hence you can still obtain result by dealing with IMethod.Name string matching (since parameter types are listed in, like "Method(Int32,List<T>)") and get inspiration from CQLINQ for list of methods returning a specific type or interface?