B
Bill
Hi,
How can I access a (non-static) member method that is two levels above
mine, from a member method that has the same name?
How can I access C_A0.func() from inside C_A000.func() ???
Is this possible?
Thanks a lot.
Bill
// ----------------------------
namespace Project0
{
public class C_A0
{
public int func()
{
return(1);
}
}
public class C_A00 : C_A0
{
new public int func()
{
return(2);
}
}
public class C_A000 : C_A00
{
new public int func()
{
// How can I access C_A0.func() from here??
// It does not let me write "base.base.func()". I can access the
first "base", but not the second one.
// It does not let me write "C_A0.func()", because that function
is not static.
return(3);
}
}
}
How can I access a (non-static) member method that is two levels above
mine, from a member method that has the same name?
How can I access C_A0.func() from inside C_A000.func() ???
Is this possible?
Thanks a lot.
Bill
// ----------------------------
namespace Project0
{
public class C_A0
{
public int func()
{
return(1);
}
}
public class C_A00 : C_A0
{
new public int func()
{
return(2);
}
}
public class C_A000 : C_A00
{
new public int func()
{
// How can I access C_A0.func() from here??
// It does not let me write "base.base.func()". I can access the
first "base", but not the second one.
// It does not let me write "C_A0.func()", because that function
is not static.
return(3);
}
}
}