Click here to Skip to main content
11,437,978 members (53,579 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VB.NET
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
good
Please Sign up or sign in to vote.

Solution 1

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".
  Permalink  
Comments
leaderbalaji at 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 at 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)



Advertise | Privacy | Mobile
Web04 | 2.8.150506.1 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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