-
static method question
Is there some way inside a static method to determine whether it is being
called on a base class or an inherited class. For instance:
public class BaseClass
{
public BaseClass() {}
public static MyMethod()
{
}
// other non-static methods
}
public class InheritedClass : BaseClass
{
public InheritedClass() {}
//notice this one doesn't implement or override MyMethod
}
So is this there a way to determine inside of MyMethod whether it was called
via BaseClass.MyMethod or InheritedClass.MyMethod?
If it wasn't static I could use "this" to get its type. So how do I do it
since it is static?
Thanks
Sean
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|