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

What are different types of Delegates in C#?

1020


What is a multicast delegate in c#?

987


Why we use dll in c#?

963


What is list array in c#?

871


What are data types with examples?

985


What are events in C#?

986


What do you mean by abstract class in c#?

973


why delegate is type safe?

3005


Is c# an open source language?

997


What is the advantage of singleton class?

948


If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?

1012


What type of data type conversion happens when the compiler encounters the following code?

933


What are the benefits of using the aggregate method in linq?

1009


What is the difference between decimal and integer?

1113


Can extension methods access private members?

909