I created a class which is inherited from interface
IDisposable. Now if I use object of this class with using
keyword. Then How the dispose method will get call. Does
garbage collector call it or some else.
Answer Posted / amit kumar mishra
public void Dispose()
{
GC.SupressFinalize(this);
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why is lazy loading?
In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?
Why do we need a singleton class?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
Define satellite Assembly in .NET?
What is the main usage of keyword “virtual†? How does it work for a method or property?
What does clr stand for?
What is an example of a delegate?
When do we generally use destructors to release resources?
What is Covariance and contravariance in C#?
What is static classes?
What is data type in c# with example?
How long does it take to get a loop recorder put in?
What is lambda expression in c#?
What are modifiers in c#?