what is the use of dispose methodthis dispose


What is the use of DISPOSE method?

This Dispose method belongs to the IDisposable interface. It is bad  to override the finalize method for writing the cleaning of the unmanaged resources. Therefore if any object wants to release its unmanaged code, the best is to implement IDisposable and override the Dispose method of IDisposable interface. Later once your class has exposed the Dispose method it is the responsibility of the client to call the Dispose method to do the cleanup.

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: what is the use of dispose methodthis dispose
Reference No:- TGS0161277

Expected delivery within 24 Hours