Exercise 2: Discovering Circular References

In this exercise, you will learn how to use the circular reference analyzer in order to discover classes that are strongly coupled to each other.

  1. Return to the original class dependencies graph (ClassDependencies1.dgml) and make sure that the Product class node is selected.

    Figure 21

    Class dependency graph with Product selected

  2. Right-click somewhere within the dependency graph and select Analyzers | Circular References to identify types that are strongly coupled.
  3. De-select the Product node by clicking on a blank spot within the graph. Note that there are red outlines around types that are strongly coupled to the Product class.

    Figure 22

    Class dependency graph showing circular references between Product and other types

    Note:
    Red relationship lines indicate direct circular references whereas the normal gray relationship lines indicate indirect circular references (there is at least one other type in-between).

To give feedback please write to VSKitFdbk@Microsoft.com

Copyright © 2010 by Microsoft Corporation. All rights reserved.