Generate Sequence Diagrams in Visual Studio 2010 Ultimate

I was checking out the new ‘Generate Sequence Diagram’ feature in Visual Studio 2010 and it’s pretty cool!

So if you have a piece of code in a method as shown below and want to generate a sequence diagram for it, just right click the method > ‘Generate Sequence Diagram’

image

You can choose various options like the Call Depth and Call scope as shown below:

image

On hitting the OK button, VIsual Studio 2010 analyzes the code and builds a sequence diagram based on its analysis results as shown below:

image

Impressive, I say!!



Will you give this article a +1 ? Thanks in advance


About The Author

Suprotim Agarwal
Suprotim Agarwal, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook

Follow him on twitter @suprotimagarwal

5 comments:

Я said...

Which version VS2010 can build Sequence Diagram? I'm using VS2010 professional, and there is no such menu item.

Suprotim Agarwal said...

As mentioned in the post title, Visual Studio 2010 Ultimate has this feature

barebonescoder said...

Do you know if the sequence diagrams stay in sync with the underlying objects, like the class diagrams do?

Suprotim Agarwal said...

Good question. I need to try that and get back to you!

Anonymous said...

How to you resize the thing? I could not do so. such as deferred call box. tried to resize but i have no idea how to do it.