How to make sure custom class supports deterministic
finalization?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of return in c#?

707


What is the difference between throw and throw ex?

654


What is difference between int and int in c#?

655


How do I unload an application domain?

710


What is difference between an Structure and Class?

789


What are circular references?

718


Explain acid rule of thumb for transactions in c#.

720


What is an actual parameter?

665


What is super class in c#?

635


What is yield break in c#?

700


Explain the difference between “as” and “is” operators used in c#?

720


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

764


Do while loops yes or no c#?

725


Can we make a Static Constructor Parameterized? Give Reason with your answer

769


What does an indexer do?

639