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

What is the difference between vb.net and vc#.net?

542


What is .net standard?

600


Explain about .net assemblies?

605


Please explain what are an object and a class?

527


What is meant by managed and unmanaged code?

602






When we go for html server controls and when we go for web server controls?

536


Which namespace is used to support multithearding in .NET?

525


What is the use of design pattern?

565


Explain what is reflection in microsoft .net context?

559


what will do to avoid prior case?

591


Do you know the difference between the stack and the heap?

533


Difference between machine.config and web.config?

564


Whate are resource files?

607


What's the problem with .net generics?

558


What are code contracts?

596