Go to definition in the base class

619 Views Asked by At

In Visual Studio when I have a base class with method
public virtual void A()
and a derived class with method
public override void A()
how can I navigate from the latter to the definition in the base class?

When I view the Call Hierarchy I see:
A
- Calls To 'A'
- Calls To Base Member 'A'
Not the definition Base A.

1

There are 1 best solutions below

2
Gerard On

In the method public override void A() set the cursor at the word override and press F12 i.e. 'Go To Definition'.

It also works correctly when there are more levels of inheritance.