C# - Garbage Collection

前端 未结 9 977
闹比i
闹比i 2021-01-31 11:15

Ok so I understand about the stack and the heap (values live on the Stack, references on the Heap).

When I declare a new instance of a Class, this lives on the heap, wit

9条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-31 11:51

    Read the following article by Microsoft to get a level of knowledge about Garbage Collection in C#. I'm sure it'll help anyone who need information regarding this matter.

    Memory Management and Garbage Collection in the .NET Framework

提交回复
热议问题