Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public fields | Properties | Public Member Functions | List of all members
Loyc.Collections.WeakKeyReference< T > Class Template Reference

Provides a weak reference to an object of the given type to be used in a WeakDictionary along with the given comparer. More...


Source file:
Inheritance diagram for Loyc.Collections.WeakKeyReference< T >:

Remarks

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.

Type Constraints
T :class 

Public fields

readonly int HashCode
 

Properties

new T Target [get, set]
 

Public Member Functions

 WeakKeyReference (T key, WeakKeyComparer< T > comparer)