Cool! I’ve just discovered this new feature in Visual Studio 2010 (Beta 2) where you can generate a sequence diagram from your code. This should take the hard bit out of generating documentation from your code :)
Here’s a screen shot:
The only thing you need to to is to point to the method you want to see a sequence diagram for, right-click and choose Generate Sequence Diagram…
Then Visual Studio will ask you how deep you want to go, which classes/methods to include in the sequence diagram:
And then you can start making changes to the diagram:
Nice!