Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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.
  • Leaders
Posted

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?

[sIGPIC]e[/sIGPIC]
Posted
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.

  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...