How can you clean up objects holding resources from within
the code?
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
resource.
Is This Answer Correct ? | 4 Yes | 0 No |
To clean up objects holding resources is to make use of
Dispose Method.
Is This Answer Correct ? | 1 Yes | 0 No |
What Is The Difference Between The System.array.copyto() And System.array.clone()?
What is type checking in c#?
How C# 4.0 supports dynamic programming language?
What is ControlBox Propertie
wt is namespace? wt is the use?
What are interfaces in c#?
Can you inherit multiple abstract classes in c#?
Can you specify nested classes as partial classes?
What is a console operator?
What does assert() do?
What is a virtual property. Give an example?
What is function c#?