Hello Michael, I don't think there's a sample that does exactly that, but it's not complicated.
Iterate over all the instructions in a module, and get the scope of their type. The scope will be either your opened ModuleDefinition or an AssemblyNameReference and in that case you'll know where the type/field/method is defined in. Jb On Mon, Aug 15, 2016 at 3:56 PM, Michael Herman <[email protected]> wrote: > Where can I find a Cecil sample that scans an assembly/DLL and reports on > all of the API methods that the assembly refers to? ...that is methods > refered to or called from the source code for the assembled? ...static > analysis only. > > Best regards, > Michael > > -- > -- > -- > mono-cecil > --- > You received this message because you are subscribed to the Google Groups > "mono-cecil" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
