In开发者_Go百科 Visual Studio I can use the Refactor -> Extract Interface... option to generate an interface from public methods on a class. However this does not copy across the XML comments and I end up spending several minutes copying and pasting them. Are there any macros or add-ins that can use the existing comments on the class when auto creating an interface?
Have you tried using ReSharper?
When I extracted an interface using ReSharper, the XML comments on the extracted methods were preserved.
The GhostDoc addin will probably help you out here.
精彩评论