1.

Usually In .net, The Clr Takes Care Of Memory Management. Is There Any Need For A Programmer To Explicitly Release Memory And Resources? If Yes, Why And How?

Answer»

If the application is using expensive EXTERNAL resource, it is recommend to EXPLICITLY RELEASE the resource before the garbage collector runs and frees the object. We can do this by implementing the Dispose method from the IDisposable interface that PERFORMS the necessary cleanup for the object. This can CONSIDERABLY improve the performance of the application.

If the application is using expensive external resource, it is recommend to explicitly release the resource before the garbage collector runs and frees the object. We can do this by implementing the Dispose method from the IDisposable interface that performs the necessary cleanup for the object. This can considerably improve the performance of the application.



Discussion

No Comment Found