Click here to Skip to main content
13,797,212 members
Rate this:
Please Sign up or sign in to vote.
See more:
can you please give me one word answer for this what is the exact difference between these things
Posted 24-Feb-13 21:49pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


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".
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
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.181207.3 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100