Enhanced C#
Language of your choice: library documentation
|
Provides a weak reference to an object of the given type to be used in a WeakDictionary along with the given comparer. More...
Provides a weak reference to an object of the given type to be used in a WeakDictionary along with the given comparer.
Source: datavault project. License: Apache License 2.0
DLP Updated 2014-May-21: WeakReference{T} in .NET 4.5 is sealed, but this code relied on the ability to derive WeakKeyReference{T} from WeakReference{T}. Workaround: derive WeakKeyReference{T} from WeakReference instead.
T | : | class |
Public fields | |
readonly int | HashCode |
Properties | |
new T | Target [get, set] |
Public Member Functions | |
WeakKeyReference (T key, WeakKeyComparer< T > comparer) | |