8
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?