Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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.

Answer Posted / amit kumar mishra

public void Dispose()
{
GC.SupressFinalize(this);
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is lazy loading?

915


In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?

1166


Why do we need a singleton class?

1081


What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?

1023


Define satellite Assembly in .NET?

1043


What is the main usage of keyword “virtual” ? How does it work for a method or property?

960


What does clr stand for?

982


What is an example of a delegate?

999


When do we generally use destructors to release resources?

983


What is Covariance and contravariance in C#?

1118


What is static classes?

1005


What is data type in c# with example?

1107


How long does it take to get a loop recorder put in?

896


What is lambda expression in c#?

1013


What are modifiers in c#?

927