Is it possible to determine the type when a static call is called by a derived type
Considering
public class Original {
public static DoStuff() {
}
}
public class Derived : Original {
}
when calling
Derived.DoStuff();
The perversity of the requirement aside, is it possible to DoStuff()
detect the class to which it was called?
i.e. is it possible in the implementation to DoStuff()
tell the difference between Original.DoStuff();
andDerived.DoStuff();
+3
source to share
3 answers