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 linq c#?
What is dll in vb.net?
What can we do to handle multiple exceptions?
What does console readkey do in c#?
1)what is timestamp in C# (anilringole@gmail.com)
What is the difference between static and constant variables?
Define encapsulation?
what is the difference between c-sharp and vb.net?What kind of security or advances we find in both languages?
Difference between ByVal and ByRef?
Hello.. This is kali prasad. i wish to learn C#. kindly guide me in making me expert in c#.
Is c# an array?
How can we sort an array in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)