George George

George George

  • NA
  • 778
  • 0

Dispose pattern in class derivation

Apr 16 2008 7:34 AM

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)