المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Garbage Collection in C#.



C# Programming
04-06-2009, 01:41 PM
After how much time later the garbage collector is called automatically to recycle the objects?How the garbage collector Knows to which object has to be recycled in the memory? And where we have to Call the garbage collector?

Example: If i have write a code of 500 lines and define a object in the starting and use the object in second last line of the code. Is the garbage collector recycle the object before its use or not.