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 |
what is used ref keyword in c#,and how we used it?
What does a constructor do c#?
write a program to find the biggest palindrome in the given string
What are expressions c#?
Is object an int c#?
Is unboxing an implicit conversion?
Difference between call by value and call by reference in C#?
How is exception handling implemented in c#?
What is Dispose method in .NET?
What are get and set in c#?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?
What is a satellite assembly in c#?