I was looking for a C# code solution, where i can dispose all the open objects in memory.
There is a Class A which have many objects instances running. While the function executes, many objects get closed but few don't get closed due to some exceptions.
But at the End I want all the un-closed objects to be disposed finally.
Any solution on this?