Implement interface with Disposable Pattern

故事扮演 提交于 2021-02-08 05:16:34

问题


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?

Implement Interface with Disposable Pattern

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!