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 internal and protected-internal accessspecifier in c#.net?

1 Answers  


What is the difference between an XML "Fragment" and an XML "Document." ?

1 Answers  


Can firstordefault return null?

0 Answers  


What is data type in c# with example?

0 Answers  


How to Show Message box in Metro Style App?

0 Answers   PUCIT,






What is null propagation c#?

0 Answers  


What is the difference between field and variable in c#?

0 Answers  


What is action in c# 3.5?

0 Answers  


What are most desktop applications written in?

0 Answers  


How do you escape c#?

0 Answers  


what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?

0 Answers   4Cplus,


What does return do in unity?

0 Answers  


Categories