How can you clean up objects holding resources from within
Answers were Sorted based on User's Feedback
The recommended practice is to implement both Finalize as
well as Dispose methods on an object which needs to clean up
unmanaged resources. The Finalize method would serve as a
backup mechanism in the event that the Dispose is never
called. The garbage collector would perform the object
finalization and prevent a permanent leak of the unmanaged
|Is This Answer Correct ?||4 Yes||0 No|
Does c# support #define for defining global constants?
Why do we use anonymous method in c#?
What does it mean to override a method?
Does c# have a 'throws' clause?
What is the difference between abstract and virtual?
Can a method return multiple values in c#?
Difference between value and reference type. What are value types and reference types?
Tell us something about static linking and dynamic linking?
what is IFormatable
When do you generally use a class over a struct?
How do you implement multiple inheritance in .NET?
what are the advantages of c# over vb.net?