Is there a drawback to calling GC.SuppressFinalize(object) multiple times?
The protected Dispose(bool) method of the deletion template checks to see if it has been called before, but there is no such check in the public Dispose() method.
public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (_Disposed) return; if (disposing) {
Can I call the Dispose() method of an instance of MyClass several times?
source share