Class A
{
public virtual void Add() { .....}
}
Class B : A
{
public override void Add() {.....}
}
Class C : B
{
// how to invoke Add() of class A here.
}
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 15, 2012, 8:19 AM
base.Add() will of course just call B.Add() and
((A)this).Add() will cause C.Add() to be called recursively because it's a virtual method and '(A)this' is still a C.