.NET Value Types and Reference Types
===

"Value types are stack allocated, whereas reference types live on the managed heap."

If I have a local variable (like int a=2;) within a method of a class, where is it allocated?

In our example, a value type is contained within a reference type. Since the reference lives in the managed heap, I am assuming the value type here (int a) is also in the managed heap and not the stack.

Am I missing something here?