I guess there's no built-in funcionality in Visual Studio for this purpose, but I would be happy if someone could direct me to (free one, if possible) extension that can do this.
public class Program
{
static void Main(string[] args)
{
Annoy annoy = new Tubo();
annoy.DoTubo();
}
}
public class Annoy
{
public virtual void DoTubo()
{
Console.WriteLine("Annoy.DoTubo()");
}
}
public class Tubo : Annoy
{
public override void DoTubo()
{
Console.WriteLine("Tubo.DoTubo()");
}
}
When I go with F12
(Go to definition), the carret navigates to Annoy.DoTubo()
and not to Tubo.DoTubo()
.
I've found a plugin for the similar purpose (only for classes impelementing interface and not classes inheriting other classes) here.
I guess ReSharper and VisualAssist has this functionlaity, but I'm looking for a free one if there's any.
annoy
is declared as anAnnoy
object; theDoTubbo
method is being called from theAnnoy
class due to the variable declaration. How would VS know to go to the base class? – SkewbackAnnoy annoy = AnnoyFactory("Tubo");
– Kaczmarek