Getting a reference to the base class of a base class from an inherited class

E

Edward Forgacs

Is there any way to get a reference to the base class of a base class from
an inherited class? I need to call an overriden method.

Any help would be much appreciated.
 
J

Jon Skeet [C# MVP]

Edward Forgacs said:
Is there any way to get a reference to the base class of a base class from
an inherited class? I need to call an overriden method.

You can't call a "grandparent" method - you can only call the parent's
version of a method, using base.MethodName().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top