C# Class Microsoft.Practices.Prism.Events.DelegateReference

Represents a reference to a Delegate that may contain a WeakReference to the target. This class is used internally by the Composite Application Library.
Inheritance: IDelegateReference
Datei anzeigen Open project: xperiandri/PortablePrism Class Usage Examples

Public Methods

Method Description
DelegateReference ( dynamic @delegate, bool keepReferenceAlive ) : System

Initializes a new instance of DelegateReference.

Private Methods

Method Description
TryGetDelegate ( ) : Delegate

Method Details

DelegateReference() public method

Initializes a new instance of DelegateReference.
If the passed is not assignable to .
public DelegateReference ( dynamic @delegate, bool keepReferenceAlive ) : System
@delegate dynamic
keepReferenceAlive bool If the class will create a weak reference to the delegate, allowing it to be garbage collected. Otherwise it will keep a strong reference to the target.
return System