IDisposable 模式片段
IDisposable pattern snippet
如何编辑 IDisposable 模式片段?
我在哪里可以找到它?
似乎只有 VB 代码片段可用
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VB\Snippets33\common code patterns\types\ImplementTheDisposeFinalizePattern.snippet"
但我正在寻找 C# 版本...
你应该下载它 Dispose Snippet
Installation is as easy as saving to the correct folder which changes
depending on your version of Visual Studio:
2005: C:\Users\Documents\Visual Studio 2005\Code
Snippets\Visual C#\My Code Snippets
2008: C:\Users\Documents\Visual Studio 2008\Code
Snippets\Visual C#\My Code Snippets
2010: C:\Users\Documents\Visual Studio 2010\Code
Snippets\Visual C#\My Code Snippets
2012: C:\Users\Documents\Visual Studio 2012\Code
Snippets\Visual C#\My Code Snippets
2013: C:\Users\Documents\Visual Studio 2013\Code
Snippets\Visual C#\My Code Snippets
如何编辑 IDisposable 模式片段? 我在哪里可以找到它?
似乎只有 VB 代码片段可用 "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VB\Snippets33\common code patterns\types\ImplementTheDisposeFinalizePattern.snippet" 但我正在寻找 C# 版本...
你应该下载它 Dispose Snippet
Installation is as easy as saving to the correct folder which changes depending on your version of Visual Studio:
2005: C:\Users\Documents\Visual Studio 2005\Code Snippets\Visual C#\My Code Snippets
2008: C:\Users\Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets
2010: C:\Users\Documents\Visual Studio 2010\Code Snippets\Visual C#\My Code Snippets
2012: C:\Users\Documents\Visual Studio 2012\Code Snippets\Visual C#\My Code Snippets
2013: C:\Users\Documents\Visual Studio 2013\Code Snippets\Visual C#\My Code Snippets