Does c# supports destructors?

Answer Posted / mahesh

No, I didnt think distructor is supported by C# as far as
dispose() is concern it is used for clean up code like
finalize the object is distroyed automatically by garbage
collector

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hashtable in c# net with example?

569


Is hashset serializable c#?

585


Is array ienumerable c#?

561


What does console readkey do in c#?

586


Write a short note on interface?

672






Which is better interface or abstract class in c#?

520


What is string method in c#?

574


How to create multi-dimensional array?

680


In which order the destructor is called for an inherited class?

604


What are delegates in C#?

645


What is c# commonly used for?

554


Why do we use public static void main in c#?

550


List down the differences between public, static and void keywords?

545


What is a hashset c#?

550


Why is it efficient to use System.string under System.Text.StringBuilder ?

608