Using NDepend, how can I find all, direct and indirect, uses of a specific method or property?
In particular, I need to find usages that occur via an interface somewhere along the use path. Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Right clicking a method anywhere in the UI, and selecting the menu: Select Method… > …that are using me (directly or indirectly) leads to a code query like:
The problem is that such query gives indirect usage, but doesn’t look for calls that occurs via an interface (or an overridden method declared in a base class).
Hopefully what you are asking for can be obtained with this query:
The two corner stones of this query are: