Login
Remember
Register
Ask a Question
Explain the differences between value type and reference type.
0
votes
asked
Sep 19, 2023
in
Dot Net
by
Robin
Explain the differences between value type and reference type.
referencetype
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 19, 2023
by
Robin
Following are the main differences between value type and reference type:
Value type contain variable while reference type doesn't contain value directly in its memory.
In reference type, memory is allocated in managed heap and in value type memory allocated in stack.
Reference type ex-class value type-struct, enumeration
...