class GrandParent
{
public virtual void Foo() { ... }
}
class Parent : GrandParent
{
public override void Foo()
{
base.Foo();
//Do additi
No, this isn't possible. Imagine how crazy things would be if this was possible.
If you want something specific skipped in the Child
case, consider reworking your design to better represent what you need (e.g. maybe you need to override something else in the Child
class, too). Or, you could provide another Foo()
in the Parent
class that doesn't do anything except call its base.Foo()
.