concept stack in category .net

This is an excerpt from Manning's book C# in Depth.
This one is often caused by laziness on the part of the person repeating it. The first part is correct—an instance of a reference type is always created on the heap. It’s the second part that causes problems. As I’ve already noted, a variable’s value lives wherever it’s declared, so if you have a class with an instance variable of type int, that variable’s value for any given object will always be where the rest of the data for the object is—on the heap. Only local variables (variables declared within methods) and method parameters live on the stack. In C# 2 and later, even some local variables don’t really live on the stack, as you’ll see when we look at anonymous methods in chapter 5.
When you think of a stack frame, you probably think about the local variables you’ve declared in the method. Sure, you may be aware of some hidden local variables like the iterator for a foreach loop, but that’s not all that goes on the stack...at least logically.[10] In various situations, there are intermediate expressions that can’t be used until some other expressions are evaluated. The simplest examples of these are binary operations like addition, and method invocations.
10 As Eric Lippert is fond of saying, the stack is an implementation detail—some variables you might expect to go on the stack actually end up on the heap, and some variables may end up only existing in registers. For the purposes of this section, we’re just talking about what logically happens on the stack.