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
What are different types of Delegates in C#?
What is a multicast delegate in c#?
Why we use dll in c#?
What is list array in c#?
What are data types with examples?
What are events in C#?
What do you mean by abstract class in c#?
why delegate is type safe?
Is c# an open source language?
What is the advantage of singleton class?
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?
What type of data type conversion happens when the compiler encounters the following code?
What are the benefits of using the aggregate method in linq?
What is the difference between decimal and integer?
Can extension methods access private members?