Each time you call a method, the record is pushed onto the stack for this thread, which describes the method and the parameters used to call the method. When the method returns, the method and its parameters are removed from the stack. This is how the operating environment knows where to return when the method ends. It simply removes the top entry from the stack, clears any local variables created during this stack frame, and returns to the previous method. (This is simplified, but overall an idea.)
You can think of it literally as a “stack” of instructions that you received here.
, .
, , , , . , , ( Visual Studio), . , , . , , . .
, ( ). , .. , , .