can we use dispose and finalise at same time

Posted by Jameschowdare under C# on 4/6/2009 | Views : 1503 | Status : [Member] | Replies : 1
or can we use both dispose ,finalise




Responses

Posted by: Majith on: 4/6/2009 [Member] Starter

Up
0
Down
James,

Implicit :
Both are used to destroy the objects. when you have some unused resources or objects in your class then you have to use the code in
the finalize() method.

Explicit :

By using the IDisposable interface . The code should be written in
Dispose() method.

Thanks

Jameschowdare, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response