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.
Answers were Sorted based on User's Feedback
Answer / amit kumar mishra
public void Dispose()
{
GC.SupressFinalize(this);
}
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / imatoria
http://msdn.microsoft.com/en-us/magazine/cc163392.aspx
Is This Answer Correct ? | 0 Yes | 1 No |
Can we inherit class that contains only one private constructor?
Define method overloading in c#?
What is unrecognized escape sequence in c#?
What is the difference between ienumerable and enumerable?
Which is faster list or dictionary in c#?
What is the use of readkey in c#?
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
Are attributes inherited c#?
What is helper method in c#?
Diff b/w casting and boxing
What is delegate in c# interview questions?
Is goto statement supported in c#?