Click or drag to resize

WeakDelegateTDelegate Class

Can be used to build an event that binds the clients weak.
Inheritance Hierarchy
SystemObject
  AltaxoWeakDelegateTDelegate

Namespace: Altaxo
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class WeakDelegate<TDelegate>
where TDelegate : class

Type Parameters

TDelegate
The type of the delegate.

The WeakDelegateTDelegate type exposes the following members.

Constructors
 NameDescription
Public methodWeakDelegateTDelegateInitializes a new instance of the WeakDelegateTDelegate class
Top
Properties
 NameDescription
Public propertyTarget 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).
Top
Methods
 NameDescription
Public methodCombine 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemove 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
Credits and further info: Albahari, Joseph and Ben, C# 6.0 in a Nutshell - The definitive reference.
See Also