Dealing with .NET IDisposable objects

后端 未结 12 779
自闭症患者
自闭症患者 2021-01-30 13:14

I work in C#, and I\'ve been pretty lax about using using blocks to declare objects that implement IDisposable, which you\'re apparently always suppose

12条回答
  •  情话喂你
    2021-01-30 14:00

    According to this link the CodeRush add-in will detect and flag when local IDisposable variables aren't cleaned up, in real-time, as you type.

    Could meet you halfway on your quest.

提交回复
热议问题