Browse documentation

Class HarmonyInline

Namespace
HarmonyLib
Assembly
0Harmony.dll

Allows inlining an inner patch body; unsupported bodies keep a normal call

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HarmonyInline : Attribute
Inheritance
object
Attribute
HarmonyInline

Constructors

HarmonyInline(bool)

Sets the optional inner patch inlining hint

public HarmonyInline(bool enabled = true)

Parameters

enabled bool

True permits inlining; false keeps the normal call

Properties

Enabled

Whether eligible inner patch bodies may be copied

public bool Enabled { get; }

Property Value

bool
Harmony 3 preview

For the stable release, read the 2.x documentation.