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 Uses of CLR

715


What is a static in c#?

670


For methods inside the interface why can’t you specify the accessibility modifier?

734


What is static class in C#?

766


Why reflection is used in c#?

681


What is the advantage of static class in c#?

693


What is a factory in c#?

674


Why generics are used in c#?

690


What do u mean by thread safe?

701


What is instantiating a class in c#?

682


What are the types of access modifiers?

687


What is multithreading with .net?

764


What is static classes in c#?

716


What are the types of operator?

634


Is xamarin free?

628