What is Dispose method in .NET ?
Answer Posted / neerajtyagi
Whenever you want to release unusable resources used by
your class automatically , you should implement IDisposable
interface in your class.
Implementing IDisposable will provide you Dispose method in
subclass, where you can code your own to release unused
resources.
| Is This Answer Correct ? | 7 Yes | 8 No |
Post New Answer View All Answers
Can an exception be thrown from a catch block?
How do I unload an application domain?
What do you mean by delegates and explain different types of delegates?
How we convert private assembly into public assembly?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
Is c sharp open source?
What are the ways in which client can create object on server in cao model?
What is typeof c#?
How to sign an assembly with strong name?
What is a boolean c#?
What is data type in c# with example?
What are the 2 broad classifications of data types available in c#?
What is singleordefault?
What is data types in c#?
What does console readline do?