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 private and shared assembly?

637


What is the difference between Decorator and Adapter pattern?

610


if a method is marked as protected internal who can access it?

644


For read-only operation which property you have to designated?

664


Explain the types of comments in c#?

630






What is the difference between firstordefault and singleordefault?

563


What is icomparable in c#?

617


Why do we need singleton class in c#?

614


Distinguish between continue and break statement?

654


What is remote data?

542


What is the difference between interface and inheritance in c#?

552


What is global namespace in c#?

587


what is IDisposal interface

784


Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.

676


What is the difference between gettype and typeof in c#?

530