自从我第一堂关于 C# 类的课程以来,我了解到不仅我不能Finalize()
显式调用类的方法(它由垃圾收集器调用),而且我什至不允许在我的自定义类中实现它。
让我有点困惑的是,在MSDN中就像这里 -
By default, the Object.Finalize method does nothing. If you want the garbage collector to perform cleanup operations on your object before it reclaims the object's memory, you must override this method in your class.
我发现很多地方都暗示了别的东西。谁能澄清这是为什么?