chinmay.sahoo
New member
• Dispose() is called by the user
• Same purpose as finalize, to free unmanaged reso rces. However, implement this when you are writing a
custom class, that will be used by other users.
• Overriding Dispose() provides a way for user code to free the nmanaged objects in your custom class.
• Dispose() has to be implemented in classes implementing IDispose interface.
• Dispose() method is called explicitly in the code itself.
• Same purpose as finalize, to free unmanaged reso rces. However, implement this when you are writing a
custom class, that will be used by other users.
• Overriding Dispose() provides a way for user code to free the nmanaged objects in your custom class.
• Dispose() has to be implemented in classes implementing IDispose interface.
• Dispose() method is called explicitly in the code itself.