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 |
Why would you use untrusted verification?
What is the difference between out and ref in c#?
what are wrapper classes?
What do you mean by thread safe in c#?
What exactly is serverless?
What is expression tree with example?
What is singleordefault?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What are native functions?
What is the use of regex in c#?
What?s the implicit name of the parameter that gets passed into the class? set method?
How to use exception handling in stored procedure?