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!!






About The Author

Suprotim Agarwal
Suprotim Agarwal, Developer Technologies MVP (Microsoft Most Valuable Professional) is the founder and contributor for DevCurry, DotNetCurry and SQLServerCurry. He is the Chief Editor of a Developer Magazine called DNC Magazine. He has also authored two Books - 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook.

Follow him on twitter @suprotimagarwal.

5 comments:

Anonymous 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

Anonymous 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.