Hi,
I am using Factory pattern to create .NET objects of a class. I also need to make sure that all such objects should be disposed before application terminates.
Where and How can I dispose the objects created by factory pattern? Shall I dispose in the class in which I am getting the objects created by factory?