问题
Note: This is a Visual Studio 2015 feature only, as far as I know...
How can I edit the Implement interface with Disposable Pattern option?
This is NOT a question on how to Implement the Dispose Pattern and its variations, but how to edit the option "Implement interface with Disposable Pattern"
I would like to remove some comments and add some code on the Disposable Pattern, but I want it to be saved and every time I click "Implement interface with Disposable Pattern", it implements my code, not the default one. Also I would like to create my own "Implement interface with MyOwn Pattern" option and target it to a interface (not limited to IDisposable)
I have tried to do it with code snippet, but it doesn't work, I can't create or edit a "Implement interface with XXX" option.
It seems that this option is kind of "built in", but it seems like a "extensible" option...
来源:https://stackoverflow.com/questions/40358969/implement-interface-with-disposable-pattern