T
Tony Maresca
Don't know if there are any Delphi/Object Pascal converts
here, but being one, I sorely miss the feature that permits
class (e.g., static) methods to be virtual and be overridden
in derived classes.
Related to that, given:
public class Foo
{
static void SomeMethod()
{
// How can I tell what derived class this
// static method was called through?
}
}
public class Bar : Foo
{
/...
}
Bar ABar = new Bar();
ABar.SomeMethod();
In the above, I want the method implementation
in Foo() to determine the class it was called through
(in this case, Bar).
Any suggestions are welcome
--
Tony M.
here, but being one, I sorely miss the feature that permits
class (e.g., static) methods to be virtual and be overridden
in derived classes.
Related to that, given:
public class Foo
{
static void SomeMethod()
{
// How can I tell what derived class this
// static method was called through?
}
}
public class Bar : Foo
{
/...
}
Bar ABar = new Bar();
ABar.SomeMethod();
In the above, I want the method implementation
in Foo() to determine the class it was called through
(in this case, Bar).
Any suggestions are welcome
--
Tony M.