G
Guest
I know that Structures are Value types but I am not clear where a structre
data is stored, i.e., on stack or in managed heap when the strucutre contains
a reference type. For example;
Public Sturcture myStruct
public i as integer
public m() as Byte
End Structure
Since m is a reference type (array), where will the actual values of the
array be stored, i.e., on the stack or in the managed heap with only a
pointer on the stack?
data is stored, i.e., on stack or in managed heap when the strucutre contains
a reference type. For example;
Public Sturcture myStruct
public i as integer
public m() as Byte
End Structure
Since m is a reference type (array), where will the actual values of the
array be stored, i.e., on the stack or in the managed heap with only a
pointer on the stack?