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?

Answers were Sorted based on User's Feedback



How structure objects are destroyed? As GC releases only the objects in stack, and structure is a ..

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

How structure objects are destroyed? As GC releases only the objects in stack, and structure is a ..

Answer / xyz

As GC releases only
the objects in stack, and structure is a value type and
stored in heap......



answer is... question itself

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More C Sharp Interview Questions

What does Dispose method do with the connection object?

3 Answers  


What is the purpose of private constructor in c#?

0 Answers  


What is Inheritance in C#?

0 Answers   B-Ways TecnoSoft,


Are multiple data types stored in System.Array?

0 Answers   Siebel,


What are actions in c#?

0 Answers  






What is strongly typed in c#?

0 Answers  


What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?

3 Answers  


Explain attributes in c#?

0 Answers  


How encapsulation and abstraction defined/used in C#.NET.

8 Answers   Synechron,


What are the Types of JIT and what is econo-JIT

0 Answers   TCS,


Explain namespaces in c#.

0 Answers  


What operators can be used to cast from one reference type to another without the risk of throwing an exception?

0 Answers  


Categories