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’
You can choose various options like the Call Depth and Call scope as shown below:
On hitting the OK button, VIsual Studio 2010 analyzes the code and builds a sequence diagram based on its analysis results as shown below:
Impressive, I say!!