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
What is the base class for array types?
Show us in simple steps to create setup & deployment project for windows application?
What is difference between Enum and Struct?
How many constructors can a class have c#?
What you mean by delegate in c#?
How many types of collections are there in c#?
Why do we override in c#?
Can destructors have access modifiers?
What does the initial catalog parameter define in the connection string?
Why main is static in c#?
What is concrete method in c#?
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
What are the different ways of method can be overloaded?
Can a class have static constructor?
Explain the role of the datareader class in ado.net connections?