Hi
I'm working on some code verification tools, and I'd like to implement
pretty much the same functionality as the VS 2005 "Find All References" menu
option, in c#.
I want my code to run through some other code (or possibly the compiled
modules) that my colleagues and I have written, and find calls to specific
functions (also in our code), in such a way that I can get hold of the
parameters of the calls. I don't really want to write this as a VS add-in,
I want it to be part of the unit tests.
I've looked through the MSDN, but nothing jumps out at me as an obvious
approach. Reflection doesn't look like it would do the job (at least not
easily). I've even considered using Regex, but I'd rather examine the
compiled code than the text, if that's possible.
I've also seen the same functionality in .NET Reflector, in the Analyzer
window.
I'd be grateful for any pointers you can give me.
Cheers
Jason