Good implementation of weak dictionary in .Net

前端 未结 7 1868
Happy的楠姐
Happy的楠姐 2020-12-14 16:12

Where can I find good implementation of IDictionary which uses weak references inside?

Dictionary should be holding only weak references to values and e

相关标签:
7条回答
  • 2020-12-14 17:06

    ConditionalWeakTable Class uses weak keys and automatically removes the key/value entry as soon as no other references to a key exist outside the table.

    0 讨论(0)
提交回复
热议问题