J
John Rivers
is there a way to invoke the (local?) base implementation of a virtual
method from the same class?
class A {
protected virtual void Blah() {
throw new Exception("never hits here");
}
public void Fud() {
this.Blah(); // hmmm invokes most derived // same as Blah();
}
}
class B : A {
protected override void Blah() {
// stuff
Fud();
// more stuff
}
}
method from the same class?
class A {
protected virtual void Blah() {
throw new Exception("never hits here");
}
public void Fud() {
this.Blah(); // hmmm invokes most derived // same as Blah();
}
}
class B : A {
protected override void Blah() {
// stuff
Fud();
// more stuff
}
}