This is a Visual Studio extension that can convert C# code snippet to XML sample code comment(or vice versa).
This extension adds two menu items Code To XML Comment, Code From XML Comment to the code editor’s context menu.
Select code snippet or XML comment you want to convert and click the menu item, the result will be placed on the system clipboard.
Both starting and ending lines of your selection will be automatically extend to the whole line.
Code To XML Comment
Lines start with triple-slash will be ignored, while all other lines will be treated as code snippet.
To exclude <code> tag from the result, holding Shift key while clicking the menu item.