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
How do I count the length of a string in c#?
Why do we Need of static class in c#?
Explain anonymous type in c#?
What is a linq in c#?
Define a strong name in .net?
What is the difference between c and c sharp?
Can you mark static constructor with access modifiers?
Can we change static value in c#?
What does out mean c#?
What is ac callback?
When do you generally use a class over a struct?
Describe the types of comments in c#?
In .NET how can you solve the DLL Hell problem?
What is function c#?
What is the use of console readkey ()?