Explore Type Dependency Diagram

Explore Type Dependency Diagram

ReSharper allows you to visually study how types depend on each other in your solution. In the type dependency diagram, you can add any number of types from different projects or compiled assemblies and visualize different kinds of dependencies between them.

Adjust the view of the diagram

Type dependency diagram can be laid out in two ways:

  • Inheritance Hierarchy Layouter— this option arranges types according to their inheritance relations: the base types are moved upward.

  • Business Logic Layouter— this option arranges types according to all displayed relations between them.

You can switch between these options using the corresponding selector in the left:         

 

Study dependencies between types

On the type dependency diagram, you can visualize several kinds of dependencies. To show or hide specific kinds of dependencies, use the corresponding items in the Filter Dependencies ThemedIcon Filter Screen Gray png selector:

    • Aggregation Dependencies— displays a kind of dependency when a type is a collection or container of other types,
      This kind of dependency is shown as a green dotted line. Name of the corresponding field is shown next to the line. You can hover the mouse over this line to see the field declaration and navigate to the corresponding place in the editor.

    • Usages Dependencies— displays a kind of dependency when variables, parameters or method returns of one type are used in another type.
      This kind of dependency is shown as a blue line whose thickness reflects a relative number of usages. You can hover the mouse over this line to see the list of usages:                  

Clicking on specific usages will bring you to the corresponding place in the text editor, clicking on the Show all usages link opens all usages in the Find Results window.             

    •   Inheritance Dependencies— displays a kind of dependency when one type extends or implements another type. This kind of dependency is shown as a grey line. You can hover the mouse over this line to see the inheritance relation and navigate to the corresponding place in the editor. Transitive inheritance dependencies are shown using dashed lines. You can hover the mouse over such lines and use the popup to check the types though which the dependency goes and add these types to the diagram by clicking on them.                 
作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(190)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2019-12-04 Object changed by Unknown
2018-12-04 read appSettings in configuration file by XElement with xmlns
2018-12-04 get all sites under IIS
2017-12-04 cache
2017-12-04 gridview in webform
2015-12-04 Lists of network protocols
2015-12-04 websocket
点击右上角即可分享
微信分享提示