I want to find the location of all method calls to a single class at runtime. I'm using reflection, but I cannot find a way to locate where it is being used. For example:
public class Test
{
public void Method1()
{
// do something
}
public void Method2()
{
Method2();
}
}
I want to find at runtime Method2 is called by Method1. Is there a way?
I think there should be, as Visual Studio can do it via "Find All References". Thanks.
Aucun commentaire:
Enregistrer un commentaire