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

What is difference between ienumerable and iqueryable in c#?

0 Answers  


class Program { void add() { int x=10, y=20; fun(); Console.WriteLine("{0}", sum); } void fun() { int sum; sum = x + y; } static void Main(string[] args) { Program f =new Program(); f.add(); } } Debug above program.....

3 Answers   HCL,


What is the difference between parse and tryparse in c#?

0 Answers  


FOR EXAMPLE : CLASS Dotnet { } creating object: Dotnet dn=new Dotnet(); NOW THE QUESTION IS WHICH IS CALLED AS OBJECT ? EITHER dn OR new Dotnet() and CAN YOU PROVE YOUR ANSWER????? PLEASE REPLY...

2 Answers  


What is the use of readkey in c#?

0 Answers  






What is the difference between a class and an object c#?

0 Answers  


What is yield return in c#?

0 Answers  


What is difference between float and integer?

0 Answers  


What are c# i/o classes? What are the commonly used i/o classes?

0 Answers  


What is the real use of interface in c#?

0 Answers  


Can you declare the override method static while the original method is non-static?

5 Answers  


what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?

0 Answers  


Categories