Method DisposeHostObjects
DisposeHostObjects()
Releases resources held by the host objects and clears the collection.
protected virtual void DisposeHostObjects()
Remarks
This method disposes of each object in the collection if it implements IDisposable, clears the collection, and sets the reference to null. Override this method in a derived class to provide additional cleanup logic for host objects.