Difference between Value Types Reference Types? Anonymous User84427-Apr-2018c#c# Updated on 23-Sep-2020
Anonymous User
27-Apr-2018Let us look at the differences between both the data types:
Value Types
They are allocated on stack.
It contains value.
Struct is value type.
Reference Types
They are allocated on heap.
It contains the address of the memory location.
Classes and Interfaces are reference types.