Enhanced C#
Language of your choice: library documentation
Static Public Member Functions | List of all members
Loyc.WeakReferenceExt Class Reference

The new WeakReference<T> type in .NET 4.5 removes the Target and IsAlive properties. These extension methods restore that traditional functionality, making it easier to transition from the old WeakReference to the new one. More...


Source file:

Remarks

The new WeakReference<T> type in .NET 4.5 removes the Target and IsAlive properties. These extension methods restore that traditional functionality, making it easier to transition from the old WeakReference to the new one.

Static Public Member Functions

static T Target< T > (this WeakReference< T > r)
 
static bool IsAlive< T > (this WeakReference< T > r)