Click or drag to resize
DigitalRuneWeakDelegate Class
Represents a Delegate that stores the target object as a weak reference.
Inheritance Hierarchy

Namespace: DigitalRune
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public class WeakDelegate

The WeakDelegate type exposes the following members.

Constructors
  NameDescription
Public methodWeakDelegate
Initializes a new instance of the WeakDelegate class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvoke
Invokes the stored Delegate with the given arguments.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyDelegate
Gets the Delegate stored by the current WeakDelegate object.
Public propertyDelegateType
Gets the type of delegate.
Public propertyIsAlive
Gets a value indicating whether the Delegate referenced by this WeakDelegate has been garbage collected.
Public propertyMethodInfo
Gets the metadata of the delegate method.
Public propertyTargetReference
Gets the weak reference of the target object.
Top
Remarks
Important: In Silverlight, the target of a WeakDelegate needs to be a public method (not a private, protected or anonymous method). This is necessary because of security restrictions in Silverlight.
See Also