adspace


What is difference between value and reference types ?

Answer Posted / gowthami

value types are stored in the memory.
reference types are stored in the heap.
all implicit datatypes,enums,structs are value types.
delegates,objects are reference types..
pointer to the heap where the data is located is maintained
in the stack
when we delete a reference type pointer to the heap is
deleted from the stack

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign Null value to Var?

1064


Why can't we use a static class instead of singleton?

954


How do you inherit a class into other class in c#?

995


What is expression tree in c#?

998


What is an abstract class c#?

969


Which namespaces are necessary to create a localized application?

1142