Search code examples
.netdependenciescode-metricsndepend

How to get a list of types that my class depends on in Ndepend?


Using Ndepend; How can I get a list of all types (types only from the same assembly) that my class is using?

If there is any way to do this other than Ndepend, I'm open to suggestions.


Solution

  • First right click the type and ask for types that I use directly: enter image description here

    Second, a CQL query has been generated for you, and you can explore the result and group types used by assembly and/or namespaces.

    enter image description here

    Third, you can refine the query to match only types for one or several particular assemblies:

    enter image description here