How can you clean up objects holding resources from within
the code?
Answer Posted / ramesh
We can clean up object holding resources by using dispose()
method. Example
DataSet DS=new DataSet()
DS.Dispose()
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is xamarin used for?
Give an example to show for hiding base class methods?
What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
How many constructor can a class have?
What is the use of console application in c#?
How do I declare a pure virtual function in c#?
What is polymorphism in c sharp?
Do vs while c#?
What is new method in c#?
What is the main usage of keyword “virtual†? How does it work for a method or property?
What are generic types?
Give some examples of commonly used i/o classes?
How can we make a thread sleep for infinite period ?
Why can't we use a static class instead of singleton?
what is method overloading in c#?