How structure objects are destroyed? As GC releases only
the objects in stack, and structure is a value type and
stored in heap. So how structure objects are released?

Answer Posted / chandu

Structure is a class but value type.once if you create an
object for any class then that is reference type,so
reference types can be destroyed by GC

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are delegates?

1010


What is predicate c#?

733


How a two-dimensional array declared in C#?

749


Describe the parts of assembly.

729


What's the difference between abstraction and encapsulation?

687


What is difference between a type and class?

829


What is a reference type c#?

721


What are the different types of delegation?

671


How to create multi-dimensional array?

804


How do I do implement a assert?

745


What is the difference between virtual and override in c#?

753


What types of object can I throw as exceptions?

749


What are the fundamental oop concepts?

698


Explain how do you debug an asp.net web application?

684


Explain the various types of classes used in c#?

711