很明显,弱引用不再起作用。
有时推荐的一个处理失效侦听器的方法是使用弱引用。
One approach that is sometimes suggested for dealing with lapsed listeners is to use weak references.
比如说,WPF严重倚赖于弱引用来实现数据绑定技术。
For example, it heavily relies on weak references for its data-binding technology.
应用推荐