Namespace: Rx.Net – Class: NativeWrapper – Assembly: Rx.Net.Mixed
NativeWrapper Class
C#
class NativeWrapper<TNative, bool>
Provides functionality for wrapping a native type by a managed class.
Type Parameters
TNative |
The type of the native class. |
AllowOwnership |
Type of the allow ownership. |
Constructors
NativeWrapper() | Default constructor. Creates the native instance. Disposing destroys the native instance. |
NativeWrapper(native) | Constructor that wraps the given native instance. Disposing does NOT destroy the native instance. |
NativeWrapper(native, transferOwnership) | Constructor that wraps the given native instance. |
Finalizer
~NativeWrapper() | Finalizer. Deletes the native instance if created by the default constructor and resets the native pointer. |
Properties
IsDisposed | True if this object is disposed. |
SyncRoot | A SyncRoot object that can be used to lock this object externally. |
Methods
GetNative() | Gets the native instance. |
Dispose() | Destructor. Calls the finalizer. |