Click here to Skip to main content
15,914,924 members
Home / Discussions / C#
   

C#

 
GeneralRe: convert image to Byte Pin
TAREQ F ABUZUHRI31-Aug-07 4:40
TAREQ F ABUZUHRI31-Aug-07 4:40 
GeneralRe: convert image to Byte Pin
Steve Hansen31-Aug-07 4:41
Steve Hansen31-Aug-07 4:41 
GeneralRe: convert image to Byte Pin
leppie31-Aug-07 5:06
leppie31-Aug-07 5:06 
GeneralRe: convert image to Byte Pin
TAREQ F ABUZUHRI31-Aug-07 9:49
TAREQ F ABUZUHRI31-Aug-07 9:49 
GeneralRe: convert image to Byte Pin
Mairaaj Khan1-Sep-07 1:32
professionalMairaaj Khan1-Sep-07 1:32 
Questionerror Array Pin
TAREQ F ABUZUHRI31-Aug-07 4:26
TAREQ F ABUZUHRI31-Aug-07 4:26 
AnswerRe: error Array Pin
Steve Hansen31-Aug-07 4:42
Steve Hansen31-Aug-07 4:42 
QuestionGeneric Error While running in localhost without port Pin
MahiRaju31-Aug-07 3:49
MahiRaju31-Aug-07 3:49 
QuestionDllImport and cstring Pin
Saamir31-Aug-07 3:28
Saamir31-Aug-07 3:28 
AnswerRe: DllImport and cstring Pin
leppie31-Aug-07 3:46
leppie31-Aug-07 3:46 
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 

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.