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

How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?

0 Answers  


Please explain value types and reference types used in c#?

0 Answers  


How to handle exceptions that are raised in a component?

0 Answers   Alcatel-Lucent,


What is the purpose of dictionary in c#?

0 Answers  


Is c# a strongly-typed language?

0 Answers  


What type of data type conversion happens when the compiler encounters the following code?

0 Answers  


What can you do as a .net developer?

0 Answers  


What is object pool in .net?

0 Answers  


An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differences.

6 Answers   Synechron,


Howmany five tracing levels in System.Diagnostics.TraceSwitcher? Why they are using?

0 Answers   Siebel,


public void A() { int x; x = 8; x *= 4 + 8 / 2; } Given the above code, what is the value of "x"?

8 Answers  


what is boxing and unboxing?can we initialize unboxing directly?

0 Answers   EDS,


Categories