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
What is the purpose of static?
Can struct have constructor c#?
What is the difference between disposing of () and finalize() methods in c#?
What is ControlBox Propertie
What is the difference between static class and sealed class in c#?
What is garbage collection? How to force garbage collector to run?
What is the default value of decimal in c#?
Why linq is having select clause at the end?
Can a struct be null?
What is a type c#?
What are classes in c#?
What is reference types in c#?
What is private static in c#?
What is yield in c#?
Explain copy constructor?