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 the size of a decimal?

609


What is sorted list in c#?

501


Why static constructor is parameterless in c#?

589


What is a private method in c#?

492


How to use exception handling in stored procedure?

534






Is c# an open source?

488


What are the examples of data types?

478


Is it possible to nest cfml conditional tags?

533


What is the difference between c and c# programming?

439


What is unsigned int?

519


How do I download a program to my desktop?

455


Does unity use c++ or c#?

483


Value Type and Reference Type Data type in C#?

541


Are arrays immutable c#?

509


What is out int in c#?

470