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 |
Explain the three test cases in unit testing?
Which types of inheritances does c# support?
What is boxing & unboxing?
What is the difference between == and object.equals?
What is difference between variable and property in c#?
Can you declare a field readonly?
Define constructors
What is array class in c#?
What is the difference between Hash Table and Arrays?
What is cli in c#?
Is there any way to access private memebers of an object from another object?
Does c# have its own class library?