dispose wrapped resource
For the following code pattern, suppose both Base class and Component class are implementing IDisposable.
In the destructor of Foo class, there is no need to call Dispose method of Base class and Component class explicitly, and they will be called automatically during the Finalize process of Foo instance?
Class Foo : Base
private Component component = new Component();
// component's Dispose method will be called automatically?
// Base's Dispose method will be called automatically?
thanks in advance,