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
Answer / rahul
i guess by using final function , but it is heavy operation.
Is This Answer Correct ? | 2 Yes | 0 No |
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 |
What is internal and protected-internal accessspecifier in c#.net?
What is the difference between an XML "Fragment" and an XML "Document." ?
Can firstordefault return null?
What is data type in c# with example?
How to Show Message box in Metro Style App?
What is null propagation c#?
What is the difference between field and variable in c#?
What is action in c# 3.5?
What are most desktop applications written in?
How do you escape c#?
what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?
What does return do in unity?