What's the main purpose of Stack in C#?

Stack is used to trace the method calls of C#. It's handled by Common Language Runtime.
Stack has lots of Stack frames.
Each stack frame has 3 parts.
1. Parameters
2. Return Address
3.Local variables 

Stack frame will be removed from stack when the specific method call completes.

In this time the local variables will go out of scope.

Comments

Popular posts from this blog

Types of Architects

Basic measurements

Search html table contents based on its td using Jquery