How to make sure custom class supports deterministic
finalization?



How to make sure custom class supports deterministic finalization?..

Answer / sandeep negi

By implementing IDisposable interface! Try to use 'using'
block so that after executing this block its dispose method
will be called automaticaly.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Why do we use methods in c#?

0 Answers  


If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?

1 Answers  


Why do we need events in c#?

0 Answers  


What is the advantage of dependency injection?

0 Answers  


What are the extension methods in c#?

0 Answers  






What is meant by desktop application?

0 Answers  


What is the difference between paramaterized constructor and copy constructor?

0 Answers   HCL,


update data in an xml file which resides in solution itself, using silverlight 4.0

0 Answers  


What is the difference between System.String and System.StringBuilder classes?

9 Answers  


how background thread access to ui control?

0 Answers   HCL,


How many types of delegates are there in c#?

0 Answers  


What can you do as a .net developer?

0 Answers  


Categories