Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: DllImport and cstring Pin
Saamir31-Aug-07 4:15
Saamir31-Aug-07 4:15 
GeneralRe: DllImport and cstring Pin
leppie31-Aug-07 5:02
leppie31-Aug-07 5:02 
GeneralRe: DllImport and cstring Pin
Saamir31-Aug-07 5:16
Saamir31-Aug-07 5:16 
QuestionListBox Pin
minniemooo31-Aug-07 3:12
minniemooo31-Aug-07 3:12 
AnswerRe: ListBox Pin
pmarfleet31-Aug-07 3:47
pmarfleet31-Aug-07 3:47 
AnswerRe: ListBox Pin
\laddie31-Aug-07 4:31
\laddie31-Aug-07 4:31 
QuestionDifference b/w dispose() & finalize() Pin
Dineshraj31-Aug-07 1:48
Dineshraj31-Aug-07 1:48 
AnswerRe: Difference b/w dispose() & finalize() Pin
Colin Angus Mackay31-Aug-07 2:00
Colin Angus Mackay31-Aug-07 2:00 
Dineshraj wrote:
dispose() and finalize()methods in c#?


Dispose() is an implementation of the IDisposable interface. It is used to clean up unmanaged resources from an object when it is no longer needed. You explicitly call the Dispose method.

The Finalize method (using the destructor syntax in C#) is called when the Garbage collector cleans up the object. It should not be created unless needed as it slows garbage collection. If it is needed it most likely will call the Dispose method (so that all your clean up code is in one place). You have no control over when the finaliser is called.


Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ...

My website

GeneralRe: Difference b/w dispose() & finalize() Pin
martin_hughes31-Aug-07 2:48
martin_hughes31-Aug-07 2:48 
GeneralRe: Difference b/w dispose() & finalize() Pin
Pete O'Hanlon31-Aug-07 3:12
mvePete O'Hanlon31-Aug-07 3:12 
AnswerRe: Difference b/w dispose() & finalize() Pin
Pete O'Hanlon31-Aug-07 2:07
mvePete O'Hanlon31-Aug-07 2:07 
GeneralRe: Difference b/w dispose() & finalize() Pin
Colin Angus Mackay31-Aug-07 3:12
Colin Angus Mackay31-Aug-07 3:12 
AnswerRe: Difference b/w dispose() & finalize() Pin
Vasudevan Deepak Kumar31-Aug-07 2:31
Vasudevan Deepak Kumar31-Aug-07 2:31 
AnswerRe: Difference b/w dispose() & finalize() Pin
Scott Dorman31-Aug-07 8:18
professionalScott Dorman31-Aug-07 8:18 
AnswerRe: Difference b/w dispose() & finalize() Pin
Scott Dorman31-Aug-07 8:19
professionalScott Dorman31-Aug-07 8:19 
QuestionReceiving Mail from an Exchange Server Pin
Programm3r31-Aug-07 1:20
Programm3r31-Aug-07 1:20 
AnswerRe: Receiving Mail from an Exchange Server Pin
Vasudevan Deepak Kumar31-Aug-07 2:30
Vasudevan Deepak Kumar31-Aug-07 2:30 
Questionhow use Line Break in Gios PDF .NET library [modified] Pin
sanjeevRanjan31-Aug-07 1:07
sanjeevRanjan31-Aug-07 1:07 
AnswerRe: how use Line Break in Gios PDF .NET library Pin
Vasudevan Deepak Kumar31-Aug-07 2:34
Vasudevan Deepak Kumar31-Aug-07 2:34 
Questionquery string encryption Pin
Sonia Gupta31-Aug-07 1:05
Sonia Gupta31-Aug-07 1:05 
AnswerRe: query string encryption Pin
Pete O'Hanlon31-Aug-07 1:08
mvePete O'Hanlon31-Aug-07 1:08 
GeneralRe: query string encryption Pin
Sonia Gupta31-Aug-07 1:32
Sonia Gupta31-Aug-07 1:32 
GeneralRe: query string encryption Pin
Pete O'Hanlon31-Aug-07 1:58
mvePete O'Hanlon31-Aug-07 1:58 
AnswerRe: query string encryption Pin
Vasudevan Deepak Kumar31-Aug-07 2:33
Vasudevan Deepak Kumar31-Aug-07 2:33 
Questionasp.net panel like code project Pin
mfmaneef31-Aug-07 1:02
mfmaneef31-Aug-07 1:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.