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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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