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
What is the main usage of keyword “virtual†? How does it work for a method or property?
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
Explain the difference between access specifier and access modifier in c#?
Does c# have its own class library?
Does c# replace c++?
What does out mean in c#?
What is anonymous methods in c#?
Are attributes inherited c#?
What is remote data?
What is a linked list c#?
What is asynccallback c#?
How many variables do you need?
Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.
Are tuples immutable c#?
Explain partial class in c#?