dotPeek 2017.1 Help

Exploring Type Hierarchy

Inspect | Hierarchies

With dotPeek, you can investigate the inheritance hierarchy of types. You can see both base types and inheritors of the selected type and navigate to any of them with a mouse click. For any node in the hierarchy, you can view all or only polymorphic members in the preview pane.

To investigate hierarchy

  1. Open the desired type in the code viewer or expand it in the Assembly Explorer, and place the cursor on the type or a type member.
  2. Press Ctrl+Alt+H or choose Inspect | Hierarchies in the main menu .
  3. Examine type hierarchy in the dedicated tab that adds to the Hierarchy window.

Some symbols in the tree are displayed in a bold font. It means that they inherit directly from the type being examined.

Viewing type hierarchy

Hierarchies can be rather complicated, making it difficult to find one particular symbol, especially when you have doubts about its name and place in the hierarchy. In such case you can start typing a part of symbol's name or its CamelHumps abbreviation and dotPeek narrows down the set of elements in the window:

Filtering members in type hierarchy
If you want to see what modules contain symbols in the hierarchy, select Containing Modules Hierarchy in the Group by list.

You can also visualize the current hierarchy on the type dependency diagram by clicking the Show on Diagram /help/img/dotnet/2017.1/ThemedIcon.TypeLayoutAlt.Screen.[Gray].png on the toolbar.

To rebuild a hierarchy for an intermediate node

  1. In the hierarchy tree view, select the desired node.
  2. Click Base on This /help/img/dotnet/2017.1/ThemedIcon.Base.Screen.[Gray].png on the toolbar or choose the corresponding command in the context menu of the selection.

To preview members of a type selected in the hierarchy

  1. Select a type in the hierarchy.
  2. Click Show Members /help/img/dotnet/2017.1/ThemedIcon.PreviewToggle.Screen.[Gray].png on the toolbar . The members preview pane displays at the bottom of the window:
    Members preview in the Hierarchy window
  3. You can move the preview pane to the right of the window by clicking the down arrow next to Show Members /help/img/dotnet/2017.1/ThemedIcon.PreviewToggle.Screen.[Gray].png on the toolbar and selecting Right.
  4. You can also preview either all members of a type, or just those that are polymorphic. To switch between these two modes, use the All Instance Members /help/img/dotnet/2017.1/ThemedIcon.AllMembers.Screen.[Gray].png and Only Polymorphic Members /help/img/dotnet/2017.1/ThemedIcon.VirtualMembers.Screen.[Gray].png buttons at the top of the preview pane.

This feature is inspired by and borrowed from JetBrains ReSharper, a developer productivity tool for Microsoft Visual Studio.

Last modified: 24 August 2017

See Also