Click or drag to resize
DigitalRuneWeakDelegateIsAlive Property
Gets a value indicating whether the Delegate referenced by this WeakDelegate has been garbage collected.

Namespace: DigitalRune
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public bool IsAlive { get; }

Property Value

Type: Boolean
if the Delegate referenced by the current WeakDelegate has not been garbage collected and is still accessible; otherwise, .
Remarks

Important: Because an object could potentially be reclaimed for garbage collection immediately after the IsAlive property returns , using this property is not recommended unless you are testing only for a return value.

If the referenced Delegate is a static method, IsAlive will always return .

See Also