Quantcast
Viewing latest article 5
Browse Latest Browse All 5

Created Feature: Auto-Implement Dispose Checker [11317]

If you implement IDisposable, you should throw ObjectDisposedException whenever any member on your object is used after Dispose() is called. Doing something like this:

[CheckForDispose]
public class MyClass : IDisposable { // ... }

Would do that check for the developer.

Viewing latest article 5
Browse Latest Browse All 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>