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.

Answers were Sorted based on User's Feedback



I created a class which is inherited from interface IDisposable. Now if I use object of this class ..

Answer / amit kumar mishra

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

Is This Answer Correct ?    2 Yes 1 No

I created a class which is inherited from interface IDisposable. Now if I use object of this class ..

Answer / imatoria

http://msdn.microsoft.com/en-us/magazine/cc163392.aspx

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Sharp Interview Questions

Which layer executed first among these Application layer,Buisness layer or Data Base Layer?

2 Answers   L&T,


What is an example of delegation?

0 Answers  


What is strong data type in c#?

0 Answers  


What is the importance of closing an ado.net application?

0 Answers  


How can we make a thread sleep for infinite period ?

0 Answers  


What is property c#?

0 Answers  


Whats the use of string builder?

1 Answers   ADITI,


Why do we need properties in c#?

0 Answers  


Are multiple data types stored in System.Array?

0 Answers   Siebel,


Can destructors have access modifiers?

0 Answers  


What is difference between ienumerable and list in c#?

0 Answers  


Explain the types of Polymorphism.

0 Answers   Accenture,


Categories