Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Dispose() [2/2]

void System.Transactions.FinalizedObject.Dispose ( bool disposing)
inlineprivate

Definition at line 17 of file FinalizedObject.cs.

18 {
19 if (disposing)
20 {
21 GC.SuppressFinalize(this);
22 }
23 Hashtable promotedTransactionTable = TransactionManager.PromotedTransactionTable;
24 lock (promotedTransactionTable)
25 {
26 WeakReference weakReference = (WeakReference)promotedTransactionTable[_identifier];
27 if (weakReference != null && weakReference.Target != null)
28 {
29 weakReference.Target = null;
30 }
31 promotedTransactionTable.Remove(_identifier);
32 }
33 }
virtual void Remove(object key)

References System.Transactions.FinalizedObject._identifier, System.Transactions.TransactionManager.PromotedTransactionTable, System.Collections.Hashtable.Remove(), System.GC.SuppressFinalize(), and System.WeakReference< T >.Target.