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
A typical Dispose() implementation only calls Dispose() on any objects that it stores in its fields that are disposable. Which in turn release unmanaged resources. If you implement IDisposable and not actually do anything, like you did in your snippet, then the object state doesn't change at all. Nothing can go wrong. Don't mix up disposal with finalization.