|
-
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks