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
Distinguish between continue and break statement?
What is the use of xmlserializer?
Why abstract class can not be instantiated?
What is xamarin used for?
What is use of FormBoarderStyle Propertie
How to use the sreamReader class to read form a text file?
What is the difference between final finally and finalize in c#?
Why would you use untrusted verification?
Explain what are three test cases you should go through in unit testing?
Can you instantiate an abstract class c#?
What's new in c#?
What is a void c#?
Is double a decimal?
How can I use .NET components from COM programs?
What is float in unity?