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

Answers were Sorted based on User's Feedback



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

Answer / mahesh

By Using the iDisposable method

Is This Answer Correct ?    6 Yes 1 No

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

Answer / 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

More Dot Net General Interview Questions

Can a try block have more than one catch block?

0 Answers  


What is garbage collection and how it works ?

0 Answers  


Do you know what is garbage collector?

0 Answers  


What is Global Assembly Cache (GAC) and what is the Purpose of it?

1 Answers  


What is Finalizer in .NET define Dispose and Finalize ?

0 Answers   MCN Solutions,


How can I tell if .net 3.5 is installed?

0 Answers  


Difference between value type & reference types ?

0 Answers  


Explaing your project.

1 Answers   Deloitte,


Explain the process of compilation in .NET?

0 Answers  


What are HTML controls, Web controls, and server controls?

1 Answers  


What’s different between process and application in .net?

0 Answers  


How to instantiate a delegate?

0 Answers  


Categories