Click or drag to resize
Ab4d.SharpEngine logo

ComponentWithDisposeTokenT Class

ComponentWithDisposeToken is a class (and not a struct) that can be used to hold a reference to a Components and its DisposeToken.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.CoreComponentWithDisposeTokenT

Namespace: Ab4d.SharpEngine.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class ComponentWithDisposeToken<T>
where T : class

Type Parameters

T
type of the Component

The ComponentWithDisposeTokenT type exposes the following members.

Constructors
 NameDescription
Public methodComponentWithDisposeTokenT Constructor
Top
Properties
 NameDescription
Public propertyComponent Get the component
Top
Methods
 NameDescription
Public methodDeconstruct Deconstruct TupleWithDisposeToken into the Component and DisposeToken.
Public methodDispose Disposes the DisposeToken and prevents access to Component.
Top
Fields
 NameDescription
Public fieldDisposeToken Gets the DisposeToken
Top
See Also