Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
can you please give me one word answer for this what is the exact difference between these things
Posted

1 solution

No.


There you go - a one word answer.

You cannot describe any of the differences between four disparate concepts in one word: it isn't possible. Particularly when one of them isn't even a concept in C# or VB - "free".
 
Share this answer
 
Comments
Balu Balaji 25-Feb-13 4:12am    
finalize is implicitly called by garbage collector

Dispose is explicitly called by user called when we call a method Syste.GC.Collect();


as per my knowledge i think like this is it correct or Not?
OriginalGriff 25-Feb-13 4:32am    
No.
Dispose can be called by the user explicitly, or implicitly via the using block, otherwise it is called by the Garbage collector whenever it decides that an object is no longer necessary. It is not necessary to invoke the garbage collector to Dispose an object. As a part of the Dispose operation, the GC calls Finalize to allow release of unmanaged resources (unless it is suppressed) - the Finalize method cannot be called directly from any user code, including the Dispose method, if any.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900