- Garbage collection is the mechanism that reclaims the memory resources of an object when it is no longer referenced by a variable.
- .Net Runtime performs automatically performs garbage collection, however you can force the garbage collection to run at a certain point in your code by calling System.GC.Collect ().
- Garbage Collection is always running with low priority thread in back ground of an application.
- Advantage of Garbage collection is it prevents programming error that could otherwise occur by incorrectly deleting or failing to delete objects.
Garbage Collection
Subscribe to:
Post Comments
(
Atom
)
0 comments :
Post a Comment