Is there a way to check if the method uses PInvoke? I iterate over all the methods in the assembly using MethodBase, but I want to check if the method uses PInvoke. Here is the code I'm using:
foreach (MethodBase bases in mtd.GetType().GetMethods()) {
Also, if possible, how can there be a way that I can check the DLL used and the function / entry point being called?
source share