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
What is difference between float and integer?
What are the properties of c#?
How can it prevents DLL Hell assembly versioning in .NET?
Explain About Virtual functions and their use.
Can you put two constructor with the same structure in a class?
What is c# best for?
Can a constructor have a return type?
How can we set class to be inherited, but prevent the method from being over-ridden?
What are the different types of constructors?
If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?
Can we change static value in c#?
What is integer c#?
Explain the difference between abstract class and interface.
What's the difference between a method and a procedure?
How do switch statements work?