I have a superclass that is inherited by many subclasses. I would like to find all the calls to a particular method in this superclass that come from instances of a particular inheritance class. Is this possible in VS2012 (with Resharper 7.1)?
Code example:
public class Super
{
public void foo(Arg a)
{
...
}
}
public class Sub1 : Super
{
...
}
public class Sub2 : Super
{
...
}
public class SomeClass
{
public void Run()
{
...
var sub1 = new Sub1();
sub1.foo(a);
var sub2 = new Sub2();
sub2.foo(b);
}
}
I would like to find only a call to sub2.foo(b)not sub1.foo(a)in the above example.
source
share