KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Let's say I have a disposable object MyDisposable whom take as a constructor parameter another disposable object. using(MyDisposable myDisposable= new MyDisposable(new AnotherDisposable())) { //whatever } Assuming myDisposable don't dispose the AnotherDisposable inside it's dispose method. Does this only dispose correctly myDisposable ? or it dispose the AnotherDisposable too?
Tags (comma-separated)
Save Edits
Cancel