ConditionalWeakTable<TKey,TValue>.Finalize 方法

定义

确保垃圾回收器回收 ConditionalWeakTable<TKey,TValue> 对象时释放资源并执行其他清理操作。Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the ConditionalWeakTable<TKey,TValue> object.

!ConditionalWeakTable`2 ()
~ConditionalWeakTable ();
override this.Finalize : unit -> unit
Finalize ()

注解

Finalize当当前对象准备好完成时,垃圾回收器将调用。The garbage collector calls Finalize when the current object is ready to be finalized.

适用于

另请参阅