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

Answer Posted / tarun singla

Easiest way is to make the value of that object as null,
once the scope of that object is over. We generally do this
in the 'finally' section of the code.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does xpath return?

539


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

526


What is value c#?

462


What is console read in c#?

489


Give examples for reference types?

541






What is helper method in c#?

496


What is the difference between const and readonly in c#.net?

505


How do I do implement a trace?

541


What is expression tree with example?

489


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

552


Explain what is copy constructor?

554


Can you create sealed abstract class in c#?

485


What is dictionary and hashtable in c#?

469


What is sqladapter c#?

532


If you define a user defined data type by using the struct keyword, is it a value type or reference type?

518