Destroying a struct object in C#?

前端 未结 8 1636
长情又很酷
长情又很酷 2020-12-17 09:49

I am a bit confused about the fact that in C# only the reference types get garbage collected. That means GC picks only the reference types for memory de-allocation. So what

8条回答
  •  遥遥无期
    2020-12-17 10:26

    Would also like to add that stack is at a thread level, and heap is at application domain level.

    So, when a thread ends it would reclam the stack memory used by that specific thread.

提交回复
热议问题