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
Can we inherit private class in c#?
What is the difference between system.string and system.text.stringbuilder classes?
What is a thread? What is multithreading?
Which of these string definitions will prevent escaping on backslashes in c#?
Which is faster dictionary or hashtable?
Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?
Is it possible to have different access modifiers on the get/set methods of a property in c#?
What is meant by unicode characters?
When Should You Call The Garbage Collector In .net?
How do I create a new form in c#?
What is the keyword used to prevent a class from being inherited by another class?
What is ado c#?
What is executereader in c#?
What is an escape sequence?
Can a method be sealed in c#?