The ConditionalWeakTable in .NET

added by Paul Wheeler
12/2/2014 1:42:01 PM

2 Kicks, 312 Views

The class allows a key-value pair to be stored (using its Add method), once the key object no longer has any references outside of the ConditionalWeakTable the key can be destroyed during garbage collection as the key is held as a weak reference inside the table, as opposed to a usual strong reference.


0 comments