What is the Difference between value and reference type?

Answer Posted / ravi

1. value type contain variable and reference type are not
containing value directly in its memory.
2.memory is allocated in managed heapin reference type and
in value type memory allocated in stack.
3.reference type ex-class
value type-struct, enumeration

Is This Answer Correct ?    36 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is overloading with example?

501


What do you mean by thread safe in c#?

469


Why is lazy loading?

496


Can we maintain state in webservice?

504


Is array ienumerable c#?

471






What is parsing?

529


What is entity framework c#?

464


What is difference between dictionary and hashtable?

523


What is a type c#?

499


What do u mean by delegation of authority?

531


Explain the various types of classes used in c#?

503


What is the difference between asp net and c#?

493


Define an escape sequence, name few strings in escape sequence?

479


Is c# 8 released?

496


What are properties in C#?

544