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

Answer Posted / nagasaichand

2 PROCEDURES FORT THIS:
1)Make that value of object as null once the scope is finished.
2)use dispose(); method

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of static?

501


Can struct have constructor c#?

502


What is the difference between disposing of () and finalize() methods in c#?

547


What is ControlBox Propertie

577


What is the difference between static class and sealed class in c#?

470






What is garbage collection? How to force garbage collector to run?

498


What is the default value of decimal in c#?

494


Why linq is having select clause at the end?

534


Can a struct be null?

494


What is a type c#?

499


What are classes in c#?

580


What is reference types in c#?

477


What is private static in c#?

481


What is yield in c#?

499


Explain copy constructor?

664