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 virtual methods in c#?

0 Answers  


What are extender provider components?

0 Answers  


Can you prevent your class from being inherited and becoming a base class for some other classes?

5 Answers  


What is a console in c#?

0 Answers  


Is javascript harder than c#?

0 Answers  






Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana

0 Answers  


Explain “static” keyword in c#?

0 Answers  


How to throw an caught exception from cath block?

3 Answers   TCS,


What is a system lock?

1 Answers   AZTEC, Wipro,


How much time will it take to learn unity?

0 Answers  


What are the collection types can be used in c#?

0 Answers  


Why are strings in c# immutable?

0 Answers  


Categories