What is value type and reference type?

Answer Posted / usman

In simple words value types are those datatypes that store
there values on stack memory and values are settle down at
compile time example are "ENUM" and reference type are
those datatype that store there values in heap memory and
settle down while run time i.e dynamic types examples are
strings,class type etc

Cheers

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a shared assembly?

539


What is polymorphism c# example?

483


What are handlers in c#?

496


What is the default scope of a class in c#?

478


How Do You Convert A Value-type To A Reference-type?

520






Can property be private in c#?

496


Explain the difference between event and a delegate in c#?

528


What are nested classes in c#?

552


What's c# ?

590


Difference between abstract classes and interfaces

511


What is the use of readkey in c#?

485


What happens during the process of boxing?

600


What is deferred execution?

477


How does array sort work?

498


How jit (just in time) works?

509