If I have a SomeDisposableObject
class which implements IDisposable
:
class SomeDisposableObject : IDisposable
{
public void Dis
Design you have mentioned here is not something could handle this scenario. You said there is a container for that class then it should dispose it along with itself. If other objects may be using it then it is not the container and scope of you class widens and it need to dispose at boundary of that scope.