R
Robert Hooker
I have this class, with 3 public methods:
MyAssembly.DLL
public MyClass
{
public void Method1() {;}
public void Method2() {;}
public void Method3() {;}
private void DetectCalls()
{
//See question below
}
}
I want the DetectCalls method to be able to:
1] Load an arbitrary assembly
2] Find all instances of code (in classes, or structs) in that assembly **
that make calls on any of Method1, Method2 or Method3 **
I see how I can load the assembly, and iterate thru all the types in that
assembly, but I stumped on the "check to see if any code in those types
calls MyClass in MyAssembly".
Is this possible? Can someone give me some pointers as to where to start
looking?
Cheers,
Rob
MyAssembly.DLL
public MyClass
{
public void Method1() {;}
public void Method2() {;}
public void Method3() {;}
private void DetectCalls()
{
//See question below
}
}
I want the DetectCalls method to be able to:
1] Load an arbitrary assembly
2] Find all instances of code (in classes, or structs) in that assembly **
that make calls on any of Method1, Method2 or Method3 **
I see how I can load the assembly, and iterate thru all the types in that
assembly, but I stumped on the "check to see if any code in those types
calls MyClass in MyAssembly".
Is this possible? Can someone give me some pointers as to where to start
looking?
Cheers,
Rob