Does c# supports destructors?

Answer Posted / chinju

yes c# support destructor.it is used to delete object
explicitly.Dispose() is used for this.if we didn't write the
destructor explicitly it will call the default destructor ie
Finalize().always destructor is executed after the execution
of name space

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bits is int32?

589


Is object an int c#?

622


Is a games console a computer?

561


Why do we use partial class in c#?

568


What is an escape sequence? Name some string escape sequences in c#.

601






What is the difference between system.string and system.text.stringbuilder classes?

594


What are properties in C#?

623


What is ildasm.exe used for?

623


How do I download a program to my desktop?

551


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

588


Can we have static indexer in c#?

579


What is a function c#?

595


What are strings in c#?

593


What is c sharp used for?

568


What does return do in unity?

602