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

Which namespace does it belong to by default?

792


What is your observations between vb.net and vc#.net?

812


How to use datagrid value in select statements where condition ,if cell is hyperlink bounded column?

774


Why did they call it .net?

792


What is the difference between odbc and ado?

803


What is a manifest in .net?

806


can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?

1698


Explain what is the difference between a class and an object, and how do these terms relate to each other?

769


What is alias ? Is it used in .Net ?

852


Difference between value type & reference types ?

804


What is meant by globalization and localization?

802


Explain me what is the .net framework and how does it work?

784


Is there built-in support for tracing?

808


When displaying fonts, what is the difference between pixels, points and ems?

784


what is dotnet architecture? can anyone explain that.

3931