Hello everyone,
In my understanding, this method only prevents GC from invoking Finalize method of the instance, it does not prevent GC from reclaiming the memory consumed by the instance? Right?
thanks in advance,
George
Hello everyone,
In my understanding, this method only prevents GC from invoking Finalize method of the instance, it does not prevent GC from reclaiming the memory consumed by the instance? Right?
thanks in advance,
George
You ask a lot of questions that are easily answered by googling.
I'll give you a hint, check and compare the following google keywords with your original question:
http://www.google.se/search?hl=sv&q=...finalize&meta=
Then check out one of the top results from the search for your answer.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Thanks Magos,
I have a further question about Dispose pattern after study.
http://msdn2.microsoft.com/en-us/library/b1yfkh5e.aspx
What are "MANAGED resources"? As mentioned in the MSDN link "// Clear up MANAGED resources here."? In my understanding, managed resource is a C# class which implements IDisposable interface or have a Finalizer, and such class may have wrapped native resource. Not sure whether my understanding of the concept of managed resource is correct?
regards,
George