What is the difference between the value-type variables and reference-type variables in terms of garbage collection?

 Posted by Blessybaby on 1/5/2010 | Category: .NET Framework Interview questions | Views: 5341

The value-type variables are not garbage-collected, they just fall off the stack when they fall out of scope, the reference-type objects are picked up by GC when their references go null.

| Alert Moderator 

Comments or Responses

Login to post response