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 |
how to use caching in our program. why we use it give one example in code
Is c# front end or back end?
What is serialization of data?
Suppose in a scenario if we want to display information only until 4.00 p.m and after that means after 4.00 p.m if any one tries to access the information it should give error mesage. Then how will you write a delegate for this ? Give coding.
1 Answers HP, nTech Solutions, Primetech Software, PS,
What is the use of functional interface?
Is list ienumerable c#?
How to use exception handling in stored procedure?
How many static constructors are allowed in a class?
What is the difference between method overriding and method overloading?
How many variables do you need?
Can constructor be protected?
Can abstract class be sealed?