Код: Выделить всё
public class BaseClass
{
protected virtual void createArrays(int vertexCount)
{
// do the actual work
}
}
public class A : BaseClass
{
protected override void createArrays(int vertexCount)
{
// Do something specific to A
base.createArrays(vertexCount);
}
}
public class B : A
{
protected override void createArrays(int vertexCount)
{
//Do something specific to B, but not to A
base.base.createArrays(vertexCount); // this is the part that doesn't work, I actually want to call the createArrays from the BaseClass
}
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... ide-method
Мобильная версия