在 C# 中,存在于 managed heap(受托管的堆) 中的对象由运行期环境对其施以垃圾收集动作(garbage collected)。我们不需要显式的删 除那些经由 new 表达式分配的对象。
基于8个网页-相关网页
ObjectStreamClass is a primordial class and therefore is never garbage collected.
ObjectStreamClass是一个原始类,所以永远不会被垃圾收集。
This is important because the singleton aspects are typically not garbage collected.
这一点很重要,因为单体的方面通常不会被垃圾收集。
Any classes that are no longer being referenced are then eligible to be garbage collected.
任何类只要不再被引用,它就符合垃圾收集的条件。
应用推荐