rbulph Posted August 25, 2006 Posted August 25, 2006 How can I find all classes that inherit from another? The object browser has an item on the menu called "Show Derived Types" which you can check, but this doesn't work as I would expect. For instance a search for TypeConverter with this checked does not find ExpandableObjectConverter which inherits from this. Quote
Leaders snarfblam Posted August 25, 2006 Leaders Posted August 25, 2006 To display derived types 1. Open your project in the IDE. 2. In Class View, on the Class View Grouping menu, select Show Derived Types. � or � In the Object Browser, on the Object Browser Settings menu, select Show Derived Types. For each node in the tree that is a type, a Derived Types sub node appears that contains a list of all the derived types of a type. [/Quote] I am as confused as you are because it does not work for me either. Which version of which program are you using? Quote [sIGPIC]e[/sIGPIC]
rbulph Posted August 25, 2006 Author Posted August 25, 2006 I am as confused as you are because it does not work for me either. Which version of which program are you using? Microsoft Visual Studio 2005 Version 8.0.50727.42 Visual Basic From the help library: "Show Derived Types Toggles display of derived types in the Objects pane. Available only for Visual C#." Perhaps they mean "Works only" rather than "Available" since for Visual Basic the menu option is there and not disabled but doesn't seem to work. It would be a shame if you can't do this because to be able to see examples of anything that inherits from a class could be useful in forming an understanding of that class. Quote
Leaders snarfblam Posted August 26, 2006 Leaders Posted August 26, 2006 I should have said this, but I am using C# express. The option is present but does not work in the object browser and is not present in the class viewer window. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.