I have a very large project with multiple pages. each page has many IDisposable members.
Im trying to figure out a way to dispose all the IDisposable members in a loop so i wont have to type x1.Dispose(); x2.Dispose; ... xn.Dispose on each class.
Is there a way to do this?
Thank you.
Aucun commentaire:
Enregistrer un commentaire