B
bubby
I have a database interface class (an abstract class) that has two
derived classes that work with two different types of databases. If
the dervied classes have managed, and unmanged resources and the base
(abstract) class doesn't, how do I implement the IDisposable interface?
Do I have the base (abstract) class inherit from IDisposable? If I
do, how will that work since the class is abstract and no instance is
actually created. Or, should I just implement the interface
IDisposable off of the two derived classes?
Thanks!
bubby
derived classes that work with two different types of databases. If
the dervied classes have managed, and unmanged resources and the base
(abstract) class doesn't, how do I implement the IDisposable interface?
Do I have the base (abstract) class inherit from IDisposable? If I
do, how will that work since the class is abstract and no instance is
actually created. Or, should I just implement the interface
IDisposable off of the two derived classes?
Thanks!
bubby