Destroying a struct object in C#?

前端 未结 8 1384
长情又很酷
长情又很酷 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:15

    value types would get deallocated when the stack frame is removed after it has been executed i would assume

提交回复
热议问题