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


Please Help Members By Posting Answers For Below Questions

Are objects passed by reference in c#?

523


Is list ienumerable c#?

608


what is the default access for a class

580


what is the syntax to inherit from a class in c#?

546


What are the different approaches of passing parameters to a method?

484






What are reflections in c#?

489


What is the difference between and xml documentation tag?

523


Can we customize the serialization process?

526


What's new in c#?

491


Explain the difference between a struct and a class?

508


What is value c#?

462


What are extensions methods in c#?

473


What are console applications used for?

485


Can a abstract class have a constructor?

466


Why generics are used?

497