Enhanced C#
Language of your choice: library documentation
|
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...
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) |