Click or drag to resize
Ab4d.SharpEngine logo

DisposeToken Structure

DisposeToken is used to provide a way to dispose an object that does not have a public Dispose method and can be disposed only by the owner of the DisposeToken.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Ab4d.SharpEngine.CoreDisposeToken

Namespace: Ab4d.SharpEngine.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public struct DisposeToken : IDisposable

The DisposeToken type exposes the following members.

Constructors
 NameDescription
Public methodDisposeToken Constructor
Top
Properties
 NameDescription
Public propertyIsDisposed Gets a Boolean that specifies if the Dispose method was already called.
Top
Methods
 NameDescription
Public methodDispose Dispose method calls the disposeAction that was specified when this DisposeToken was created.
Top
See Also