2
Answers

Dispose pattern in class derivation

Ask a question
George George

George George

16y
1.9k
1

Hello everyone,


For the Dispose pattern, here is what MSDN mentioned,

http://msdn2.microsoft.com/en-us/library/b1yfkh5e(VS.80).aspx

--------------------
Implement the dispose design pattern on a base type that commonly has derived types that hold onto resources, even if the base type does not.
--------------------

Could anyone let me know what means "on a base type that commonly has derived types that hold onto resources" and "the base type does not"? Could anyone show some pseudo code please?


thanks in advance,
George


Answers (2)