Where are value types defined in a reference type stored (heap or stack) ?

Posted by Hemanshu Bhojak on Stack Overflow See other posts from Stack Overflow or by Hemanshu Bhojak
Published on 2010-06-10T04:40:09Z Indexed on 2010/06/10 5:22 UTC
Read the original article Hit count: 269

Filed under:
|
|

Are the value types defined inside a reference type stored on the heap or on the stack?

  1. If stored on the heap, then when are value types stored on the stack?
  2. If stored on the stack, then what goes inside the heap as everything ends at a value type in the end?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about value-types