J
James Hancock
I have a parent class that has a static method on it. Of course it's
inherited by the children which is what I want.
However, in that static method, I need to know the child that the method was
called from. (specifically the Type)
I can get the CallingAssembly but that just gives me the place where the
static method was called, not the type that the static method was called on.
Here's what my code looks like:
public class someClass {
public static void SomeMethod() {
}
}
public class someClassChild : someClass {
... more stuff here.
}
In the code it calls like this: someClassChild.SomeMethod();
In the .SomeMethod that is actually on someClass I need to know that
someClassChild was actually called. all I need is the type.
I've looked all over the reflection namespace but can't find anything. What
am I missing?
Thanks!
James hancock
inherited by the children which is what I want.
However, in that static method, I need to know the child that the method was
called from. (specifically the Type)
I can get the CallingAssembly but that just gives me the place where the
static method was called, not the type that the static method was called on.
Here's what my code looks like:
public class someClass {
public static void SomeMethod() {
}
}
public class someClassChild : someClass {
... more stuff here.
}
In the code it calls like this: someClassChild.SomeMethod();
In the .SomeMethod that is actually on someClass I need to know that
someClassChild was actually called. all I need is the type.
I've looked all over the reflection namespace but can't find anything. What
am I missing?
Thanks!
James hancock