how to cleanup object that does not support dispose method?
How to implement dispose for such scenarios?

Answers were Sorted based on User's Feedback



how to cleanup object that does not support dispose method? How to implement dispose for such scena..

Answer / rahul

i guess by using final function , but it is heavy operation.

Is This Answer Correct ?    2 Yes 0 No

how to cleanup object that does not support dispose method? How to implement dispose for such scena..

Answer / yogi

Can use System.GC.Collect() to clean up objects and force the garbage collection manually

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is desktop GUI application?

0 Answers  


Value Type and Reference Type Data type in C#?

0 Answers   HCL,


Will the following code compile and run?

0 Answers  


What you mean by delegate in c#?

0 Answers  


Explain the features of an abstract class in net.

0 Answers  


Which is more efficient for loop or while loop?

0 Answers  


Can you allow class to be inherited, but prevent the method from being over-ridden?

5 Answers  


How to navigate from one page(form) to another page(form) using C#.net...please give me the example

6 Answers  


What is nullable types in c#?

0 Answers  


What is singleordefault?

0 Answers  


Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?

0 Answers   Siebel,


What is dto c#?

0 Answers  


Categories