J
Joel
Is there a way to call a base class implementation of a protected method
when Here's the scenario:
class MyApp
{
public static Main()
{
D obj=new D();
obj.Method1();
}
}
class B
{
protected void Method1()
{
}
protected void Method2()
{
//I want to call B's implementation of Method1 even though I'm
running as D's implementation of Method2;
//conceptually I want to do: this.base.Method1();
}
}
class D : B
{
override protected void Method1()
{
Method2();
}
}
Is this doable?
TIA
</joel>
when Here's the scenario:
class MyApp
{
public static Main()
{
D obj=new D();
obj.Method1();
}
}
class B
{
protected void Method1()
{
}
protected void Method2()
{
//I want to call B's implementation of Method1 even though I'm
running as D's implementation of Method2;
//conceptually I want to do: this.base.Method1();
}
}
class D : B
{
override protected void Method1()
{
Method2();
}
}
Is this doable?
TIA
</joel>