How can you clean up objects holding resources from within
the code?
Answer Posted / nagasaichand
2 PROCEDURES FORT THIS:
1)Make that value of object as null once the scope is finished.
2)use dispose(); method
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is it possible to inline assembly or il in c# code?
What is byte c#?
What is poco c#?
Is array passed by reference in c#?
How C# 4.0 supports dynamic programming language?
Perfect Example Of While And Do-While Loop In C#.Net ?
Is list a collection c#?
What is the difference between static class and singleton class in c#?
what is collections in .net? why we use?
How objects are stored in memory?
What is the difference between static and private constructor in c#?
Why do we need generics?
Can you explicitly call a destructor?
What is callback in c#?
Can you use foreach iteration on arrays in c#?