Is it legal to call a method on disposed object? If yes, why?
In the following demo program, I\'ve a disposable class A (which implements IDisposa
The exception is not thrown because you have not designed the methods to throw ObjectDisposedException after Dispose has been called.
The clr does not automagically know that it should throw ObjectDisposedException once Dispose is called. It's your responsibility to throw an exception if Dispose has released any resources needed for successful execution of your methods.