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
Is it not possible to store a boolean value as a variable?
What is the difference between wrapper class and primitive?
What is data reader in c#?
explain the nature of the assembly work?
Differentiate between the public and private ?
What is variable and its classification?
What is difference between events and delegates?
What is lock in c#?
What is a c# delegate?
Which language is used for desktop application?
without modifying source code if we compile again, will it be generated MSIL again?
Define multicast delegate? How it be used?
What are different types of Delegates in C#?
What are the boolean data types in c#?
What is session management in c#?