WeakDelegate<'TDelegate> Type

Can be used to build an event that binds the clients weak.

Credits and further info: Albahari, Joseph and Ben, C# 6.0 in a Nutshell - The definitive reference.

Constructors

Constructor Description

WeakDelegate()

Full Usage: WeakDelegate()

Instance members

Instance member Description

this.Combine

Full Usage: this.Combine

Parameters:
    target : 'TDelegate

target : 'TDelegate

this.Remove

Full Usage: this.Remove

Parameters:
    target : 'TDelegate

target : 'TDelegate

this.Target

Full Usage: this.Target

Gets or sets the target. Gets all delegates that are still alive (and removes the dead targets by the way). If set, it removes the present targets and replaces them with the provided target(s).