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
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