Easily generate sequence diagrams from your .NET code with Visual Studio 2012 Ultimate

Posted: (EET/GMT+2)

 

Being able to quickly understand your code and the relationships between methods is a great aid, especially if you need to jump into a large project and find your way inside the code quickly. If you have Visual Studio 2012 Ultimate at your disposal, there's a great feature called Generate Sequence Diagram, which I find a very useful one.

To use the feature, simply go to the code editor, and right-click inside any method you are interested in creating the sequence diagram from. The method you choose here will be the "root", and any calls made from this method will be shown in the diagram.

A related feature is the Code Map feature, also available in the Ultimate edition once you install the Update Pack 1 or later. Sequence diagrams are useful in understanding your code and supporting documentation, while the Code Map feature is a great aid while debugging.

Be sure to check these out!