Link to home
Start Free TrialLog in
Avatar of MDKDevelopers
MDKDevelopersFlag for Canada

asked on

Garbage collection in .NET

I have a question how garbage collection works in .NET.  I have a website, which calls a class and then that class calls another class.  Website1 --> class1 --> class2.  If class2 throws an exception which is caught by Website1 and in the Finaly statement I set class1 = Nothing, would this clean up any and all objects tha were initialized up to the exception?  I would like your answer and maybe a link to some good article about this topic.
Avatar of jppinto
jppinto
Flag of Portugal image

ASKER CERTIFIED SOLUTION
Avatar of openshac
openshac

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The link to the article provided by the user that you've accepted the answer is the same as mine, and I posted first!

jppinto
Avatar of MDKDevelopers

ASKER

jppinto,
Please read my entire question,  I believe there is a statement "I would like your answer and maybe a link to some good article about this topic." I was looking for an Expert's opinion and not just a blind link to articles.