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 are sessions in c#?

588


What is the meaning of MSIL?

754


Which is better javascript or c#?

578


What is Fragmentation and its Types?

641


How more than one version of an assembly can keep in same place?

594






Are multiple data types stored in System.Array?

754


Can an array be null c#?

593


Define Final Class in C#

645


What is args c#?

613


If I return out of a try/finally in c#, does the code in the finally-clause run?

629


What is lazy loading c#?

589


What is the difference between list and arraylist c#?

607


Why do we need escape characters?

564


What is a di class?

622


List the different stages of a thread?

573