Go to Implementation feature

2 posts, 0 answers
  1. Will Huang
    Will Huang avatar
    10 posts
    Member since:
    Feb 2009

    Posted 27 May 2010 Link to this post


    The most of all my class are defined "Interface" first, then implement a concrete class that implement this Interface. Everytime I want to navigate to my concrete class are very inconvenient.  This is sometimes called Inversion of Control (IoC) pattern.  Does JustCode could provide a feature that could jump from a method of a interface to it's concrete implementation class?


  2. Svetlozar
    Svetlozar avatar
    261 posts

    Posted 01 Jun 2010 Link to this post

    Hello Will,

    Considering this code

    public interface ITest
            void Test1();
            void Test2();

    public class Class1 : ITest
        public void Test1() {  }

        public void Test2() {  }

    public class Class2 : ITest
        public void Test1() {  }

        public void Test2() {  }

    static void Main(string[] args)
        ITest test = new Class1();

    you can do "Go To Definition" on Test1() of test, which will navigate you  to the definition in the interface. There is an arrow left to the definition of the method. If you have only one class that implements the interface, clicking on the arrow will do "Find Overriding Members" that will navigate you to the actual implementation. If you have several classes that implement the interface, "Find Overriding Members"  will popup a dialog with the implementations of the method in the classes. You can navigate to the actual method from there. 

    You can also check here:
    JustCode Documentation
    Find Overridden Members
    Find Overriding Members

    Svetlozar Angelov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top