How can you clean up objects holding resources from within
the code?
Answer Posted / nagasaichand
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 |
Post New Answer View All Answers
Explain About ADO and its objects
What is difference between comparable and comparator?
Is lazy thread safe c#?
What is array and its types in c#?
How does array sort work?
the c# keyword .int. Maps to which .net type?
Why delegates are type safe in c#?
What is desktop application testing?
What is a delegate? Explain.
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
What is array collection?
What does string format do?
What are satellite assemblies? How will you get the different language strings?
Why data types are important?
What is difference between new and override in c#?