Can Resharper be set to warn if IDisposable not handled correctly?

前端 未结 5 1437
醉话见心
醉话见心 2020-12-01 18:00

Is there a setting in Resharper 4 (or even Visual Studio itself...) that forces a warning if I forget to wrap code in a using block, or ommit the proper Dispose

5条回答
  •  独厮守ぢ
    2020-12-01 18:32

    Discontent with current methods, I created my own: EyeDisposable. It's an IL instrumenter so it should catch many leaks not caught by static analysis. It's still in its early stage, inpuits are welcome.

提交回复
热议问题