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 verbatim string literal in c#?

685


Define c# delegate?

773


What is linq c#?

701


Can we override main method in c#?

724


What is the usage of OLE?

805


Define boxing and unboxing in c#?

677


What is session state in asp net c# with example?

679


Is namespace a class?

677


What is difference between association, aggregation and inheritance relationships?

730


What does it mean?

747


Why do we still see so much non-oo code written in c# today?

713


What is assembly version series sequence?

759


What is xml comments in c#?

714


3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close

1637


Is c# different than c++?

700