Table of Contents

Class Extension

Namespace
SampSharp.OpenMp.Core
Assembly
SampSharp.OpenMp.Core.dll

Represents a base class for managed extensions which can be attached to extensible open.mp entities. The implementation must have an [Extension(...)] attribute.

public abstract class Extension : IDisposable
Inheritance
Extension
Implements
Derived
Inherited Members

Constructors

Extension()

Initializes a new instance of the Extension class.

protected Extension()

Properties

IsDisposed

Gets a value indicating whether this extension has been disposed.

[MemberNotNullWhen(false, new string[] { "_gcHandle", "_unmanagedCounterpart" })]
protected bool IsDisposed { get; }

Property Value

bool

Methods

Cleanup()

This method is called when the extension is being cleaned up. The extension may be cleaned up because it is being removed from an extensible or because the extensible is being disposed.

protected virtual void Cleanup()

Dispose()

Detaches this extension from the extensible it is currently applied to and destroys all resources held by this extension.

public void Dispose()

~Extension()

Finalizes an instance of the Extension class.

protected ~Extension()