Difference between dispose and destructor?

Answer Posted / penchal das

Dispose()is a method which is used to deallocate the unused
resources.

Destructor() is a method which is called when an object was
destroyed.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the object class in c#?

688


How do you pass reference parameters in c#?

637


What is the difference between decimal and integer?

724


Why is it not a good idea to use empty destructors?

736


What is the difference between selection and projection?

635


Explain jagged arrays in c#?

754


What is the delegate in c#?

664


What is difference between .net and c#?

678


Why do we use virtual methods in c#?

685


What is difference between event and delegate in c#?

665


What is 8 bit signed integer?

644


What is concrete class in c#?

650


Give examples for reference types?

720


Contrast System.String and System.Text.StringBuilder classes?

708


How to reverse each word in a string using c#?

773