SKNativeObject Class

Definition

Represents a native object.

public class SKNativeObject : IDisposable
public abstract class SKNativeObject : IDisposable
Inheritance
SKNativeObject
Derived
Implements

Remarks

This object just wraps a native handle with the managed dispose pattern. For a tracked object, use SKObject.

Properties

Handle

Gets or sets the handle to the underlying native object.

IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

OwnsHandle

Gets or sets a value indicating whether this object owns it's handle and should destroy the native object when is is disposed.

Methods

Dispose()

Releases all resources used by this SKNativeObject.

Dispose(Boolean)

Releases the unmanaged resources used by the SKNativeObject and optionally releases the managed resources.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

DisposeManaged()

Implemented by derived SKNativeObject types to destroy any managed objects.

DisposeNative()

Implemented by derived SKNativeObject types to destroy any native objects.

DisposeUnownedManaged()
Finalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

Applies to