Class StateProxy<StateType>
- Namespace
- HelixToolkit.SharpDX.Utilities
- Assembly
- HelixToolkit.SharpDX.dll
public abstract class StateProxy<StateType> : DisposeObject, IDisposable where StateType : ComObject
Type Parameters
StateTypeThe type of the tate type.
- Inheritance
-
StateProxy<StateType>
- Implements
- Derived
- Inherited Members
Constructors
StateProxy(StateType?)
public StateProxy(StateType? state)
Parameters
stateStateType
Properties
State
Gets the state.
public StateType? State { get; }
Property Value
- StateType
The state.
Methods
OnDispose(bool)
Disposes of object resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesboolIf true, managed resources should be disposed of in addition to unmanaged resources.
Operators
implicit operator StateType?(StateProxy<StateType>?)
Performs an implicit conversion
public static implicit operator StateType?(StateProxy<StateType>? proxy)
Parameters
proxyStateProxy<StateType>The proxy.
Returns
- StateType
The result of the conversion.