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 |
Describe ways of cleaning up objects.
How?s the DLL Hell problem solved in .NET?
Explain About the Sattilite Assembly in .Net Technology?
What is the difference between new and override in c#?
Are there constructors in c sharp?
How many digits is a 32 bit number?
Overloaded constructor will call default constructor internally?
What is Implementation inheritance and interface inheritance?
Explain about finalize method?
Write a short note on interface?
What is icollection in c#?
Explain About Virtual functions and their use.