How are value types implemented in .NET

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-03-27T10:13:45Z Indexed on 2010/03/27 10:23 UTC
Read the original article Hit count: 202

Filed under:

Been looking around the net and can't find any articles about how value types are actually implemented.

For instance, an Int32 is a struct and it's direct parent is System.ValueType and that's ultimate parent is System.Object. Object is a class - I imagine ValueType is a class?

What's the class hierarchy? What part does the CLR have to play? At what stage and how does the CLR know to allocate value types to the stack? (FYI, I am aware that value types are stored where they are declared).

© Stack Overflow or respective owner

Related posts about .NET