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

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

Type Parameters

T
The type of delegate.

The WeakDelegateT type exposes the following members.

Constructors
  NameDescription
Public methodWeakDelegateT
Initializes a new instance of the WeakDelegateT 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.
(Inherited from WeakDelegate.)
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.
(Inherited from WeakDelegate.)
Public propertyDelegateType
Gets the type of delegate.
(Inherited from WeakDelegate.)
Public propertyIsAlive
Gets a value indicating whether the Delegate referenced by this WeakDelegate has been garbage collected.
(Inherited from WeakDelegate.)
Public propertyMethodInfo
Gets the metadata of the delegate method.
(Inherited from WeakDelegate.)
Public propertyTargetReference
Gets the weak reference of the target object.
(Inherited from WeakDelegate.)
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