Differences between Value and Reference Types
Differences between Value and Reference Types
Hi,
A basic difference between value types and reference types is that an instance of a value type has its value allocated on the stack, while an instance of a reference type has only a reference to its actual value allocated on the stack. The value itself is allocated on the heap.
Regards,
Vikas Vaidya
[Please mark it as thanks if u got ur answer]