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 / imatoria

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

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does a constructor do c#?

492


Is multilevel inheritance possible in c#?

476


What is nameof c#?

483


What is an interface class? Give one example of it

478


What is the difference between ienumerable and icollection?

468






What is msil in c#?

546


Why does my windows application pop up a console window every time I run it?

518


What does ienumerable mean?

478


What is the use of protected in c#?

491


Define collections?

492


What is difference between abstraction and encapsulation in c#?

512


Explain the advantage of using system.text.stringbuilder over system.string?

463


Can I do things in il that I can't do in c#?

522


Is array ienumerable c#?

467


What is a linq in c#?

477