Let's say we have these two classes:
public class Base
{
public static int GetInt() { return 1; }
}
public class Derived : Base
{
}
Let's also say that a piece of code calls Derived.GetInt(). How can I tell from within GetInt() that it was Derived.GetInt() and not Base.GetInt() that was called? What reflection technique do I use?