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 is an assembly in dotnet?

725


What is use of hashtable in c#?

657


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

746


What is a namespace server?

645


What is variable in c#?

729


What is c# and why it is used for?

698


what is a constructor? What is a destructor?

732


How do you escape in c#?

730


How to install or uninstall a windows service?

777


How is a loop recorder monitored?

711


What is lazy in c#?

674


What is difference between list and ilist in c#?

634


Why should I use interface in c#?

716


Can partial class be inherited?

689


What are the advantages of interface in c#?

690