Click or drag to resize

CallbackOnDispose Class

Invokes an action when it is disposed.
Inheritance Hierarchy
SystemObject
  Altaxo.MainCallbackOnDispose

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public sealed class CallbackOnDispose : IDisposable

The CallbackOnDispose type exposes the following members.

Constructors
 NameDescription
Public methodCallbackOnDisposeInitializes a new instance of the CallbackOnDispose class
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the CallbackOnDispose
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
This class ensures the callback is invoked at most once, even when Dispose is called on multiple threads.
See Also