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 does console writeline do?

494


Does c# do array bounds checking?

543


How do I develop c# apps?

529


What is the data type for bit in c#?

477


How do you escape c#?

506






What is the difference between ienumerable and iqueryable?

448


Explain about Serialize and MarshalByRef?

551


What is a shared assembly?

543


What is difference between c and c sharp?

461


Why is xml called extensible?

503


What is difference between constants and readonly in c#?

488


What is tuple in c#?

534


In dynamic link library, which api is used for load library?

525


What is difference between array and arraylist c#?

462


What does using system mean in c#?

496