How can you clean up objects holding resources from within
the code?

Answer Posted / raju jaiwardhan

you would need to use a constraint to mandate types
implementing the IDisposable interface to call the Dispose
method.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what is serialization?

571


Can "this" be used within a static method?

582


Explain what is an anonymous method and how is it different from a lambda expression?

525


What is clr in .net?

627


Describe the use of following com+ services jit activation, queued components, object pooling.?

538






Tell us the difference between managed and unmanaged code?

537


Explain the difference between the while and for loop. Provide a .net syntax for both loops?

519


How is .net able to support multiple languages?

615


What is il in vb.net?

608


Why did they call it .net?

600


How to load a user control dynamically in runtime?

552


Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?

1625


hai, about trading domain and need simple project on trading system. please help me...

1580


Describe session handling in a webform, how does it work and what are the limitations?

579


Please explain the difference between constants and read-only variables?

550