DisposableToken Class |
IDisposable delegate adapter.
Inheritance Hierarchy
Namespace: Tekla.Structures.Model
Assembly: Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2023.0.3
Syntax
The DisposableToken type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DisposableToken |
Initializes a new instance of the DisposableToken class.
|
Methods
Operators
Fields
Examples
IDisposable InitiateOperation() { var token = Disposable.None; try { token += new Disposable(() => FinalizeOnePart()); token += new Disposable(() => FinalizeOtherPart()); return token; } catch { token.Dispose(); throw; } }
See Also